@dxos/react-ui-geo 0.8.1 → 0.8.2-main.2f9c567

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.
@@ -1 +1 @@
1
- {"inputs":{"packages/ui/react-ui-geo/data/countries-110m.ts":{"bytes":1352295,"imports":[],"format":"esm"},"packages/ui/react-ui-geo/src/data.ts":{"bytes":914,"imports":[{"path":"packages/ui/react-ui-geo/data/countries-110m.ts","kind":"dynamic-import","original":"../data/countries-110m.ts"}],"format":"esm"},"packages/ui/react-ui-geo/src/components/types.ts":{"bytes":983,"imports":[],"format":"esm"},"packages/ui/react-ui-geo/src/hooks/context.tsx":{"bytes":5204,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-geo/src/util/debug.ts":{"bytes":1506,"imports":[],"format":"esm"},"packages/ui/react-ui-geo/src/util/inertia.ts":{"bytes":21992,"imports":[{"path":"d3","kind":"import-statement","external":true},{"path":"versor","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-geo/src/util/path.ts":{"bytes":5846,"imports":[{"path":"d3","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-geo/src/util/render.ts":{"bytes":12455,"imports":[{"path":"d3","kind":"import-statement","external":true},{"path":"topojson-client","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-geo/src/util/path.ts","kind":"import-statement","original":"./path"}],"format":"esm"},"packages/ui/react-ui-geo/src/util/index.ts":{"bytes":747,"imports":[{"path":"packages/ui/react-ui-geo/src/util/debug.ts","kind":"import-statement","original":"./debug"},{"path":"packages/ui/react-ui-geo/src/util/inertia.ts","kind":"import-statement","original":"./inertia"},{"path":"packages/ui/react-ui-geo/src/util/path.ts","kind":"import-statement","original":"./path"},{"path":"packages/ui/react-ui-geo/src/util/render.ts","kind":"import-statement","original":"./render"}],"format":"esm"},"packages/ui/react-ui-geo/src/hooks/useDrag.ts":{"bytes":4691,"imports":[{"path":"d3","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-geo/src/util/index.ts","kind":"import-statement","original":"../util"}],"format":"esm"},"packages/ui/react-ui-geo/src/hooks/useGlobeZoomHandler.ts":{"bytes":2396,"imports":[{"path":"react","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-geo/src/hooks/useMapZoomHandler.ts":{"bytes":2362,"imports":[{"path":"react","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-geo/src/hooks/useSpinner.ts":{"bytes":5331,"imports":[{"path":"d3","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-geo/src/hooks/useTour.ts":{"bytes":15403,"imports":[{"path":"d3","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"versor","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-geo/src/util/index.ts","kind":"import-statement","original":"../util"}],"format":"esm"},"packages/ui/react-ui-geo/src/hooks/index.ts":{"bytes":997,"imports":[{"path":"packages/ui/react-ui-geo/src/hooks/context.tsx","kind":"import-statement","original":"./context"},{"path":"packages/ui/react-ui-geo/src/hooks/useDrag.ts","kind":"import-statement","original":"./useDrag"},{"path":"packages/ui/react-ui-geo/src/hooks/useGlobeZoomHandler.ts","kind":"import-statement","original":"./useGlobeZoomHandler"},{"path":"packages/ui/react-ui-geo/src/hooks/useMapZoomHandler.ts","kind":"import-statement","original":"./useMapZoomHandler"},{"path":"packages/ui/react-ui-geo/src/hooks/useSpinner.ts","kind":"import-statement","original":"./useSpinner"},{"path":"packages/ui/react-ui-geo/src/hooks/useTour.ts","kind":"import-statement","original":"./useTour"}],"format":"esm"},"packages/ui/react-ui-geo/src/components/Toolbar/Controls.tsx":{"bytes":5932,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-geo/src/components/Toolbar/index.ts":{"bytes":515,"imports":[{"path":"packages/ui/react-ui-geo/src/components/Toolbar/Controls.tsx","kind":"import-statement","original":"./Controls"}],"format":"esm"},"packages/ui/react-ui-geo/src/components/Globe/Globe.tsx":{"bytes":26472,"imports":[{"path":"d3","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-geo/src/hooks/index.ts","kind":"import-statement","original":"../../hooks"},{"path":"packages/ui/react-ui-geo/src/util/index.ts","kind":"import-statement","original":"../../util"},{"path":"packages/ui/react-ui-geo/src/components/Toolbar/index.ts","kind":"import-statement","original":"../Toolbar"}],"format":"esm"},"packages/ui/react-ui-geo/src/components/Globe/index.ts":{"bytes":506,"imports":[{"path":"packages/ui/react-ui-geo/src/components/Globe/Globe.tsx","kind":"import-statement","original":"./Globe"}],"format":"esm"},"packages/ui/react-ui-geo/src/components/Map/Map.tsx":{"bytes":20610,"imports":[{"path":"leaflet/dist/leaflet.css","kind":"import-statement","external":true},{"path":"leaflet","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-dom/client","kind":"import-statement","external":true},{"path":"react-leaflet","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-geo/src/components/Toolbar/index.ts","kind":"import-statement","original":"../Toolbar"}],"format":"esm"},"packages/ui/react-ui-geo/src/components/Map/index.ts":{"bytes":498,"imports":[{"path":"packages/ui/react-ui-geo/src/components/Map/Map.tsx","kind":"import-statement","original":"./Map"}],"format":"esm"},"packages/ui/react-ui-geo/src/components/index.ts":{"bytes":751,"imports":[{"path":"packages/ui/react-ui-geo/src/components/types.ts","kind":"import-statement","original":"./types"},{"path":"packages/ui/react-ui-geo/src/components/Globe/index.ts","kind":"import-statement","original":"./Globe"},{"path":"packages/ui/react-ui-geo/src/components/Map/index.ts","kind":"import-statement","original":"./Map"},{"path":"packages/ui/react-ui-geo/src/components/Toolbar/index.ts","kind":"import-statement","original":"./Toolbar"}],"format":"esm"},"packages/ui/react-ui-geo/src/types.ts":{"bytes":624,"imports":[],"format":"esm"},"packages/ui/react-ui-geo/src/index.ts":{"bytes":824,"imports":[{"path":"packages/ui/react-ui-geo/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/ui/react-ui-geo/src/data.ts","kind":"import-statement","original":"./data"},{"path":"packages/ui/react-ui-geo/src/hooks/index.ts","kind":"import-statement","original":"./hooks"},{"path":"packages/ui/react-ui-geo/src/types.ts","kind":"import-statement","original":"./types"},{"path":"packages/ui/react-ui-geo/src/util/index.ts","kind":"import-statement","original":"./util"}],"format":"esm"}},"outputs":{"packages/ui/react-ui-geo/dist/lib/node/data.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/ui/react-ui-geo/dist/lib/node/data.cjs":{"imports":[{"path":"packages/ui/react-ui-geo/dist/lib/node/chunk-LAICG6L2.cjs","kind":"import-statement"}],"exports":["loadTopology"],"entryPoint":"packages/ui/react-ui-geo/src/data.ts","inputs":{},"bytes":116},"packages/ui/react-ui-geo/dist/lib/node/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":65338},"packages/ui/react-ui-geo/dist/lib/node/index.cjs":{"imports":[{"path":"packages/ui/react-ui-geo/dist/lib/node/chunk-LAICG6L2.cjs","kind":"import-statement"},{"path":"d3","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"d3","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"d3","kind":"import-statement","external":true},{"path":"versor","kind":"import-statement","external":true},{"path":"d3","kind":"import-statement","external":true},{"path":"d3","kind":"import-statement","external":true},{"path":"topojson-client","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"d3","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"d3","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"versor","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"leaflet/dist/leaflet.css","kind":"import-statement","external":true},{"path":"leaflet","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-dom/client","kind":"import-statement","external":true},{"path":"react-leaflet","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"exports":["ActionControls","Globe","GlobeContextProvider","Map","ZoomControls","closestPoint","controlPositions","createLayers","geoCircle","geoInertiaDrag","geoLine","geoPoint","geoToPosition","getDistance","loadTopology","positionToRotation","renderLayers","restrictAxis","timer","useDrag","useGlobeContext","useGlobeZoomHandler","useMapZoomHandler","useSpinner","useTour"],"entryPoint":"packages/ui/react-ui-geo/src/index.ts","inputs":{"packages/ui/react-ui-geo/src/components/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-geo/src/components/Globe/Globe.tsx":{"bytesInOutput":5742},"packages/ui/react-ui-geo/src/hooks/context.tsx":{"bytesInOutput":960},"packages/ui/react-ui-geo/src/hooks/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-geo/src/hooks/useDrag.ts":{"bytesInOutput":855},"packages/ui/react-ui-geo/src/util/debug.ts":{"bytesInOutput":211},"packages/ui/react-ui-geo/src/util/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-geo/src/util/inertia.ts":{"bytesInOutput":4544},"packages/ui/react-ui-geo/src/util/path.ts":{"bytesInOutput":1051},"packages/ui/react-ui-geo/src/util/render.ts":{"bytesInOutput":2479},"packages/ui/react-ui-geo/src/hooks/useGlobeZoomHandler.ts":{"bytesInOutput":417},"packages/ui/react-ui-geo/src/hooks/useMapZoomHandler.ts":{"bytesInOutput":426},"packages/ui/react-ui-geo/src/hooks/useSpinner.ts":{"bytesInOutput":1141},"packages/ui/react-ui-geo/src/hooks/useTour.ts":{"bytesInOutput":3589},"packages/ui/react-ui-geo/src/components/Toolbar/Controls.tsx":{"bytesInOutput":1521},"packages/ui/react-ui-geo/src/components/Toolbar/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-geo/src/components/Globe/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-geo/src/components/Map/Map.tsx":{"bytesInOutput":4837},"packages/ui/react-ui-geo/src/components/Map/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-geo/src/index.ts":{"bytesInOutput":0}},"bytes":29085},"packages/ui/react-ui-geo/dist/lib/node/chunk-LAICG6L2.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":430},"packages/ui/react-ui-geo/dist/lib/node/chunk-LAICG6L2.cjs":{"imports":[{"path":"packages/ui/react-ui-geo/dist/lib/node/countries-110m-KQ5WAB2O.cjs","kind":"dynamic-import"}],"exports":["loadTopology"],"inputs":{"packages/ui/react-ui-geo/src/data.ts":{"bytesInOutput":102}},"bytes":214},"packages/ui/react-ui-geo/dist/lib/node/countries-110m-KQ5WAB2O.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":352619},"packages/ui/react-ui-geo/dist/lib/node/countries-110m-KQ5WAB2O.cjs":{"imports":[],"exports":["default"],"entryPoint":"packages/ui/react-ui-geo/data/countries-110m.ts","inputs":{"packages/ui/react-ui-geo/data/countries-110m.ts":{"bytesInOutput":420420}},"bytes":420572}}}
1
+ {"inputs":{"packages/ui/react-ui-geo/data/countries-110m.ts":{"bytes":1352295,"imports":[],"format":"esm"},"packages/ui/react-ui-geo/src/data.ts":{"bytes":914,"imports":[{"path":"packages/ui/react-ui-geo/data/countries-110m.ts","kind":"dynamic-import","original":"../data/countries-110m.ts"}],"format":"esm"},"packages/ui/react-ui-geo/src/components/types.ts":{"bytes":983,"imports":[],"format":"esm"},"packages/ui/react-ui-geo/src/hooks/context.tsx":{"bytes":5204,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-geo/src/util/debug.ts":{"bytes":1506,"imports":[],"format":"esm"},"packages/ui/react-ui-geo/src/util/inertia.ts":{"bytes":21983,"imports":[{"path":"d3","kind":"import-statement","external":true},{"path":"versor","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-geo/src/util/path.ts":{"bytes":5791,"imports":[{"path":"d3","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-geo/src/util/render.ts":{"bytes":12351,"imports":[{"path":"d3","kind":"import-statement","external":true},{"path":"topojson-client","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-geo/src/util/path.ts","kind":"import-statement","original":"./path"}],"format":"esm"},"packages/ui/react-ui-geo/src/util/index.ts":{"bytes":747,"imports":[{"path":"packages/ui/react-ui-geo/src/util/debug.ts","kind":"import-statement","original":"./debug"},{"path":"packages/ui/react-ui-geo/src/util/inertia.ts","kind":"import-statement","original":"./inertia"},{"path":"packages/ui/react-ui-geo/src/util/path.ts","kind":"import-statement","original":"./path"},{"path":"packages/ui/react-ui-geo/src/util/render.ts","kind":"import-statement","original":"./render"}],"format":"esm"},"packages/ui/react-ui-geo/src/hooks/useDrag.ts":{"bytes":4652,"imports":[{"path":"d3","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-geo/src/util/index.ts","kind":"import-statement","original":"../util"}],"format":"esm"},"packages/ui/react-ui-geo/src/hooks/useGlobeZoomHandler.ts":{"bytes":2396,"imports":[{"path":"react","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-geo/src/hooks/useMapZoomHandler.ts":{"bytes":2362,"imports":[{"path":"react","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-geo/src/hooks/useSpinner.ts":{"bytes":5367,"imports":[{"path":"d3","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-geo/src/hooks/useTour.ts":{"bytes":15018,"imports":[{"path":"d3","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"versor","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-geo/src/util/index.ts","kind":"import-statement","original":"../util"}],"format":"esm"},"packages/ui/react-ui-geo/src/hooks/index.ts":{"bytes":997,"imports":[{"path":"packages/ui/react-ui-geo/src/hooks/context.tsx","kind":"import-statement","original":"./context"},{"path":"packages/ui/react-ui-geo/src/hooks/useDrag.ts","kind":"import-statement","original":"./useDrag"},{"path":"packages/ui/react-ui-geo/src/hooks/useGlobeZoomHandler.ts","kind":"import-statement","original":"./useGlobeZoomHandler"},{"path":"packages/ui/react-ui-geo/src/hooks/useMapZoomHandler.ts","kind":"import-statement","original":"./useMapZoomHandler"},{"path":"packages/ui/react-ui-geo/src/hooks/useSpinner.ts","kind":"import-statement","original":"./useSpinner"},{"path":"packages/ui/react-ui-geo/src/hooks/useTour.ts","kind":"import-statement","original":"./useTour"}],"format":"esm"},"packages/ui/react-ui-geo/src/components/Toolbar/Controls.tsx":{"bytes":5932,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-geo/src/components/Toolbar/index.ts":{"bytes":515,"imports":[{"path":"packages/ui/react-ui-geo/src/components/Toolbar/Controls.tsx","kind":"import-statement","original":"./Controls"}],"format":"esm"},"packages/ui/react-ui-geo/src/components/Globe/Globe.tsx":{"bytes":26622,"imports":[{"path":"d3","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-geo/src/hooks/index.ts","kind":"import-statement","original":"../../hooks"},{"path":"packages/ui/react-ui-geo/src/util/index.ts","kind":"import-statement","original":"../../util"},{"path":"packages/ui/react-ui-geo/src/components/Toolbar/index.ts","kind":"import-statement","original":"../Toolbar"}],"format":"esm"},"packages/ui/react-ui-geo/src/components/Globe/index.ts":{"bytes":506,"imports":[{"path":"packages/ui/react-ui-geo/src/components/Globe/Globe.tsx","kind":"import-statement","original":"./Globe"}],"format":"esm"},"packages/ui/react-ui-geo/src/components/Map/Map.tsx":{"bytes":20610,"imports":[{"path":"leaflet/dist/leaflet.css","kind":"import-statement","external":true},{"path":"leaflet","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-dom/client","kind":"import-statement","external":true},{"path":"react-leaflet","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-geo/src/components/Toolbar/index.ts","kind":"import-statement","original":"../Toolbar"}],"format":"esm"},"packages/ui/react-ui-geo/src/components/Map/index.ts":{"bytes":498,"imports":[{"path":"packages/ui/react-ui-geo/src/components/Map/Map.tsx","kind":"import-statement","original":"./Map"}],"format":"esm"},"packages/ui/react-ui-geo/src/components/index.ts":{"bytes":751,"imports":[{"path":"packages/ui/react-ui-geo/src/components/types.ts","kind":"import-statement","original":"./types"},{"path":"packages/ui/react-ui-geo/src/components/Globe/index.ts","kind":"import-statement","original":"./Globe"},{"path":"packages/ui/react-ui-geo/src/components/Map/index.ts","kind":"import-statement","original":"./Map"},{"path":"packages/ui/react-ui-geo/src/components/Toolbar/index.ts","kind":"import-statement","original":"./Toolbar"}],"format":"esm"},"packages/ui/react-ui-geo/src/types.ts":{"bytes":624,"imports":[],"format":"esm"},"packages/ui/react-ui-geo/src/index.ts":{"bytes":824,"imports":[{"path":"packages/ui/react-ui-geo/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/ui/react-ui-geo/src/data.ts","kind":"import-statement","original":"./data"},{"path":"packages/ui/react-ui-geo/src/hooks/index.ts","kind":"import-statement","original":"./hooks"},{"path":"packages/ui/react-ui-geo/src/types.ts","kind":"import-statement","original":"./types"},{"path":"packages/ui/react-ui-geo/src/util/index.ts","kind":"import-statement","original":"./util"}],"format":"esm"}},"outputs":{"packages/ui/react-ui-geo/dist/lib/node/data.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/ui/react-ui-geo/dist/lib/node/data.cjs":{"imports":[{"path":"packages/ui/react-ui-geo/dist/lib/node/chunk-LAICG6L2.cjs","kind":"import-statement"}],"exports":["loadTopology"],"entryPoint":"packages/ui/react-ui-geo/src/data.ts","inputs":{},"bytes":116},"packages/ui/react-ui-geo/dist/lib/node/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":65704},"packages/ui/react-ui-geo/dist/lib/node/index.cjs":{"imports":[{"path":"packages/ui/react-ui-geo/dist/lib/node/chunk-LAICG6L2.cjs","kind":"import-statement"},{"path":"d3","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"d3","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"d3","kind":"import-statement","external":true},{"path":"versor","kind":"import-statement","external":true},{"path":"d3","kind":"import-statement","external":true},{"path":"d3","kind":"import-statement","external":true},{"path":"topojson-client","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"d3","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"d3","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"versor","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"leaflet/dist/leaflet.css","kind":"import-statement","external":true},{"path":"leaflet","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-dom/client","kind":"import-statement","external":true},{"path":"react-leaflet","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"exports":["ActionControls","Globe","GlobeContextProvider","Map","ZoomControls","closestPoint","controlPositions","createLayers","geoCircle","geoInertiaDrag","geoLine","geoPoint","geoToPosition","getDistance","loadTopology","positionToRotation","renderLayers","restrictAxis","timer","useDrag","useGlobeContext","useGlobeZoomHandler","useMapZoomHandler","useSpinner","useTour"],"entryPoint":"packages/ui/react-ui-geo/src/index.ts","inputs":{"packages/ui/react-ui-geo/src/components/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-geo/src/components/Globe/Globe.tsx":{"bytesInOutput":5842},"packages/ui/react-ui-geo/src/hooks/context.tsx":{"bytesInOutput":960},"packages/ui/react-ui-geo/src/hooks/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-geo/src/hooks/useDrag.ts":{"bytesInOutput":862},"packages/ui/react-ui-geo/src/util/debug.ts":{"bytesInOutput":211},"packages/ui/react-ui-geo/src/util/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-geo/src/util/inertia.ts":{"bytesInOutput":4562},"packages/ui/react-ui-geo/src/util/path.ts":{"bytesInOutput":1068},"packages/ui/react-ui-geo/src/util/render.ts":{"bytesInOutput":2469},"packages/ui/react-ui-geo/src/hooks/useGlobeZoomHandler.ts":{"bytesInOutput":417},"packages/ui/react-ui-geo/src/hooks/useMapZoomHandler.ts":{"bytesInOutput":426},"packages/ui/react-ui-geo/src/hooks/useSpinner.ts":{"bytesInOutput":1151},"packages/ui/react-ui-geo/src/hooks/useTour.ts":{"bytesInOutput":3314},"packages/ui/react-ui-geo/src/components/Toolbar/Controls.tsx":{"bytesInOutput":1521},"packages/ui/react-ui-geo/src/components/Toolbar/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-geo/src/components/Globe/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-geo/src/components/Map/Map.tsx":{"bytesInOutput":4837},"packages/ui/react-ui-geo/src/components/Map/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-geo/src/index.ts":{"bytesInOutput":0}},"bytes":28938},"packages/ui/react-ui-geo/dist/lib/node/chunk-LAICG6L2.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":430},"packages/ui/react-ui-geo/dist/lib/node/chunk-LAICG6L2.cjs":{"imports":[{"path":"packages/ui/react-ui-geo/dist/lib/node/countries-110m-KQ5WAB2O.cjs","kind":"dynamic-import"}],"exports":["loadTopology"],"inputs":{"packages/ui/react-ui-geo/src/data.ts":{"bytesInOutput":102}},"bytes":214},"packages/ui/react-ui-geo/dist/lib/node/countries-110m-KQ5WAB2O.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":352619},"packages/ui/react-ui-geo/dist/lib/node/countries-110m-KQ5WAB2O.cjs":{"imports":[],"exports":["default"],"entryPoint":"packages/ui/react-ui-geo/data/countries-110m.ts","inputs":{"packages/ui/react-ui-geo/data/countries-110m.ts":{"bytesInOutput":420420}},"bytes":420572}}}
@@ -4,8 +4,8 @@ import {
4
4
  } from "./chunk-PIIEDZEU.mjs";
