Releases: d3/d3
Releases · d3/d3
3.3.3
- Fix d3.mouse for touch events with no touches (such as touchend).
- Fix d3.behavior.zoom when a secondary touch is started outside the zoomable element.
- Support parsing time zone offsets (%Z) in d3.time.format.
3.3.2
3.3.1
3.3 “Haleakalā”
- Add selection.interrupt for immediately interrupting the current transition.
- Add brush.event for programmatic brushing, including transitions (e.g., 1 2).
- Add zoom.event for programmatic zooming, including transitions (e.g., 1 2 3 4 5).
- Add d3.interpolateZoom for smooth zooming based on van Wijk & Nuij (e.g., 1 2).
- Add zoom.center to control over focal point while mousewheel zooming (e.g., 1).
- Add “zoomstart” and “zoomend” events to zoom.on.
- Add d3.geo.transform to simplify creating custom geometry transforms (e.g., 1 2).
- Add d3.geo.clipExtent for viewport clipping with custom transforms (e.g., 1).
- Allow d3.geo.stream to stream three-dimensional coordinates; useful for dynamic simplification.
- Add “beforesend” event to xhr.on to manipulate the request before sending.
- Add axis.innerTickSize and axis.outerTickSize; deprecates multi-argument axis.tickSize.
- Add d3.pairs for constructing tuples of adjacent elements.
- On quantitative scales, including time scales,
scale.ticks()
is now equivalent toscale.ticks(10)
. - On quantitative scales, including time scales,
scale.nice()
is now equivalent toscale.nice(10)
. - On time scales,
scale.nice(count)
andscale.nice(interval, skip)
are now supported. - On time scales,
scale.ticks(interval)
is now favored overscale.ticks(range)
. - Fix transition “end” events such that they are fired before transition cleanup, for easier chaining.
- Fix transition submillisecond timing to improve synchronization of long-running transition chains.
- Fix subpixel-precision brush extent when set programmatically.
- Disable axis.tickSubdivide; use post-selection and multiple axes instead.
- Disable webkit-tap-highlight-color when using the brush.
- Escape non-ascii character in d3.v3.min.js.
3.2.8
- Fix multitouch handling in d3.behavior.zoom and drag-based interaction.
- Fix d3.map copy constructor for objects that implement array.forEach.
- Fix crash in selection.sort when the selection has multiple null nodes.
- Fix crash in tick generation for d3.scale.log with invalid domains that span zero.
- Several micro-optimizations.
3.2.7
- Color interpolators (and by extension, quantitative scales) once again return strings rather than color instances, improving performance and lessening surprise. (Partially reverts 3.2.4.)
- Fix transition chaining such that earlier transitions are guaranteed to end normally (emitting end events) before later transitions start.
- Fix crash in transition.filter with empty transitions.
- Fix zoom behavior on devices that support touch and mouse events simultaneously.
3.2.6
3.2.5
- Fix bug with localized decimal point in d3.format.
- Fix default behavior suppression for drag gestures (e.g., d3.behavior.zoom) on touch devices.
- Suppress double-tap default behavior with d3.behavior.zoom on touch devices.
- Improve floating point precision for log.ticks and log.nice.
- Include minified JavaScript for use with Bower.
3.2.4
- Add currency support to d3.format (e.g.,
"+$,.2f"
). - Add missing quantile.invertExtent method.
- Fix enter.insert to preserve order of entering elements relative to updating elements when no before selector is specified. This provides a more efficient alternative to selection.order in cases where the updating selection is not reordered.
- Fix “basis” line interpolation for WebKit marker automatic orientation.
- Fix transition.each to inherit transition.time, precisely synchronizing chained transitions.
- Improve transition performance by lazily constructing "start" and "end" event dispatcher.
Change d3.interpolateRgb and related methods (including d3.interpolate and d3.scale.linear) to return color instances (e.g., d3.rgb) rather than hexadecimal strings.Reverted in 3.2.7.
3.2.3
- Allow pack.radius to be specified as a constant.
- Accept a function for selection.append and selection.insert.
- Limit automatic transform interpolation to transition.attr.
- Fix polygon.clip for closed polygons.
- Build fixes for Bower and Component(1).