@dxos/react-ui-geo 0.8.2-main.fbd8ed0 → 0.8.2-staging.7ac8446

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 (36) hide show
  1. package/dist/lib/browser/index.mjs +55 -45
  2. package/dist/lib/browser/index.mjs.map +3 -3
  3. package/dist/lib/browser/meta.json +1 -1
  4. package/dist/lib/node/index.cjs +50 -40
  5. package/dist/lib/node/index.cjs.map +3 -3
  6. package/dist/lib/node/meta.json +1 -1
  7. package/dist/lib/node-esm/index.mjs +55 -45
  8. package/dist/lib/node-esm/index.mjs.map +3 -3
  9. package/dist/lib/node-esm/meta.json +1 -1
  10. package/dist/types/src/components/Globe/Globe.d.ts.map +1 -1
  11. package/dist/types/src/components/Map/Map.stories.d.ts +4 -5
  12. package/dist/types/src/components/Map/Map.stories.d.ts.map +1 -1
  13. package/dist/types/src/components/Toolbar/Controls.d.ts.map +1 -1
  14. package/dist/types/src/hooks/context.d.ts.map +1 -1
  15. package/dist/types/src/hooks/useDrag.d.ts.map +1 -1
  16. package/dist/types/src/hooks/useGlobeZoomHandler.d.ts.map +1 -1
  17. package/dist/types/src/hooks/useMapZoomHandler.d.ts.map +1 -1
  18. package/dist/types/src/hooks/useSpinner.d.ts.map +1 -1
  19. package/dist/types/src/hooks/useTour.d.ts +1 -1
  20. package/dist/types/src/hooks/useTour.d.ts.map +1 -1
  21. package/dist/types/src/util/debug.d.ts.map +1 -1
  22. package/dist/types/src/util/inertia.d.ts +2 -1
  23. package/dist/types/src/util/inertia.d.ts.map +1 -1
  24. package/dist/types/src/util/path.d.ts.map +1 -1
  25. package/dist/types/src/util/render.d.ts.map +1 -1
  26. package/dist/types/tsconfig.tsbuildinfo +1 -1
  27. package/package.json +11 -11
  28. package/src/components/Globe/Globe.stories.tsx +1 -1
  29. package/src/components/Globe/Globe.tsx +11 -20
  30. package/src/components/Map/Map.stories.tsx +5 -5
  31. package/src/hooks/useDrag.ts +3 -3
  32. package/src/hooks/useSpinner.ts +2 -2
  33. package/src/hooks/useTour.ts +13 -9
  34. package/src/util/inertia.ts +5 -4
  35. package/src/util/path.ts +5 -2
  36. package/src/util/render.ts +6 -5
