@dxos/solid-ui-geo 0.8.4-main.59c2e9b → 0.8.4-main.6fa680abb7

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.
@@ -205,9 +205,9 @@ const GlobeCanvas = (props: GlobeCanvasProps) => {
205
205
  },
206
206
  translation,
207
207
  rotation,
208
- setZoom: (s) => {
209
- if (typeof s === 'function') {
210
- const is = interpolateNumber(zoomValue, s(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 = s;
225
- setZoom(s);
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]} !m-0`);
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-bs-[2.5rem] pli-3 rounded-sm flex items-center justify-center'
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-bs-[2.5rem] pli-3 rounded-sm flex items-center justify-center'
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-bs-[2.5rem] pli-3 rounded-sm flex items-center justify-center'
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-bs-[2.5rem] pli-3 rounded-sm flex items-center justify-center'
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
  >