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

1512 Коммитов

Автор SHA1 Сообщение Дата
Mike Bostock 222a32c361 Checkpoint. 2015-11-09 18:39:17 -08:00
Mike Bostock cf038c0b68 Render line segments with a single point.
Fixes #2061. A line segment with a single point is now rendered as "M2,3Z"
rather than "M2,3", such that if there is an associated stroke-linecap, it is
displayed correctly.
2015-11-09 08:49:45 -08:00
Mike Bostock e9472ba1da Parse week-of-year with implicit day-of-week.
If %W is specified, assume Monday; if %U is specified, assume Sunday.

Fixes #1914.
2015-11-08 14:18:41 -08:00
Mike Bostock 347b1b4a34 Merge branch 'clip-zoom-scale' of https://github.com/mgold/d3 into 3.5.7 2015-11-02 10:23:28 -08:00
Mike Bostock a6f66e9dd3 Fix #1935 - the XMLNS namespace is special. 2015-10-25 21:08:38 -07:00
Mike Bostock 9edc7f2f5a Merge branch 'force_layout_divide_by_zero' of https://github.com/Rhizi/d3 into fix-force-weight-zero
updated upstream into a topic branch.
2015-10-25 20:46:20 -07:00
Mike Bostock 80aa000a4c Add test for all-zero pie layout. 2015-10-25 20:21:48 -07:00
Mike Bostock de33875212 Fix #2468 - don’t start multiple force timers. 2015-10-25 15:29:19 -07:00
Mike Bostock a54137dd16 Don’t expose the timer object.
For now, it’s internal-only. For 4.0, we’ll have a public API.
2015-10-25 15:11:46 -07:00
Mike Bostock ad166dbd0e Re-enable tests and fix pre-emption.
A transition can be scheduled and cancelled within a single tick.
2015-10-25 15:04:32 -07:00
Mike Bostock 14f54d7d65 Cancel pre-empted transitions synchronously.
When a scheduled transition is pre-empted by a newer transition starting, we now
cancel the old transition’s timers immediately, rather than waiting for the old
transition to start.

Fixes #2377. Related #2189.
2015-10-25 14:42:51 -07:00
Mike Bostock 82a26bf72b Merge branch 'fix-null' into 3.5.7 2015-10-24 08:57:36 -07:00
Mike Bostock 07a87370c5 Fix #2595 - type coercion in formatPrefix. 2015-10-23 13:49:49 -07:00
Mike Bostock 6b15dd15e0 Fix #2575 - zoom interpolation when u0 ≅ u1. 2015-10-23 11:19:57 -07:00
Mike Bostock c83c9bd29a Comma-separated transforms. Fixes #2541. 2015-10-22 21:33:50 -07:00
Mike Bostock 2414655c81 Fix #2592 - rendering of large rounded arcs. 2015-10-22 14:54:24 -07:00
Mike Bostock 498a491faa Shorter. 2015-10-22 14:07:50 -07:00
Mike Bostock c9e974504d Don’t try to round corners on tiny arcs.
Fixes #2183 #2194.
2015-10-22 14:05:02 -07:00
Mike Bostock ca6e944aeb Merge branch 'simpler-global' into 3.5.7
n why this merge is necessary,
2015-10-22 13:35:16 -07:00
Mike Bostock 5b981a18db Rebuild. 2015-07-03 20:05:41 -07:00
Mike Bostock b48420930f Merge branch '3.5.6' 2015-07-03 20:03:11 -07:00
Jason Davies e06eacdffb Ignore case when detecting colors for interpolation.
Fixes #2359.
2015-04-01 09:00:22 +01:00
Mike Bostock a40a611d6b Fix d3.select(document) and d3.select(object).
Also add tests for d3_documentElement and d3_window so that they work for the
three cases we care about: a node, a document and a window. For anything else
they return undefined.
2015-02-10 08:33:30 -08:00
Mike Bostock 1fad2e0cf7 Simpler no-global for CommonJS.
We don’t need the index.js to unset the global if we don’t set it.
2015-02-07 18:48:24 -08:00
Mike Bostock aa8605bf57 Merge branch '3.5.4' 2015-02-07 12:31:21 -08:00
Mike Bostock 5040473a9f Make d3_window a bit more lenient.
If the passed node is the window itself, return it.
2015-02-07 12:00:21 -08:00
Mike Bostock ffc1fe9494 Merge remote-tracking branch 'origin/fix-no-namespace' into 3.5.4 2015-02-07 08:41:44 -08:00
Mike Bostock 773479b81b Merge branch 'fix-quadtree-find-accessor' of https://github.com/tpreusse/d3 into 3.5.4 2015-02-07 08:40:09 -08:00
Mike Bostock d971d1fa33 Fix #2207 - unintentional masking of `m`. 2015-02-07 08:33:21 -08:00
Mike Bostock 36fd5340cb Merge branch 'case-insensitive-color-names' of https://github.com/wilg/d3 into 3.5.4 2015-02-07 08:29:07 -08:00
Mike Bostock de0429f12e Merge branch 'master' of https://github.com/vladh/d3 into 3.5.4 2015-02-07 08:20:24 -08:00
Mike Bostock 73c3d8cfcb Use d3_window in selection.style. 2015-02-07 08:10:12 -08:00
Jason Davies b1da610dbf Fix d3.select(window).
d3.select(window) calls d3_documentElement(window), which fails since
window objects don’t have an ownerDocument property.  This fix falls
back to using node.document if node.ownerDocument doesn’t exist.
2015-02-07 13:47:33 +00:00
Mike Bostock 9c3df31216 Demote JSDOM to development dependency; fix #2190.
Code that previously assumed a global document or window now uses the related
node’s ownerDocument or ownerDocument.defaultView as appropriate.

