@dxos/react-ui-geo 0.7.5-main.b19bfc8 → 0.7.5-main.d9d2d4e
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/browser/index.mjs +33 -33
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node/index.cjs +12 -12
- package/dist/lib/node/index.cjs.map +2 -2
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +33 -33
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/src/components/Map/Map.d.ts +3 -2
- package/dist/types/src/components/Map/Map.d.ts.map +1 -1
- package/package.json +11 -11
- package/src/components/Map/Map.tsx +1 -1
package/dist/lib/node/meta.json
CHANGED
|
@@ -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":20575,"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":65251},"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":962},"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":4818},"packages/ui/react-ui-geo/src/components/Map/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-geo/src/index.ts":{"bytesInOutput":0}},"bytes":29068},"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}}}
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
|
|
6
6
|
// packages/ui/react-ui-geo/src/components/Globe/Globe.tsx
|
|
7
7
|
import * as d37 from "d3";
|
|
8
|
-
import
|
|
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";
|
|
12
12
|
|
|
13
13
|
// packages/ui/react-ui-geo/src/hooks/context.tsx
|
|
14
|
-
import
|
|
14
|
+
import React, { createContext, useContext } from "react";
|
|
15
15
|
import { raise } from "@dxos/debug";
|
|
16
16
|
import { useControlledState } from "@dxos/react-ui";
|
|
17
17
|
var GlobeContext = /* @__PURE__ */ createContext(void 0);
|
|
@@ -20,7 +20,7 @@ var GlobeContextProvider = ({ children, size, center: _center, scale: _scale, tr
|
|
|
20
20
|
const [scale, setScale] = useControlledState(_scale);
|
|
21
21
|
const [translation, setTranslation] = useControlledState(_translation);
|
|
22
22
|
const [rotation, setRotation] = useControlledState(_rotation);
|
|
23
|
-
return /* @__PURE__ */
|
|
23
|
+
return /* @__PURE__ */ React.createElement(GlobeContext.Provider, {
|
|
24
24
|
value: {
|
|
25
25
|
size,
|
|
26
26
|
center,
|
|
@@ -623,7 +623,7 @@ var useTour = (controller, points, options = {}) => {
|
|
|
623
623
|
};
|
|
624
624
|
|
|
625
625
|
// packages/ui/react-ui-geo/src/components/Toolbar/Controls.tsx
|
|
626
|
-
import
|
|
626
|
+
import React2 from "react";
|
|
627
627
|
import { IconButton, Toolbar } from "@dxos/react-ui";
|
|
628
628
|
var controlPositions = {
|
|
629
629
|
topleft: "top-2 left-2",
|
|
@@ -632,12 +632,12 @@ var controlPositions = {
|
|
|
632
632
|
bottomright: "bottom-2 right-2"
|
|
633
633
|
};
|
|
634
634
|
var ZoomControls = ({ classNames, onAction }) => {
|
|
635
|
-
return /* @__PURE__ */
|
|
635
|
+
return /* @__PURE__ */ React2.createElement(Toolbar.Root, {
|
|
636
636
|
classNames: [
|
|
637
637
|
"gap-1",
|
|
638
638
|
classNames
|
|
639
639
|
]
|
|
640
|
-
}, /* @__PURE__ */
|
|
640
|
+
}, /* @__PURE__ */ React2.createElement(IconButton, {
|
|
641
641
|
//
|
|
642
642
|
icon: "ph--plus--regular",
|
|
643
643
|
label: "zoom in",
|
|
@@ -645,7 +645,7 @@ var ZoomControls = ({ classNames, onAction }) => {
|
|
|
645
645
|
size: 5,
|
|
646
646
|
classNames: "px-0 aspect-square",
|
|
647
647
|
onClick: () => onAction?.("zoom-in")
|
|
648
|
-
}), /* @__PURE__ */
|
|
648
|
+
}), /* @__PURE__ */ React2.createElement(IconButton, {
|
|
649
649
|
//
|
|
650
650
|
icon: "ph--minus--regular",
|
|
651
651
|
label: "zoom out",
|
|
@@ -656,12 +656,12 @@ var ZoomControls = ({ classNames, onAction }) => {
|
|
|
656
656
|
}));
|
|
657
657
|
};
|
|
658
658
|
var ActionControls = ({ classNames, onAction }) => {
|
|
659
|
-
return /* @__PURE__ */
|
|
659
|
+
return /* @__PURE__ */ React2.createElement(Toolbar.Root, {
|
|
660
660
|
classNames: [
|
|
661
661
|
"gap-1",
|
|
662
662
|
classNames
|
|
663
663
|
]
|
|
664
|
-
}, /* @__PURE__ */
|
|
664
|
+
}, /* @__PURE__ */ React2.createElement(IconButton, {
|
|
665
665
|
//
|
|
666
666
|
icon: "ph--play--regular",
|
|
667
667
|
label: "start",
|
|
@@ -669,7 +669,7 @@ var ActionControls = ({ classNames, onAction }) => {
|
|
|
669
669
|
size: 5,
|
|
670
670
|
classNames: "px-0 aspect-square",
|
|
671
671
|
onClick: () => onAction?.("start")
|
|
672
|
-
}), /* @__PURE__ */
|
|
672
|
+
}), /* @__PURE__ */ React2.createElement(IconButton, {
|
|
673
673
|
//
|
|
674
674
|
icon: "ph--globe-hemisphere-west--regular",
|
|
675
675
|
label: "toggle",
|
|
@@ -737,10 +737,10 @@ var getProjection = (type = "orthographic") => {
|
|
|
737
737
|
};
|
|
738
738
|
var GlobeRoot = ({ classNames, children, ...props }) => {
|
|
739
739
|
const { ref, width, height } = useResizeDetector();
|
|
740
|
-
return /* @__PURE__ */
|
|
740
|
+
return /* @__PURE__ */ React3.createElement("div", {
|
|
741
741
|
ref,
|
|
742
742
|
className: mx("relative flex grow overflow-hidden", classNames)
|
|
743
|
-
}, /* @__PURE__ */
|
|
743
|
+
}, /* @__PURE__ */ React3.createElement(GlobeContextProvider, {
|
|
744
744
|
size: {
|
|
745
745
|
width,
|
|
746
746
|
height
|
|
@@ -835,7 +835,7 @@ var GlobeCanvas = /* @__PURE__ */ forwardRef(({ projection: _projection, topolog
|
|
|
835
835
|
if (!size.width || !size.height) {
|
|
836
836
|
return null;
|
|
837
837
|
}
|
|
838
|
-
return /* @__PURE__ */
|
|
838
|
+
return /* @__PURE__ */ React3.createElement("canvas", {
|
|
839
839
|
ref: canvasRef,
|
|
840
840
|
width: size.width,
|
|
841
841
|
height: size.height
|
|
@@ -843,9 +843,9 @@ var GlobeCanvas = /* @__PURE__ */ forwardRef(({ projection: _projection, topolog
|
|
|
843
843
|
});
|
|
844
844
|
var GlobeDebug = ({ position = "topleft" }) => {
|
|
845
845
|
const { size, scale, translation, rotation } = useGlobeContext();
|
|
846
|
-
return /* @__PURE__ */
|
|
846
|
+
return /* @__PURE__ */ React3.createElement("div", {
|
|
847
847
|
className: mx("z-10 absolute w-96 p-2 overflow-hidden border border-green-700 rounded", controlPositions[position])
|
|
848
|
-
}, /* @__PURE__ */
|
|
848
|
+
}, /* @__PURE__ */ React3.createElement("pre", {
|
|
849
849
|
className: "font-mono text-xs text-green-700"
|
|
850
850
|
}, JSON.stringify({
|
|
851
851
|
size,
|
|
@@ -855,28 +855,28 @@ var GlobeDebug = ({ position = "topleft" }) => {
|
|
|
855
855
|
}, null, 2)));
|
|
856
856
|
};
|
|
857
857
|
var GlobePanel = ({ position, classNames, children }) => {
|
|
858
|
-
return /* @__PURE__ */
|
|
858
|
+
return /* @__PURE__ */ React3.createElement("div", {
|
|
859
859
|
className: mx("z-10 absolute overflow-hidden", controlPositions[position], classNames)
|
|
860
860
|
}, children);
|
|
861
861
|
};
|
|
862
862
|
var CustomControl = ({ position, children }) => {
|
|
863
|
-
return /* @__PURE__ */
|
|
863
|
+
return /* @__PURE__ */ React3.createElement("div", {
|
|
864
864
|
className: mx("z-10 absolute overflow-hidden", controlPositions[position])
|
|
865
865
|
}, children);
|
|
866
866
|
};
|
|
867
867
|
var Globe = {
|
|
868
868
|
Root: GlobeRoot,
|
|
869
869
|
Canvas: GlobeCanvas,
|
|
870
|
-
Zoom: ({ onAction, position = "bottomleft", ...props }) => /* @__PURE__ */
|
|
870
|
+
Zoom: ({ onAction, position = "bottomleft", ...props }) => /* @__PURE__ */ React3.createElement(CustomControl, {
|
|
871
871
|
position,
|
|
872
872
|
...props
|
|
873
|
-
}, /* @__PURE__ */
|
|
873
|
+
}, /* @__PURE__ */ React3.createElement(ZoomControls, {
|
|
874
874
|
onAction
|
|
875
875
|
})),
|
|
876
|
-
Action: ({ onAction, position = "bottomright", ...props }) => /* @__PURE__ */
|
|
876
|
+
Action: ({ onAction, position = "bottomright", ...props }) => /* @__PURE__ */ React3.createElement(CustomControl, {
|
|
877
877
|
position,
|
|
878
878
|
...props
|
|
879
|
-
}, /* @__PURE__ */
|
|
879
|
+
}, /* @__PURE__ */ React3.createElement(ActionControls, {
|
|
880
880
|
onAction
|
|
881
881
|
})),
|
|
882
882
|
Debug: GlobeDebug,
|
|
@@ -886,7 +886,7 @@ var Globe = {
|
|
|
886
886
|
// packages/ui/react-ui-geo/src/components/Map/Map.tsx
|
|
887
887
|
import "leaflet/dist/leaflet.css";
|
|
888
888
|
import L, { Control, DomEvent, DomUtil, latLngBounds } from "leaflet";
|
|
889
|
-
import { forwardRef as forwardRef2, useEffect as useEffect5, useImperativeHandle as useImperativeHandle2 } from "react";
|
|
889
|
+
import React4, { forwardRef as forwardRef2, useEffect as useEffect5, useImperativeHandle as useImperativeHandle2 } from "react";
|
|
890
890
|
import { createRoot } from "react-dom/client";
|
|
891
891
|
import { MapContainer, Marker, Popup, TileLayer, useMap } from "react-leaflet";
|
|
892
892
|
import { useResizeDetector as useResizeDetector2 } from "react-resize-detector";
|
|
@@ -902,7 +902,7 @@ var defaults = {
|
|
|
902
902
|
zoom: 4
|
|
903
903
|
};
|
|
904
904
|
var MapRoot = ({ classNames, center = defaults.center, zoom = defaults.zoom, ...props }) => {
|
|
905
|
-
return /* @__PURE__ */
|
|
905
|
+
return /* @__PURE__ */ React4.createElement(MapContainer, {
|
|
906
906
|
className: mx2("relative flex w-full h-full grow bg-baseSurface", classNames),
|
|
907
907
|
attributionControl: false,
|
|
908
908
|
// TODO(burdon): Only if attention.
|
|
@@ -973,14 +973,14 @@ var MapCanvas = /* @__PURE__ */ forwardRef2(({ markers, center, zoom, onChange }
|
|
|
973
973
|
}, [
|
|
974
974
|
markers
|
|
975
975
|
]);
|
|
976
|
-
return /* @__PURE__ */
|
|
976
|
+
return /* @__PURE__ */ React4.createElement("div", {
|
|
977
977
|
ref,
|
|
978
978
|
className: "flex w-full h-full overflow-hidden bg-baseSurface"
|
|
979
|
-
}, /* @__PURE__ */
|
|
979
|
+
}, /* @__PURE__ */ React4.createElement(TileLayer, {
|
|
980
980
|
className: "dark:filter dark:grayscale dark:invert",
|
|
981
981
|
url: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
|
|
982
982
|
}), markers?.map(({ id, title, location: { lat, lng } }) => {
|
|
983
|
-
return /* @__PURE__ */
|
|
983
|
+
return /* @__PURE__ */ React4.createElement(Marker, {
|
|
984
984
|
key: id,
|
|
985
985
|
position: {
|
|
986
986
|
lat,
|
|
@@ -1010,7 +1010,7 @@ var MapCanvas = /* @__PURE__ */ forwardRef2(({ markers, center, zoom, onChange }
|
|
|
1010
1010
|
]
|
|
1011
1011
|
})
|
|
1012
1012
|
)
|
|
1013
|
-
}, title && /* @__PURE__ */
|
|
1013
|
+
}, title && /* @__PURE__ */ React4.createElement(Popup, null, title));
|
|
1014
1014
|
}));
|
|
1015
1015
|
});
|
|
1016
1016
|
var CustomControl2 = ({ position, children }) => {
|
|
@@ -1024,9 +1024,9 @@ var CustomControl2 = ({ position, children }) => {
|
|
|
1024
1024
|
DomEvent.disableClickPropagation(container);
|
|
1025
1025
|
DomEvent.disableScrollPropagation(container);
|
|
1026
1026
|
const root = createRoot(container);
|
|
1027
|
-
root.render(/* @__PURE__ */
|
|
1027
|
+
root.render(/* @__PURE__ */ React4.createElement(ThemeProvider, {
|
|
1028
1028
|
tx: defaultTx
|
|
1029
|
-
}, /* @__PURE__ */
|
|
1029
|
+
}, /* @__PURE__ */ React4.createElement(Tooltip.Provider, null, children)));
|
|
1030
1030
|
return container;
|
|
1031
1031
|
};
|
|
1032
1032
|
control.addTo(map);
|
|
@@ -1043,16 +1043,16 @@ var CustomControl2 = ({ position, children }) => {
|
|
|
1043
1043
|
var Map = {
|
|
1044
1044
|
Root: MapRoot,
|
|
1045
1045
|
Canvas: MapCanvas,
|
|
1046
|
-
Zoom: ({ onAction, position = "bottomleft", ...props }) => /* @__PURE__ */
|
|
1046
|
+
Zoom: ({ onAction, position = "bottomleft", ...props }) => /* @__PURE__ */ React4.createElement(CustomControl2, {
|
|
1047
1047
|
position,
|
|
1048
1048
|
...props
|
|
1049
|
-
}, /* @__PURE__ */
|
|
1049
|
+
}, /* @__PURE__ */ React4.createElement(ZoomControls, {
|
|
1050
1050
|
onAction
|
|
1051
1051
|
})),
|
|
1052
|
-
Action: ({ onAction, position = "bottomright", ...props }) => /* @__PURE__ */
|
|
1052
|
+
Action: ({ onAction, position = "bottomright", ...props }) => /* @__PURE__ */ React4.createElement(CustomControl2, {
|
|
1053
1053
|
position,
|
|
1054
1054
|
...props
|
|
1055
|
-
}, /* @__PURE__ */
|
|
1055
|
+
}, /* @__PURE__ */ React4.createElement(ActionControls, {
|
|
1056
1056
|
onAction
|
|
1057
1057
|
}))
|
|
1058
1058
|
};
|