1. 09 Dec, 2011 5 commits
  2. 07 Dec, 2011 1 commit
  3. 30 Nov, 2011 5 commits
  4. 23 Nov, 2011 12 commits
  5. 22 Nov, 2011 3 commits
    • Mike Bostock's avatar
      Merge branch 'fix-dispatch' · 2df8c62c
      Mike Bostock authored
      2df8c62c
    • Mike Bostock's avatar
      dispatch.on(name) returns the current listener. · 1b3a3b3c
      Mike Bostock authored
      Fixes #383. This includes a non-backwards-compatible change to d3.rebind, so as
      to make it easier to rebind multiple methods on subclasses.
      1b3a3b3c
    • Mike Bostock's avatar
      Fix a bug when removing a shared listener. · 75ddc283
      Mike Bostock authored
      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.
      75ddc283
  6. 19 Nov, 2011 1 commit
  7. 16 Nov, 2011 8 commits
  8. 15 Nov, 2011 1 commit
    • Mike Bostock's avatar
      Fix a couple bugs with transforms. · 7fe3ae41
      Mike Bostock authored
      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.
      7fe3ae41
  9. 14 Nov, 2011 2 commits
  10. 10 Nov, 2011 2 commits
    • Mike Bostock's avatar
      Restore conservative click canceling. · 2f16227e
      Mike Bostock authored
      See #312. The also fixes the zoom behavior so that it cleans up temporary state
      when the zoom gesture is done. And, it fixes both behaviors such that the
      mouseup event is always stopped from propagation if a gesture occurs (even if a
      subsequent click is not prevented).
      2f16227e
    • Mike Bostock's avatar
      Add drag.origin accessor. · 18dcad74
      Mike Bostock authored
      This allows you to specify how the drag behavior should infer the current
      position of the targetted element, such that a fixed offset can be maintained
      between the mouse position and the element position for the duration of the drag
      gesture. For example, if your data is an {x, y} object, use origin(Object).
      18dcad74