Releases: d3/d3-geo-polygon
v2.0.1
v2.0.0
New projections
geoRhombic(), the rhombic dodecahedral projection
contributed by @bathoorn (thanks!)
geoDeltoidal(), the deltoidal hexecontahedral projection
contributed by @bathoorn
New features
clip.clipPoint([clipPoint]) : by setting this parameter to false, you can opt out of clipping points. This is useful when the projection needs a cutting polygon (to cut shapes), but projects the whole globe (#67)
In the Voronoi projection helper, the tree can be built with any face as the root, not just face 0 (#63). Makes it easier to create partial projections from a same tree.
Updated projections
This module clips and reexports these projections from d3-geo-projection, making it possible to use them without adding an SVG clip-path:
# d3.geoPolyhedralButterfly() · Source
The gnomonic butterfly projection.
# d3.geoPolyhedralCollignon() · Source
The Collignon butterfly projection.
# d3.geoPolyhedralWaterman() · Source
A butterfly projection inspired by Steve Waterman’s design.
The Berghaus projection.
The Gingery projection.
The HEALPix projection.
# d3.geoInterruptedBoggs · Source
Bogg’s interrupted eumorphic projection.
# d3.geoInterruptedHomolosine · Source
Goode’s interrupted homolosine projection.
# d3.geoInterruptedMollweide · Source
Goode’s interrupted Mollweide projection.
# d3.geoInterruptedMollweideHemispheres · Source
The Mollweide projection interrupted into two (equal-area) hemispheres.
# d3.geoInterruptedSinuMollweide · Source
Alan K. Philbrick’s interrupted sinu-Mollweide projection.
# d3.geoInterruptedSinusoidal · Source
An interrupted sinusoidal projection with asymmetrical lobe boundaries.
Additionally, the two-point equidistant projection is reexported in a version that displays 99.9996% of the sphere:
# d3.geoTwoPointEquidistant(point0, point1) · Source
The two-point equidistant projection.
# d3.geoTwoPointEquidistantUsa() · Source
The two-point equidistant projection with points [-158°, 21.5°] and [-77°, 39°], approximately representing Honolulu, HI and Washington, D.C.
New documentation & tooling
This module’s documentation is now an Observable Framework app, with exported snapshots in light and dark mode.
Adopt type: module (#61)
Automatic releases — a GitHub action pushes new releases to npm.
Full Changelog: v1.12.1...v2.0.0
v2.0.0-alpha.1
What's Changed
- Adds two new projections based on the Voronoi polyhedral method: Rhombic dodecahedral and Deltoidal hexecontahedral, contributed by @bathoorn (#59 and #60)
- A polyhedral projection’s tree can now be built from any face (#63)
- The module now reexports all the projections from d3-geo-projection that need polygon clipping (#65, #69), namely: geoBerghaus, geoGingery, geoHealpix, geoInterruptedBoggs, geoInterruptedHomolosine, geoInterruptedMollweide, geoInterruptedMollweideHemispheres, geoInterruptedSinuMollweide, geoInterruptedSinusoidal, geoTwoPointEquidistant, geoTwoPointEquidistantUsa, and the geoInterrupt projection factory.
- A new clipPoint option for geoClipPolygon, specifying whether points should be clipped (#67)
- Adopt type: module (#61)
Full Changelog: v1.12.1...v2.0.0-alpha.1
v1.12.1
v1.12.0
v1.11.0
v1.10.2
v1.10.1
- better convergence of geoTetrahedralLee’s inverse ("backtrack if overshooting")
v1.10.0
- inverse of d3.geoTetrahedralLee ; see https://observablehq.com/@fil/tetrahedral-lee-inverse for details.
v1.9.0
- Adds the d3.geoComplexLog projection (thanks, @biosmanager and @grtlr !)