Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on May 9, 2011
  1. Merge branch 'polylinear'

  2. Delete

    Not needed for now, since I opted to create customized versions internally.
Commits on May 8, 2011
  1. Rename a variable.

  2. Refactor polylinear scales.

    This commit adds a d3_uninterpolate method (private, for now), which is
    essentially the inverse of d3.interpolate. It's used to map a value in the
    domain to the unit range [0,1], which can then be passed to an interpolator.
Commits on May 7, 2011
  1. Merge branch 'release'

  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
  3. Add tests for classed.

  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.
  5. Add tests for hsl.

  6. Revert behavior of d3.keys.

    We include keys inherited from the prototype.
Commits on May 5, 2011
  1. @jasondavies

    Rename "group" to "node".

    jasondavies authored
  2. @jasondavies

    Add .hsl().brighter() and .hsl().darker().

    jasondavies authored
    Also fix .rgb() and .hsl().
  3. @jasondavies

    Fix typo.

    jasondavies authored
    Thanks Mike!
  4. @jasondavies

    Propagate data changes to event listeners.

    jasondavies authored
    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.
  5. @jasondavies

    Use prototypes for `d3.rgb()` and `d3.hsl()`.

    jasondavies authored
    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()
        d3.hsl(h, s, l).rgb()
    to convert between RGB and HSL.
  6. @jasondavies
  7. @jasondavies
  8. @jasondavies

    Polylinear scales. Fixes #61.

    jasondavies authored
    For example:
            .domain([-100, 0, 100])
            .range(["red", "white", "green"]);
  9. @jasondavies
  10. @jasondavies

    Use `element.classList` for classed operator.

    jasondavies authored
    This is only used if available, and falls back to the regex-based implementation
    e.g. for SVG nodes.  See #96.
  11. @jasondavies
Commits on May 3, 2011
  1. Add "expand" stack offset.

  2. @jasondavies

    Set className to `""` instead of `null`.

    jasondavies authored
    Retrieving it in Chrome returns `""` after setting it to `null` anyway.
  3. @jasondavies
  4. @jasondavies

    Use "Object.keys" if available.

    jasondavies authored
    Also added "hasOwnProperty" check in the fallback to avoid enumerating
    properties from the prototype chain.  This is the approach recommended in
    and elsewhere.
    See also: #96.
  5. @jasondavies

    Fix classed operator for SVG elements. Fixes #78.

    jasondavies authored
    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.
  6. @jasondavies
Something went wrong with that request. Please try again.