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

1159 Коммитов

Автор SHA1 Сообщение Дата
Mike Bostock bbb126fae7 Merge pull request #324 from jasondavies/tree-test
Another test for empty children arrays.
2011-09-30 09:02:11 -07:00
Mike Bostock ace525c162 Merge pull request #325 from jasondavies/transition-test
Add test for transition.selectAll and NodeLists.
2011-09-30 09:00:55 -07:00
Jason Davies 68f555bfc2 Add test for transition.selectAll and NodeLists.
This tests the fix in cd3d236015.
2011-09-30 16:55:30 +01:00
Jason Davies c7f58466ad Simplify. 2011-09-30 08:48:28 +01:00
Jason Davies 886b6599bb Another test for empty children arrays.
This tests for the issue fixed in
6804a60fe4.
2011-09-30 08:43:22 +01:00
Jason Davies cf882501ef Simplify.
Thanks again, @mbostock!
2011-09-30 07:51:33 +01:00
Mike Bostock 6804a60fe4 Fix a bug with empty children arrays. 2011-09-29 21:53:22 -07:00
Mike Bostock cd3d236015 Fix a NodeList bug in transition.selectAll. 2011-09-29 15:00:51 -07:00
Jason Davies adec0a6490 Short-circuit for speed.
Thanks, @mbostock!
2011-09-29 16:33:34 +01:00
Jason Davies 927426f79f Support multiple classes in classed operator.
Fixes #320.
2011-09-29 11:30:20 +01:00
Mike Bostock caefcaa0cc Add node-canvas example.
Demonstrates how to render geographic shapes to a canvas and save to PNG.
2011-09-28 15:37:50 -07:00
Mike Bostock 9e16bee0a5 Merge branch 'release' 2011-09-27 15:00:27 -07:00
Mike Bostock bbcaa27732 Fix for Bonne projection at 0° parallel. 2011-09-27 14:58:39 -07:00
Mike Bostock 6a65451b90 Merge branch 'bonne' of https://github.com/jasondavies/d3 into release 2011-09-27 13:57:56 -07:00
Mike Bostock a70975b248 Merge branch 'gnomonic' into release 2011-09-27 13:56:18 -07:00
Mike Bostock fd0759f02a Merge branch 'fix-format-zero-sigfig' into release 2011-09-27 13:56:07 -07:00
Mike Bostock 4c179d9386 Merge branch 'scale-log-ticks' into release 2011-09-27 13:55:35 -07:00
Mike Bostock dcb4a4bebb Merge branch 'force-charge-zero' into release 2011-09-27 13:54:58 -07:00
Mike Bostock 886f6b8dcf Merge branch 'behavior-click' of https://github.com/jasondavies/d3 into release 2011-09-27 13:54:36 -07:00
Mike Bostock 7d93964615 Add install rule to Makefile. 2011-09-27 13:53:46 -07:00
Mike Bostock 115caa63e6 Merge branch 'master' of https://github.com/johan/d3 into release 2011-09-27 13:53:17 -07:00
Mike Bostock c9b8384aaf Merge branch 'force-example' of https://github.com/jasondavies/d3 into release 2011-09-27 13:53:05 -07:00
Mike Bostock 9e91339900 Add simple great-arc example. 2011-09-27 12:36:06 -07:00
Mike Bostock a81faecc85 Add clipping for Point and MultiPoint. 2011-09-27 12:14:06 -07:00
Mike Bostock 1b611a253a Cleanup us-state-centroids.json.
There was trailing whitespace in the state names.
2011-09-27 12:13:40 -07:00
Mike Bostock 839442d523 Use almost 90 degrees rathern than 89. 2011-09-27 12:06:48 -07:00
Mike Bostock f473cc2902 Use administrative name rather than sovereignty. 2011-09-27 12:06:23 -07:00
Mike Bostock 254a8e3e78 Better world-countries.json.
This was generated using the Natural Earth data set, which has nicer
simplification than my previous approach using MapShaper. Also, this includes
some updated boundaries, such as the split between Sudan and South Sudan. And,
counties now have ISO 3166-1 alpha-3 codes.
2011-09-27 11:59:42 -07:00
Mike Bostock bd585e265e Add d3.geo.circle.
There is also a greatCircle as an alias, whose angle defaults to 90 degrees. (Or
should, but some projections cannot handle 90 degrees so we use 89 instead.)
2011-09-27 09:00:23 -07:00
Mike Bostock 151d09d479 Merge branch 'release' 2011-09-27 08:47:14 -07:00
Mike Bostock 80fafd527c Add back d3_array for IE9.
This also tweaks the array conversion slightly so that it is called by
selection.selectAll rather than d3_selectAll; this guarantees that the selection
groups are always arrays, even when a function selector is used.
2011-09-27 08:45:06 -07:00
Mike Bostock 5d0dbe29cf Merge branch 'sort' of https://github.com/jasondavies/d3 into release 2011-09-27 08:26:41 -07:00
Mike Bostock b552513e6b Don't need to default to empty string. 2011-09-27 00:51:00 -07:00
Mike Bostock 14dcdea8f6 Add d3.geo.greatArc.
The greatArc class is the new name for greatCircle, which actually represents
great arcs. Meanwhile, a new greatCircle class is for great circles. The new
greatCircle class replaces the old clip class, providing clipping and resampling
functionality (using greatArc internally). This isn't backwards-compatible, but
I may forgo the major version number bump in light of the fact that greatCircle
was just added, and not used in any (official) examples or documented.
2011-09-27 00:34:22 -07:00
Mike Bostock 46b358b8a8 Fix a bug in Antarctica.
It's a MultiPolygon, not a Polygon. Those are islands, not holes!
2011-09-27 00:31:22 -07:00
Mike Bostock b678e0876d Merge branch 'gnomonic' of https://github.com/jasondavies/d3 into gnomonic 2011-09-26 16:36:46 -07:00
Jason Davies f1c6adca8f Minor cleanup of force-cluster example.
We don't need to reselect now that appending nodes to the entering
selection are automatically added to the updating selection.
2011-09-26 13:20:04 +01:00
Jason Davies 11c110465e Rename standardParallel to parallel.
And add missing file!
2011-09-26 02:37:51 +01:00
Jason Davies a6eb928490 Add Bonne geographic projection.
Note that the Werner projection is a special case with standard parallel
at 90°N, and the Sinusoidal projection is also a special case with
standard parallel at 0°N.
2011-09-26 00:58:59 +01:00
Johan Sundström 46891e93eb Make "make test" work even if npm installs pkgs elsewhere. 2011-09-24 15:47:06 -07:00
Jason Davies a7c318b138 Restore drag click handler to its rightful place. 2011-09-22 23:50:30 +01:00
Jason Davies 4e0edeb423 Less zealous click cancelling.
The click event is prevented from propagating when a drag has occurred
i.e. the mouse has moved between mousedown and mouseup.  This is because
a click event will be triggered after a mousedown and mouseup have
occurred on the same element.  However, we were cancelling the next
click event *anywhere*, regardless of whether mousedown and mouseup
occurred on the same element or not.

