Граф коммитов

13 Коммитов

Автор SHA1 Сообщение Дата
Mike Bostock 3af91c35e4 Greedy evaluation of transition.{style,attr,text}.
Rather than computing the ending value when the transition starts, the ending
value is computed when the transition is scheduled. This gives more predictable
behavior and makes it easier to debug evaluation errors since they occur
immediately (during user code) rather than inside a d3_timer callback.

The behavior of attrTween and styleTween are unchanged, since the interpolator
can only be constructed once the starting value is known. This commit also
removes d3.tween; I may add this back in a future commit, but I think there is
probably a better way to specify an interpolator for transitions.
2012-10-16 16:47:20 -07:00
Mike Bostock d3f855ae01 Rename d3.v3.js to d3.js.
We'll still use the major-versioned name file for d3js.org, but this is simpler.
2012-10-05 18:46:05 -07:00
Mike Bostock 044f61507c Merge branch 'transition-reselect' into 2.11 2012-10-05 16:29:56 -07:00
Mike Bostock 3081dd45ef Consolidate everything into d3.v2.js.
Rather than producing separate files for each module, the default build now
produces a single file. This should encourage better page-load performance as
the files were relatively small. Also, it's easier to deal with only one file
rather than many, especially if you're not quite sure what the dependencies are.
You may still create minimized builds, if you don't want every feature.

This commit also demotes the chart components to the examples directory, rather
than keeping them as part of the core library. As always, D3 is not a charting
library, and these were ever only intended to serve as examples.
2012-02-18 14:04:01 -08:00
Mike Bostock c2e37352ac Fix for IE9's style.setProperty.
IE9 does not string-coerce values, instead throwing an error. We now wrap IE9's
implementation to force string coercion. While it would be simpler to turn on
string-coercion for all browsers inside D3's style operator, this approach
avoids penalizing standards-compliant browsers.

This commit also moves language-compatibility code to a separate directory, and
deletes the obsolete Object.create polyfill, which is no longer needed by D3.
2011-08-28 19:35:53 -07:00
Mike Bostock 746ec74663 Add tests for xhr and friends. 2011-08-16 22:28:15 -07:00
Mike Bostock 9a2c6a0657 Add test for scale.linear.
Woot! Found a bug in d3.interpolate related to string coercion and colors.
2011-08-15 15:12:54 -07:00
Mike Bostock aa5ac0342e Add test for svg.arc. 2011-08-15 12:16:14 -07:00
Mike Bostock 3771bf5f64 Add test for hsl. 2011-08-14 11:16:03 -07:00
Mike Bostock 3685a428fe Add test for rgb. 2011-08-14 10:53:34 -07:00
Mike Bostock 94800d39d2 Add test for selection.sort. 2011-08-13 17:27:54 -07:00
Mike Bostock 1444698b22 Add tests for selection select and selectAll. 2011-08-12 23:26:46 -07:00
Mike Bostock 0e9589d1f2 Checkpoint new test framework using Vows. 2011-08-12 18:07:42 -07:00