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

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/solid-ui-geo",
3
- "version": "0.8.4-main.6fa680abb7",
3
+ "version": "0.8.4-main.7996785055",
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.6fa680abb7",
53
- "@dxos/node-std": "0.8.4-main.6fa680abb7",
54
- "@dxos/log": "0.8.4-main.6fa680abb7",
55
- "@dxos/debug": "0.8.4-main.6fa680abb7",
56
- "@dxos/ui-theme": "0.8.4-main.6fa680abb7",
57
- "@dxos/util": "0.8.4-main.6fa680abb7"
52
+ "@dxos/log": "0.8.4-main.7996785055",
53
+ "@dxos/async": "0.8.4-main.7996785055",
54
+ "@dxos/node-std": "0.8.4-main.7996785055",
55
+ "@dxos/ui-theme": "0.8.4-main.7996785055",
56
+ "@dxos/util": "0.8.4-main.7996785055",
57
+ "@dxos/debug": "0.8.4-main.7996785055"
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.6fa680abb7"
71
+ "@dxos/storybook-utils": "0.8.4-main.7996785055"
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 StoryProps = Pick<GlobeRootProps, 'zoom' | 'translation' | 'rotation'> &
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
- }: StoryProps) => {
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
- <div ref={containerRef} class={`relative flex grow overflow-hidden ${props.class ?? ''}`} {...props}>
139
- <GlobeContextProvider size={size()} {...props}>
139
+ <GlobeContextProvider size={size()} {...props}>
140
+ <div ref={containerRef} class={mx('relative dx-container')} {...props}>
140
141
  {props.children}
141
- </GlobeContextProvider>
142
- </div>
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;