Permalink
Commits on May 7, 2011
  1. Merge branch 'release'

    mbostock committed May 7, 2011
  2. Improved monotone interpolation.

    Mainly, I fixed a bug where the coordinates could get set to NaN if two
    successive points have the same x-coordinate. But I also cleaned up the
    implementation slightly, and compute the initial tangents using finite
    differences.
    mbostock committed May 7, 2011
  3. Add tests for classed.

    mbostock committed May 7, 2011
  4. Cleverly compacted `classed` code.

    We can take advantage of JavaScript's invisible hoisting of variables to set
    them before they are defined. This simplifies the code for the various special
    cases in the `classed` operator, such as for SVG elements and browsers that
    support the tokenized class list.
    mbostock committed May 7, 2011
  5. Add tests for hsl.

    mbostock committed May 7, 2011
  6. Revert behavior of d3.keys.

    We include keys inherited from the prototype.
    mbostock committed May 7, 2011
Commits on May 5, 2011
  1. Rename "group" to "node".

    jasondavies committed May 5, 2011
  2. Add .hsl().brighter() and .hsl().darker().

    Also fix .rgb() and .hsl().
    jasondavies committed May 5, 2011
  3. Fix typo.

    Thanks Mike!
    jasondavies committed May 5, 2011
  4. Propagate data changes to event listeners.

    Event listeners are still bound to the index at the time of binding, but data
    changes are now visible from the event listener.
    
    Fixes #88.
    jasondavies committed May 5, 2011
  5. Use prototypes for `d3.rgb()` and `d3.hsl()`.

    This turns out to be slightly faster than using structs (`{}`) and is bit
    cleaner.  You can now also do:
    
        d3.rgb(r, g, b).hsl()
    
    and:
    
        d3.hsl(h, s, l).rgb()
    
    to convert between RGB and HSL.
    jasondavies committed May 5, 2011
  6. Revert "Use a more precise check for "baseVal" property."

    This reverts commit 94d0e1a.
    jasondavies committed May 5, 2011
  7. Use `element.classList` for classed operator.

    This is only used if available, and falls back to the regex-based implementation
    e.g. for SVG nodes.  See #96.
    jasondavies committed May 5, 2011
  8. Add `brighter` and `darker` to d3.rgb().

    Fixes #138.
    jasondavies committed May 5, 2011
Commits on May 3, 2011
  1. Add "expand" stack offset.

    mbostock committed May 3, 2011
  2. Set className to `""` instead of `null`.

    Retrieving it in Chrome returns `""` after setting it to `null` anyway.
    jasondavies committed May 3, 2011
  3. Use "Object.keys" if available.

    Also added "hasOwnProperty" check in the fallback to avoid enumerating
    properties from the prototype chain.  This is the approach recommended in
    <https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/keys>
    and elsewhere.
    
    See also: #96.
    jasondavies committed May 3, 2011
  4. Fix classed operator for SVG elements. Fixes #78.

    Specifically, removal of a class wasn't working because the `className` property
    for SVG elements is an SVGAnimatedString, which has no `replace` method.
    
    It would be nice to have a unit test for this, but env-js doesn't use
    SVGAnimatedString for this property.
    jasondavies committed May 3, 2011
  5. Minor code simplification.

    jasondavies committed May 3, 2011
  6. Add basis-open interpolation.

    mbostock committed May 3, 2011
Commits on May 2, 2011
  1. Add monotone interpolation for lines and areas.

    Based on the Protovis implementation.
    jasondavies committed May 1, 2011
Commits on May 1, 2011