@dxos/solid-ui-geo 0.8.4-main.bc674ce → 0.8.4-main.d05673bc65
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 +11 -11
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +11 -11
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/src/components/Map/Map.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -10
- package/src/components/Globe/Globe.tsx +6 -6
- package/src/components/Map/Map.tsx +2 -1
- package/src/components/Toolbar/Controls.tsx +4 -4
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.d05673bc65",
|
|
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/
|
|
53
|
-
"@dxos/
|
|
54
|
-
"@dxos/
|
|
55
|
-
"@dxos/node-std": "0.8.4-main.
|
|
56
|
-
"@dxos/ui-theme": "0.8.4-main.
|
|
57
|
-
"@dxos/util": "0.8.4-main.
|
|
52
|
+
"@dxos/debug": "0.8.4-main.d05673bc65",
|
|
53
|
+
"@dxos/log": "0.8.4-main.d05673bc65",
|
|
54
|
+
"@dxos/async": "0.8.4-main.d05673bc65",
|
|
55
|
+
"@dxos/node-std": "0.8.4-main.d05673bc65",
|
|
56
|
+
"@dxos/ui-theme": "0.8.4-main.d05673bc65",
|
|
57
|
+
"@dxos/util": "0.8.4-main.d05673bc65"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@solidjs/testing-library": "^0.8.10",
|
|
@@ -66,12 +66,12 @@
|
|
|
66
66
|
"@types/topojson-specification": "^1.0.5",
|
|
67
67
|
"JSONStream": "^1.3.5",
|
|
68
68
|
"geojson2h3": "^1.2.0",
|
|
69
|
-
"solid-js": "^1.9.
|
|
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.d05673bc65"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
|
-
"solid-js": "^1.9.
|
|
74
|
+
"solid-js": "^1.9.11"
|
|
75
75
|
},
|
|
76
76
|
"publishConfig": {
|
|
77
77
|
"access": "public"
|
|
@@ -205,9 +205,9 @@ const GlobeCanvas = (props: GlobeCanvasProps) => {
|
|
|
205
205
|
},
|
|
206
206
|
translation,
|
|
207
207
|
rotation,
|
|
208
|
-
setZoom: (
|
|
209
|
-
if (typeof
|
|
210
|
-
const is = interpolateNumber(zoomValue,
|
|
208
|
+
setZoom: (state) => {
|
|
209
|
+
if (typeof state === 'function') {
|
|
210
|
+
const is = interpolateNumber(zoomValue, state(zoomValue));
|
|
211
211
|
// Stop easing if already zooming.
|
|
212
212
|
transition()
|
|
213
213
|
.ease(zooming ? easeLinear : easeSinOut)
|
|
@@ -221,8 +221,8 @@ const GlobeCanvas = (props: GlobeCanvasProps) => {
|
|
|
221
221
|
zooming = false;
|
|
222
222
|
});
|
|
223
223
|
} else {
|
|
224
|
-
zoomValue =
|
|
225
|
-
setZoom(
|
|
224
|
+
zoomValue = state;
|
|
225
|
+
setZoom(state);
|
|
226
226
|
}
|
|
227
227
|
},
|
|
228
228
|
setTranslation,
|
|
@@ -278,7 +278,7 @@ const GlobeDebug = (props: { position?: ControlPosition }) => {
|
|
|
278
278
|
const { size, zoom, translation, rotation } = useGlobeContext();
|
|
279
279
|
return (
|
|
280
280
|
<div
|
|
281
|
-
class={`z-10 absolute w-96 p-2 overflow-hidden border border-green-700 rounded ${
|
|
281
|
+
class={`z-10 absolute w-96 p-2 overflow-hidden border border-green-700 rounded-sm ${
|
|
282
282
|
controlPositions[props.position ?? 'topleft']
|
|
283
283
|
}`}
|
|
284
284
|
>
|
|
@@ -55,6 +55,7 @@ const useMapContext = (displayName: string) => {
|
|
|
55
55
|
if (!context) {
|
|
56
56
|
throw new Error(`${displayName} must be used within Map.Root`);
|
|
57
57
|
}
|
|
58
|
+
|
|
58
59
|
return context;
|
|
59
60
|
};
|
|
60
61
|
|
|
@@ -277,7 +278,7 @@ const CustomControl = (props: { children: JSX.Element; position: ControlPosition
|
|
|
277
278
|
|
|
278
279
|
const Control = L.Control.extend({
|
|
279
280
|
onAdd: () => {
|
|
280
|
-
const container = L.DomUtil.create('div', `${controlPositions[props.position]}
|
|
281
|
+
const container = L.DomUtil.create('div', `${controlPositions[props.position]} m-0!`);
|
|
281
282
|
L.DomEvent.disableClickPropagation(container);
|
|
282
283
|
L.DomEvent.disableScrollPropagation(container);
|
|
283
284
|
|
|
@@ -24,7 +24,7 @@ export const ZoomControls = (props: ControlProps): JSX.Element => {
|
|
|
24
24
|
<div class={`flex flex-row gap-2 ${props.class ?? ''}`}>
|
|
25
25
|
<button
|
|
26
26
|
type='button'
|
|
27
|
-
class='dx-button dx-focus-ring w-10 h-10 min-
|
|
27
|
+
class='dx-button dx-focus-ring w-10 h-10 min-h-[2.5rem] px-3 rounded-xs flex items-center justify-center'
|
|
28
28
|
onClick={() => props.onAction?.('zoom-in')}
|
|
29
29
|
title='Zoom in'
|
|
30
30
|
>
|
|
@@ -32,7 +32,7 @@ export const ZoomControls = (props: ControlProps): JSX.Element => {
|
|
|
32
32
|
</button>
|
|
33
33
|
<button
|
|
34
34
|
type='button'
|
|
35
|
-
class='dx-button dx-focus-ring w-10 h-10 min-
|
|
35
|
+
class='dx-button dx-focus-ring w-10 h-10 min-h-[2.5rem] px-3 rounded-xs flex items-center justify-center'
|
|
36
36
|
onClick={() => props.onAction?.('zoom-out')}
|
|
37
37
|
title='Zoom out'
|
|
38
38
|
>
|
|
@@ -47,7 +47,7 @@ export const ActionControls = (props: ControlProps): JSX.Element => {
|
|
|
47
47
|
<div class={`flex flex-row gap-2 ${props.class ?? ''}`}>
|
|
48
48
|
<button
|
|
49
49
|
type='button'
|
|
50
|
-
class='dx-button dx-focus-ring w-10 h-10 min-
|
|
50
|
+
class='dx-button dx-focus-ring w-10 h-10 min-h-[2.5rem] px-3 rounded-xs flex items-center justify-center'
|
|
51
51
|
onClick={() => props.onAction?.('start')}
|
|
52
52
|
title='Start'
|
|
53
53
|
>
|
|
@@ -55,7 +55,7 @@ export const ActionControls = (props: ControlProps): JSX.Element => {
|
|
|
55
55
|
</button>
|
|
56
56
|
<button
|
|
57
57
|
type='button'
|
|
58
|
-
class='dx-button dx-focus-ring w-10 h-10 min-
|
|
58
|
+
class='dx-button dx-focus-ring w-10 h-10 min-h-[2.5rem] px-3 rounded-xs flex items-center justify-center'
|
|
59
59
|
onClick={() => props.onAction?.('toggle')}
|
|
60
60
|
title='Toggle'
|
|
61
61
|
>
|