5
5
 
6
6
  // packages/ui/react-ui-geo/src/components/Globe/Globe.tsx
7
- import * as d37 from "d3";
8
- import React3, { forwardRef, useEffect as useEffect4, useImperativeHandle, useMemo, useRef, useState as useState3 } from "react";
7
+ import { geoMercator, geoOrthographic, geoPath as geoPath2, geoTransverseMercator, interpolateNumber, transition, easeLinear, easeSinOut } from "d3";
8
+ import React3, { forwardRef, useEffect as useEffect4, useImperativeHandle, useMemo as useMemo2, useRef, useState as useState3 } from "react";
9
9
  import { useResizeDetector } from "react-resize-detector";
10
10
  import { useDynamicRef, useThemeContext } from "@dxos/react-ui";
11
11
  import { mx } from "@dxos/react-ui-theme";
@@ -39,7 +39,7 @@ var useGlobeContext = () => {
39
39
  };
40
40
 
41
41
  // packages/ui/react-ui-geo/src/hooks/useDrag.ts
42
- import * as d34 from "d3";
42
+ import { select as select2 } from "d3";
43
43
  import { useEffect } from "react";
44
44
 
45
45
  // packages/ui/react-ui-geo/src/util/debug.ts
@@ -58,7 +58,7 @@ var timer = (cb) => {
58
58
  };
