Skip to content

v2.0.0

Latest
Compare
Choose a tag to compare
@Fil Fil released this 02 Nov 14:45
· 3 commits to main since this release

New projections

geoRhombic(), the rhombic dodecahedral projection

world map

contributed by @bathoorn (thanks!)

geoDeltoidal(), the deltoidal hexecontahedral projection
world map

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

world map

The gnomonic butterfly projection.

# d3.geoPolyhedralCollignon() · Source

world map

The Collignon butterfly projection.

# d3.geoPolyhedralWaterman() · Source

world map

A butterfly projection inspired by Steve Waterman’s design.

# d3.geoBerghaus · Source

world map

The Berghaus projection.

# d3.geoGingery · Source

world map

The Gingery projection.

# d3.geoHealpix · Source

world map

The HEALPix projection.

# d3.geoInterruptedBoggs · Source

world map

Bogg’s interrupted eumorphic projection.

# d3.geoInterruptedHomolosine · Source

world map

Goode’s interrupted homolosine projection.

# d3.geoInterruptedMollweide · Source

world map

Goode’s interrupted Mollweide projection.

# d3.geoInterruptedMollweideHemispheres · Source

world map

The Mollweide projection interrupted into two (equal-area) hemispheres.

# d3.geoInterruptedSinuMollweide · Source

world map

Alan K. Philbrick’s interrupted sinu-Mollweide projection.

# d3.geoInterruptedSinusoidal · Source

world map

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

world map

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