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

1687 Коммитов

Автор SHA1 Сообщение Дата
Mike Bostock 54b0dcba00 Optimize greatArc and circle.
When clipping, the origin of the great arc doesn’t change, so we can cache a
number of intermediate values and accelerate the clipping computation.
2012-07-02 16:58:54 -07:00
Mike Bostock 3c082bf245 Condense code slightly. 2012-07-02 10:59:06 -07:00
Jason Davies 8710e5bbd1 Add some unit tests for d3.geo.circle. 2012-07-02 17:02:52 +01:00
Jason Davies 9865daadf8 Only close clipped polygon if it is unclosed. 2012-07-02 17:02:44 +01:00
Jason Davies 10570e915d Fix #691: remove incorrect last interpolation step.
For closed polygons, the last point should simply be connected to the
first clipped point, rather than be clipped to the clipping circle.
2012-07-02 09:27:37 +01:00
Mike Bostock ae1fed7f4f Use shortest path for hue in d3.interpolateHsl.
Fixes #688.
2012-06-28 17:43:26 -07:00
Mike Bostock d12f42d8a3 Faster d3.geo.path implementation.
Rather than creating separate arrays for each geometry, a shared buffer is used
and the array is only converted to a string once.
2012-06-28 12:21:32 -07:00
Mike Bostock f7ed0304bf Don't transition label positioning attributes.
The axis component no longer uses a transition for the text elements' dy and
text-anchor attributes. This makes it easier to style the labels using post-
selection, since the transition will not override custom attribute values.
2012-06-25 13:03:55 -07:00
Mike Bostock e71de33e31 Merge branch '2.9.5' 2012-06-24 11:03:14 -07:00
Mike Bostock a3ab896295 Merge branch 'fix-interpolate-rotate' into 2.9.5 2012-06-24 10:59:40 -07:00
Mike Bostock 9f96939022 Merge branch 'fix-classed-whitespace' into 2.9.5 2012-06-24 10:59:06 -07:00
Mike Bostock 8598dc40bf More robust fix to d3.interpolateTransform. 2012-06-24 10:43:13 -07:00
Mike Bostock 4142e432c4 Remove extraneous parens. 2012-06-24 10:00:28 -07:00
Mike Bostock bd229712fb Add generated files. 2012-06-24 09:59:41 -07:00
Mike Bostock cc359a9329 Fix bug with unexpected transition inheritance.
Prior to this change, transitions used transition.each internally, which had the
unexpected side-effect of enabling transitions on d3.transition(selection) when
called from within a tween function. This would only occur on the first
invocation of the tween function when the elapsed time between the transition
creation and the transition start was greater than the transition delay;
however, this is fairly common as the default delay for transitions is zero.

