Permalink
Commits on Nov 22, 2011
  1. Merge branch 'fix-dispatch'

    mbostock committed Nov 22, 2011
  2. dispatch.on(name) returns the current listener.

    mbostock committed Nov 22, 2011
    Fixes #383. This includes a non-backwards-compatible change to d3.rebind, so as
    to make it easier to rebind multiple methods on subclasses.
  3. Fix a bug when removing a shared listener.

    mbostock committed Nov 22, 2011
    Previously, each listener function had a private _on property which recorded
    whether the listener was enabled; this was set to false when the listener was
    removed. (This is necessary because of the copy-on-write semantics when the
    array of listeners is modified while events are being dispatched.) If the
    listener was registered for multiple event types ("foo" and "bar") then removing
    the listener for any type would disable it for all types.
    
    The fix is to wrap the listener in an object. This also has better encapsulation
    since the state is kept private.
Commits on Nov 19, 2011
  1. Add .npmignore.

    mbostock committed Nov 19, 2011
Commits on Nov 16, 2011
  1. Merge branch 'release'

    mbostock committed Nov 16, 2011
  2. Slightly smaller code.

    mbostock committed Nov 16, 2011
  3. Bump epsilon.

    jasondavies committed Nov 16, 2011
  4. Fix d3.transform and add browser-based tests.

    jasondavies committed Nov 16, 2011
    This fixes various corner cases involving negative and zero scales, as
    well as proper support for skewX, which previously wasn't being computed
    correctly.
    
    Fixes #377.
Commits on Nov 15, 2011
  1. Fix a couple bugs with transforms.

    mbostock committed Nov 15, 2011
    We need to check the matrix determinant for flipped coordinates. We also need to
    check for invalid transforms, which are now treated as the identity transform.
Commits on Nov 14, 2011
Commits on Nov 10, 2011
  1. Fixed precision for the default log tick format.

    mbostock committed Nov 10, 2011
    Also add @jmarca's test case.
  2. Remove spurious rounding.

    mbostock committed Nov 10, 2011
Commits on Nov 9, 2011
  1. Merge pull request #371 from jasondavies/deps

    mbostock committed Nov 9, 2011
    Update JSDOM and Vows versions (Node.js v0.6.x compatibility).
  2. Update JSDOM and Vows versions.

    jasondavies committed Nov 5, 2011
    This required changing assert.length to assert.lengthOf in tests, due to
    a Vows.js change to be compatible with Node.js v0.6.x.  For further
    details:
    
        vowsjs/vows#141
Commits on Nov 5, 2011
  1. Merge branch '2.5.0'

    mbostock committed Nov 5, 2011
Commits on Nov 4, 2011
  1. Add d3.transform and d3.interpolateTransform.

    mbostock committed Nov 4, 2011
    This is based on @jasondavies previous work on interpolating 3D matrices,
    simplified to only handle 2D transforms, and using SVG to parse transforms.
  2. Add state names.

    mbostock committed Nov 4, 2011
  3. Slightly shorter regex.

    jasondavies committed Nov 4, 2011
    Exactly the same speed in Chrome (probably both are optimised into the
    same form): http://jsperf.com/number-matching
  4. Tiny simplification.

    mbostock committed Nov 4, 2011
  5. Reuse infinite extent.

    jasondavies committed Nov 4, 2011