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

1475 Коммитов

Автор SHA1 Сообщение Дата
Mike Bostock 2567c25cd3 Keep zoom behavior in-sync with projection. 2012-02-14 16:43:15 -08:00
Trevor Norris de8cddc6b8 forgot to follow spacing rules 2012-02-14 16:09:52 -08:00
Trevor Norris 25c0bca405 update d3.js and d3.min.js 2012-02-14 16:04:03 -08:00
Trevor Norris 76b13d547f use better method for calculating error correction. add test that failed the old method. 2012-02-14 16:03:38 -08:00
Jason Davies b5f8f96155 Add constrained translate zoom example. 2012-02-14 23:44:39 +00:00
Jason Davies 4f506339d4 Add missing files. 2012-02-14 18:49:16 +00:00
Jason Davies 6a0ad0247a Simplify as we don't support IE8- anyway.
Thanks, @mbostock!
2012-02-14 18:46:48 +00:00
Jason Davies 2936a6b1e7 Add d3.svg.{mouse,touches} aliases.
For backwards-compatibility.
2012-02-14 18:45:13 +00:00
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
Nathan Vander Wilt 9960e12dd0 use variable name directly in optional argument check 2012-01-26 08:29:26 -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
Nathan Vander Wilt 61141b0be2 move accessor argument next to array param based (for #451 incorporating pull request discussion) 2012-01-24 09:04:46 -08:00
Nathan Vander Wilt 5f66b67c66 basic array bisect accessor implementation for #451 2012-01-23 21:43:11 -08: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
Mike Bostock 56818fd258 Expose force.tick. Fixes #419. 2012-01-23 15:02:18 -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
Lars Kotthoff 321460eced fix bug introduced during rebasing 2012-01-19 20:48:21 +00:00
Lars Kotthoff d043d1126a setting ticks()/tickValues() sets the other one to null (mbostock) 2012-01-19 20:45:19 +00:00
Lars Kotthoff 8c2204c680 separate variable and accessor method for ticks (mbostock) 2012-01-19 20:43:57 +00:00
Lars Kotthoff bc433a2238 fix order of checks... 2012-01-19 20:42:48 +00:00
Lars Kotthoff 24492a9cf2 make check whether array of tick positions is given more restrictive (mbostock) 2012-01-19 20:41:54 +00:00