NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #2422 most downloaded on npm
Operations for two-dimensional polygons.
Last release 5 years ago
no release in 18 months
Release timing varies
gaps range from 2 weeks to 1.5 years
Most releases are documented
notes for 16 of 19 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
20 releases · first in 2015
Update dependencies. Make build reproducible.
This package now requires Node.js 12 or higher. For more, please read Sindre Sorhus’s FAQ .
This package now requires Node.js 12 or higher. For more, please read Sindre Sorhus’s FAQ.
One column per quarter.
v3.0.0
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 envi
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.
Nothing published for this version
Adopt explicit files for publishing.
Housekeeping.
Update dependencies.
Update dependencies.
Update dependencies.
Add module entry point to package.json.
module entry point to package.json.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 _
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.
Export to the global d3 in vanilla environments (d3/d3#2840).
d3 in vanilla environments (d3/d3#2840).Nothing published for this version
- Prefix symbols with “polygon”.
Nothing published for this version
- Add hull (#2).
- Add inside (#5).
Define d3-polygon module (and d3_polygon global), not polygon.
d3-polygon module (and d3_polygon global), not polygon.Adjust package.json definition for npm users.
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →