Skip to content

Releases: d3/d3-geo-polygon

v2.0.1

10 Nov 17:16
@Fil Fil
Compare
Choose a tag to compare

What's Changed

  • fix the cubic projection which could end up upside-down on Chrome (#75)

v2.0.0

02 Nov 14:45
@Fil Fil
Compare
Choose a tag to compare

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

v2.0.0-alpha.1

23 Jun 17:22
@Fil Fil
Compare
Choose a tag to compare
v2.0.0-alpha.1 Pre-release
Pre-release

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)

deltoidal

Full Changelog: v1.12.1...v2.0.0-alpha.1

v1.12.1

26 Aug 09:24
@Fil Fil
Compare
Choose a tag to compare
  • upgrade dependencies (node, canvas 1-2, d3-geo 1-2)

v1.12.0

31 May 16:37
@Fil Fil
Compare
Choose a tag to compare
  • Cahill-Keyes inverse (using the Newton 2D method)

v1.11.0

18 Apr 20:44
@Fil Fil
Compare
Choose a tag to compare
  • adds projection.reflectX (cf. d3-geo 1.12)

v1.10.2

28 Dec 10:49
@Fil Fil
Compare
Choose a tag to compare
  • fix clipping errors (#30)

v1.10.1

23 Dec 10:48
@Fil Fil
Compare
Choose a tag to compare

v1.10.0

18 Dec 23:23
@Fil Fil
Compare
Choose a tag to compare

v1.9.0

01 Dec 12:45
@Fil Fil
Compare
Choose a tag to compare