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