59
59
 
60
60
  // packages/ui/react-ui-geo/src/util/inertia.ts
61
- import * as d3 from "d3";
61
+ import { select, drag, timer as timer2 } from "d3";
62
62
  import versor from "versor";
63
63
  var restrictAxis = (axis) => (original, current) => current.map((d, i) => axis[i] ? d : original[i]);
64
64
  var geoInertiaDrag = (target, render, projection, options) => {
@@ -68,7 +68,7 @@ var geoInertiaDrag = (target, render, projection, options) => {
68
68
  if (target.node) {
69
69
  target = target.node();
70
70
  }
71
- target = d3.select(target);
71
+ target = select(target);
72
72
  const inertia = geoInertiaDragHelper({
73
73
  projection,
74
74
  render: (rotation) => {
@@ -92,7 +92,7 @@ var geoInertiaDrag = (target, render, projection, options) => {
92
92
  time: options.time,
93
93
  hold: options.hold
94
94
  });
95
- target.call(d3.drag().on("start", inertia.start).on("drag", inertia.move).on("end", inertia.end));
95
+ target.call(drag().on("start", inertia.start).on("drag", inertia.move).on("end", inertia.end));
96
96
  return inertia;
97
97
  };
98
98
  var geoInertiaDragHelper = (opt) => {
@@ -153,7 +153,7 @@ function inertiaHelper(opt) {
153
153
  0,
154
154
  0
155
155
  ],
156
- timer: d3.timer(() => {
156
+ timer: timer2(() => {
157
157
  }),
158
158
  time: 0,
159
159
  t: 0,
@@ -233,7 +233,7 @@ function inertiaHelper(opt) {
233
233
  }
234
234
 
235
235
  // packages/ui/react-ui-geo/src/util/path.ts
236
- import * as d32 from "d3";
236
+ import { geoCircle as d3GeoCircle } from "d3";
237
237
  var positionToRotation = ([lng, lat], tilt = 0) => [
238
238
  -lng,
239
239
  tilt - lat,
@@ -247,7 +247,7 @@ var geoPoint = (point) => ({
247
247
  type: "Point",
248
248
  coordinates: geoToPosition(point)
249
249
  });
250
- var geoCircle2 = ({ lat, lng }, radius) => d32.geoCircle().radius(radius).center([
250
+ var geoCircle = ({ lat, lng }, radius) => d3GeoCircle().radius(radius).center([
251
251
  lng,
252
252
  lat
253
253
  ])();
@@ -286,8 +286,8 @@ var getDistance = (point1, point2) => {
286
286
  };
287
287
 
288
288
  // packages/ui/react-ui-geo/src/util/render.ts
289
- import * as d33 from "d3";
290
- import * as topojson from "topojson-client";
289
+ import { geoGraticule } from "d3";
290
+ import { feature, mesh } from "topojson-client";
291
291
  var createLayers = (topology, features, styles) => {
292
292
  const layers = [];
293
293
  if (styles.water) {
@@ -301,7 +301,7 @@ var createLayers = (topology, features, styles) => {
301
301
  if (styles.graticule) {
302
302
  layers.push({
303
303
  styles: styles.graticule,
304
- path: d33.geoGraticule().step([
304
+ path: geoGraticule().step([
305
305
  6,
306
306
  6
307
307
  ])()
@@ -311,13 +311,13 @@ var createLayers = (topology, features, styles) => {
311
311
  if (topology.objects.land && styles.land) {
312
312
  layers.push({
313
313
  styles: styles.land,
314
- path: topojson.feature(topology, topology.objects.land)
314
+ path: feature(topology, topology.objects.land)
315
315
  });
316
316
  }
317
317
  if (topology.objects.countries && styles.border) {
318
318
  layers.push({
319
319
  styles: styles.border,
320
- path: topojson.mesh(topology, topology.objects.countries, (a, b) => a !== b)
320
+ path: mesh(topology, topology.objects.countries, (a, b) => a !== b)
321
321
  });
322
322
  }
323
323
  if (topology.objects.dots && styles.dots) {
@@ -391,7 +391,7 @@ var useDrag = (controller, options = {}) => {
391
391
  if (!canvas || options.disabled) {
392
392
  return;
393
393
  }
394
- geoInertiaDrag(d34.select(canvas), () => {
394
+ geoInertiaDrag(select2(canvas), () => {
395
395
  controller.setRotation(controller.projection.rotate());
396
396
  options.onUpdate?.({
397
397
  type: "move",
@@ -410,7 +410,7 @@ var useDrag = (controller, options = {}) => {
410
410
  })
411
411
  });
412
412
  return () => {
413
- cancelDrag(d34.select(canvas));
413
+ cancelDrag(select2(canvas));
414
414
  };
415
415
  }, [
416
416
  controller,
@@ -464,12 +464,12 @@ var useMapZoomHandler = (controller) => {
464
464
  };
465
465
 
466
466
  // packages/ui/react-ui-geo/src/hooks/useSpinner.ts
467
- import * as d35 from "d3";
467
+ import { timer as d3Timer } from "d3";
468
468
  import { useEffect as useEffect2, useState } from "react";
469
469
  var useSpinner = (controller, options = {}) => {
470
470
  const [running, setRunning] = useState(false);
471
471
  useEffect2(() => {
472
- let timer4;
472
+ let timer3;
473
473
  const start = () => {
474
474
  const delta = options.delta ?? [
475
475
  1e-3,
@@ -478,7 +478,7 @@ var useSpinner = (controller, options = {}) => {
478
478
  ];
479
479
  let t = 0;
480
480
  let lastRotation = controller.projection.rotate();
481
- timer4 = d35.timer((elapsed) => {
481
+ timer3 = d3Timer((elapsed) => {
482
482
  const dt = elapsed - t;
483
483
  t = elapsed;
484
484
  const rotation = [
@@ -491,9 +491,9 @@ var useSpinner = (controller, options = {}) => {
491
491
  });
492
492
  };
493
493
  const stop = () => {
494
- if (timer4) {
495
- timer4.stop();
496
- timer4 = void 0;
494
+ if (timer3) {
495
+ timer3.stop();
496
+ timer3 = void 0;
497
497
  }
498
498
  };
499
499
  if (controller && running) {
@@ -517,19 +517,17 @@ var useSpinner = (controller, options = {}) => {
517
517
  };
518
518
 
519
519
  // packages/ui/react-ui-geo/src/hooks/useTour.ts
520
- import * as d36 from "d3";
521
- import { useEffect as useEffect3, useState as useState2 } from "react";
520
+ import { geoPath, geoInterpolate, geoDistance, selection as d3Selection } from "d3";
521
+ import { useEffect as useEffect3, useState as useState2, useMemo } from "react";
522
522
  import versor2 from "versor";
523
- import { log } from "@dxos/log";
524
- var __dxlog_file = "/home/runner/work/dxos/dxos/packages/ui/react-ui-geo/src/hooks/useTour.ts";
525
523
  var TRANSITION_NAME = "globe-tour";
526
524
  var defaultDuration = 1500;
527
525
  var useTour = (controller, points, options = {}) => {
528
- const selection2 = d36.selection();
526
+ const selection = useMemo(() => d3Selection(), []);
529
527
  const [running, setRunning] = useState2(options.running ?? false);
530
528
  useEffect3(() => {
531
529
  if (!running) {
532
- selection2.interrupt(TRANSITION_NAME);
530
+ selection.interrupt(TRANSITION_NAME);
533
531
  return;
534
532
  }
535
533
  let t;
@@ -539,7 +537,7 @@ var useTour = (controller, points, options = {}) => {
539
537
  const context = canvas.getContext("2d", {
540
538
  alpha: false
541
539
  });
542
- const path = d36.geoPath(projection, context).pointRadius(2);
540
+ const path = geoPath(projection, context).pointRadius(2);
543
541
  const tilt = options.tilt ?? 0;
544
542
  let last;
545
543
  try {
@@ -555,12 +553,12 @@ var useTour = (controller, points, options = {}) => {
555
553
  }
556
554
  const p1 = last ? geoToPosition(last) : void 0;
557
555
  const p2 = geoToPosition(next);
558
- const ip = d36.geoInterpolate(p1 || p2, p2);
559
- const distance = d36.geoDistance(p1 || p2, p2);
556
+ const ip = geoInterpolate(p1 || p2, p2);
557
+ const distance = geoDistance(p1 || p2, p2);
560
558
  const r1 = p1 ? positionToRotation(p1, tilt) : controller.projection.rotate();
561
559
  const r2 = positionToRotation(p2, tilt);
562
560
  const iv = versor2.interpolate(r1, r2);
563
- const transition2 = selection2.transition(TRANSITION_NAME).duration(Math.max(options.duration ?? defaultDuration, distance * 2e3)).tween("render", () => (t2) => {
561
+ const transition2 = selection.transition(TRANSITION_NAME).duration(Math.max(options.duration ?? defaultDuration, distance * 2e3)).tween("render", () => (t2) => {
564
562
  const t1 = Math.max(0, Math.min(1, t2 * 2 - 1));
565
563
  const t22 = Math.min(1, t2 * 2);
566
564
  context.save();
@@ -587,28 +585,20 @@ var useTour = (controller, points, options = {}) => {
587
585
  context.fill();
588
586
  }
589
587
  context.restore();
590
- if (options.autoRotate) {
591
- projection.rotate(iv(t2));
592
- setRotation(projection.rotate());
593
- }
588
+ projection.rotate(iv(t2));
589
+ setRotation(projection.rotate());
594
590
  });
595
591
  await transition2.end();
596
592
  last = next;
597
593
  }
598
594
  } catch (err) {
599
- log.catch(err, void 0, {
600
- F: __dxlog_file,
601
- L: 112,
602
- S: void 0,
603
- C: (f, a) => f(...a)
604
- });
605
595
  } finally {
606
596
  setRunning(false);
607
597
  }
608
598
  });
609
599
  return () => {
610
600
  clearTimeout(t);
611
- selection2.interrupt(TRANSITION_NAME);
601
+ selection.interrupt(TRANSITION_NAME);
612
602
  };
613
603
  }
614
604
  }, [
@@ -724,16 +714,16 @@ var defaultStyles = {
724
714
  }
725
715
  };
726
716
  var projectionMap = {
727
- orthographic: d37.geoOrthographic,
728
- mercator: d37.geoMercator,
729
- "transverse-mercator": d37.geoTransverseMercator
717
+ orthographic: geoOrthographic,
718
+ mercator: geoMercator,
719
+ "transverse-mercator": geoTransverseMercator
730
720
  };
731
721
  var getProjection = (type = "orthographic") => {
732
722
  if (typeof type === "string") {
733
- const constructor = projectionMap[type] ?? d37.geoOrthographic;
723
+ const constructor = projectionMap[type] ?? geoOrthographic;
734
724
  return constructor();
735
725
  }
736
- return type ?? d37.geoOrthographic();
726
+ return type ?? geoOrthographic();
737
727
  };
738
728
  var GlobeRoot = ({ classNames, children, ...props }) => {
739
729
  const { ref, width, height } = useResizeDetector();
@@ -750,16 +740,16 @@ var GlobeRoot = ({ classNames, children, ...props }) => {
750
740
  };
751
741
  var GlobeCanvas = /* @__PURE__ */ forwardRef(({ projection: _projection, topology, features, styles: _styles }, forwardRef3) => {
752
742
  const { themeMode } = useThemeContext();
753
- const styles = useMemo(() => _styles ?? defaultStyles[themeMode], [
743
+ const styles = useMemo2(() => _styles ?? defaultStyles[themeMode], [
754
744
  _styles,
755
745
  themeMode
756
746
  ]);
757
747
  const [canvas, setCanvas] = useState3(null);
758
748
  const canvasRef = (canvas2) => setCanvas(canvas2);
759
- const projection = useMemo(() => getProjection(_projection), [
749
+ const projection = useMemo2(() => getProjection(_projection), [
760
750
  _projection
761
751
  ]);
762
- const layers = useMemo(() => {
752
+ const layers = useMemo2(() => {
763
753
  return timer(() => createLayers(topology, features, styles));
764
754
  }, [
765
755
  topology,
@@ -790,8 +780,8 @@ var GlobeCanvas = /* @__PURE__ */ forwardRef(({ projection: _projection, topolog
790
780
  setCenter,
791
781
  setScale: (s) => {
792
782
  if (typeof s === "function") {
793
- const is = d37.interpolateNumber(scaleRef.current, s(scaleRef.current));
794
- d37.transition().ease(zooming.current ? d37.easeLinear : d37.easeSinOut).duration(200).tween("scale", () => (t) => setScale(is(t))).on("end", () => {
783
+ const is = interpolateNumber(scaleRef.current, s(scaleRef.current));
784
+ transition().ease(zooming.current ? easeLinear : easeSinOut).duration(200).tween("scale", () => (t) => setScale(is(t))).on("end", () => {
795
785
  zooming.current = false;
796
786
  });
797
787
  } else {
@@ -804,7 +794,7 @@ var GlobeCanvas = /* @__PURE__ */ forwardRef(({ projection: _projection, topolog
804
794
  }, [
805
795
  canvas
806
796
  ]);
807
- const generator = useMemo(() => canvas && projection && d37.geoPath(projection, canvas.getContext("2d", {
797
+ const generator = useMemo2(() => canvas && projection && geoPath2(projection, canvas.getContext("2d", {
808
798
  alpha: false
809
799
  })), [
810
800
  canvas,
@@ -1065,7 +1055,7 @@ export {
1065
1055
  closestPoint,
1066
1056
  controlPositions,
1067
1057
  createLayers,
1068
- geoCircle2 as geoCircle,
1058
+ geoCircle,
1069
1059
  geoInertiaDrag,
1070
1060
  geoLine,
1071
1061
  geoPoint,