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

1406 Коммитов

Автор SHA1 Сообщение Дата
Mike Bostock 744aa9696e Define behavior for mismatched domain & range. 2012-02-13 23:11:05 -08:00
Jason Davies 8182f8dfe7 Remove a few more extraneous semicolons. 2012-02-13 21:44:53 +00:00
Mike Bostock 7a4a8ec8fe Fix for negative-size nodes in IE9. Fixes #498. 2012-02-12 08:41:58 -08:00
Jason Davies e0b733cc8d Simplify tree examples. 2012-02-10 09:39:29 +00:00
Mike Bostock 3a4f45fc5c Add index.js for easier usage within Node.
This allows you to require("d3") with no additional dependencies, and without
polluting the global namespace. Fixes #475.
2012-02-09 09:09:23 -08:00
Jason Davies 56bd6146b3 Fix typo in examples: "dendogram" -> "dendrogram". 2012-02-09 00:23:40 +00:00
Jason Davies d6e184b451 Fix typo in comment: "dendogram" -> "dendrogram". 2012-02-09 00:20:59 +00:00
Jason Davies b2a701ead2 Remove extraneous semicolon. 2012-02-08 21:46:01 +00:00
Trevor Norris 8cd0872141 update d3.js and d3.min.js 2012-02-07 14:37:18 -08:00
Trevor Norris 87f48b7aa2 fix range increment error caused by IEEE 754 2012-02-07 14:09:39 -08:00
Mike Bostock 61d3d897cb Rewrite of d3.behavior.zoom.
The extent functionality is simplified, such that the zoom behavior only
supports an extent on the scale factor. Furthermore, the extent is expressed as
a scale factor rather than a zoom level, for consistency. An extent on translate
is no longer supported; this isn't possible unless the zoom behavior also knows
the size of the canvas.

The scale transform functionality is also simplified; simply register an x or y
scale, and the zoom behavior will automatically update the domain before a zoom
event is dispatched. If you change the scale's domain programmatically, you can
simply reassign the scale to the zoom behavior.

Both of these changes are strictly backwards-incompatible. However, since this
class is undocumented, I'll probably let this slide with a minor version bump
rather than waiting until v3.

This commit also reduces the scroll speed slightly, since the previous
implementation seemed a little too fast for my liking. It would be easy to make
the scroll speed configurable as a future enhancement.

Implementation note: rather than using global event listeners on the window, and
needing to copy local state into globals on interaction start, the zoom behavior
now uses closures that are temporarily bound (e.g., mousemove and mouseup are
bound on mousedown, and removed on mouseup).