As a sanity check, we also check that the click event was triggered on
the same element that mousedown *and* mouseup occurred on, before
cancelling it.  Just in case!
2011-09-22 23:47:35 +01:00
Mike Bostock 7895afbda5 Better log ticks.
This adds support for filtering the log ticks, such that fewer ticks can be
generated to fit in a small space. This can be used in conjunction with a
custom tick format as well. This commit also changes the default log tick format
to be exponential rather than precision, for consistency.
2011-09-21 15:32:19 -07:00
Mike Bostock c974d3a941 Merge branch 'master' of github.com:mbostock/d3 2011-09-21 10:10:47 -07:00
Mike Bostock fdcf307954 Fix a bug in collapsible force layout example.
We were registering multiple tick listeners, rather than replacing it. Oops!
In the future, we'll probably change the behavior of force.on to match
selection.on, and require a namespace for registering multiple listeners.
2011-09-21 10:08:39 -07:00
Peter Woodman 8914a38981 expand si representation range to abs(x) < 10^27 2011-09-20 18:14:00 -07:00
Peter Woodman 4918c83f41 separate variable for dropping post-decimal zeros, possibly useful for other formats. 2011-09-20 17:23:55 -07:00
Peter Woodman af05f527c1 remove mod arg to getExponent function; i've not tested it (and it doesn't work for) the general case so why pretend. 2011-09-20 17:10:42 -07:00
Mike Bostock dbd738353d Slight optimization for previous fix. 2011-09-20 16:38:52 -07:00
Peter Woodman 0ca32a8f69 add SI prefix formatting to d3.format 2011-09-20 16:20:06 -07:00