Skip to content

Releases: d3/d3-polygon

v3.0.1

05 Jun 18:40
be52ab2
Compare
Choose a tag to compare
  • Update dependencies.
  • Make build reproducible.

v3.0.0

04 Jun 04:09
cffec84
Compare
Choose a tag to compare
  • Adopt type: module.

This package now requires Node.js 12 or higher. For more, please read Sindre Sorhus’s FAQ.

v2.0.0

19 Aug 08:37
@Fil Fil
Compare
Choose a tag to compare

This release adopts ES2015 language features such as for-of and drops support for older browsers, including IE. If you need to support pre-ES2015 environments, you should stick with d3-polygon 1.x or use a transpiler.

v1.0.6

16 Nov 18:58
Compare
Choose a tag to compare
  • Adopt exact paths for imports.
  • Adopt explicit files for publishing.
  • Add sideEffects: false to the package.json.
  • Update dependencies.

v1.0.5

24 Aug 21:18
Compare
Choose a tag to compare
  • Housekeeping.

v1.0.4

24 Aug 18:38
Compare
Choose a tag to compare
  • Update dependencies.

v1.0.3

10 Mar 17:56
Compare
Choose a tag to compare
  • Update dependencies.

v1.0.2

23 Nov 00:41
Compare
Choose a tag to compare
  • Update dependencies.

v1.0.1

02 Aug 21:42
Compare
Choose a tag to compare
  • Add module entry point to package.json.

v1.0.0

14 Jun 21:28
Compare
Choose a tag to compare
  • First stable release!

Changes since D3 3.x

There’s no longer a d3.geom.polygon constructor; instead you just pass an array of vertices to the polygon methods. So instead of polygon.area and polygon.centroid, there’s d3.polygonArea and d3.polygonCentroid. There are also new d3.polygonContains and d3.polygonLength methods. There’s no longer an equivalent to polygon.clip, but it Sutherland–Hodgman clipping is needed, please file a feature request.

The d3.geom.hull operator has been simplified: instead of an operator with hull.x and hull.y accessors, there’s just the d3.polygonHull method which takes an array of points and returns the convex hull.

See CHANGES for all D3 changes since 3.x.