@dxos/solid-ui-geo 0.8.4-main.c85a9c8dae → 0.8.4-main.e250131250
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/index.mjs +6 -5
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +6 -5
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/src/components/Globe/Globe.d.ts.map +1 -1
- package/dist/types/src/components/Globe/Globe.solid-stories.d.ts +3 -3
- package/dist/types/src/components/Globe/Globe.solid-stories.d.ts.map +1 -1
- package/dist/types/src/components/Map/Map.d.ts +1 -1
- package/dist/types/src/components/Map/Map.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/src/components/Globe/Globe.solid-stories.tsx +2 -2
- package/src/components/Globe/Globe.tsx +5 -4
- package/src/components/Map/Map.tsx +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/solid-ui-geo",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.e250131250",
|
|
4
4
|
"description": "Geo components for SolidJS.",
|
|
5
5
|
"homepage": "https://github.com/dxos",
|
|
6
6
|
"bugs": "https://github.com/dxos/issues",
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
"topojson-client": "^3.1.0",
|
|
50
50
|
"topojson-simplify": "^3.0.3",
|
|
51
51
|
"versor": "^0.2.0",
|
|
52
|
-
"@dxos/async": "0.8.4-main.
|
|
53
|
-
"@dxos/debug": "0.8.4-main.
|
|
54
|
-
"@dxos/log": "0.8.4-main.
|
|
55
|
-
"@dxos/
|
|
56
|
-
"@dxos/
|
|
57
|
-
"@dxos/
|
|
52
|
+
"@dxos/async": "0.8.4-main.e250131250",
|
|
53
|
+
"@dxos/debug": "0.8.4-main.e250131250",
|
|
54
|
+
"@dxos/log": "0.8.4-main.e250131250",
|
|
55
|
+
"@dxos/node-std": "0.8.4-main.e250131250",
|
|
56
|
+
"@dxos/util": "0.8.4-main.e250131250",
|
|
57
|
+
"@dxos/ui-theme": "0.8.4-main.e250131250"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@solidjs/testing-library": "^0.8.10",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"geojson2h3": "^1.2.0",
|
|
69
69
|
"solid-js": "^1.9.11",
|
|
70
70
|
"vite-plugin-solid": "^2.11.10",
|
|
71
|
-
"@dxos/storybook-utils": "0.8.4-main.
|
|
71
|
+
"@dxos/storybook-utils": "0.8.4-main.e250131250"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
74
|
"solid-js": "^1.9.11"
|
|
@@ -122,7 +122,7 @@ const createTrip = (
|
|
|
122
122
|
);
|
|
123
123
|
};
|
|
124
124
|
|
|
125
|
-
type
|
|
125
|
+
type DefaultStoryProps = Pick<GlobeRootProps, 'zoom' | 'translation' | 'rotation'> &
|
|
126
126
|
Pick<GlobeCanvasProps, 'projection' | 'styles'> & {
|
|
127
127
|
drag?: boolean;
|
|
128
128
|
spin?: boolean;
|
|
@@ -140,7 +140,7 @@ const DefaultStory = ({
|
|
|
140
140
|
spin = false,
|
|
141
141
|
tour = false,
|
|
142
142
|
xAxis = false,
|
|
143
|
-
}:
|
|
143
|
+
}: DefaultStoryProps) => {
|
|
144
144
|
const [controller, setController] = createSignal<GlobeController | null>(null);
|
|
145
145
|
|
|
146
146
|
const [dots] = createResource(async () => {
|
|
@@ -29,6 +29,7 @@ import {
|
|
|
29
29
|
timer,
|
|
30
30
|
} from '../../util';
|
|
31
31
|
import { ActionControls, type ControlProps, ZoomControls, controlPositions } from '../Toolbar';
|
|
32
|
+
import { mx } from '@dxos/ui-theme';
|
|
32
33
|
|
|
33
34
|
/**
|
|
34
35
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute
|
|
@@ -135,11 +136,11 @@ const GlobeRoot = (props: GlobeRootProps) => {
|
|
|
135
136
|
);
|
|
136
137
|
|
|
137
138
|
return (
|
|
138
|
-
<
|
|
139
|
-
<
|
|
139
|
+
<GlobeContextProvider size={size()} {...props}>
|
|
140
|
+
<div ref={containerRef} class={mx('relative dx-container')} {...props}>
|
|
140
141
|
{props.children}
|
|
141
|
-
</
|
|
142
|
-
</
|
|
142
|
+
</div>
|
|
143
|
+
</GlobeContextProvider>
|
|
143
144
|
);
|
|
144
145
|
};
|
|
145
146
|
|
|
@@ -64,8 +64,8 @@ const useMapContext = (displayName: string) => {
|
|
|
64
64
|
//
|
|
65
65
|
|
|
66
66
|
type MapRootProps = {
|
|
67
|
-
children: JSX.Element;
|
|
68
67
|
ref?: (controller: MapController) => void;
|
|
68
|
+
children: JSX.Element;
|
|
69
69
|
class?: string;
|
|
70
70
|
scrollWheelZoom?: boolean;
|
|
71
71
|
doubleClickZoom?: boolean;
|