diff --git a/API.md b/API.md index e7d8ba6bb25d5..a4999e67f4f95 100644 --- a/API.md +++ b/API.md @@ -336,26 +336,26 @@ Color ramps and palettes for quantitative, ordinal and categorical scales. * [d3.interpolateRainbow](https://github.com/d3/d3-scale-chromatic/blob/v3.0.0/README.md#interpolateRainbow) - the “less-angry” rainbow * [d3.interpolateSinebow](https://github.com/d3/d3-scale-chromatic/blob/v3.0.0/README.md#interpolateSinebow) - the “sinebow” smooth rainbow -## [Contours (d3-contour)](https://github.com/d3/d3-contour/tree/v3.1.0) +## [Contours (d3-contour)](https://github.com/d3/d3-contour/tree/v4.0.0) Compute contour polygons using marching squares. -* [d3.contours](https://github.com/d3/d3-contour/blob/v3.1.0/README.md#contours) - create a new contour generator. -* [*contours*](https://github.com/d3/d3-contour/blob/v3.1.0/README.md#_contours) - compute the contours for a given grid of values. -* [*contours*.contour](https://github.com/d3/d3-contour/blob/v3.1.0/README.md#contours_contour) - compute a contour for a given value. -* [*contours*.size](https://github.com/d3/d3-contour/blob/v3.1.0/README.md#contours_size) - set the size of a contour generator. -* [*contours*.smooth](https://github.com/d3/d3-contour/blob/v3.1.0/README.md#contours_smooth) - set whether or not the generated contours are smoothed. -* [*contours*.thresholds](https://github.com/d3/d3-contour/blob/v3.1.0/README.md#contours_thresholds) - set the thresholds of a contour generator. -* [d3.contourDensity](https://github.com/d3/d3-contour/blob/v3.1.0/README.md#contourDensity) - create a new density estimator. -* [*density*](https://github.com/d3/d3-contour/blob/v3.1.0/README.md#_density) - estimate the density of a given array of samples. -* [*density*.x](https://github.com/d3/d3-contour/blob/v3.1.0/README.md#density_x) - set the *x* accessor of the density estimator. -* [*density*.y](https://github.com/d3/d3-contour/blob/v3.1.0/README.md#density_y) - set the *y* accessor of the density estimator. -* [*density*.weight](https://github.com/d3/d3-contour/blob/v3.1.0/README.md#density_weight) - set the *weight* accessor of the density estimator. -* [*density*.size](https://github.com/d3/d3-contour/blob/v3.1.0/README.md#density_size) - set the size of the density estimator. -* [*density*.cellSize](https://github.com/d3/d3-contour/blob/v3.1.0/README.md#density_cellSize) - set the cell size of the density estimator. -* [*density*.thresholds](https://github.com/d3/d3-contour/blob/v3.1.0/README.md#density_thresholds) - set the thresholds of the density estimator. -* [*density*.bandwidth](https://github.com/d3/d3-contour/blob/v3.1.0/README.md#density_bandwidth) - set the bandwidth of the density estimator. -* [*density*.contours](https://github.com/d3/d3-contour/blob/v3.1.0/README.md#density_contours) - compute density contours. +* [d3.contours](https://github.com/d3/d3-contour/blob/v4.0.0/README.md#contours) - create a new contour generator. +* [*contours*](https://github.com/d3/d3-contour/blob/v4.0.0/README.md#_contours) - compute the contours for a given grid of values. +* [*contours*.contour](https://github.com/d3/d3-contour/blob/v4.0.0/README.md#contours_contour) - compute a contour for a given value. +* [*contours*.size](https://github.com/d3/d3-contour/blob/v4.0.0/README.md#contours_size) - set the size of a contour generator. +* [*contours*.smooth](https://github.com/d3/d3-contour/blob/v4.0.0/README.md#contours_smooth) - set whether or not the generated contours are smoothed. +* [*contours*.thresholds](https://github.com/d3/d3-contour/blob/v4.0.0/README.md#contours_thresholds) - set the thresholds of a contour generator. +* [d3.contourDensity](https://github.com/d3/d3-contour/blob/v4.0.0/README.md#contourDensity) - create a new density estimator. +* [*density*](https://github.com/d3/d3-contour/blob/v4.0.0/README.md#_density) - estimate the density of a given array of samples. +* [*density*.x](https://github.com/d3/d3-contour/blob/v4.0.0/README.md#density_x) - set the *x* accessor of the density estimator. +* [*density*.y](https://github.com/d3/d3-contour/blob/v4.0.0/README.md#density_y) - set the *y* accessor of the density estimator. +* [*density*.weight](https://github.com/d3/d3-contour/blob/v4.0.0/README.md#density_weight) - set the *weight* accessor of the density estimator. +* [*density*.size](https://github.com/d3/d3-contour/blob/v4.0.0/README.md#density_size) - set the size of the density estimator. +* [*density*.cellSize](https://github.com/d3/d3-contour/blob/v4.0.0/README.md#density_cellSize) - set the cell size of the density estimator. +* [*density*.thresholds](https://github.com/d3/d3-contour/blob/v4.0.0/README.md#density_thresholds) - set the thresholds of the density estimator. +* [*density*.bandwidth](https://github.com/d3/d3-contour/blob/v4.0.0/README.md#density_bandwidth) - set the bandwidth of the density estimator. +* [*density*.contours](https://github.com/d3/d3-contour/blob/v4.0.0/README.md#density_contours) - compute density contours. ## [Voronoi Diagrams (d3-delaunay)](https://github.com/d3/d3-delaunay/tree/v6.0.2) diff --git a/package.json b/package.json index b5c72f0c81ff4..1d1bda2e2a01f 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "d3-brush": "3", "d3-chord": "3", "d3-color": "3", - "d3-contour": "3", + "d3-contour": "4", "d3-delaunay": "6", "d3-dispatch": "3", "d3-drag": "3", diff --git a/yarn.lock b/yarn.lock index d18b5beafbbef..cf21fbb4f25c4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -350,7 +350,7 @@ cross-spawn@^7.0.2: shebang-command "^2.0.0" which "^2.0.1" -"d3-array@2 - 3", "d3-array@2.10.0 - 3", "d3-array@2.5.0 - 3", d3-array@3: +"d3-array@2 - 3", "d3-array@2.10.0 - 3", "d3-array@2.5.0 - 3", d3-array@3, d3-array@^3.2.0: version "3.2.0" resolved "https://registry.yarnpkg.com/d3-array/-/d3-array-3.2.0.tgz#15bf96cd9b7333e02eb8de8053d78962eafcff14" integrity sha512-3yXFQo0oG3QCxbF06rMPFyGRMGJNS7NvsV1+2joOjbBE+9xvWQ8+GcMJAjRCzw06zQ3/arXeJgbPYcjUCuC+3g== @@ -385,12 +385,12 @@ d3-chord@3: resolved "https://registry.yarnpkg.com/d3-color/-/d3-color-3.1.0.tgz#395b2833dfac71507f12ac2f7af23bf819de24e2" integrity sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA== -d3-contour@3: - version "3.1.0" - resolved "https://registry.yarnpkg.com/d3-contour/-/d3-contour-3.1.0.tgz#708484a5d89be9558dfdda4a95b3df2fdebb65ab" - integrity sha512-vV3xtwrYK5p1J4vyukr70m57mtFTEQYqoaDC1ylBfht/hkdUF0nfWZ1b3V2EPBUVkUkoqq5/fbRoBImBWJgOsg== +d3-contour@4: + version "4.0.0" + resolved "https://registry.yarnpkg.com/d3-contour/-/d3-contour-4.0.0.tgz#5a1337c6da0d528479acdb5db54bc81a0ff2ec6b" + integrity sha512-7aQo0QHUTu/Ko3cP9YK9yUTxtoDEiDGwnBHyLxG5M4vqlBkO/uixMRele3nfsfj6UXOcuReVpVXzAboGraYIJw== dependencies: - d3-array "2 - 3" + d3-array "^3.2.0" d3-delaunay@6: version "6.0.2"