Permalink
Commits on Feb 25, 2012
  1. update to latest jsdom

    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
    stepheneb committed Feb 25, 2012
  2. Merge branch 'v2.8.0'

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

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

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

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

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

    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.
    mbostock committed Feb 23, 2012
  6. Add sourceEvent to custom events.

    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.
    mbostock committed Feb 23, 2012
Commits on Feb 22, 2012
  1. Force transition duration of at least 1ms.

    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.
    mbostock committed Feb 22, 2012
Commits on Feb 21, 2012
  1. Query data via selection.data(). Fixes #525.

    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.
    mbostock committed Feb 21, 2012
  2. Add selection.datum. Fixes #489.

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

    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.
    mbostock committed Feb 21, 2012
  4. Adopt d3.map for d3.format.

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

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

    Unfortunately, "delete" is a reserved word, and older browsers (such as mobile
    WebKit) crash if you use reserved words as method names. I'd rather have code
    that runs than strictly maintain interface-compatibility with the ES6 map.
    mbostock committed Feb 21, 2012
  7. Merge branch 'drag-touch' of https://github.com/jasondavies/d3 into b…

    …uiltin-properties
    mbostock committed Feb 21, 2012
  8. Don't block click events entirely on touch devices.

    This preventDefault call prevents the click event from firing at all.
    jasondavies committed Feb 21, 2012
  9. Adopt d3.map for d3.dispatch.

    mbostock committed Feb 21, 2012
  10. Don't support interpolating non-enumerables.

    We don't need to support interpolating non-enumerable properties; make it
    explicit that these properties may or may not be interpolated.
    mbostock committed Feb 21, 2012
  11. map.set returns the set value.

    This makes map.set(key, value) equivalent to object[key] = value.
    mbostock committed Feb 21, 2012
  12. Use d3.map for d3_svg_symbols.

    This fixes a crash with the symbol type "hasOwnProperty", rather than defaulting
    to "circle". This commit also adds new map methods to retrieve the keys, values
    and entries. The map class now uses non-enumerable properties (if supported).
    mbostock committed Feb 21, 2012