Permalink
Commits on Mar 2, 2012
  1. Merge branch 'release'

    mbostock committed Mar 2, 2012
  2. Include brush mode with event.

    mbostock committed Mar 2, 2012
    This allows listeners to distinguish between move and resize events.
Commits on Feb 29, 2012
  1. Fixes #576: leap year bug in d3.time.format.

    mbostock committed Feb 29, 2012
    We need to set the date fields from year down, rather than in arbitrary order.
  2. Fix drift in brush extent.

    mbostock committed Feb 29, 2012
    Previously, if you set the brush extent externally, the extent could drift
    slightly because it was internally stored in pixel space rather than in data
    space. To avoid drift, the brush now preserves the extent exactly as-set, only
    nullifying the externally-set extent when the brush is moved.
  3. Update histogram example.

    mbostock committed Feb 29, 2012
Commits on Feb 27, 2012
  1. Re-entrant transition.each.

    mbostock committed Feb 27, 2012
    In theory, you could call transition.each within the context of another
    transition.each, so we should be careful how we restore the default settings.
Commits on Feb 26, 2012
  1. Inheritance for transition.each.

    mbostock committed Feb 26, 2012
    If you use d3.transition(selection) within the context of a transition.each, the
    created transition will automatically inherit the delay, duration and easing of
    the parent transition. Likewise, if you use d3.transition(selection) within the
    context of a selection.each, it simply returns the passed-in selection with no
    transition at all. This makes it easier to create components, such as the axis,
    that support automatic transitions.
Commits on Feb 25, 2012
  1. update to latest jsdom

    stepheneb committed Feb 25, 2012
    The update is to get the most recent version of contextify
    which is a dependency of jsdom. Previous versions of 
    contextify always generate a 64 library module. v0.6.11 of
    node on macos is a 32-bit ARCH. The latest version of 
    contextify  builds an ARCH that matches node NOT the arch
    of the system.
    
    See: brianmcd/contextify#19
  2. Merge branch 'v2.8.0'

    mbostock committed Feb 25, 2012
Commits on Feb 23, 2012
  1. Add tests for d3.scale.identity.

    mbostock committed Feb 23, 2012
    Also, we need to coerce the input values to numbers, since this is a
    quantitative scale and the ticks and tickFormat methods assume numbers.
  2. Save two bytes. :trollface:

    mbostock committed Feb 23, 2012
  3. Rewrite brush to use transient listeners.

    mbostock committed Feb 23, 2012
    Fixes #566. Closures are way better than globals!
  4. Transient listeners for drag behavior.

    mbostock committed Feb 23, 2012
    Fixes #516.
  5. Fix a bug when clearing event listeners.

    mbostock committed Feb 23, 2012
    We weren't deleting the reference to the removed listener, so we were leaking
    memory and returning a stale value on a subsequent get. Also, we now stash the
    capture value when setting an event listener, so that we can automatically
    remove or replace a listener without the caller needing to specify capture.
  6. Add sourceEvent to custom events.

    mbostock committed Feb 23, 2012
    The drag behavior, zoom behavior and brush component now set a "sourceEvent"
    property on their events, defined as the triggering mouse or touch event. The
    d3.mouse and d3.touches helpers likewise use the source event, letting you query
    the mouse or touch location when handling a custom event.
Commits on Feb 22, 2012
  1. Force transition duration of at least 1ms.

    mbostock committed Feb 22, 2012
    Fixes #493. Also terminates any transitions with negative or NaN durations,
    rather than having them run infinitely. Also coerces NaN delays to 0 as well, to
    likewise avoid infinite transitions.
Commits on Feb 21, 2012
  1. Query data via selection.data(). Fixes #525.

    mbostock committed Feb 21, 2012
    This method returns the array of data for the first group in the selection. Note
    that the data method cannot be used to clear data bindings, since it computes a
    data join; use datum(null) to clear bound data.
  2. Add selection.datum. Fixes #489.

    mbostock committed Feb 21, 2012
  3. Slight simplification to d3.ns.qualify.

    mbostock committed Feb 21, 2012
    This changes the behavior slightly, but in a good way: if the namespace is
    unknown, then it is ignored rather than returning an undefined namespace.
  4. Adopt d3.map for d3.format.

    mbostock committed Feb 21, 2012
  5. Adopt d3.map for d3.ease.

    mbostock committed Feb 21, 2012
    Also, if an unknown easing method or mode is specified, fallback to linear-in.