From 0a58fc3b2134a4520121eb064502b899440eeeeb Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Mon, 15 May 2017 12:20:15 -0700 Subject: [PATCH] Update. --- API.md | 22 +++++++++++++++++++++- package.json | 22 +++++++++++----------- 2 files changed, 32 insertions(+), 12 deletions(-) diff --git a/API.md b/API.md index a2027015..b6640f6e 100644 --- a/API.md +++ b/API.md @@ -25,7 +25,7 @@ D3 4.0 is a [collection of modules](https://github.com/d3) that are designed to * [Requests](#requests-d3-request) * [Scales](#scales-d3-scale) ([Continuous](#continuous-scales), [Sequential](#sequential-scales), [Quantize](#quantize-scales), [Ordinal](#ordinal-scales)) * [Selections](#selections-d3-selection) ([Selecting](#selecting-elements), [Modifying](#modifying-elements), [Data](#joining-data), [Events](#handling-events), [Control](#control-flow), [Local Variables](#local-variables), [Namespaces](#namespaces)) -* [Shapes](#shapes-d3-shape) ([Arcs](#arcs), [Pies](#pies), [Lines](#lines), [Areas](#areas), [Curves](#curves), [Symbols](#symbols), [Stacks](#stacks)) +* [Shapes](#shapes-d3-shape) ([Arcs](#arcs), [Pies](#pies), [Lines](#lines), [Areas](#areas), [Curves](#curves), [Links](#links), [Symbols](#symbols), [Stacks](#stacks)) * [Time Formats](#time-formats-d3-time-format) * [Time Intervals](#time-intervals-d3-time) * [Timers](#timers-d3-timer) @@ -238,6 +238,7 @@ Drag and drop SVG, HTML or Canvas using mouse or touch input. * [*drag*.container](https://github.com/d3/d3-drag/blob/master/README.md#drag_container) - set the coordinate system. * [*drag*.filter](https://github.com/d3/d3-drag/blob/master/README.md#drag_filter) - ignore some initiating input events. * [*drag*.subject](https://github.com/d3/d3-drag/blob/master/README.md#drag_subject) - set the thing being dragged. +* [*drag*.clickDistance](https://github.com/d3/d3-drag/blob/master/README.md#drag_clickDistance) - set the click distance threshold. * [*drag*.on](https://github.com/d3/d3-drag/blob/master/README.md#drag_on) - listen for drag events. * [*event*.on](https://github.com/d3/d3-drag/blob/master/README.md#event_on) - listen for drag events on the current gesture. * [d3.dragDisable](https://github.com/d3/d3-drag/blob/master/README.md#dragDisable) - @@ -634,6 +635,7 @@ Generate random numbers from various distributions. * [d3.randomBates](https://github.com/d3/d3-random/blob/master/README.md#randomBates) - from a Bates distribution. * [d3.randomIrwinHall](https://github.com/d3/d3-random/blob/master/README.md#randomIrwinHall) - from an Irwin–Hall distribution. * [d3.randomExponential](https://github.com/d3/d3-random/blob/master/README.md#randomExponential) - from an exponential distribution. +* [*random*.source](https://github.com/d3/d3-random/blob/master/README.md#random_source) - set the source of randomness. ## [Requests (d3-request)](https://github.com/d3/d3-request) @@ -820,6 +822,7 @@ Transform the DOM by selecting elements and joining to data. * [d3.selector](https://github.com/d3/d3-selection/blob/master/README.md#selector) - select an element. * [d3.selectorAll](https://github.com/d3/d3-selection/blob/master/README.md#selectorAll) - select elements. * [d3.window](https://github.com/d3/d3-selection/blob/master/README.md#window) - get a node’s owner window. +* [d3.style](https://github.com/d3/d3-selection/blob/master/README.md#style) - get a node’s current style value. ### [Modifying Elements](https://github.com/d3/d3-selection/blob/master/README.md#modifying-elements) @@ -995,6 +998,21 @@ Interpolate between points to produce a continuous shape. * [*curve*.lineEnd](https://github.com/d3/d3-shape/blob/master/README.md#curve_lineEnd) - end the current line segment. * [*curve*.point](https://github.com/d3/d3-shape/blob/master/README.md#curve_point) - add a point to the current line segment. +### [Links](https://github.com/d3/d3-shape/blob/master/README.md#links) + +A smooth cubic Bézier curve from a source to a target. + +* [d3.linkVertical](https://github.com/d3/d3-shape/blob/master/README.md#linkVertical) - create a new vertical link generator. +* [d3.linkHorizontal](https://github.com/d3/d3-shape/blob/master/README.md#linkHorizontal) - create a new horizontal link generator. +* [*link*](https://github.com/d3/d3-shape/blob/master/README.md#_link) - generate a link. +* [*link*.source](https://github.com/d3/d3-shape/blob/master/README.md#link_source) - set the source accessor. +* [*link*.target](https://github.com/d3/d3-shape/blob/master/README.md#link_target) - set the target accessor. +* [*link*.x](https://github.com/d3/d3-shape/blob/master/README.md#link_x) - set the point *x*-accessor. +* [*link*.y](https://github.com/d3/d3-shape/blob/master/README.md#link_y) - set the point *y*-accessor. +* [d3.linkRadial](https://github.com/d3/d3-shape/blob/master/README.md#linkRadial) - create a new radial link generator. +* [*radialLink*.angle](https://github.com/d3/d3-shape/blob/master/README.md#radialLink_angle) - set the point *angle* accessor. +* [*radialLink*.radius](https://github.com/d3/d3-shape/blob/master/README.md#radialLink_radius) - set the point *radius* accessor. + ### [Symbols](https://github.com/d3/d3-shape/blob/master/README.md#symbols) A categorical shape encoding, as in a scatterplot. @@ -1030,6 +1048,7 @@ Stack shapes, placing one adjacent to another, as in a stacked bar chart. * [d3.stackOrderNone](https://github.com/d3/d3-shape/blob/master/README.md#stackOrderNone) - use the given series order. * [d3.stackOrderReverse](https://github.com/d3/d3-shape/blob/master/README.md#stackOrderReverse) - use the reverse of the given series order. * [d3.stackOffsetExpand](https://github.com/d3/d3-shape/blob/master/README.md#stackOffsetExpand) - normalize the baseline to zero and topline to one. +* [d3.stackOffsetDiverging](https://github.com/d3/d3-shape/blob/master/README.md#stackOffsetDiverging) - positive above zero; negative below zero. * [d3.stackOffsetNone](https://github.com/d3/d3-shape/blob/master/README.md#stackOffsetNone) - apply a zero baseline. * [d3.stackOffsetSilhouette](https://github.com/d3/d3-shape/blob/master/README.md#stackOffsetSilhouette) - center the streamgraph around zero. * [d3.stackOffsetWiggle](https://github.com/d3/d3-shape/blob/master/README.md#stackOffsetWiggle) - minimize streamgraph wiggling. @@ -1170,6 +1189,7 @@ Pan and zoom SVG, HTML or Canvas using mouse or touch input. * [*zoom*.scaleBy](https://github.com/d3/d3-zoom/blob/master/README.md#zoom_scaleBy) - scale the transform for the selected elements. * [*zoom*.scaleTo](https://github.com/d3/d3-zoom/blob/master/README.md#zoom_scaleTo) - scale the transform for the selected elements. * [*zoom*.filter](https://github.com/d3/d3-zoom/blob/master/README.md#zoom_filter) - control which input events initiate zooming. +* [*zoom*.clickDistance](https://github.com/d3/d3-zoom/blob/master/README.md#zoom_clickDistance) - set the click distance threshold. * [*zoom*.extent](https://github.com/d3/d3-zoom/blob/master/README.md#zoom_extent) - set the extent of the viewport. * [*zoom*.scaleExtent](https://github.com/d3/d3-zoom/blob/master/README.md#zoom_scaleExtent) - set the allowed scale range. * [*zoom*.translateExtent](https://github.com/d3/d3-zoom/blob/master/README.md#zoom_translateExtent) - set the extent of the zoomable world. diff --git a/package.json b/package.json index bc2b472b..7cf851cd 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ }, "devDependencies": { "json2module": "0.0", - "package-preamble": "0.0", + "package-preamble": "0.1", "rimraf": "2", "rollup": "^0.41.4", "rollup-plugin-ascii": "0.0", @@ -41,34 +41,34 @@ }, "dependencies": { "d3-array": "1.2.0", - "d3-axis": "1.0.6", + "d3-axis": "1.0.7", "d3-brush": "1.0.4", "d3-chord": "1.0.4", "d3-collection": "1.0.3", "d3-color": "1.0.3", "d3-dispatch": "1.0.3", - "d3-drag": "1.0.4", + "d3-drag": "1.1.0", "d3-dsv": "1.0.5", "d3-ease": "1.0.3", "d3-force": "1.0.6", "d3-format": "1.2.0", "d3-geo": "1.6.3", "d3-hierarchy": "1.1.4", - "d3-interpolate": "1.1.4", + "d3-interpolate": "1.1.5", "d3-path": "1.0.5", "d3-polygon": "1.0.3", "d3-quadtree": "1.0.3", - "d3-queue": "3.0.5", - "d3-random": "1.0.3", + "d3-queue": "3.0.7", + "d3-random": "1.1.0", "d3-request": "1.0.5", - "d3-scale": "1.0.5", - "d3-selection": "1.0.5", - "d3-shape": "1.0.6", + "d3-scale": "1.0.6", + "d3-selection": "1.1.0", + "d3-shape": "1.1.0", "d3-time": "1.0.6", "d3-time-format": "2.0.5", "d3-timer": "1.0.5", - "d3-transition": "1.0.4", + "d3-transition": "1.1.0", "d3-voronoi": "1.1.2", - "d3-zoom": "1.1.4" + "d3-zoom": "1.2.0" } }