@dxos/react-ui-geo 0.8.4-main.84f28bd → 0.8.4-main.8baae0fced

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.
Files changed (92) hide show
  1. package/LICENSE +102 -5
  2. package/data/airports.ts +1 -1
  3. package/data/cities.ts +1 -1
  4. package/data/countries-110m.ts +1 -1
  5. package/data/countries-dots-3.ts +1 -1
  6. package/data/countries-dots-4.ts +1 -1
  7. package/dist/lib/browser/{countries-110m-37VAAFCK.mjs → countries-110m-RE5RNRQG.mjs} +1 -1
  8. package/dist/lib/browser/countries-110m-RE5RNRQG.mjs.map +7 -0
  9. package/dist/lib/browser/data.mjs +4 -3
  10. package/dist/lib/browser/data.mjs.map +4 -4
  11. package/dist/lib/browser/index.mjs +388 -451
  12. package/dist/lib/browser/index.mjs.map +3 -3
  13. package/dist/lib/browser/meta.json +1 -1
  14. package/dist/lib/browser/translations.mjs +19 -0
  15. package/dist/lib/browser/translations.mjs.map +7 -0
  16. package/dist/lib/node-esm/{countries-110m-36TTKK5B.mjs → countries-110m-4EDBXSFJ.mjs} +1 -1
  17. package/dist/lib/node-esm/countries-110m-4EDBXSFJ.mjs.map +7 -0
  18. package/dist/lib/node-esm/data.mjs +5 -3
  19. package/dist/lib/node-esm/data.mjs.map +4 -4
  20. package/dist/lib/node-esm/index.mjs +388 -450
  21. package/dist/lib/node-esm/index.mjs.map +3 -3
  22. package/dist/lib/node-esm/meta.json +1 -1
  23. package/dist/lib/node-esm/translations.mjs +21 -0
  24. package/dist/lib/node-esm/translations.mjs.map +7 -0
  25. package/dist/types/data/airports.d.ts +4 -4
  26. package/dist/types/data/airports.d.ts.map +1 -1
  27. package/dist/types/data/cities.d.ts.map +1 -1
  28. package/dist/types/data/countries-110m.d.ts.map +1 -1
  29. package/dist/types/data/countries-dots-3.d.ts.map +1 -1
  30. package/dist/types/data/countries-dots-4.d.ts.map +1 -1
  31. package/dist/types/src/components/Globe/Globe.d.ts +6 -4
  32. package/dist/types/src/components/Globe/Globe.d.ts.map +1 -1
  33. package/dist/types/src/components/Globe/Globe.stories.d.ts +27 -9
  34. package/dist/types/src/components/Globe/Globe.stories.d.ts.map +1 -1
  35. package/dist/types/src/components/Map/Map.d.ts +44 -18
  36. package/dist/types/src/components/Map/Map.d.ts.map +1 -1
  37. package/dist/types/src/components/Map/Map.stories.d.ts +14 -8
  38. package/dist/types/src/components/Map/Map.stories.d.ts.map +1 -1
  39. package/dist/types/src/components/Toolbar/Controls.d.ts.map +1 -1
  40. package/dist/types/src/components/index.d.ts +0 -1
  41. package/dist/types/src/components/index.d.ts.map +1 -1
  42. package/dist/types/src/hooks/context.d.ts +6 -8
  43. package/dist/types/src/hooks/context.d.ts.map +1 -1
  44. package/dist/types/src/hooks/useDrag.d.ts.map +1 -1
  45. package/dist/types/src/hooks/useGlobeZoomHandler.d.ts +2 -2
  46. package/dist/types/src/hooks/useGlobeZoomHandler.d.ts.map +1 -1
  47. package/dist/types/src/hooks/useMapZoomHandler.d.ts +2 -2
  48. package/dist/types/src/hooks/useMapZoomHandler.d.ts.map +1 -1
  49. package/dist/types/src/hooks/useSpinner.d.ts +1 -1
  50. package/dist/types/src/hooks/useSpinner.d.ts.map +1 -1
  51. package/dist/types/src/hooks/useTour.d.ts +4 -3
  52. package/dist/types/src/hooks/useTour.d.ts.map +1 -1
  53. package/dist/types/src/index.d.ts +1 -2
  54. package/dist/types/src/index.d.ts.map +1 -1
  55. package/dist/types/src/translations.d.ts +12 -0
  56. package/dist/types/src/translations.d.ts.map +1 -0
  57. package/dist/types/src/types.d.ts +2 -1
  58. package/dist/types/src/types.d.ts.map +1 -1
  59. package/dist/types/src/util/debug.d.ts.map +1 -1
  60. package/dist/types/src/util/inertia.d.ts.map +1 -1
  61. package/dist/types/src/util/path.d.ts +5 -8
  62. package/dist/types/src/util/path.d.ts.map +1 -1
  63. package/dist/types/src/util/render.d.ts +4 -4
  64. package/dist/types/src/util/render.d.ts.map +1 -1
  65. package/dist/types/tsconfig.tsbuildinfo +1 -1
  66. package/package.json +44 -35
  67. package/src/components/Globe/Globe.stories.tsx +82 -35
  68. package/src/components/Globe/Globe.tsx +133 -81
  69. package/src/components/Map/Map.stories.tsx +27 -15
  70. package/src/components/Map/Map.tsx +231 -99
  71. package/src/components/Toolbar/Controls.tsx +14 -20
  72. package/src/components/index.ts +0 -2
  73. package/src/hooks/context.tsx +11 -34
  74. package/src/hooks/useGlobeZoomHandler.ts +9 -3
  75. package/src/hooks/useMapZoomHandler.ts +1 -1
  76. package/src/hooks/useSpinner.ts +1 -1
  77. package/src/hooks/useTour.ts +10 -8
  78. package/src/index.ts +1 -2
  79. package/src/translations.ts +20 -0
  80. package/src/types.ts +3 -1
  81. package/src/util/inertia.ts +1 -1
  82. package/src/util/path.ts +5 -6
  83. package/src/util/render.ts +4 -3
  84. package/dist/lib/browser/chunk-CYCBMCOP.mjs +0 -9
  85. package/dist/lib/browser/chunk-CYCBMCOP.mjs.map +0 -7
  86. package/dist/lib/browser/countries-110m-37VAAFCK.mjs.map +0 -7
  87. package/dist/lib/node-esm/chunk-OPJPAAEK.mjs +0 -11
  88. package/dist/lib/node-esm/chunk-OPJPAAEK.mjs.map +0 -7
  89. package/dist/lib/node-esm/countries-110m-36TTKK5B.mjs.map +0 -7
  90. package/dist/types/src/components/types.d.ts +0 -15
  91. package/dist/types/src/components/types.d.ts.map +0 -1
  92. package/src/components/types.ts +0 -19