If no related node is available, the corresponding code will crash; however, the
rest of D3 will work just fine. For example, you can’t use d3.select(string)
unless a global document is available; it just doesn’t make sense. Use
d3.select(node) instead, followed by selection.select(string).

Code that previously checked for a global on the window (e.g., XDomainRequest)
now uses the global context (`this`) rather than the window.
2015-02-06 22:41:51 -08:00
Wil Gieseler 82a0f01137 run make 2015-02-05 16:17:20 -08:00
Vlad-Ștefan Harbuz 64383b786e Add rebeccapurple color. Fixes #2208. 2015-01-28 12:18:38 +00:00
Thomas Preusse 743276d0c2 Fix quadtree find with accessors 2014-12-31 01:05:29 +01:00
Mike Bostock 4e4709ce47 Fix selection.interrupt.
Even if no further transitions are scheduled on the element, we must still
advance the active counter to interrupt the active transition. Fixes #2165. Also
added better tests that verify interruption.
2014-12-30 09:03:54 -08:00
Mike Bostock 2c852adb42 Use createElement if namespaceURI is undefined.
Normally selection.append is only called on normal elements that have a defined
namespaceURI. However, if createElement is called on a shadow root, then
namespaceURI is null. Now we correctly fallback to createElement instead of
createElementNS in this case. Fixes #2161.
2014-12-22 14:17:18 -08:00
Mike Bostock 4a4c3cea1a Merge branch '3.5.2' 2014-12-09 10:11:40 -08:00
Mike Bostock ee0e2d7ad6 Fix d3.transition(name). 2014-12-09 09:39:27 -08:00
Mike Bostock e4ff113807 Include d3.variance and d3.deviation by default. 2014-12-08 11:57:19 -08:00
Mike Bostock 8a0fe7f2d2 Merge branch '3.5.1' 2014-12-08 10:50:38 -08:00
Mike Bostock d316211810 Better interruption semantics.
When a transition is interrupted, the interrupt event is dispatched immediately
(such as within a call to selection.interrupt). This is easier to understand and
guarantees that the interrupt event on an interrupted transition is dispatched
prior to the start event on an interrupting transition, fixing #2140.

Calling selection.interrupt repeatedly no longer cancels any scheduled (but
inactive) transitions, fixing #2141. Calling selection.interrupt when there is
no active transition now has no effect.

An interrupt event is only dispatched if the active transition is interrupted,
and not if a scheduled transition was cancelled, as when a delayed transition is
superceded by an earlier transition on the same element. These transitions are
cancelled silently, fixing #2144.

Lastly, transition event listeners now see the latest bound data, rather than
using the data that was captured shortly after the transition was scheduled.
Fixes #2142.
2014-12-08 10:39:53 -08:00
Mike Bostock bb52d627cd Allow d3.transition to take an optional name. 2014-12-08 09:44:25 -08:00
Mike Bostock 737a991306 Merge branch '3.5' 2014-12-06 14:28:55 -08:00
Mike Bostock 23cfc1f4f2 Allow zoom.duration to be set. 2014-12-06 13:54:07 -08:00
Mike Bostock 0f9e0c9037 Merge remote-tracking branch 'origin/transition-duration' into 3.5 2014-12-06 13:47:51 -08:00
Mike Bostock c1a786ed02 Allow padRadius to be specified explicitly. 2014-12-01 11:42:10 -08:00
Max Goldstein 8b377358fd Clip scale to scaleExtent 2014-11-24 23:08:23 -05:00