@dxos/react-ui-geo 0.8.3 → 0.8.4-main.84f28bd
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.
- package/dist/lib/browser/chunk-CYCBMCOP.mjs +9 -0
- package/dist/lib/browser/{countries-110m-WI4PCLDF.mjs → countries-110m-37VAAFCK.mjs} +2 -2
- package/dist/lib/browser/data.mjs +1 -1
- package/dist/lib/browser/index.mjs +16 -16
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node-esm/{chunk-PIIEDZEU.mjs → chunk-OPJPAAEK.mjs} +3 -3
- package/dist/lib/node-esm/{countries-110m-DQ4XRC4B.mjs → countries-110m-36TTKK5B.mjs} +2 -2
- package/dist/lib/node-esm/data.mjs +1 -1
- package/dist/lib/node-esm/index.mjs +16 -16
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/src/components/Globe/Globe.stories.d.ts +1 -1
- package/dist/types/src/components/Globe/Globe.stories.d.ts.map +1 -1
- package/dist/types/src/components/Map/Map.stories.d.ts +1 -1
- package/dist/types/src/components/Map/Map.stories.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +11 -11
- package/src/components/Globe/Globe.stories.tsx +5 -5
- package/src/components/Map/Map.stories.tsx +1 -1
- package/dist/lib/browser/chunk-ENCWOTYX.mjs +0 -9
- package/dist/lib/node/chunk-LAICG6L2.cjs +0 -40
- package/dist/lib/node/chunk-LAICG6L2.cjs.map +0 -7
- package/dist/lib/node/countries-110m-KQ5WAB2O.cjs +0 -37877
- package/dist/lib/node/countries-110m-KQ5WAB2O.cjs.map +0 -7
- package/dist/lib/node/data.cjs +0 -28
- package/dist/lib/node/data.cjs.map +0 -7
- package/dist/lib/node/index.cjs +0 -1187
- package/dist/lib/node/index.cjs.map +0 -7
- package/dist/lib/node/meta.json +0 -1
- /package/dist/lib/browser/{chunk-ENCWOTYX.mjs.map → chunk-CYCBMCOP.mjs.map} +0 -0
- /package/dist/lib/browser/{countries-110m-WI4PCLDF.mjs.map → countries-110m-37VAAFCK.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-PIIEDZEU.mjs.map → chunk-OPJPAAEK.mjs.map} +0 -0
- /package/dist/lib/node-esm/{countries-110m-DQ4XRC4B.mjs.map → countries-110m-36TTKK5B.mjs.map} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/react-ui-geo",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.4-main.84f28bd",
|
|
4
4
|
"description": "Geo components.",
|
|
5
5
|
"homepage": "https://github.com/dxos",
|
|
6
6
|
"bugs": "https://github.com/dxos/issues",
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
"topojson-client": "^3.1.0",
|
|
47
47
|
"topojson-simplify": "^3.0.3",
|
|
48
48
|
"versor": "^0.2.0",
|
|
49
|
-
"@dxos/async": "0.8.
|
|
50
|
-
"@dxos/
|
|
51
|
-
"@dxos/
|
|
52
|
-
"@dxos/
|
|
53
|
-
"@dxos/
|
|
49
|
+
"@dxos/async": "0.8.4-main.84f28bd",
|
|
50
|
+
"@dxos/debug": "0.8.4-main.84f28bd",
|
|
51
|
+
"@dxos/log": "0.8.4-main.84f28bd",
|
|
52
|
+
"@dxos/node-std": "0.8.4-main.84f28bd",
|
|
53
|
+
"@dxos/util": "0.8.4-main.84f28bd"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@react-three/drei": "^9.99.0",
|
|
@@ -70,15 +70,15 @@
|
|
|
70
70
|
"react": "~18.2.0",
|
|
71
71
|
"react-dom": "~18.2.0",
|
|
72
72
|
"three": "0.165.0",
|
|
73
|
-
"@dxos/react-ui": "0.8.
|
|
74
|
-
"@dxos/react-ui-theme": "0.8.
|
|
75
|
-
"@dxos/storybook-utils": "0.8.
|
|
73
|
+
"@dxos/react-ui": "0.8.4-main.84f28bd",
|
|
74
|
+
"@dxos/react-ui-theme": "0.8.4-main.84f28bd",
|
|
75
|
+
"@dxos/storybook-utils": "0.8.4-main.84f28bd"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
78
|
"react": "~18.2.0",
|
|
79
79
|
"react-dom": "~18.2.0",
|
|
80
|
-
"@dxos/react-ui": "0.8.
|
|
81
|
-
"@dxos/react-ui-theme": "0.8.
|
|
80
|
+
"@dxos/react-ui": "0.8.4-main.84f28bd",
|
|
81
|
+
"@dxos/react-ui-theme": "0.8.4-main.84f28bd"
|
|
82
82
|
},
|
|
83
83
|
"publishConfig": {
|
|
84
84
|
"access": "public"
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import '@dxos-theme';
|
|
6
6
|
|
|
7
|
-
import { type Meta } from '@storybook/react';
|
|
7
|
+
import { type Meta } from '@storybook/react-vite';
|
|
8
8
|
import { type FeatureCollection, type Geometry, type Position } from 'geojson';
|
|
9
9
|
import { Leva } from 'leva';
|
|
10
10
|
import React, { useMemo, useRef, useState } from 'react';
|
|
@@ -138,7 +138,7 @@ const Story = ({
|
|
|
138
138
|
translation,
|
|
139
139
|
rotation = [0, 0, 0],
|
|
140
140
|
projection,
|
|
141
|
-
styles,
|
|
141
|
+
styles = defaultStyles,
|
|
142
142
|
drag = false,
|
|
143
143
|
spin = false,
|
|
144
144
|
tour = false,
|
|
@@ -235,7 +235,7 @@ export const Earth1 = () => {
|
|
|
235
235
|
|
|
236
236
|
return (
|
|
237
237
|
<Globe.Root scale={1.2} rotation={[Math.random() * 360, 0, 0]}>
|
|
238
|
-
<Globe.Canvas ref={setController} topology={topology} />
|
|
238
|
+
<Globe.Canvas ref={setController} topology={topology} styles={defaultStyles} />
|
|
239
239
|
<Globe.Zoom onAction={handleAction} />
|
|
240
240
|
</Globe.Root>
|
|
241
241
|
);
|
|
@@ -250,7 +250,7 @@ export const Earth2 = () => {
|
|
|
250
250
|
return (
|
|
251
251
|
<div className='absolute bottom-0 left-0 right-0 '>
|
|
252
252
|
<Globe.Root classNames='h-[400px]' scale={2.8} translation={{ x: 0, y: 400 }}>
|
|
253
|
-
<Globe.Canvas ref={setController} topology={topology} />
|
|
253
|
+
<Globe.Canvas ref={setController} topology={topology} styles={defaultStyles} />
|
|
254
254
|
<Globe.Zoom onAction={handleAction} />
|
|
255
255
|
</Globe.Root>
|
|
256
256
|
</div>
|
|
@@ -291,7 +291,7 @@ export const Mercator = () => {
|
|
|
291
291
|
};
|
|
292
292
|
|
|
293
293
|
export const Globe1 = () => {
|
|
294
|
-
return <Story drag projection='mercator' scale={0.8} rotation={initialRotation} />;
|
|
294
|
+
return <Story drag projection='mercator' scale={0.8} rotation={initialRotation} styles={defaultStyles} />;
|
|
295
295
|
};
|
|
296
296
|
|
|
297
297
|
export const Globe2 = () => {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import '@dxos-theme';
|
|
6
6
|
|
|
7
|
-
import { type StoryObj, type Meta } from '@storybook/react';
|
|
7
|
+
import { type StoryObj, type Meta } from '@storybook/react-vite';
|
|
8
8
|
import React, { useState } from 'react';
|
|
9
9
|
|
|
10
10
|
import { withLayout, withTheme } from '@dxos/storybook-utils';
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
var chunk_LAICG6L2_exports = {};
|
|
29
|
-
__export(chunk_LAICG6L2_exports, {
|
|
30
|
-
loadTopology: () => loadTopology
|
|
31
|
-
});
|
|
32
|
-
module.exports = __toCommonJS(chunk_LAICG6L2_exports);
|
|
33
|
-
var loadTopology = async () => {
|
|
34
|
-
return (await import("./countries-110m-KQ5WAB2O.cjs")).default;
|
|
35
|
-
};
|
|
36
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
37
|
-
0 && (module.exports = {
|
|
38
|
-
loadTopology
|
|
39
|
-
});
|
|
40
|
-
//# sourceMappingURL=chunk-LAICG6L2.cjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/data.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport { type Topology } from 'topojson-specification';\n\nexport const loadTopology = async (): Promise<Topology> => {\n return (await import('../data/countries-110m.ts')).default;\n};\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMO,IAAMA,eAAe,YAAA;AAC1B,UAAQ,MAAM,OAAO,+BAAA,GAA8BC;AACrD;",
|
|
6
|
-
"names": ["loadTopology", "default"]
|
|
7
|
-
}
|