@@ -1,15 +1,33 @@
1
- import '@dxos-theme';
2
- import { type Meta } from '@storybook/react-vite';
1
+ import { type StoryObj } from '@storybook/react-vite';
3
2
  import React from 'react';
4
- declare const meta: Meta;
3
+ import { type GlobeCanvasProps, type GlobeRootProps } from './Globe';
4
+ type DefaultStoryProps = Pick<GlobeRootProps, 'zoom' | 'translation' | 'rotation'> & Pick<GlobeCanvasProps, 'projection' | 'styles'> & {
5
+ drag?: boolean;
6
+ spin?: boolean;
7
+ tour?: boolean;
8
+ xAxis?: boolean;
9
+ };
10
+ declare const DefaultStory: ({ zoom: zoomProp, translation, rotation, projection, styles, drag, spin, tour, xAxis, }: DefaultStoryProps) => React.JSX.Element;
11
+ declare const meta: {
12
+ title: string;
13
+ component: React.ForwardRefExoticComponent<Omit<Partial<Pick<import("../../hooks").GlobeContextType, "center" | "rotation" | "translation" | "zoom">>, "className"> & {
14
+ classNames?: import("@dxos/ui-types").ClassNameValue;
15
+ } & Pick<React.HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
16
+ render: ({ zoom: zoomProp, translation, rotation, projection, styles, drag, spin, tour, xAxis, }: DefaultStoryProps) => React.JSX.Element;
17
+ decorators: import("@storybook/react").Decorator[];
18
+ parameters: {
19
+ layout: string;
20
+ };
21
+ };
5
22
  export default meta;
