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

2305 Коммитов

Автор SHA1 Сообщение Дата
Mike Bostock 07366aae38 Attempt at zoom.translateExtent.
Doesn’t work correctly because the translateExtent may need to be dependent on
scale, or the zoom behavior may need to know the visible area. Related #1084.
2013-02-20 07:51:32 -08:00
Mike Bostock 4648db5bdd Merge pull request #1077 from calvinmetcalf/master
add colorbrewer global name
2013-02-14 11:30:35 -08:00
Calvin Metcalf 4cc7599b5f add var colorbrewer = 2013-02-14 14:17:57 -05:00
Mike Bostock 1e0eb6e286 Format for readability. 2013-02-14 10:09:35 -08:00
Mike Bostock 35ac9dd9ae Merge branch '3.0.6' 2013-02-06 11:04:42 -08:00
Mike Bostock a7164684b2 Merge branch 'geo-area-fast' of https://github.com/jasondavies/d3 into 3.0.6 2013-02-06 10:59:09 -08:00
Mike Bostock 0bfa933c36 Merge branch 'fix-axis-tick-class' into 3.0.6 2013-02-06 10:58:29 -08:00
Mike Bostock 8ad35ce03b Merge branch 'fix-format-round' into 3.0.6 2013-02-06 10:57:55 -08:00
Mike Bostock ed71f475fd Merge branch 'fix-wheel' into 3.0.6 2013-02-06 10:57:30 -08:00
Mike Bostock 080f67c7de Merge branch 'fix-voronoi-for-prototype' into 3.0.6 2013-02-06 10:57:05 -08:00
Mike Bostock aab354aec2 Merge branch 'capture-globals' into 3.0.6 2013-02-06 10:56:37 -08:00
Mike Bostock e35f3a6484 Merge branch 'fix-force-drag' into 3.0.6 2013-02-06 10:52:35 -08:00
Mike Bostock 5988b1daf1 Merge branch 'fix-sort-null' into 3.0.6 2013-02-06 10:52:10 -08:00
Mike Bostock d287b63511 Don’t expose d3_functor for link properties.
Fixes #895.
2013-02-06 10:48:13 -08:00
Mike Bostock 093bd8485a Fix for invalid axis.orient. Fixes #905. 2013-02-06 10:25:19 -08:00
Mike Bostock 2a0e2a1266 Sort null nodes at the end.
Previously, null nodes were passed to the comparator and were indistinguishable
from non-null nodes with no bound data. For consistency with other selection
operators that skip null nodes, it seems preferrable to put null nodes at the
end of the selection rather than passing them to the comparator. Fixes #881.
2013-02-06 10:18:52 -08:00
Mike Bostock 7b37e7d406 Merge branch 'force_layout_keeps_userbits_intact' of https://github.com/GerHobbelt/d3 into fix-force-drag 2013-02-06 09:48:29 -08:00
Mike Bostock 46a586d4ee Capture d3, as well.
This allows multiple instances of D3 to be loaded, or the d3 variable to be
renamed without breaking code. Fixes #1058.
2013-02-06 08:55:05 -08:00
Mike Bostock 772009dd43 Make sure drag behavior is instantiated. 2013-02-06 08:51:20 -08:00
Mike Bostock 62b9153a32 Merge branch 'force_layout_exports_drag' of https://github.com/GerHobbelt/d3 into fix-force-drag 2013-02-06 08:50:19 -08:00
Jason Davies b9bf5302b4 Add test case for tiny Polygon area. 2013-02-05 21:35:58 +00:00
Mike Bostock 72f7c95883 Bump up line-to-pixel multiplier to 120. 2013-02-01 11:06:29 -08:00
Mike Bostock 45ca793083 Avoid Prototype’s broken array.filter.
While I abhor Prototype’s practice of replacing native methods with broken non-
native ones, this is a painless fix that allows us to use d3.geom.voronoi on
nytimes.com, which shamefully continues to use Prototype.
2013-02-01 10:57:37 -08:00
Mike Bostock 2e24cf9be8 Use µ rather than μ.
That is, MICRO SIGN (\xb5) rather than GREEK SMALL LETTER MU (\u03bc).
2013-02-01 10:30:51 -08:00
Mike Bostock cd2712dc65 Fix wheel events; fixes #1048 #1047.
Some time ago the hidden div scroll trick stopped working. But, this went nearly
unnoticed because most browsers are fairly well behaved since WebKit fixed bug
https://bugs.webkit.org/show_bug.cgi?id=40441 back in June 2010. All that
remained broken was Firefox, who adopted the newer W3C "wheel" event standard.
This commit removes the old div hack, and does better support detection to
determine the most standards-based approach to listening for wheel events.
2013-02-01 09:58:24 -08:00
Jason Davies 3dcdfbfe1f Fix a couple of edge cases. 2013-02-01 16:51:47 +00:00
Mike Bostock a31f59274e Fix rounded format specifier; fixes #1042. 2013-02-01 08:09:12 -08:00
Mike Bostock 0991f3b010 Use captured references for document and window.
This avoids an inconsistency (discussed in #1044) when using D3 inside Node.js,
where D3 internally creates a JSDOM document during initialization, but then
subsequently depends on the current global document, which is not exposed. D3
now always refers to the global document at the time of initialization, and
does not depend on the current global document or window.
2013-01-31 15:11:40 -08:00
Jason Davies 9c3ad8f53b Optimise d3.geo.area.
This incorporates two enhancements:

1. A simpler formulation for the area of a spherical triangle with one
   vertex at the south pole.
2. Instead of calling atan2 for every point, we use the identity:
     ∑ arg(z) = arg(∏ z),
   where z is a complex number, and only call atan2 once for each
   polygon, instead opting for a cheaper complex number multiplication
   for each point.

This is around 3x faster than the old implementation as measured by the
included benchmark.
2013-01-31 17:34:05 +00:00
Mike Bostock 183060d40f Upgrade dependencies; remove Sizzle dependency. 2013-01-24 09:26:22 -08:00
Mike Bostock a4de685aad Simplify d3.random.logNormal. Fixes #787. 2013-01-23 12:26:09 -08:00
Mike Bostock 4dc996e575 Enter domain path prior to update transition.
The update transition must be created after the domain path is entered, or else
the entering domain path will not be part of the update transition, and thus
will not have the "d" attribute computed correctly. Fixes #1022. This bug was
introduced by 8ee6c126bc to squash a warning!
2013-01-23 10:28:44 -08:00
Mike Bostock 246d8197e3 Move tick class to the g element. Fixes #1016. 2013-01-21 18:52:15 -08:00
Mike Bostock 11a19ec03d Merge branch 'fix-greatarc-target' 2013-01-15 10:01:05 -08:00
Mike Bostock 58fb99d589 Fix big with constant greatArc target.
The local variable `t` was masking the private field of the same name. The use
of single-letter variables is preferred for smaller scopes.
2013-01-13 11:02:16 -08:00
Mike Bostock baf7855306 Merge branch '3.0.3' 2013-01-10 16:42:56 -08:00
Mike Bostock c96250ecb7 Merge branch 'fix-duplicate-keys' into 3.0.3 2013-01-10 16:41:55 -08:00
Mike Bostock ea4579c82f Merge branch 'patch-1' of https://github.com/isaacs/d3 into 3.0.3 2013-01-10 16:41:08 -08:00
Mike Bostock 4e167cf1d5 Simplify.
The length of the exit selection is always the same as the length of the
original selection, independent of the data, so there is no need to compute the
maximum of the two lengths.
2013-01-08 15:42:47 -08:00
Mike Bostock 9c6be3c574 Add test and fix for duplicate keys. 2013-01-08 15:32:21 -08:00
Mike Bostock 2810d3cc1b Fix for duplicate keys in selection.data.
Fixes #997. The enter, update and exit selections are now initialized as fixed-
length arrays rather than dynamically populated with nulls. If duplicate keys
are used for either data or selected elements, only the first datum or element
is considered and subsequent data or elements are ignored.
2013-01-08 15:18:59 -08:00
Isaac Z. Schlueter 679b9b94bf README.md: Point hyperlinks at github explicitly
Using relative hyperlinks here results in some weirdness when the
readme is displayed on npmjs.org.

If this patch lands, I'd suggest also doing `npm publish -f` (or
just bump the version in package.json and `npm publish` un-forcefully.)
2013-01-07 06:16:37 -08:00
Jason Davies 475b18f2df Allow projection.invert to return null.
Previously this would throw errors.
2013-01-05 01:45:43 +00:00
Jason Davies 63979e25d7 Fix locale generation on Linux.
The regexp was not unquoting the empty string surrounded by quotes.

Fixes #976.
2013-01-04 22:29:42 +00:00
Mike Bostock 662226bd84 Merge branch '3.0.2' 2013-01-01 15:52:50 -08:00
Mike Bostock 633fd273bd Merge branch 'geo-circle' of https://github.com/jasondavies/d3 into 3.0.2 2013-01-01 15:52:03 -08:00
Mike Bostock 2e072713e3 Fix path.bounds with fallback stream.
Fixes #987.
2013-01-01 15:50:17 -08:00
Jason Davies f6891ef901 Fix d3.geo.circle.origin.
3D rotations are not commutative, so we must perform an inverse rotation
to move something from origin [0, 0] to [λ, φ].  Normally we are moving
origin [λ, φ] to [0, 0].
2012-12-29 13:09:12 +00:00
Mike Bostock d2ad9f7942 Merge branch '3.0.1' 2012-12-28 09:19:30 -08:00
Mike Bostock 8b0c10f8e5 Merge branch 'fix-geo-bounds-collection' of https://github.com/natevw/d3 into 3.0.1 2012-12-28 09:18:41 -08:00