-
Notifications
You must be signed in to change notification settings - Fork 724
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new(geo, vendor): add
d3-geo@3
to visx-vendor
, support `geoPath.d…
…igits(n)` (#1767) * Update `d3-geo`, add it to `visx-vendor`, support `Projection#digits` * Link to issue * Reduce diff * tsconfigs * Update packages/visx-geo/src/projections/Projection.tsx Co-authored-by: Chris Williams <[email protected]> * Reduce diff * Update `@types/d3-geo` to `3.1.0` * Dedupe `d3-array` --------- Co-authored-by: Chris Williams <[email protected]>
- Loading branch information
1 parent
6a14177
commit 1ee0374
Showing
15 changed files
with
71 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -115,6 +115,7 @@ | |
"ts-node": "9.1.1", | ||
"typescript": "^3.8.3" | ||
}, | ||
"packageManager": "[email protected]", | ||
"workspaces": { | ||
"packages": ["./packages/*"], | ||
"nohoist": ["**/@visx/vendor/**"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/visx-demo/src/sandboxes/visx-geo-albers-usa/Example.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,9 @@ | |
"references": [ | ||
{ | ||
"path": "../visx-group" | ||
}, | ||
{ | ||
"path": "../visx-vendor" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* This test verifies that these modules and types are exported correctly */ | ||
import { | ||
// @ts-expect-error Make sure invalid imports fail: | ||
INVALID_TYPE, | ||
ExtendedFeature, | ||
ExtendedFeatureCollection, | ||
ExtendedGeometryCollection, | ||
GeoCircleGenerator, | ||
GeoConicProjection, | ||
GeoContext, | ||
GeoGeometryObjects, | ||
GeoGraticuleGenerator, | ||
GeoIdentityTransform, | ||
GeoPath, | ||
GeoPermissibleObjects, | ||
GeoProjection, | ||
GeoRawProjection, | ||
GeoRotation, | ||
GeoSphere, | ||
GeoStreamWrapper, | ||
GeoStream, | ||
GeoTransformPrototype, | ||
geoAlbers, | ||
geoAlbersUsa, | ||
geoArea, | ||
geoAzimuthalEqualArea, | ||
geoAzimuthalEqualAreaRaw, | ||
geoAzimuthalEquidistant, | ||
geoAzimuthalEquidistantRaw, | ||
geoBounds, | ||
} from '@visx/vendor/d3-geo'; | ||
|
||
describe('d3-geo', () => { | ||
it('exports valid functions', () => { | ||
expect(geoBounds).toBeInstanceOf(Function); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2693,10 +2693,10 @@ | |
resolved "https://registry.yarnpkg.com/@types/d3-format/-/d3-format-3.0.1.tgz#194f1317a499edd7e58766f96735bdc0216bb89d" | ||
integrity sha512-5KY70ifCCzorkLuIkDe0Z9YTf9RR2CjBX1iaJG+rgM/cPP+sO+q9YdQ9WdhQcgPj1EQiJ2/0+yUkkziTG6Lubg== | ||
|
||
"@types/d3-geo@^1.11.1": | ||
version "1.11.1" | ||
resolved "https://registry.yarnpkg.com/@types/d3-geo/-/d3-geo-1.11.1.tgz#e96ec91f16221d87507fec66b2cc889f52d2493e" | ||
integrity sha512-Ox8WWOG3igDRoep/dNsGbOiSJYdUG3ew/6z0ETvHyAtXZVBjOE0S96zSSmzgl0gqQ3RdZjn2eeJOj9oRcMZPkQ== | ||
"@types/d3-geo@3.1.0": | ||
version "3.1.0" | ||
resolved "https://registry.yarnpkg.com/@types/d3-geo/-/d3-geo-3.1.0.tgz#b9e56a079449174f0a2c8684a9a4df3f60522440" | ||
integrity sha512-856sckF0oP/diXtS4jNsiQw/UuK5fQG8l/a9VVLeSouf1/PPbBE1i1W852zVwKwYCBkFJJB7nCFTbk6UMEXBOQ== | ||
dependencies: | ||
"@types/geojson" "*" | ||
|
||
|
@@ -5054,7 +5054,7 @@ d3-array@1: | |
resolved "https://registry.yarnpkg.com/d3-array/-/d3-array-1.2.4.tgz#635ce4d5eea759f6f605863dbcfc30edc737f71f" | ||
integrity sha512-KHW6M86R+FUPYGb3R5XiYjXPq7VzwxZ22buHhAEVG5ztoEcZZMLov530mmccaqA1GghZArjQV46fuc8kUqhhHw== | ||
|
||
"d3-array@2 - 3", "[email protected] - 3", [email protected]: | ||
"d3-array@2 - 3", "[email protected] - 3", "[email protected] - 3", [email protected]: | ||
version "3.2.1" | ||
resolved "https://registry.yarnpkg.com/d3-array/-/d3-array-3.2.1.tgz#39331ea706f5709417d31bbb6ec152e0328b39b3" | ||
integrity sha512-gUY/qeHq/yNqqoCKNq4vtpFLdoCdvyNpWoC/KNjhGbhDuQpAM9sIQQKkXSNpXa9h5KySs/gzm7R88WkUutgwWQ== | ||
|
@@ -5108,12 +5108,12 @@ d3-dispatch@^1.0.3: | |
resolved "https://registry.yarnpkg.com/d3-format/-/d3-format-3.1.0.tgz#9260e23a28ea5cb109e93b21a06e24e2ebd55641" | ||
integrity sha512-YyUI6AEuY/Wpt8KWLgZHsIU86atmikuoOmCfommt0LYHiQSPjvX2AcFc38PX0CBpr2RCyZhjex+NS/LPOv6YqA== | ||
|
||
d3-geo@^1.11.3: | ||
version "1.12.1" | ||
resolved "https://registry.yarnpkg.com/d3-geo/-/d3-geo-1.12.1.tgz#7fc2ab7414b72e59fbcbd603e80d9adc029b035f" | ||
integrity sha512-XG4d1c/UJSEX9NfU02KwBL6BYPj8YKHxgBEw5om2ZnTRSbIcego6dhHwcxuSR3clxh0EpE38os1DVPOmnYtTPg== | ||
d3-geo@3.1.0: | ||
version "3.1.0" | ||
resolved "https://registry.yarnpkg.com/d3-geo/-/d3-geo-3.1.0.tgz#74fd54e1f4cebd5185ac2039217a98d39b0a4c0e" | ||
integrity sha512-JEo5HxXDdDYXCaWdwLRt79y7giK8SbhZJbFWXqbRTolCHFI5jRqteLzCsq51NKbUoX0PjBVSohxrx+NoOUujYA== | ||
dependencies: | ||
d3-array "1" | ||
d3-array "2.5.0 - 3" | ||
|
||
d3-hierarchy@^1.1.4, d3-hierarchy@^1.1.8: | ||
version "1.1.9" | ||
|