6
23
  export declare const Earth1: () => React.JSX.Element;
7
24
  export declare const Earth2: () => React.JSX.Element;
8
25
  export declare const Mercator: () => React.JSX.Element;
9
- export declare const Globe1: () => React.JSX.Element;
10
- export declare const Globe2: () => React.JSX.Element;
11
- export declare const Globe3: () => React.JSX.Element;
12
- export declare const Globe4: () => React.JSX.Element;
13
- export declare const Globe5: () => React.JSX.Element;
14
- export declare const Globe6: () => React.JSX.Element;
26
+ type Story = StoryObj<typeof DefaultStory>;
27
+ export declare const Globe1: Story;
28
+ export declare const Globe2: Story;
29
+ export declare const Globe3: Story;
30
+ export declare const Globe4: Story;
31
+ export declare const Globe5: Story;
32
+ export declare const Globe6: Story;
15
33
  //# sourceMappingURL=Globe.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Globe.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Globe/Globe.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAGlD,OAAO,KAAoC,MAAM,OAAO,CAAC;AAoNzD,QAAA,MAAM,IAAI,EAAE,IAIX,CAAC;AAEF,eAAe,IAAI,CAAC;AAE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;AAE3C,eAAO,MAAM,MAAM,EAAE,KAQpB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAQpB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAQpB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAQpB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAQpB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAUpB,CAAC"}
@@ -1,34 +1,60 @@
1
1
  import 'leaflet/dist/leaflet.css';
2
- import L, { type ControlPosition, type LatLngExpression } from 'leaflet';
3
- import React from 'react';
4
- import type { MapContainerProps } from 'react-leaflet';
2
+ import { type ControlPosition, type LatLngLiteral } from 'leaflet';
3
+ import React, { type PropsWithChildren } from 'react';
4
+ import { type MapContainerProps } from 'react-leaflet';
5
5
  import { type ThemedClassName } from '@dxos/react-ui';
6
+ import { type GeoMarker } from '../../types';
6
7
  import { type ControlProps } from '../Toolbar';
7
- import { type MapCanvasProps } from '../types';
8
- type MapRootProps = ThemedClassName<MapContainerProps>;
9
8
  type MapController = {
10
- setCenter: (center: LatLngExpression, zoom?: number) => void;
9
+ getCenter: () => LatLngLiteral | undefined;
10
+ getZoom: () => number | undefined;
11
+ setCenter: (center: LatLngLiteral, zoom?: number) => void;
11
12
  setZoom: (cb: (zoom: number) => number) => void;
12
13
  };
14
+ type MapContextValue = {
15
+ attention?: boolean;
16
+ onChange?: (ev: {
17
+ center: LatLngLiteral;
18
+ zoom: number;
19
+ }) => void;
20
+ };
21
+ type MapRootProps = Pick<MapContextValue, 'onChange'>;
22
+ type MapContentProps = ThemedClassName<Omit<MapContainerProps, 'children'> & PropsWithChildren>;
23
+ type MapTilesProps = {};
24
+ declare function MapTiles(_props: MapTilesProps): React.JSX.Element;
25
+ declare namespace MapTiles {
26
+ var displayName: string;
27
+ }
28
+ type MapMarkersProps = {
29
+ markers?: GeoMarker[];
30
+ selected?: string[];
31
+ };
32
+ declare function MapMarkers({ selected, markers }: MapMarkersProps): React.JSX.Element;
33
+ declare namespace MapMarkers {
34
+ var displayName: string;
35
+ }
13
36
  type MapControlProps = {
14
37
  position?: ControlPosition;
15
38
  } & Pick<ControlProps, 'onAction'>;