Fixes #484, allowing scale and translate to be get or set externally.
Fixes #485, providing an example of integration with d3.geo.projection.
Fixes #487, using a scale extent rather than a zoom-level extent.
2012-02-02 17:41:35 -08:00
Mike Bostock 76400ac15d Merge branch 'release' 2012-02-01 20:07:45 -08:00
Mike Bostock feb1da151f Merge branches 'fix-polygon', 'fix-interpolate-transform', 'fix-multiyear-time-scale' and 'dispatch-chain' into release 2012-02-01 20:06:44 -08:00
Mike Bostock ca113b6cca Minimize d3.interpolateTransform.
Fixes #480.
2012-01-29 19:24:10 -08:00
Mike Bostock 85ad3c16b0 Fix polygon.centroid for open polygons.
The implementation assumed closed polygons, but it should work on either. This
is a partial fix for #443.
2012-01-29 14:29:14 -08:00
Mike Bostock 0e5bca1e0a Inclusive upper bound for time scale ticks.
Fixes #478.
2012-01-29 13:44:48 -08:00
Mike Bostock 117942e284 Sub-second and multi-year ticks for time scales.
Fixes #428. This is built on top of existing tick support for linear scales: for
small intervals, a linear scale computes ticks based on milliseconds; for large
intervals, a linear scale computes ticks based on fractional years. This commit
also extends the time scale's formatter to display milliseconds.
2012-01-29 13:28:49 -08:00
Mike Bostock fef4f911db Merge branch 'dispatch-chain' of https://github.com/jasondavies/d3 into dispatch-chain 2012-01-29 10:43:22 -08:00
Mike Bostock f67e89597d Expand the default custom build. 2012-01-26 11:58:40 -08:00
Mike Bostock 303478b90b Merge branch '2.7.x' 2012-01-26 11:18:42 -08:00
Mike Bostock cc5de6d7d1 Fix new d3.round implementation.
The second argument, n, is optional.
2012-01-26 11:05:06 -08:00
Mike Bostock 42352b259d Merge branch 'master' of https://github.com/radford/d3 into 2.7.x 2012-01-26 11:02:17 -08:00
Mike Bostock 4206b690d1 Merge branch 'master' of https://github.com/quizlet/d3 into 2.7.x 2012-01-26 11:01:52 -08:00
Mike Bostock cdcde01615 Merge branch 'treemap-overlap' of https://github.com/jasondavies/d3 into 2.7.x 2012-01-26 10:48:32 -08:00
Jason Davies e85eefe8ba Allow event firing to be chained. 2012-01-26 10:00:35 +00:00
Mike Bostock 1a74fa2b58 Transition.remove should use an event namespace.
Fixes #471. This prevents transition.remove() from clobbering another transition
"end" event listener, or vice versa.
2012-01-26 00:16:44 -08:00
Jason Davies 1708e5e7a5 Fix treemap overlap problem.
See #136.
2012-01-25 17:36:45 +00:00
Mike Bostock 8b8e31b33a Better zoom example using d3.svg.brush. 2012-01-23 18:15:52 -08:00
Mike Bostock 3e8e4e30eb Fix a bug in tick guestimation. 2012-01-23 15:23:10 -08:00
Andrew Sutherland 714a961c79 better fix for empty array 2012-01-23 13:35:08 -08:00
Andrew Sutherland 9cc5585aec fixing ie parse error 2012-01-23 12:45:10 -08:00
Jim Radford 00ed4c4155 A more accurate .round() 2012-01-22 18:43:23 -08:00
Mike Bostock f176785b83 Fix a bug when setting extent. 2012-01-22 10:12:41 -08:00
Mike Bostock 5b27271364 Fix polylinear descending domains or ranges.
Fixes #446.
2012-01-18 13:10:00 -08:00
Mike Bostock ad76418aee Merge branch 'master' of github.com:mbostock/d3 2012-01-17 13:08:48 -08:00
Mike Bostock fbcb0281e3 Merge branch 'release' 2012-01-17 13:07:17 -08:00
Mike Bostock f21d6b826b Fix a bug in circle-packing layout.
There's an edge condition which is not discussed in the original algorithm
("Visualization of Large Hierarchical Data by Circle Packing", Wang et. al):
what happens if the first intersecting circle C_j is equidistant from C_m and
C_n? In other words, it is both after C_n on the front-chain, and before C_m.
The correct answer is that you should splice the smaller of the two circles. If
C_m is smaller than C_n, then splice from C_j to C_n and set C_m to C_j;
otherwise, splice from C_m to C_j, and set C_n to C_j.
2012-01-17 13:02:19 -08:00
Mike Bostock 930029ecbe Merge branch 'order' of https://github.com/jasondavies/d3 into release 2012-01-17 10:39:56 -08:00
Mike Bostock be63aaf928 Merge pull request #441 from jasondavies/spline
Simplification to spline example.
2012-01-13 09:13:40 -08:00
Jason Davies 1becccbdf6 Simplification to spline example. 2012-01-13 13:16:14 +00:00
Jason Davies 2e09851290 Fix more references to d3.behavior.{mouse, touches}. 2012-01-09 08:41:36 +00:00
Jason Davies 7f4507fc38 Fix references to d3.behavior.{mouse, touches}. 2012-01-09 08:39:57 +00:00
Jason Davies b426e78dce Rename d3.svg.touches to d3.behavior.touches. 2012-01-09 08:35:57 +00:00
Jason Davies 30e6f51672 Add d3.behavior.mouse: supports both SVG and HTML. 2012-01-09 08:29:30 +00:00
Mike Bostock d3d4ceecbb Fix a bug with entering tick transition.
The tick sizes need to be set, else they grow from zero.
2012-01-01 16:58:38 -08:00
Mike Bostock 149d174029 Fix NaN in clamped log scale inversion. 2012-01-01 12:15:22 -08:00
Mike Bostock 5bae5f4788 Add test for range clamping. 2012-01-01 11:44:49 -08:00
Jason Davies b9a03ad84a Optimise selection.order.
A small optimisation: only call insertBefore() if node.nextSibling isn't
already what we want, so that document nodes that are already in the
correct order can be skipped.
2011-12-31 09:28:42 +00:00
Mike Bostock a92f8b3ed0 Merge branch '2.7.1' 2011-12-30 12:00:45 -08:00
Mike Bostock 1a8e8758c4 Merge branch 'package' of https://github.com/jasondavies/d3 into 2.7.1 2011-12-30 11:58:51 -08:00