@dxos/solid-ui-geo 0.8.4-main.bc674ce → 0.8.4-main.ef1bc66f44
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 +5 -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 +5 -5
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/src/components/Globe/Globe.tsx +5 -5
|
@@ -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,
|