@dxos/react-ui-geo 0.7.5-labs.e27f9b9 → 0.7.5-main.e9bb01b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Globe.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Globe/Globe.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAG7C,OAAO,KAAoC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Globe.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Globe/Globe.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAG7C,OAAO,KAAoC,MAAM,OAAO,CAAC;AAiOzD,QAAA,MAAM,IAAI,EAAE,IAIX,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,MAAM,yBAYlB,CAAC;AAEF,eAAO,MAAM,MAAM,yBAclB,CAAC;AAqBF,eAAO,MAAM,QAAQ,yBAYpB,CAAC;AAEF,eAAO,MAAM,MAAM,yBAElB,CAAC;AAEF,eAAO,MAAM,MAAM,yBAElB,CAAC;AAEF,eAAO,MAAM,MAAM,yBAElB,CAAC;AAEF,eAAO,MAAM,MAAM,yBAElB,CAAC;AAEF,eAAO,MAAM,MAAM,yBAElB,CAAC;AAEF,eAAO,MAAM,MAAM,yBAElB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/react-ui-geo",
|
|
3
|
-
"version": "0.7.5-
|
|
3
|
+
"version": "0.7.5-main.e9bb01b",
|
|
4
4
|
"description": "Geo components.",
|
|
5
5
|
"homepage": "https://github.com/dxos",
|
|
6
6
|
"bugs": "https://github.com/dxos/issues",
|
|
@@ -44,20 +44,20 @@
|
|
|
44
44
|
"topojson-client": "^3.1.0",
|
|
45
45
|
"topojson-simplify": "^3.0.3",
|
|
46
46
|
"versor": "^0.2.0",
|
|
47
|
-
"@dxos/async": "0.7.5-
|
|
48
|
-
"@dxos/
|
|
49
|
-
"@dxos/
|
|
50
|
-
"@dxos/util": "0.7.5-
|
|
47
|
+
"@dxos/async": "0.7.5-main.e9bb01b",
|
|
48
|
+
"@dxos/debug": "0.7.5-main.e9bb01b",
|
|
49
|
+
"@dxos/node-std": "0.7.5-main.e9bb01b",
|
|
50
|
+
"@dxos/util": "0.7.5-main.e9bb01b"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@react-three/drei": "^9.
|
|
54
|
-
"@react-three/fiber": "^8.
|
|
53
|
+
"@react-three/drei": "^9.112.0",
|
|
54
|
+
"@react-three/fiber": "^8.17.7",
|
|
55
55
|
"@types/d3": "^7.4.3",
|
|
56
56
|
"@types/geojson": "^7946.0.14",
|
|
57
57
|
"@types/leaflet": "^1.9.16",
|
|
58
58
|
"@types/react": "~18.2.0",
|
|
59
59
|
"@types/react-dom": "~18.2.0",
|
|
60
|
-
"@types/three": "0.
|
|
60
|
+
"@types/three": "^0.168.0",
|
|
61
61
|
"@types/topojson-client": "^3.1.4",
|
|
62
62
|
"@types/topojson-simplify": "^3.0.3",
|
|
63
63
|
"@types/topojson-specification": "^1.0.5",
|
|
@@ -66,16 +66,16 @@
|
|
|
66
66
|
"leva": "^0.9.35",
|
|
67
67
|
"react": "~18.2.0",
|
|
68
68
|
"react-dom": "~18.2.0",
|
|
69
|
-
"three": "0.
|
|
70
|
-
"@dxos/react-ui": "0.7.5-
|
|
71
|
-
"@dxos/react-ui-theme": "0.7.5-
|
|
72
|
-
"@dxos/storybook-utils": "0.7.5-
|
|
69
|
+
"three": "^0.168.0",
|
|
70
|
+
"@dxos/react-ui": "0.7.5-main.e9bb01b",
|
|
71
|
+
"@dxos/react-ui-theme": "0.7.5-main.e9bb01b",
|
|
72
|
+
"@dxos/storybook-utils": "0.7.5-main.e9bb01b"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
75
|
"react": "~18.2.0",
|
|
76
76
|
"react-dom": "~18.2.0",
|
|
77
|
-
"@dxos/react-ui": "0.7.5-
|
|
78
|
-
"@dxos/react-ui-theme": "0.7.5-
|
|
77
|
+
"@dxos/react-ui": "0.7.5-main.e9bb01b",
|
|
78
|
+
"@dxos/react-ui-theme": "0.7.5-main.e9bb01b"
|
|
79
79
|
},
|
|
80
80
|
"publishConfig": {
|
|
81
81
|
"access": "public"
|
|
@@ -162,8 +162,7 @@ const Story = ({
|
|
|
162
162
|
objects: { dots: points },
|
|
163
163
|
} as any as Topology;
|
|
164
164
|
});
|
|
165
|
-
|
|
166
|
-
const [topology] = useAsyncState(async () => (await import('../../../data/countries-110m.ts')).default);
|
|
165
|
+
const [topology] = useImportJson('../../../data/raw/countries-110m.json');
|
|
167
166
|
const [airports] = useAsyncState(async () => (await import('../../../data/airports.ts')).default);
|
|
168
167
|
const features = useMemo(() => {
|
|
169
168
|
return airports ? createTrip(airports, routes, (dots?.objects.dots as any)?.geometries[0].coordinates) : undefined;
|
|
@@ -242,8 +241,7 @@ const meta: Meta = {
|
|
|
242
241
|
export default meta;
|
|
243
242
|
|
|
244
243
|
export const Earth1 = () => {
|
|
245
|
-
|
|
246
|
-
const [topology] = useAsyncState(async () => (await import('../../../data/countries-110m.ts')).default);
|
|
244
|
+
const [topology] = useImportJson('../../../data/raw/countries-110m.json');
|
|
247
245
|
const [controller, setController] = useState<GlobeController | null>();
|
|
248
246
|
const handleAction = useGlobeZoomHandler(controller);
|
|
249
247
|
useDrag(controller);
|
|
@@ -257,8 +255,7 @@ export const Earth1 = () => {
|
|
|
257
255
|
};
|
|
258
256
|
|
|
259
257
|
export const Earth2 = () => {
|
|
260
|
-
|
|
261
|
-
const [topology] = useAsyncState(async () => (await import('../../../data/countries-110m.ts')).default);
|
|
258
|
+
const [topology] = useImportJson('../../../data/raw/countries-110m.json');
|
|
262
259
|
const [controller, setController] = useState<GlobeController | null>();
|
|
263
260
|
const handleAction = useGlobeZoomHandler(controller);
|
|
264
261
|
useDrag(controller);
|
|
@@ -293,8 +290,7 @@ const monochrome: StyleSet = {
|
|
|
293
290
|
};
|
|
294
291
|
|
|
295
292
|
export const Mercator = () => {
|
|
296
|
-
|
|
297
|
-
const [topology] = useAsyncState(async () => (await import('../../../data/countries-110m.ts')).default);
|
|
293
|
+
const [topology] = useImportJson('../../../data/raw/countries-110m.json');
|
|
298
294
|
const [controller, setController] = useState<GlobeController | null>();
|
|
299
295
|
const handleAction = useGlobeZoomHandler(controller);
|
|
300
296
|
useDrag(controller);
|