@@ -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":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}}}
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}}}
@@ -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 { 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";
7
+ import * as d37 from "d3";
8
+ import React3, { forwardRef, useEffect as useEffect4, useImperativeHandle, useMemo, 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 { select as select2 } from "d3";
42
+ import * as d34 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 { select, drag, timer as timer2 } from "d3";
61
+ import * as d3 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 = select(target);
71
+ target = d3.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(drag().on("start", inertia.start).on("drag", inertia.move).on("end", inertia.end));
95
+ target.call(d3.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: timer2(() => {
156
+ timer: d3.timer(() => {
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 { geoCircle as d3GeoCircle } from "d3";
236
+ import * as d32 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 geoCircle = ({ lat, lng }, radius) => d3GeoCircle().radius(radius).center([
250
+ var geoCircle2 = ({ lat, lng }, radius) => d32.geoCircle().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 { geoGraticule } from "d3";
290
- import { feature, mesh } from "topojson-client";
289
+ import * as d33 from "d3";
290
+ import * as topojson 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: geoGraticule().step([
304
+ path: d33.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: feature(topology, topology.objects.land)
314
+ path: topojson.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: mesh(topology, topology.objects.countries, (a, b) => a !== b)
320
+ path: topojson.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(select2(canvas), () => {
394
+ geoInertiaDrag(d34.select(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(select2(canvas));
413
+ cancelDrag(d34.select(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 { timer as d3Timer } from "d3";
467
+ import * as d35 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 timer3;
472
+ let timer4;
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
- timer3 = d3Timer((elapsed) => {
481
+ timer4 = d35.timer((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 (timer3) {
495
- timer3.stop();
496
- timer3 = void 0;
494
+ if (timer4) {
495
+ timer4.stop();
496
+ timer4 = void 0;
497
497
  }
498
498
  };
499
499
  if (controller && running) {
@@ -517,17 +517,19 @@ var useSpinner = (controller, options = {}) => {
517
517
  };
518
518
 
519
519
  // packages/ui/react-ui-geo/src/hooks/useTour.ts
520
- import { geoPath, geoInterpolate, geoDistance, selection as d3Selection } from "d3";
521
- import { useEffect as useEffect3, useState as useState2, useMemo } from "react";
520
+ import * as d36 from "d3";
521
+ import { useEffect as useEffect3, useState as useState2 } 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";
523
525
  var TRANSITION_NAME = "globe-tour";
524
526
  var defaultDuration = 1500;
525
527
  var useTour = (controller, points, options = {}) => {
526
- const selection = useMemo(() => d3Selection(), []);
528
+ const selection2 = d36.selection();
527
529
  const [running, setRunning] = useState2(options.running ?? false);
528
530
  useEffect3(() => {
529
531
  if (!running) {
530
- selection.interrupt(TRANSITION_NAME);
532
+ selection2.interrupt(TRANSITION_NAME);
531
533
  return;
532
534
  }
533
535
  let t;
@@ -537,7 +539,7 @@ var useTour = (controller, points, options = {}) => {
537
539
  const context = canvas.getContext("2d", {
538
540
  alpha: false
539
541
  });
540
- const path = geoPath(projection, context).pointRadius(2);
542
+ const path = d36.geoPath(projection, context).pointRadius(2);
541
543
  const tilt = options.tilt ?? 0;
542
544
  let last;
543
545
  try {
@@ -553,12 +555,12 @@ var useTour = (controller, points, options = {}) => {
553
555
  }
554
556
  const p1 = last ? geoToPosition(last) : void 0;
555
557
  const p2 = geoToPosition(next);
556
- const ip = geoInterpolate(p1 || p2, p2);
557
- const distance = geoDistance(p1 || p2, p2);
558
+ const ip = d36.geoInterpolate(p1 || p2, p2);
559
+ const distance = d36.geoDistance(p1 || p2, p2);
558
560
  const r1 = p1 ? positionToRotation(p1, tilt) : controller.projection.rotate();
559
561
  const r2 = positionToRotation(p2, tilt);
560
562
  const iv = versor2.interpolate(r1, r2);
561
- const transition2 = selection.transition(TRANSITION_NAME).duration(Math.max(options.duration ?? defaultDuration, distance * 2e3)).tween("render", () => (t2) => {
563
+ const transition2 = selection2.transition(TRANSITION_NAME).duration(Math.max(options.duration ?? defaultDuration, distance * 2e3)).tween("render", () => (t2) => {
562
564
  const t1 = Math.max(0, Math.min(1, t2 * 2 - 1));
563
565
  const t22 = Math.min(1, t2 * 2);
564
566
  context.save();
@@ -585,20 +587,28 @@ var useTour = (controller, points, options = {}) => {
585
587
  context.fill();
586
588
  }
587
589
  context.restore();
588
- projection.rotate(iv(t2));
589
- setRotation(projection.rotate());
590
+ if (options.autoRotate) {
591
+ projection.rotate(iv(t2));
592
+ setRotation(projection.rotate());
593
+ }
590
594
  });
591
595
  await transition2.end();
592
596
  last = next;
593
597
  }
594
598
  } 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
+ });
595
605
  } finally {
596
606
  setRunning(false);
597
607
  }
598
608
  });
599
609
  return () => {
600
610
  clearTimeout(t);
601
- selection.interrupt(TRANSITION_NAME);
611
+ selection2.interrupt(TRANSITION_NAME);
602
612
  };
603
613
  }
604
614
  }, [
@@ -714,16 +724,16 @@ var defaultStyles = {
714
724
  }
715
725
  };
716
726
  var projectionMap = {
717
- orthographic: geoOrthographic,
718
- mercator: geoMercator,
719
- "transverse-mercator": geoTransverseMercator
727
+ orthographic: d37.geoOrthographic,
728
+ mercator: d37.geoMercator,
729
+ "transverse-mercator": d37.geoTransverseMercator
720
730
  };
721
731
  var getProjection = (type = "orthographic") => {
722
732
  if (typeof type === "string") {
723
- const constructor = projectionMap[type] ?? geoOrthographic;
733
+ const constructor = projectionMap[type] ?? d37.geoOrthographic;
724
734
  return constructor();
725
735
  }
726
- return type ?? geoOrthographic();
736
+ return type ?? d37.geoOrthographic();
727
737
  };
728
738
  var GlobeRoot = ({ classNames, children, ...props }) => {
729
739
  const { ref, width, height } = useResizeDetector();
@@ -740,16 +750,16 @@ var GlobeRoot = ({ classNames, children, ...props }) => {
740
750
  };
741
751
  var GlobeCanvas = /* @__PURE__ */ forwardRef(({ projection: _projection, topology, features, styles: _styles }, forwardRef3) => {
742
752
  const { themeMode } = useThemeContext();
743
- const styles = useMemo2(() => _styles ?? defaultStyles[themeMode], [
753
+ const styles = useMemo(() => _styles ?? defaultStyles[themeMode], [
744
754
  _styles,
745
755
  themeMode
746
756
  ]);
747
757
  const [canvas, setCanvas] = useState3(null);
748
758
  const canvasRef = (canvas2) => setCanvas(canvas2);
749
- const projection = useMemo2(() => getProjection(_projection), [
759
+ const projection = useMemo(() => getProjection(_projection), [
750
760
  _projection
751
761
  ]);
752
- const layers = useMemo2(() => {
762
+ const layers = useMemo(() => {
753
763
  return timer(() => createLayers(topology, features, styles));
754
764
  }, [
755
765
  topology,
@@ -780,8 +790,8 @@ var GlobeCanvas = /* @__PURE__ */ forwardRef(({ projection: _projection, topolog
780
790
  setCenter,
781
791
  setScale: (s) => {
782
792
  if (typeof s === "function") {
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", () => {
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", () => {
785
795
  zooming.current = false;
786
796
  });
787
797
  } else {
@@ -794,7 +804,7 @@ var GlobeCanvas = /* @__PURE__ */ forwardRef(({ projection: _projection, topolog
794
804
  }, [
795
805
  canvas
796
806
  ]);
797
- const generator = useMemo2(() => canvas && projection && geoPath2(projection, canvas.getContext("2d", {
807
+ const generator = useMemo(() => canvas && projection && d37.geoPath(projection, canvas.getContext("2d", {
798
808
  alpha: false
799
809
  })), [
800
810
  canvas,
@@ -1055,7 +1065,7 @@ export {
1055
1065
  closestPoint,
1056
1066
  controlPositions,
1057
1067
  createLayers,
1058
- geoCircle,
1068
+ geoCircle2 as geoCircle,
1059
1069
  geoInertiaDrag,
1060
1070
  geoLine,
1061
1071
  geoPoint,