16
39
  export declare const Map: {
17
- Root: ({ classNames, center, zoom, ...props }: MapRootProps) => React.JSX.Element;
18
- Canvas: React.ForwardRefExoticComponent<Omit<{
19
- markers?: import("../..").MapMarker[];
20
- selected?: string[];
21
- zoom?: number;
22
- center?: L.LatLngLiteral;
23
- onChange?: (ev: {
24
- center: L.LatLngLiteral;
25
- zoom: number;
26
- }) => void;
40
+ Root: React.ForwardRefExoticComponent<Omit<MapRootProps, "className"> & {
41
+ classNames?: import("@dxos/ui-types").ClassNameValue;
42
+ } & Pick<React.HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
43
+ Content: React.ForwardRefExoticComponent<Omit<Omit<MapContainerProps, "children"> & {
44
+ children?: React.ReactNode | undefined;
27
45
  }, "className"> & {
28
- classNames?: import("@dxos/react-ui-types").ClassNameValue;
46
+ classNames?: import("@dxos/ui-types").ClassNameValue;
29
47
  } & React.RefAttributes<MapController>>;
48
+ Tiles: {
49
+ (_props: MapTilesProps): React.JSX.Element;
50
+ displayName: string;
51
+ };
52
+ Markers: {
53
+ ({ selected, markers }: MapMarkersProps): React.JSX.Element;
54
+ displayName: string;
55
+ };
30
56
  Zoom: ({ onAction, position, ...props }: MapControlProps) => React.JSX.Element;
31
57
  Action: ({ onAction, position, ...props }: MapControlProps) => React.JSX.Element;
32
58
  };
33
- export { type MapCanvasProps, type MapController };
59
+ export { type MapController, type MapRootProps, type MapContentProps, type MapTilesProps, type MapMarkersProps, type MapControlProps, };
34
60
  //# sourceMappingURL=Map.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Map.d.ts","sourceRoot":"","sources":["../../../../../src/components/Map/Map.tsx"],"names":[],"mappings":"AAKA,OAAO,0BAA0B,CAAC;AAElC,OAAO,CAAC,EAAE,EAA4C,KAAK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IACP,KAAK;iBA1KmB,aAAa;;;IA2KrC,OAAO;gCAxGkC,eAAe;;;IAyGxD,IAAI,qCArB4D,eAAe;IAsB/E,MAAM,qCAhB6D,eAAe;CAiBnF,CAAC;AAEF,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,eAAe,GACrB,CAAC"}
@@ -1,13 +1,19 @@
1
- import '@dxos-theme';
2
- import { type StoryObj, type Meta } from '@storybook/react-vite';
1
+ import { type StoryObj } from '@storybook/react-vite';
3
2
  import React from 'react';
4
- import { type MapMarker } from '../../types';
5
- declare const DefaultStory: ({ markers }: {
6
- markers?: MapMarker[];
7
- }) => React.JSX.Element;
8
- declare const meta: Meta<typeof DefaultStory>;
3
+ import { type GeoMarker } from '../../types';
4
+ declare const meta: {
5
+ title: string;
6
+ component: any;
7
+ render: ({ markers }: {
8
+ markers?: GeoMarker[];
9
+ }) => React.JSX.Element;
10
+ decorators: import("@storybook/react").Decorator[];
11
+ parameters: {
12
+ layout: string;
13
+ };
14
+ };
9
15
  export default meta;
10
- type Story = StoryObj<typeof DefaultStory>;
16
+ type Story = StoryObj<typeof meta>;
11
17
  export declare const Default: Story;
12
18
  export declare const WithMarkers: Story;
13
19
  //# sourceMappingURL=Map.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Map.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Map/Map.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,IAAI,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAmB,MAAM,OAAO,CAAC;AAMxC,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,QAAA,MAAM,YAAY,GAAI,aAAkB;IAAE,OAAO,CAAC,EAAE,SAAS,EAAE,CAAA;CAAE,sBAWhE,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CAInC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAC;AAE3C,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,WAAW,EAAE,KAoBzB,CAAC"}
1
+ {"version":3,"file":"Map.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Map/Map.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAmB,MAAM,OAAO,CAAC;AAKxC,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAmB7C,QAAA,MAAM,IAAI;;eAEe,GAAG;0BAlBY;QAAE,OAAO,CAAC,EAAE,SAAS,EAAE,CAAA;KAAE;;;QAsB7D,MAAM;;CAE2B,CAAC;eAEvB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,WAAW,EAAE,KA2BzB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Controls.d.ts","sourceRoot":"","sources":["../../../../../src/components/Toolbar/Controls.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAc,KAAK,eAAe,EAAW,MAAM,gBAAgB,CAAC;AAE3E,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,CAAC;AAExE,MAAM,MAAM,YAAY,GAAG,eAAe,CAAC;IACzC,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,CAAC;CAC5C,CAAC,CAAC;AAEH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,eAAe,EAAE,MAAM,CAK5D,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,0BAA0B,YAAY,sBAuBlE,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,0BAA0B,YAAY,sBAuBpE,CAAC"}
1
+ {"version":3,"file":"Controls.d.ts","sourceRoot":"","sources":["../../../../../src/components/Toolbar/Controls.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAc,KAAK,eAAe,EAA2B,MAAM,gBAAgB,CAAC;AAI3F,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,CAAC;AAExE,MAAM,MAAM,YAAY,GAAG,eAAe,CAAC;IACzC,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,CAAC;CAC5C,CAAC,CAAC;AAEH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,eAAe,EAAE,MAAM,CAK5D,CAAC;AAEF,eAAO,MAAM,YAAY,6BAA8B,YAAY,sBAmBlE,CAAC;AAEF,eAAO,MAAM,cAAc,6BAA8B,YAAY,sBAmBpE,CAAC"}
@@ -1,4 +1,3 @@
1
- export * from './types';
2
1
  export * from './Globe';
3
2
  export * from './Map';
4
3
  export * from './Toolbar';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC;AAExB,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC"}
@@ -1,5 +1,5 @@
1
- import React, { type Dispatch, type PropsWithChildren, type SetStateAction } from 'react';
2
- import { type LatLng } from '../util';
1
+ import { type Dispatch, type SetStateAction } from 'react';
2
+ import { type LatLngLiteral } from '../types';
3
3
  export type Size = {
4
4
  width: number;
5
5
  height: number;
@@ -11,16 +11,14 @@ export type Point = {
11
11
  export type Vector = [number, number, number];
12
12
  export type GlobeContextType = {
13
13
  size: Size;
14
- center: LatLng;
15
- scale: number;
14
+ center?: LatLngLiteral;
15
+ zoom: number;
16
16
  translation: Point;
17
17
  rotation: Vector;
18
- setCenter: Dispatch<SetStateAction<LatLng>>;
19
- setScale: Dispatch<SetStateAction<number>>;
18
+ setCenter: Dispatch<SetStateAction<LatLngLiteral>>;
19
+ setZoom: Dispatch<SetStateAction<number>>;
20
20
  setTranslation: Dispatch<SetStateAction<Point>>;
21
21
  setRotation: Dispatch<SetStateAction<Vector>>;
22
22
  };
23
- export type GlobeContextProviderProps = PropsWithChildren<Partial<Pick<GlobeContextType, 'size' | 'center' | 'scale' | 'translation' | 'rotation'>>>;
24
- export declare const GlobeContextProvider: ({ children, size, center: _center, scale: _scale, translation: _translation, rotation: _rotation, }: GlobeContextProviderProps) => React.JSX.Element;
25
23
  export declare const useGlobeContext: () => GlobeContextType;
26
24
  //# sourceMappingURL=context.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../src/hooks/context.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAiB,KAAK,QAAQ,EAAE,KAAK,iBAAiB,EAAE,KAAK,cAAc,EAAc,MAAM,OAAO,CAAC;AAKrH,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,SAAS,CAAC;AAGtC,MAAM,MAAM,IAAI,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AACrD,MAAM,MAAM,KAAK,GAAG;IAAE,CAAC,EA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B,SA2BrF,CAAC"}
1
+ {"version":3,"file":"useDrag.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useDrag.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAGrD,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,KAAK,CAAC;IAC/B,UAAU,EAAE,eAAe,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;CAC5C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,OAAO,gBAAiB,eAAe,GAAG,IAAI,YAAW,WAAW,SA2BhF,CAAC"}
@@ -1,3 +1,3 @@
1
- import { type GlobeController, type ControlProps } from '../components';
2
- export declare const useGlobeZoomHandler: (controller: GlobeController | null | undefined) => ControlProps["onAction"];
1
+ import { type ControlProps, type GlobeController } from '../components';
2
+ export declare const useGlobeZoomHandler: (controller: GlobeController | null | undefined) => ControlProps['onAction'];
3
3
  //# sourceMappingURL=useGlobeZoomHandler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useGlobeZoomHandler.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useGlobeZoomHandler.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAExE,eAAO,MAAM,mBAAmB,GAAI,YAAY,eAAe,GAAG,IAAI,GAAG,SAAS,KAAG,YAAY,CAAC,UAAU,CAoB3G,CAAC"}
1
+ {"version":3,"file":"useGlobeZoomHandler.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useGlobeZoomHandler.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAIxE,eAAO,MAAM,mBAAmB,eAAgB,eAAe,GAAG,IAAI,GAAG,SAAS,KAAG,YAAY,CAAC,UAAU,CAwB3G,CAAC"}
@@ -1,3 +1,3 @@
1
- import { type MapController, type ControlProps } from '../components';
2
- export declare const useMapZoomHandler: (controller: MapController | null | undefined) => ControlProps["onAction"];
1
+ import { type ControlProps, type MapController } from '../components';
2
+ export declare const useMapZoomHandler: (controller: MapController | null | undefined) => ControlProps['onAction'];
3
3
  //# sourceMappingURL=useMapZoomHandler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useMapZoomHandler.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useMapZoomHandler.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAEtE,eAAO,MAAM,iBAAiB,GAAI,YAAY,aAAa,GAAG,IAAI,GAAG,SAAS,KAAG,YAAY,CAAC,UAAU,CAoBvG,CAAC"}
1
+ {"version":3,"file":"useMapZoomHandler.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useMapZoomHandler.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AAEtE,eAAO,MAAM,iBAAiB,eAAgB,aAAa,GAAG,IAAI,GAAG,SAAS,KAAG,YAAY,CAAC,UAAU,CAoBvG,CAAC"}
@@ -1,5 +1,5 @@
1
- import { type Vector } from './context';
2
1
  import { type GlobeController } from '../components';
2
+ import { type Vector } from './context';
3
3
  export type SpinnerOptions = {
4
4
  disabled?: boolean;
5
5
  delta?: Vector;
@@ -1 +1 @@
1
- {"version":3,"file":"useSpinner.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useSpinner.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAErD,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU,GAAI,aAAa,eAAe,GAAG,IAAI,EAAE,UAAS,cAAmB,mBAiD3F,CAAC"}
1
+ {"version":3,"file":"useSpinner.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useSpinner.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,WAAW,CAAC;AAExC,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU,gBAAiB,eAAe,GAAG,IAAI,YAAW,cAAc,mBAiDtF,CAAC"}
@@ -1,6 +1,7 @@
1
- import { type SetStateAction, type Dispatch } from 'react';
1
+ import { type Dispatch, type SetStateAction } from 'react';
2
2
  import type { GlobeController } from '../components';
3
- import { type LatLng, type StyleSet } from '../util';
3
+ import { type LatLngLiteral } from '../types';
4
+ import { type StyleSet } from '../util';
4
5
  export type TourOptions = {
5
6
  running?: boolean;
6
7
  disabled?: boolean;
@@ -14,5 +15,5 @@ export type TourOptions = {
14
15
  * Iterates between points.
15
16
  * Inspired by: https://observablehq.com/@mbostock/top-100-cities
16
17
  */
17
- export declare const useTour: (controller?: GlobeController | null, points?: LatLng[], options?: TourOptions) => [boolean, Dispatch<SetStateAction<boolean>>];
18
+ export declare const useTour: (controller?: GlobeController | null, points?: LatLngLiteral[], options?: TourOptions) => [boolean, Dispatch<SetStateAction<boolean>>];
18
19
  //# sourceMappingURL=useTour.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useTour.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useTour.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,QAAQ,EAAgC,MAAM,OAAO,CAAC;AAGzF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAiB,KAAK,MAAM,EAAsB,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAC;AAMxF,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,QAAQ,CAAC;CACnB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,OAAO,GAClB,aAAa,eAAe,GAAG,IAAI,EACnC,SAAS,MAAM,EAAE,EACjB,UAAS,WAAgB,KACxB,CAAC,OAAO,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAwF7C,CAAC"}
1
+ {"version":3,"file":"useTour.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useTour.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAgC,MAAM,OAAO,CAAC;AAGzF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,KAAK,QAAQ,EAAqC,MAAM,SAAS,CAAC;AAM3E,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,QAAQ,CAAC;CACnB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,OAAO,gBACL,eAAe,GAAG,IAAI,WAC1B,aAAa,EAAE,YACf,WAAW,KACnB,CAAC,OAAO,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAyF7C,CAAC"}
@@ -1,6 +1,5 @@
1
1
  export * from './components';
2
- export * from './data';
3
2
  export * from './hooks';
4
- export * from './types';
3
+ export type * from './types';
5
4
  export * from './util';
6
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,mBAAmB,SAAS,CAAC;AAC7B,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,12 @@
1
+ export declare const translationKey = "@dxos/react-ui-geo";
2
+ export declare const translations: [{
3
+ readonly 'en-US': {
4
+ readonly "@dxos/react-ui-geo": {
5
+ readonly 'zoom-in-icon.button': 'Zoom in';
6
+ readonly 'zoom-out-icon.button': 'Zoom out';
7
+ readonly 'start-icon.button': 'Start';
8
+ readonly 'toggle-icon.button': 'Toggle';
9
+ };
10
+ };
11
+ }];
12
+ //# sourceMappingURL=translations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc,uBAAuB,CAAC;AAEnD,eAAO,MAAM,YAAY;;;qBAIjB,qBAAqB,EAAE,SAAS;qBAChC,sBAAsB,EAAE,UAAU;qBAClC,mBAAmB,EAAE,OAAO;qBAC5B,oBAAoB,EAAE,QAAQ;;;EAIP,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { type LatLngLiteral } from 'leaflet';
2
- export type MapMarker = {
2
+ export { type LatLngLiteral };
3
+ export type GeoMarker = {
3
4
  id: string;
4
5
  title?: string;
5
6
  location: LatLngLiteral;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,MAAM,MAAM,SAAS,GAAG;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,aAAa,CAAC;CACzB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,OAAO,EAAE,KAAK,aAAa,EAAE,CAAC;AAE9B,MAAM,MAAM,SAAS,GAAG;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,aAAa,CAAC;CACzB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../../../src/util/debug.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,KAAK,GAAI,CAAC,GAAG,IAAI,EAAE,IAAI,MAAM,CAAC,KAAG,CAU7C,CAAC"}
1
+ {"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../../../src/util/debug.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,KAAK,GAAI,CAAC,GAAG,IAAI,MAAM,MAAM,CAAC,KAAG,CAU7C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"inertia.d.ts","sourceRoot":"","sources":["../../../../src/util/inertia.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,YAAY,GACtB,MAAM,OAAO,EAAE,MACf,UAAU,MAAM,EAAE,EAAE,SAAS,MAAM,EAAE,KAAG,MAAM,EACK,CAAC;AAEvD;;GAEG;AAEH,eAAO,MAAM,cAAc,GAAI,WAAM,EAAE,WAAM,EAAE,eAAU,EAAE,YAAO;;;;;;;;;CA+BjE,CAAC"}
1
+ {"version":3,"file":"inertia.d.ts","sourceRoot":"","sources":["../../../../src/util/inertia.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,YAAY,SAChB,OAAO,EAAE,gBACL,MAAM,EAAE,WAAW,MAAM,EAAE,KAAG,MAAM,EACK,CAAC;AAEvD;;GAEG;AAEH,eAAO,MAAM,cAAc;;;;;;;;;CA+B1B,CAAC"}
@@ -1,15 +1,12 @@
1
1
  import { type GeoGeometryObjects } from 'd3';
2
2
  import { type Point, type Polygon, type Position } from 'geojson';
3
+ import { type LatLngLiteral } from 'leaflet';
3
4
  import type { Vector } from '../hooks';
4
- export type LatLng = {
5
- lat: number;
6
- lng: number;
7
- };
8
5
  export declare const positionToRotation: ([lng, lat]: [number, number], tilt?: number) => Vector;
9
- export declare const geoToPosition: ({ lat, lng }: LatLng) => [number, number];
10
- export declare const geoPoint: (point: LatLng) => Point;
11
- export declare const geoCircle: ({ lat, lng }: LatLng, radius: number) => Polygon;
12
- export declare const geoLine: (p1: LatLng, p2: LatLng) => GeoGeometryObjects;
6
+ export declare const geoToPosition: ({ lat, lng }: LatLngLiteral) => [number, number];
7
+ export declare const geoPoint: (point: LatLngLiteral) => Point;
8
+ export declare const geoCircle: ({ lat, lng }: LatLngLiteral, radius: number) => Polygon;
9
+ export declare const geoLine: (p1: LatLngLiteral, p2: LatLngLiteral) => GeoGeometryObjects;
13
10
  export declare const closestPoint: (points: Position[], target: Position) => Position | null;
14
11
  export declare const getDistance: (point1: Position, point2: Position) => number;
15
12
  //# sourceMappingURL=path.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../../../../src/util/path.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,kBAAkB,EAA4B,MAAM,IAAI,CAAC;AACvE,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAC;AAElE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,MAAM,MAAM,MAAM,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AAElD,eAAO,MAAM,kBAAkB,GAAI,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,aAAQ,KAAG,MAA+B,CAAC;AAE5G,eAAO,MAAM,aAAa,GAAI,cAAc,MAAM,KAAG,CAAC,MAAM,EAAE,MAAM,CAAe,CAAC;AAEpF,eAAO,MAAM,QAAQ,GAAI,OAAO,MAAM,KAAG,KAA+D,CAAC;AAGzG,eAAO,MAAM,SAAS,GAAI,cAAc,MAAM,EAAE,QAAQ,MAAM,KAAG,OACd,CAAC;AAEpD,eAAO,MAAM,OAAO,GAAI,IAAI,MAAM,EAAE,IAAI,MAAM,KAAG,kBAM/C,CAAC;AAEH,eAAO,MAAM,YAAY,GAAI,QAAQ,QAAQ,EAAE,EAAE,QAAQ,QAAQ,KAAG,QAAQ,GAAG,IAiB9E,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,QAAQ,QAAQ,EAAE,QAAQ,QAAQ,KAAG,MAIhE,CAAC"}
1
+ {"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../../../../src/util/path.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,kBAAkB,EAA4B,MAAM,IAAI,CAAC;AACvE,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAC;AAClE,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,eAAO,MAAM,kBAAkB,eAAgB,CAAC,MAAM,EAAE,MAAM,CAAC,oBAAa,MAA+B,CAAC;AAE5G,eAAO,MAAM,aAAa,iBAAkB,aAAa,KAAG,CAAC,MAAM,EAAE,MAAM,CAAe,CAAC;AAE3F,eAAO,MAAM,QAAQ,UAAW,aAAa,KAAG,KAA+D,CAAC;AAGhH,eAAO,MAAM,SAAS,iBAAkB,aAAa,UAAU,MAAM,KAAG,OACrB,CAAC;AAEpD,eAAO,MAAM,OAAO,OAAQ,aAAa,MAAM,aAAa,KAAG,kBAM7D,CAAC;AAEH,eAAO,MAAM,YAAY,WAAY,QAAQ,EAAE,UAAU,QAAQ,KAAG,QAAQ,GAAG,IAiB9E,CAAC;AAEF,eAAO,MAAM,WAAW,WAAY,QAAQ,UAAU,QAAQ,KAAG,MAIhE,CAAC"}
@@ -1,14 +1,14 @@
1
1
  import { type GeoPath, type GeoPermissibleObjects } from 'd3';
2
2
  import { type Topology } from 'topojson-specification';
3
- import { type LatLng } from './path';
3
+ import { type LatLngLiteral } from '../types';
4
4
  export type Styles = Record<string, any>;
5
5
  export type Style = 'background' | 'water' | 'graticule' | 'land' | 'border' | 'dots' | 'point' | 'line' | 'cursor' | 'arc';
6
6
  export type StyleSet = Partial<Record<Style, Styles>>;
7
7
  export type Features = {
8
- points?: LatLng[];
8
+ points?: LatLngLiteral[];
9
9
  lines?: {
10
- source: LatLng;
11
- target: LatLng;
10
+ source: LatLngLiteral;
11
+ target: LatLngLiteral;
12
12
  }[];
13
13
  };
14
14
  export type Layer = {
@@ -1 +1 @@
1
- {"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../../../src/util/render.ts"],"names":[],"mappings":"AAI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