Previously, if you set the brush extent externally, the extent could drift
slightly because it was internally stored in pixel space rather than in data
space. To avoid drift, the brush now preserves the extent exactly as-set, only
nullifying the externally-set extent when the brush is moved.
If you use d3.transition(selection) within the context of a transition.each, the
created transition will automatically inherit the delay, duration and easing of
the parent transition. Likewise, if you use d3.transition(selection) within the
context of a selection.each, it simply returns the passed-in selection with no
transition at all. This makes it easier to create components, such as the axis,
that support automatic transitions.
The update is to get the most recent version of contextify
which is a dependency of jsdom. Previous versions of
contextify always generate a 64 library module. v0.6.11 of
node on macos is a 32-bit ARCH. The latest version of
contextify builds an ARCH that matches node NOT the arch
of the system.
See: https://github.com/brianmcd/contextify/issues/19
We weren't deleting the reference to the removed listener, so we were leaking
memory and returning a stale value on a subsequent get. Also, we now stash the
capture value when setting an event listener, so that we can automatically
remove or replace a listener without the caller needing to specify capture.
The drag behavior, zoom behavior and brush component now set a "sourceEvent"
property on their events, defined as the triggering mouse or touch event. The
d3.mouse and d3.touches helpers likewise use the source event, letting you query
the mouse or touch location when handling a custom event.
Fixes#493. Also terminates any transitions with negative or NaN durations,
rather than having them run infinitely. Also coerces NaN delays to 0 as well, to
likewise avoid infinite transitions.
This method returns the array of data for the first group in the selection. Note
that the data method cannot be used to clear data bindings, since it computes a
data join; use datum(null) to clear bound data.
Unfortunately, "delete" is a reserved word, and older browsers (such as mobile
WebKit) crash if you use reserved words as method names. I'd rather have code
that runs than strictly maintain interface-compatibility with the ES6 map.
This fixes a crash with the symbol type "hasOwnProperty", rather than defaulting
to "circle". This commit also adds new map methods to retrieve the keys, values
and entries. The map class now uses non-enumerable properties (if supported).