Commits on Jun 25, 2011
Commits on Jun 24, 2011
  1. Merge branch 'release'

    mbostock committed Jun 24, 2011
  2. Add d3.svg.area.radial.

    mbostock committed Jun 24, 2011
  3. Add x0 & x1 accessors to d3.svg.area.

    mbostock committed Jun 24, 2011
    Thanks for the inspiration, @strongh!
  4. Refactor ticks implementation.

    mbostock committed Jun 24, 2011
    This commit adds a new static function for computing the extent (min and max) of
    a scale's domain, simplifying the logic in the ticks functions and ensuring
    standard behavior (such as repeated values). Also, the linear ticks function is
    extracted for reuse by the pow scale.
    I opted not to reverse the tick order for descending domains; this might be nice
    but it doesn't seem required, so we might as well keep the code small.
Commits on Jun 23, 2011
  1. Replace basis+beta with bundle+tension.

    mbostock committed Jun 23, 2011
    There's already a tension parameter, and it seems reasonable to overload this
    parameter (originally intended for cardinal splines) to also apply to bundle
    splines. The new "bundle" interpolation is identical to "basis" interpolation;
    the only difference is that the tension parameter is used to straighten the
    basis spline.
  2. Update comments for clarity.

    mbostock committed Jun 23, 2011
Commits on Jun 22, 2011
  1. Rename bundle.css.

    mbostock committed Jun 22, 2011
  2. Add d3.svg.diagonal.radial.

    mbostock committed Jun 22, 2011
  3. Add d3.svg.line.radial.

    mbostock committed Jun 22, 2011
  4. Listen for "mousemove" on window.

    jasondavies committed Jun 22, 2011
    I think this gives a better experience on big monitors. :-) I've also used
    d3.timer to update the paths in case there is a backlog of mousemove events.
    I'm not sure this is necessary but in testing on a fast machine sometimes it
    processes two mousemove events and only draws the most recent one with this
  5. Revert "Use approximate sin/cos for faster interpolation."

    jasondavies committed Jun 22, 2011
    This reverts commit c5450fa.
    It turns out this approximation is not that much faster than Math.{sin,cos}; I
    think the perceived performance is more related to the responsiveness to the
    "mousemove" event.
  6. Use approximate sin/cos for faster interpolation.

    jasondavies committed Jun 22, 2011
    This particular approximation is taken from
    <> but there may well be
    better ones out there.  This seems to work nicely though!
  7. Hierarchical edge bundling improvements.

    mbostock committed Jun 22, 2011
    The input to the layout is now an array of edges to bundle, rather than nodes.
    This eliminates the need for an `outgoing` accessor, since the links are passed
    to the bundle layout directly.
    The svg line generator now supports a beta (straightening; bundle strength)
    parameter. I haven't decided if this is the right place or the right name for
    it, but it seems like a reasonable starting point. I'm not happy with the cos &
    sin needed to produce radial lines (both here and for the diagonal projection in
    other examples), but I don't have a good alternative yet.
    This commit also tries to make the construction of the links from the layout
    nodes a bit easier to follow. The previous code was used another intermediate
    representation, and I think it's cleaner to construct the default format
    expected by the layouts. However, there's still a good chunk of code required to
    massage the JSON format into a node hierarchy and array of dependencies, so I'd
    like to find a way to simplify that, too.
  8. Make d3.layout.bundle layout-independent.

    jasondavies committed Jun 22, 2011
    I've included an example of using it with treemaps.
Commits on Jun 18, 2011
Commits on Jun 17, 2011
  1. Minor clean ups.

    jasondavies committed Jun 17, 2011
  2. d3.svg.area: evaluate x-accessor once per element.

    jasondavies committed Jun 17, 2011
    I played with extracting d3_svg_linePoints but this seems simpler.
    Fixes #187.
  3. Merge branch 'release'

    mbostock committed Jun 17, 2011
Commits on Jun 15, 2011
  1. Couple of tweaks to reset gravity.

    jasondavies committed Jun 15, 2011
    Firstly, when the mouse exits the area the gravity coordinates are nullified.
    Secondly, if the user switches to another window, the gravity coordinates are
    nullified (otherwise the appropriate "mouseout" event may be missed).