This bug caused unexpected behavior if you tried to redraw an axis within a
custom tween function: in some cases, the synchronous redraw of the axis would
compete with a concurrent transition, causing unexpected behavior. By avoiding
the use of transition.each internally, the user now controls when automatic
transitions are enabled.
2012-06-24 09:27:09 -07:00
Mike Bostock e4f4a31252 Merge branch 'master' into fix-interpolate-rotate 2012-06-21 17:37:34 -07:00
Mike Bostock 4059d3b3f5 Fix #661; d3.interpolateTransform for rotate. 2012-06-21 17:35:23 -07:00
Dirk Bergstrom 7e0daf2b4e Remove spurious whitespace from class name list before splitting to eliminate null strings, which generate an error from classed(value, false). Fixes #675. 2012-06-20 15:14:10 -07:00
Mike Bostock ad43a2e843 Merge branch '2.9.4' 2012-06-19 09:15:34 -07:00
Mike Bostock 4ff1d6610d Merge branch 'master' of https://github.com/geowa4/d3 into 2.9.4 2012-06-19 09:13:08 -07:00
Mike Bostock 554f26bff3 Merge branch 'xhr' of https://github.com/jasondavies/d3 into 2.9.4 2012-06-19 09:11:53 -07:00
Mike Bostock 49d3c6fc39 Merge branch 'transition-test' of https://github.com/jasondavies/d3 into 2.9.4 2012-06-19 08:50:37 -07:00
Mike Bostock b6153d213d Merge branch '2.9.3' 2012-06-14 09:34:45 -07:00
Mike Bostock 0d31c17360 Merge branch 'fix-log-ticks' into 2.9.3 2012-06-14 09:33:49 -07:00
Mike Bostock 0f12c1b8a8 Always display powers-of-ten tick labels.
Previously, the log scale's tick format would hide all labels when there was not
enough room to display the requested number of ticks; now it at least displays
the power-of-ten labels. Fixes #655.
2012-06-14 09:33:08 -07:00
Mike Bostock 83c6f20dd9 Merge branch 'master' of https://github.com/bdon/d3 into 2.9.3 2012-06-14 09:29:39 -07:00
Mike Bostock bc9ac2d660 Merge branch 'line-bundle' of https://github.com/jasondavies/d3 into 2.9.3 2012-06-14 09:26:57 -07:00
Brandon Liu 3594c39c29 Return value of parsing invalid ISO 8601 date is consistent with other formats. 2012-05-31 20:45:54 -07:00
George Adams 8e17e0f3a5 When using Sizzle, the API for `d3_select` changes when there is no element to select. When using Sizzle, `undefined` is returned since `[][0] === undefined`. Without Sizzle, `d3_select` returns `null`. This is a problem, because IE9 does not support calling `HTMLElement.insertBefore` (see selection-insert.js) with `undefined` as the second argument; `null` is fine, though. 2012-05-29 10:43:52 -03:00
Jason Davies 40ca7f2df7 Remove trailing commas. 2012-05-27 16:13:10 +01:00
Jason Davies 82051284b1 Fix race condition in transition tests.
The transition-test-text callback was failing to fire when using the
latest Node.js master (82bcdbb8aaa4cf58917dc8d3fd4fcfc272512a2c).  This
was most likely due to these tests being run in a different order due to
a different object enumeration order.
2012-05-27 15:25:43 +01:00
Mike Bostock dd2a424f2b Merge branch '2.9.2' 2012-05-16 09:57:18 -07:00
Mike Bostock 5fff2c373d Merge branch 'fix-si-format-rounding' into 2.9.2 2012-05-16 09:56:18 -07:00
Jason Davies 7827bdc831 Fix dangling global in d3.layout.pie. 2012-05-11 14:49:48 +01:00
Jason Davies 4860ec0cb0 Fix dangling global in d3.layout.hierarchy. 2012-05-11 09:51:12 +01:00
Jason Davies 234c834d81 Add missing semicolon to mercator example. 2012-05-10 23:23:31 +01:00
Jason Davies fe6d0fd2f2 "Bundle" interpolation for single-element arrays.
In future we may want to generate some kind of loop, but it's not clear
what orientation such a loop should have, so perhaps a "non-line" like
this is better as a default.
2012-05-09 22:04:00 +01:00
Mike Bostock 1affcd2178 Fix commit 637896b to use src/package.js. 2012-05-09 10:29:22 -07:00
Jason Davies 53d117e6d3 Simpler workaround for local d3.xhr.
If the error flag is set, the response attribute [1] should be the empty
string or null.  So even if a request fails and the response has been
partially loaded, this logic should still work.

This check will fail for local requests where the response entity body
is the empty string, but I don't think it's possible to detect this
situation in current browser implementations. jQuery has the same issue,
for example.

[1]: http://www.w3.org/TR/XMLHttpRequest/#the-response-attribute
2012-05-04 08:24:33 +01:00
Jason Davies 95b1eaaf68 Fix d3.xhr for local URIs.
The test for local URI is based on jQuery's.  Although Chrome has strict
permissions, other browsers allow local URIs to be retrieved as long as
the same-domain policy is respected e.g. Safari.

We also check for a cross-domain request as req.status === 0 means
failure in this case.
2012-05-04 00:27:22 +01:00
Mike Bostock 2697a60ba0 Update README blurb. 2012-05-01 08:50:25 -07:00
Lachèze Alexandre 637896b386 add browserify compatibility 2012-05-01 16:35:58 +02:00
webmonarch c36891e444 removing .js from core require 2012-04-26 09:31:22 -07:00
webmonarch 831a241894 Removing make prepare target. 2012-04-26 09:27:35 -07:00
webmonarch 7b5175c75f removing make package.json dep on d3.vs.json, since it've been removed in the source code 2012-04-25 23:01:47 -07:00
Mike Bostock 00bc3f05a7 Fix another rounding bug with SI-format.
Turns out 1400 * .001 is 1.4000000000000001, but 1400 / 1000 is 1.4.
2012-04-25 22:18:02 -07:00
webmonarch 8759241f59 biting the bullet, renaming install target to prepare (more in-line with it's meaning) 2012-04-25 21:51:18 -07:00
webmonarch d70b00cd60 adding make prepare (which calls make install). More inline with make traditions 2012-04-25 18:59:42 -07:00
webmonarch ddc3a5f95e add package.json dependency to make install 2012-04-25 18:39:03 -07:00
webmonarch e5abda534f removing dependency on index.js: makes bootstrapping the build from git checkout much easier 2012-04-25 16:31:48 -07:00