├── .eslintrc.json ├── .github ├── eslint.json └── workflows │ ├── node.js.yml │ ├── pages.yml │ └── publish.yml ├── .gitignore ├── .npmignore ├── .nvmrc ├── LICENSE ├── README.md ├── docs ├── .gitignore ├── index.md.sh └── snapshots │ └── [snapshot].png.js ├── observablehq.config.ts ├── package.json ├── rollup.config.js ├── src ├── airocean.js ├── butterfly.js ├── cahillKeyes.js ├── cartesian.js ├── clip │ ├── buffer.js │ ├── index.js │ ├── polygon.js │ └── rejoin.js ├── collignon.js ├── complex.js ├── complexLog.js ├── cox.js ├── cubic.js ├── deltoidal.js ├── dodecahedral.js ├── grayfuller.js ├── icosahedral.js ├── imago.js ├── index.js ├── intersect.js ├── lagrange.js ├── math.js ├── newton.js ├── noop.js ├── pointEqual.js ├── polygonContains.js ├── polyhedral │ ├── index.js │ ├── matrix.js │ ├── octahedron.js │ └── voronoi.js ├── reclip.js ├── rhombic.js ├── tetrahedralLee.js └── waterman.js ├── test ├── .eslintrc.json ├── asserts.js ├── clip │ └── polygon-test.js ├── intersect-test.js ├── invert-test.js ├── snapshot-test.js ├── snapshots.js └── snapshots │ ├── airocean.png │ ├── airocean702.png │ ├── airocean732.png │ ├── berghaus.png │ ├── berghaus13.png │ ├── berghaus7.png │ ├── cahillKeyes.png │ ├── clipPointFalse.png │ ├── clipPointSmall.png │ ├── clipPointTrue.png │ ├── clipPointWorld.png │ ├── complexLog.png │ ├── cox.png │ ├── cubic.png │ ├── cubic45.png │ ├── deltoidal.png │ ├── dodecahedral.png │ ├── gingery.png │ ├── gingery3.png │ ├── gingery7.png │ ├── goodeOcean.png │ ├── healpix.png │ ├── healpix5.png │ ├── icosahedral.png │ ├── imago.png │ ├── interruptedBoggs.png │ ├── interruptedHomolosine.png │ ├── interruptedMollweide.png │ ├── interruptedMollweideHemispheres.png │ ├── interruptedSinuMollweide.png │ ├── interruptedSinusoidal.png │ ├── polyhedralButterfly.png │ ├── polyhedralCollignon.png │ ├── polyhedralWaterman.png │ ├── rhombic.png │ ├── rhombic00.png │ ├── rhombicHalf1.png │ ├── rhombicHalf2.png │ ├── tetrahedralLee.png │ ├── tetrahedralLeeSouth.png │ └── twoPointEquidistantUsa.png └── yarn.lock /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.github/eslint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/.github/eslint.json -------------------------------------------------------------------------------- /.github/workflows/node.js.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/.github/workflows/node.js.yml -------------------------------------------------------------------------------- /.github/workflows/pages.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/.github/workflows/pages.yml -------------------------------------------------------------------------------- /.github/workflows/publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/.github/workflows/publish.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.sublime-workspace 2 | .DS_Store 3 | dist/ 4 | node_modules 5 | npm-debug.log 6 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | *.sublime-* 2 | dist/*.zip 3 | img/ 4 | test/ 5 | -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | 10.17.0 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/README.md -------------------------------------------------------------------------------- /docs/.gitignore: -------------------------------------------------------------------------------- 1 | /.observablehq/ -------------------------------------------------------------------------------- /docs/index.md.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/docs/index.md.sh -------------------------------------------------------------------------------- /docs/snapshots/[snapshot].png.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/docs/snapshots/[snapshot].png.js -------------------------------------------------------------------------------- /observablehq.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/observablehq.config.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/package.json -------------------------------------------------------------------------------- /rollup.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/rollup.config.js -------------------------------------------------------------------------------- /src/airocean.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/src/airocean.js -------------------------------------------------------------------------------- /src/butterfly.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/src/butterfly.js -------------------------------------------------------------------------------- /src/cahillKeyes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/src/cahillKeyes.js -------------------------------------------------------------------------------- /src/cartesian.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/src/cartesian.js -------------------------------------------------------------------------------- /src/clip/buffer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/src/clip/buffer.js -------------------------------------------------------------------------------- /src/clip/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/src/clip/index.js -------------------------------------------------------------------------------- /src/clip/polygon.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/src/clip/polygon.js -------------------------------------------------------------------------------- /src/clip/rejoin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/src/clip/rejoin.js -------------------------------------------------------------------------------- /src/collignon.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/src/collignon.js -------------------------------------------------------------------------------- /src/complex.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/src/complex.js -------------------------------------------------------------------------------- /src/complexLog.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/src/complexLog.js -------------------------------------------------------------------------------- /src/cox.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/src/cox.js -------------------------------------------------------------------------------- /src/cubic.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/src/cubic.js -------------------------------------------------------------------------------- /src/deltoidal.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/src/deltoidal.js -------------------------------------------------------------------------------- /src/dodecahedral.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/src/dodecahedral.js -------------------------------------------------------------------------------- /src/grayfuller.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/src/grayfuller.js -------------------------------------------------------------------------------- /src/icosahedral.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/src/icosahedral.js -------------------------------------------------------------------------------- /src/imago.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/src/imago.js -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/src/index.js -------------------------------------------------------------------------------- /src/intersect.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/src/intersect.js -------------------------------------------------------------------------------- /src/lagrange.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/src/lagrange.js -------------------------------------------------------------------------------- /src/math.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/src/math.js -------------------------------------------------------------------------------- /src/newton.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/src/newton.js -------------------------------------------------------------------------------- /src/noop.js: -------------------------------------------------------------------------------- 1 | export default function noop() {} 2 | -------------------------------------------------------------------------------- /src/pointEqual.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/src/pointEqual.js -------------------------------------------------------------------------------- /src/polygonContains.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/src/polygonContains.js -------------------------------------------------------------------------------- /src/polyhedral/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/src/polyhedral/index.js -------------------------------------------------------------------------------- /src/polyhedral/matrix.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/src/polyhedral/matrix.js -------------------------------------------------------------------------------- /src/polyhedral/octahedron.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/src/polyhedral/octahedron.js -------------------------------------------------------------------------------- /src/polyhedral/voronoi.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/src/polyhedral/voronoi.js -------------------------------------------------------------------------------- /src/reclip.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/src/reclip.js -------------------------------------------------------------------------------- /src/rhombic.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/src/rhombic.js -------------------------------------------------------------------------------- /src/tetrahedralLee.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/src/tetrahedralLee.js -------------------------------------------------------------------------------- /src/waterman.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/src/waterman.js -------------------------------------------------------------------------------- /test/.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/.eslintrc.json -------------------------------------------------------------------------------- /test/asserts.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/asserts.js -------------------------------------------------------------------------------- /test/clip/polygon-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/clip/polygon-test.js -------------------------------------------------------------------------------- /test/intersect-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/intersect-test.js -------------------------------------------------------------------------------- /test/invert-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/invert-test.js -------------------------------------------------------------------------------- /test/snapshot-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/snapshot-test.js -------------------------------------------------------------------------------- /test/snapshots.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/snapshots.js -------------------------------------------------------------------------------- /test/snapshots/airocean.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/snapshots/airocean.png -------------------------------------------------------------------------------- /test/snapshots/airocean702.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/snapshots/airocean702.png -------------------------------------------------------------------------------- /test/snapshots/airocean732.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/snapshots/airocean732.png -------------------------------------------------------------------------------- /test/snapshots/berghaus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/snapshots/berghaus.png -------------------------------------------------------------------------------- /test/snapshots/berghaus13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/snapshots/berghaus13.png -------------------------------------------------------------------------------- /test/snapshots/berghaus7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/snapshots/berghaus7.png -------------------------------------------------------------------------------- /test/snapshots/cahillKeyes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/snapshots/cahillKeyes.png -------------------------------------------------------------------------------- /test/snapshots/clipPointFalse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/snapshots/clipPointFalse.png -------------------------------------------------------------------------------- /test/snapshots/clipPointSmall.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/snapshots/clipPointSmall.png -------------------------------------------------------------------------------- /test/snapshots/clipPointTrue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/snapshots/clipPointTrue.png -------------------------------------------------------------------------------- /test/snapshots/clipPointWorld.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/snapshots/clipPointWorld.png -------------------------------------------------------------------------------- /test/snapshots/complexLog.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/snapshots/complexLog.png -------------------------------------------------------------------------------- /test/snapshots/cox.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/snapshots/cox.png -------------------------------------------------------------------------------- /test/snapshots/cubic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/snapshots/cubic.png -------------------------------------------------------------------------------- /test/snapshots/cubic45.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/snapshots/cubic45.png -------------------------------------------------------------------------------- /test/snapshots/deltoidal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/snapshots/deltoidal.png -------------------------------------------------------------------------------- /test/snapshots/dodecahedral.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/snapshots/dodecahedral.png -------------------------------------------------------------------------------- /test/snapshots/gingery.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/snapshots/gingery.png -------------------------------------------------------------------------------- /test/snapshots/gingery3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/snapshots/gingery3.png -------------------------------------------------------------------------------- /test/snapshots/gingery7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/snapshots/gingery7.png -------------------------------------------------------------------------------- /test/snapshots/goodeOcean.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/snapshots/goodeOcean.png -------------------------------------------------------------------------------- /test/snapshots/healpix.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/snapshots/healpix.png -------------------------------------------------------------------------------- /test/snapshots/healpix5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/snapshots/healpix5.png -------------------------------------------------------------------------------- /test/snapshots/icosahedral.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/snapshots/icosahedral.png -------------------------------------------------------------------------------- /test/snapshots/imago.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/snapshots/imago.png -------------------------------------------------------------------------------- /test/snapshots/interruptedBoggs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/snapshots/interruptedBoggs.png -------------------------------------------------------------------------------- /test/snapshots/interruptedHomolosine.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/snapshots/interruptedHomolosine.png -------------------------------------------------------------------------------- /test/snapshots/interruptedMollweide.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/snapshots/interruptedMollweide.png -------------------------------------------------------------------------------- /test/snapshots/interruptedMollweideHemispheres.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/snapshots/interruptedMollweideHemispheres.png -------------------------------------------------------------------------------- /test/snapshots/interruptedSinuMollweide.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/snapshots/interruptedSinuMollweide.png -------------------------------------------------------------------------------- /test/snapshots/interruptedSinusoidal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/snapshots/interruptedSinusoidal.png -------------------------------------------------------------------------------- /test/snapshots/polyhedralButterfly.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/snapshots/polyhedralButterfly.png -------------------------------------------------------------------------------- /test/snapshots/polyhedralCollignon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/snapshots/polyhedralCollignon.png -------------------------------------------------------------------------------- /test/snapshots/polyhedralWaterman.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/snapshots/polyhedralWaterman.png -------------------------------------------------------------------------------- /test/snapshots/rhombic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/snapshots/rhombic.png -------------------------------------------------------------------------------- /test/snapshots/rhombic00.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/snapshots/rhombic00.png -------------------------------------------------------------------------------- /test/snapshots/rhombicHalf1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/snapshots/rhombicHalf1.png -------------------------------------------------------------------------------- /test/snapshots/rhombicHalf2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/snapshots/rhombicHalf2.png -------------------------------------------------------------------------------- /test/snapshots/tetrahedralLee.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/snapshots/tetrahedralLee.png -------------------------------------------------------------------------------- /test/snapshots/tetrahedralLeeSouth.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/snapshots/tetrahedralLeeSouth.png -------------------------------------------------------------------------------- /test/snapshots/twoPointEquidistantUsa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/test/snapshots/twoPointEquidistantUsa.png -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3/d3-geo-polygon/HEAD/yarn.lock --------------------------------------------------------------------------------