@reearth/core 0.0.7-alpha.5 → 0.0.7-alpha.51
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/core.js +58676 -51066
- package/dist/core.umd.cjs +3959 -3915
- package/dist/{index-DqatWUTw.js → index-DqGWVPtz.js} +0 -1
- package/dist/index.d.ts +150 -34
- package/package.json +55 -39
- package/src/Map/ClusteredLayers/index.tsx +1 -1
- package/src/Map/Geoid/index.tsx +68 -0
- package/src/Map/Geoid/types.ts +8 -0
- package/src/Map/Layer/hooks.ts +7 -4
- package/src/Map/Layer/index.tsx +3 -1
- package/src/Map/Layers/hooks.ts +19 -2
- package/src/Map/Layers/index.tsx +13 -2
- package/src/Map/Layers/keys.ts +1 -0
- package/src/Map/Sketch/hooks.ts +453 -410
- package/src/Map/Sketch/index.tsx +67 -20
- package/src/Map/Sketch/sketchMachine.ts +359 -4
- package/src/Map/Sketch/sketchMachine.typegen.ts +58 -1
- package/src/Map/Sketch/types.ts +10 -20
- package/src/Map/Sketch/usePluginSketchLayer.ts +105 -0
- package/src/Map/Sketch/useSketch.ts +559 -0
- package/src/Map/Sketch/useSketchFeature.ts +198 -0
- package/src/Map/SpatialId/constants.ts +21 -0
- package/src/Map/SpatialId/hooks.ts +448 -0
- package/src/Map/SpatialId/index.tsx +63 -0
- package/src/Map/SpatialId/types.ts +68 -0
- package/src/Map/SpatialId/utils.ts +65 -0
- package/src/Map/hooks.ts +54 -8
- package/src/Map/index.tsx +41 -8
- package/src/Map/ref.ts +32 -3
- package/src/Map/types/index.ts +39 -3
- package/src/Map/types/viewerProperty.ts +10 -0
- package/src/Map/useTimelineManager.ts +2 -2
- package/src/Map/utils.ts +1 -1
- package/src/Visualizer/context.tsx +5 -5
- package/src/Visualizer/coreContext.tsx +2 -0
- package/src/Visualizer/hooks.ts +54 -20
- package/src/Visualizer/index.tsx +22 -3
- package/src/Visualizer/interactionMode.ts +2 -1
- package/src/Visualizer/useViewport.ts +1 -1
- package/src/engines/Cesium/Feature/Box/hooks/box.ts +4 -4
- package/src/engines/Cesium/Feature/HeatMap/HeatmapMesh.tsx +1 -1
- package/src/engines/Cesium/Feature/Model/index.tsx +3 -3
- package/src/engines/Cesium/Feature/PhotoOverlay/hooks.ts +1 -1
- package/src/engines/Cesium/Feature/PhotoOverlay/index.tsx +3 -1
- package/src/engines/Cesium/Feature/Polygon/index.tsx +6 -4
- package/src/engines/Cesium/Feature/Raster/mvt.ts +2 -1
- package/src/engines/Cesium/Feature/Resource/utils.ts +86 -91
- package/src/engines/Cesium/Feature/Tileset/hooks.ts +135 -70
- package/src/engines/Cesium/Feature/Tileset/index.tsx +1 -1
- package/src/engines/Cesium/Feature/Tileset/useClippingBox.ts +2 -2
- package/src/engines/Cesium/Feature/context.ts +1 -0
- package/src/engines/Cesium/Feature/index.tsx +7 -3
- package/src/engines/Cesium/Feature/utils.tsx +18 -7
- package/src/engines/Cesium/Shaders/OverriddenShaders/GlobeFS/IBL.glsl +6 -10
- package/src/engines/Cesium/Sketch/ControlPoint.tsx +128 -24
- package/src/engines/Cesium/Sketch/ExtrudedControlPoints.tsx +70 -25
- package/src/engines/Cesium/Sketch/ExtrudedMeasurement.tsx +3 -1
- package/src/engines/Cesium/Sketch/ExtrudedPolygonEntity.tsx +14 -14
- package/src/engines/Cesium/Sketch/PolylineEntity.tsx +7 -4
- package/src/engines/Cesium/Sketch/SurfaceAddingPoints.tsx +60 -0
- package/src/engines/Cesium/Sketch/SurfaceControlPoints.tsx +125 -35
- package/src/engines/Cesium/Sketch/constants.ts +5 -0
- package/src/engines/Cesium/Sketch/index.tsx +68 -29
- package/src/engines/Cesium/SpatialId/CoordinateIndicator.tsx +28 -0
- package/src/engines/Cesium/SpatialId/SpatialIdSpace.tsx +33 -0
- package/src/engines/Cesium/SpatialId/VerticalSpaceIndicator.tsx +32 -0
- package/src/engines/Cesium/SpatialId/index.ts +3 -0
- package/src/engines/Cesium/common.ts +52 -16
- package/src/engines/Cesium/core/Clock.tsx +1 -1
- package/src/engines/Cesium/core/Globe/index.tsx +73 -0
- package/src/engines/Cesium/core/Globe/useTerrainProviderPromise.ts +79 -0
- package/src/engines/Cesium/core/Imagery.test.ts +29 -11
- package/src/engines/Cesium/core/Imagery.tsx +22 -6
- package/src/engines/Cesium/core/Indicator/Indicator.tsx +1 -1
- package/src/engines/Cesium/core/labels/JapanGSIOptimalBVmapVectorMapLabel/JapanGSIOptimalBVmapLabelImagery.tsx +9 -2
- package/src/engines/Cesium/core/labels/JapanGSIOptimalBVmapVectorMapLabel/JapanGSIOptimalBVmapVectorMapLabel.tsx +14 -2
- package/src/engines/Cesium/core/labels/LabelImageryLayers.tsx +10 -1
- package/src/engines/Cesium/core/presets.ts +24 -28
- package/src/engines/Cesium/helpers/getGeometryFromEntity.ts +55 -0
- package/src/engines/Cesium/hooks/useCamera.ts +1 -1
- package/src/engines/Cesium/hooks/useCameraLimiter.ts +1 -1
- package/src/engines/Cesium/hooks/useEngineRef.ts +48 -3
- package/src/engines/Cesium/hooks/useExplicitRender.ts +2 -2
- package/src/engines/Cesium/hooks/useInstance.ts +1 -1
- package/src/engines/Cesium/hooks/useLayerDragDrop.ts +2 -2
- package/src/engines/Cesium/hooks/useLayerSelectWithRect.ts +1 -1
- package/src/engines/Cesium/hooks/useOverrideGlobeShader/useOverrideGlobeShader.ts +98 -52
- package/src/engines/Cesium/hooks/useViewerProperty.ts +1 -1
- package/src/engines/Cesium/hooks.ts +52 -10
- package/src/engines/Cesium/index.tsx +16 -3
- package/src/engines/Cesium/types.ts +1 -1
- package/src/mantle/atoms/compute.ts +8 -3
- package/src/mantle/data/geojson.ts +53 -22
- package/src/mantle/data/shapefile/parseZip.ts +1 -0
- package/src/mantle/evaluator/simple/expression/expression.test.ts +72 -0
- package/src/mantle/evaluator/simple/expression/node.ts +10 -12
- package/src/mantle/types/appearance.ts +4 -2
- package/src/mantle/types/index.ts +3 -0
- package/src/test/utils.tsx +1 -1
- package/src/utils/image.ts +2 -12
- package/src/utils/use-delayed-count.ts +1 -1
- package/src/utils/use-dnd/drop.ts +1 -1
- package/src/utils/util.ts +1 -1
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_0.json +0 -1
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_1.json +0 -1
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_10.json +0 -1
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_11.json +0 -1
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_12.json +0 -1
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_13.json +0 -1
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_14.json +0 -1
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_15.json +0 -1
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_16.json +0 -1
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_17.json +0 -1
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_18.json +0 -1
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_19.json +0 -1
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_2.json +0 -1
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_20.json +0 -1
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_21.json +0 -1
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_22.json +0 -1
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_23.json +0 -1
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_24.json +0 -1
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_25.json +0 -1
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_26.json +0 -1
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_27.json +0 -1
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_3.json +0 -1
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_4.json +0 -1
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_5.json +0 -1
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_6.json +0 -1
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_7.json +0 -1
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_8.json +0 -1
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_9.json +0 -1
- package/dist/cesium/Assets/Images/bing_maps_credit.png +0 -0
- package/dist/cesium/Assets/Images/cesium_credit.png +0 -0
- package/dist/cesium/Assets/Images/google_earth_credit.png +0 -0
- package/dist/cesium/Assets/Images/ion-credit.png +0 -0
- package/dist/cesium/Assets/Textures/LensFlare/DirtMask.jpg +0 -0
- package/dist/cesium/Assets/Textures/LensFlare/StarBurst.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/0/0/0.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/0/1/0.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/1/0/0.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/1/0/1.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/1/1/0.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/1/1/1.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/1/2/0.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/1/2/1.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/1/3/0.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/1/3/1.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/0/0.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/0/1.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/0/2.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/0/3.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/1/0.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/1/1.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/1/2.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/1/3.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/2/0.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/2/1.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/2/2.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/2/3.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/3/0.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/3/1.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/3/2.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/3/3.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/4/0.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/4/1.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/4/2.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/4/3.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/5/0.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/5/1.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/5/2.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/5/3.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/6/0.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/6/1.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/6/2.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/6/3.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/7/0.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/7/1.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/7/2.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/7/3.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/tilemapresource.xml +0 -14
- package/dist/cesium/Assets/Textures/SkyBox/tycho2t3_80_mx.jpg +0 -0
- package/dist/cesium/Assets/Textures/SkyBox/tycho2t3_80_my.jpg +0 -0
- package/dist/cesium/Assets/Textures/SkyBox/tycho2t3_80_mz.jpg +0 -0
- package/dist/cesium/Assets/Textures/SkyBox/tycho2t3_80_px.jpg +0 -0
- package/dist/cesium/Assets/Textures/SkyBox/tycho2t3_80_py.jpg +0 -0
- package/dist/cesium/Assets/Textures/SkyBox/tycho2t3_80_pz.jpg +0 -0
- package/dist/cesium/Assets/Textures/maki/airfield.png +0 -0
- package/dist/cesium/Assets/Textures/maki/airport.png +0 -0
- package/dist/cesium/Assets/Textures/maki/alcohol-shop.png +0 -0
- package/dist/cesium/Assets/Textures/maki/america-football.png +0 -0
- package/dist/cesium/Assets/Textures/maki/art-gallery.png +0 -0
- package/dist/cesium/Assets/Textures/maki/bakery.png +0 -0
- package/dist/cesium/Assets/Textures/maki/bank.png +0 -0
- package/dist/cesium/Assets/Textures/maki/bar.png +0 -0
- package/dist/cesium/Assets/Textures/maki/baseball.png +0 -0
- package/dist/cesium/Assets/Textures/maki/basketball.png +0 -0
- package/dist/cesium/Assets/Textures/maki/beer.png +0 -0
- package/dist/cesium/Assets/Textures/maki/bicycle.png +0 -0
- package/dist/cesium/Assets/Textures/maki/building.png +0 -0
- package/dist/cesium/Assets/Textures/maki/bus.png +0 -0
- package/dist/cesium/Assets/Textures/maki/cafe.png +0 -0
- package/dist/cesium/Assets/Textures/maki/camera.png +0 -0
- package/dist/cesium/Assets/Textures/maki/campsite.png +0 -0
- package/dist/cesium/Assets/Textures/maki/car.png +0 -0
- package/dist/cesium/Assets/Textures/maki/cemetery.png +0 -0
- package/dist/cesium/Assets/Textures/maki/cesium.png +0 -0
- package/dist/cesium/Assets/Textures/maki/chemist.png +0 -0
- package/dist/cesium/Assets/Textures/maki/cinema.png +0 -0
- package/dist/cesium/Assets/Textures/maki/circle-stroked.png +0 -0
- package/dist/cesium/Assets/Textures/maki/circle.png +0 -0
- package/dist/cesium/Assets/Textures/maki/city.png +0 -0
- package/dist/cesium/Assets/Textures/maki/clothing-store.png +0 -0
- package/dist/cesium/Assets/Textures/maki/college.png +0 -0
- package/dist/cesium/Assets/Textures/maki/commercial.png +0 -0
- package/dist/cesium/Assets/Textures/maki/cricket.png +0 -0
- package/dist/cesium/Assets/Textures/maki/cross.png +0 -0
- package/dist/cesium/Assets/Textures/maki/dam.png +0 -0
- package/dist/cesium/Assets/Textures/maki/danger.png +0 -0
- package/dist/cesium/Assets/Textures/maki/disability.png +0 -0
- package/dist/cesium/Assets/Textures/maki/dog-park.png +0 -0
- package/dist/cesium/Assets/Textures/maki/embassy.png +0 -0
- package/dist/cesium/Assets/Textures/maki/emergency-telephone.png +0 -0
- package/dist/cesium/Assets/Textures/maki/entrance.png +0 -0
- package/dist/cesium/Assets/Textures/maki/farm.png +0 -0
- package/dist/cesium/Assets/Textures/maki/fast-food.png +0 -0
- package/dist/cesium/Assets/Textures/maki/ferry.png +0 -0
- package/dist/cesium/Assets/Textures/maki/fire-station.png +0 -0
- package/dist/cesium/Assets/Textures/maki/fuel.png +0 -0
- package/dist/cesium/Assets/Textures/maki/garden.png +0 -0
- package/dist/cesium/Assets/Textures/maki/gift.png +0 -0
- package/dist/cesium/Assets/Textures/maki/golf.png +0 -0
- package/dist/cesium/Assets/Textures/maki/grocery.png +0 -0
- package/dist/cesium/Assets/Textures/maki/hairdresser.png +0 -0
- package/dist/cesium/Assets/Textures/maki/harbor.png +0 -0
- package/dist/cesium/Assets/Textures/maki/heart.png +0 -0
- package/dist/cesium/Assets/Textures/maki/heliport.png +0 -0
- package/dist/cesium/Assets/Textures/maki/hospital.png +0 -0
- package/dist/cesium/Assets/Textures/maki/ice-cream.png +0 -0
- package/dist/cesium/Assets/Textures/maki/industrial.png +0 -0
- package/dist/cesium/Assets/Textures/maki/land-use.png +0 -0
- package/dist/cesium/Assets/Textures/maki/laundry.png +0 -0
- package/dist/cesium/Assets/Textures/maki/library.png +0 -0
- package/dist/cesium/Assets/Textures/maki/lighthouse.png +0 -0
- package/dist/cesium/Assets/Textures/maki/lodging.png +0 -0
- package/dist/cesium/Assets/Textures/maki/logging.png +0 -0
- package/dist/cesium/Assets/Textures/maki/london-underground.png +0 -0
- package/dist/cesium/Assets/Textures/maki/marker-stroked.png +0 -0
- package/dist/cesium/Assets/Textures/maki/marker.png +0 -0
- package/dist/cesium/Assets/Textures/maki/minefield.png +0 -0
- package/dist/cesium/Assets/Textures/maki/mobilephone.png +0 -0
- package/dist/cesium/Assets/Textures/maki/monument.png +0 -0
- package/dist/cesium/Assets/Textures/maki/museum.png +0 -0
- package/dist/cesium/Assets/Textures/maki/music.png +0 -0
- package/dist/cesium/Assets/Textures/maki/oil-well.png +0 -0
- package/dist/cesium/Assets/Textures/maki/park.png +0 -0
- package/dist/cesium/Assets/Textures/maki/park2.png +0 -0
- package/dist/cesium/Assets/Textures/maki/parking-garage.png +0 -0
- package/dist/cesium/Assets/Textures/maki/parking.png +0 -0
- package/dist/cesium/Assets/Textures/maki/pharmacy.png +0 -0
- package/dist/cesium/Assets/Textures/maki/pitch.png +0 -0
- package/dist/cesium/Assets/Textures/maki/place-of-worship.png +0 -0
- package/dist/cesium/Assets/Textures/maki/playground.png +0 -0
- package/dist/cesium/Assets/Textures/maki/police.png +0 -0
- package/dist/cesium/Assets/Textures/maki/polling-place.png +0 -0
- package/dist/cesium/Assets/Textures/maki/post.png +0 -0
- package/dist/cesium/Assets/Textures/maki/prison.png +0 -0
- package/dist/cesium/Assets/Textures/maki/rail-above.png +0 -0
- package/dist/cesium/Assets/Textures/maki/rail-light.png +0 -0
- package/dist/cesium/Assets/Textures/maki/rail-metro.png +0 -0
- package/dist/cesium/Assets/Textures/maki/rail-underground.png +0 -0
- package/dist/cesium/Assets/Textures/maki/rail.png +0 -0
- package/dist/cesium/Assets/Textures/maki/religious-christian.png +0 -0
- package/dist/cesium/Assets/Textures/maki/religious-jewish.png +0 -0
- package/dist/cesium/Assets/Textures/maki/religious-muslim.png +0 -0
- package/dist/cesium/Assets/Textures/maki/restaurant.png +0 -0
- package/dist/cesium/Assets/Textures/maki/roadblock.png +0 -0
- package/dist/cesium/Assets/Textures/maki/rocket.png +0 -0
- package/dist/cesium/Assets/Textures/maki/school.png +0 -0
- package/dist/cesium/Assets/Textures/maki/scooter.png +0 -0
- package/dist/cesium/Assets/Textures/maki/shop.png +0 -0
- package/dist/cesium/Assets/Textures/maki/skiing.png +0 -0
- package/dist/cesium/Assets/Textures/maki/slaughterhouse.png +0 -0
- package/dist/cesium/Assets/Textures/maki/soccer.png +0 -0
- package/dist/cesium/Assets/Textures/maki/square-stroked.png +0 -0
- package/dist/cesium/Assets/Textures/maki/square.png +0 -0
- package/dist/cesium/Assets/Textures/maki/star-stroked.png +0 -0
- package/dist/cesium/Assets/Textures/maki/star.png +0 -0
- package/dist/cesium/Assets/Textures/maki/suitcase.png +0 -0
- package/dist/cesium/Assets/Textures/maki/swimming.png +0 -0
- package/dist/cesium/Assets/Textures/maki/telephone.png +0 -0
- package/dist/cesium/Assets/Textures/maki/tennis.png +0 -0
- package/dist/cesium/Assets/Textures/maki/theatre.png +0 -0
- package/dist/cesium/Assets/Textures/maki/toilets.png +0 -0
- package/dist/cesium/Assets/Textures/maki/town-hall.png +0 -0
- package/dist/cesium/Assets/Textures/maki/town.png +0 -0
- package/dist/cesium/Assets/Textures/maki/triangle-stroked.png +0 -0
- package/dist/cesium/Assets/Textures/maki/triangle.png +0 -0
- package/dist/cesium/Assets/Textures/maki/village.png +0 -0
- package/dist/cesium/Assets/Textures/maki/warehouse.png +0 -0
- package/dist/cesium/Assets/Textures/maki/waste-basket.png +0 -0
- package/dist/cesium/Assets/Textures/maki/water.png +0 -0
- package/dist/cesium/Assets/Textures/maki/wetland.png +0 -0
- package/dist/cesium/Assets/Textures/maki/zoo.png +0 -0
- package/dist/cesium/Assets/Textures/moonSmall.jpg +0 -0
- package/dist/cesium/Assets/Textures/pin.svg +0 -1
- package/dist/cesium/Assets/Textures/waterNormals.jpg +0 -0
- package/dist/cesium/Assets/Textures/waterNormalsSmall.jpg +0 -0
- package/dist/cesium/Assets/approximateTerrainHeights.json +0 -1
- package/dist/cesium/ThirdParty/Workers/package.json +0 -1
- package/dist/cesium/ThirdParty/Workers/pako_deflate.min.js +0 -1
- package/dist/cesium/ThirdParty/Workers/pako_inflate.min.js +0 -1
- package/dist/cesium/ThirdParty/Workers/z-worker-pako.js +0 -1
- package/dist/cesium/ThirdParty/basis_transcoder.wasm +0 -0
- package/dist/cesium/ThirdParty/draco_decoder.wasm +0 -0
- package/dist/cesium/ThirdParty/google-earth-dbroot-parser.js +0 -1
- package/dist/cesium/Widgets/Animation/Animation.css +0 -127
- package/dist/cesium/Widgets/Animation/lighter.css +0 -70
- package/dist/cesium/Widgets/BaseLayerPicker/BaseLayerPicker.css +0 -108
- package/dist/cesium/Widgets/BaseLayerPicker/lighter.css +0 -22
- package/dist/cesium/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css +0 -102
- package/dist/cesium/Widgets/CesiumInspector/CesiumInspector.css +0 -113
- package/dist/cesium/Widgets/CesiumWidget/CesiumWidget.css +0 -124
- package/dist/cesium/Widgets/CesiumWidget/lighter.css +0 -14
- package/dist/cesium/Widgets/FullscreenButton/FullscreenButton.css +0 -8
- package/dist/cesium/Widgets/Geocoder/Geocoder.css +0 -70
- package/dist/cesium/Widgets/Geocoder/lighter.css +0 -17
- package/dist/cesium/Widgets/I3SBuildingSceneLayerExplorer/I3SBuildingSceneLayerExplorer.css +0 -27
- package/dist/cesium/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldHillshade.png +0 -0
- package/dist/cesium/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldImagery.png +0 -0
- package/dist/cesium/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldOcean.png +0 -0
- package/dist/cesium/Widgets/Images/ImageryProviders/bingAerial.png +0 -0
- package/dist/cesium/Widgets/Images/ImageryProviders/bingAerialLabels.png +0 -0
- package/dist/cesium/Widgets/Images/ImageryProviders/bingRoads.png +0 -0
- package/dist/cesium/Widgets/Images/ImageryProviders/blueMarble.png +0 -0
- package/dist/cesium/Widgets/Images/ImageryProviders/earthAtNight.png +0 -0
- package/dist/cesium/Widgets/Images/ImageryProviders/mapQuestOpenStreetMap.png +0 -0
- package/dist/cesium/Widgets/Images/ImageryProviders/mapboxSatellite.png +0 -0
- package/dist/cesium/Widgets/Images/ImageryProviders/mapboxStreets.png +0 -0
- package/dist/cesium/Widgets/Images/ImageryProviders/mapboxTerrain.png +0 -0
- package/dist/cesium/Widgets/Images/ImageryProviders/naturalEarthII.png +0 -0
- package/dist/cesium/Widgets/Images/ImageryProviders/openStreetMap.png +0 -0
- package/dist/cesium/Widgets/Images/ImageryProviders/sentinel-2.png +0 -0
- package/dist/cesium/Widgets/Images/ImageryProviders/stadiaAlidadeSmooth.png +0 -0
- package/dist/cesium/Widgets/Images/ImageryProviders/stadiaAlidadeSmoothDark.png +0 -0
- package/dist/cesium/Widgets/Images/ImageryProviders/stamenToner.png +0 -0
- package/dist/cesium/Widgets/Images/ImageryProviders/stamenWatercolor.png +0 -0
- package/dist/cesium/Widgets/Images/NavigationHelp/Mouse.svg +0 -84
- package/dist/cesium/Widgets/Images/NavigationHelp/MouseLeft.svg +0 -76
- package/dist/cesium/Widgets/Images/NavigationHelp/MouseMiddle.svg +0 -76
- package/dist/cesium/Widgets/Images/NavigationHelp/MouseRight.svg +0 -76
- package/dist/cesium/Widgets/Images/NavigationHelp/Touch.svg +0 -120
- package/dist/cesium/Widgets/Images/NavigationHelp/TouchDrag.svg +0 -129
- package/dist/cesium/Widgets/Images/NavigationHelp/TouchRotate.svg +0 -76
- package/dist/cesium/Widgets/Images/NavigationHelp/TouchTilt.svg +0 -135
- package/dist/cesium/Widgets/Images/NavigationHelp/TouchZoom.svg +0 -74
- package/dist/cesium/Widgets/Images/TerrainProviders/CesiumWorldTerrain.png +0 -0
- package/dist/cesium/Widgets/Images/TerrainProviders/Ellipsoid.png +0 -0
- package/dist/cesium/Widgets/Images/TimelineIcons.png +0 -0
- package/dist/cesium/Widgets/Images/info-loading.gif +0 -0
- package/dist/cesium/Widgets/InfoBox/InfoBox.css +0 -92
- package/dist/cesium/Widgets/InfoBox/InfoBoxDescription.css +0 -178
- package/dist/cesium/Widgets/NavigationHelpButton/NavigationHelpButton.css +0 -93
- package/dist/cesium/Widgets/NavigationHelpButton/lighter.css +0 -38
- package/dist/cesium/Widgets/PerformanceWatchdog/PerformanceWatchdog.css +0 -15
- package/dist/cesium/Widgets/ProjectionPicker/ProjectionPicker.css +0 -38
- package/dist/cesium/Widgets/SceneModePicker/SceneModePicker.css +0 -56
- package/dist/cesium/Widgets/SelectionIndicator/SelectionIndicator.css +0 -20
- package/dist/cesium/Widgets/Timeline/Timeline.css +0 -103
- package/dist/cesium/Widgets/Timeline/lighter.css +0 -23
- package/dist/cesium/Widgets/VRButton/VRButton.css +0 -8
- package/dist/cesium/Widgets/Viewer/Viewer.css +0 -107
- package/dist/cesium/Widgets/VoxelInspector/VoxelInspector.css +0 -16
- package/dist/cesium/Widgets/lighter.css +0 -237
- package/dist/cesium/Widgets/lighterShared.css +0 -46
- package/dist/cesium/Widgets/shared.css +0 -103
- package/dist/cesium/Widgets/widgets.css +0 -1346
- package/dist/cesium/Workers/chunk-2ED5WI77.js +0 -26
- package/dist/cesium/Workers/chunk-2MBPFWCP.js +0 -26
- package/dist/cesium/Workers/chunk-3C74MLG3.js +0 -26
- package/dist/cesium/Workers/chunk-45U7TTT3.js +0 -26
- package/dist/cesium/Workers/chunk-4N7SRDH5.js +0 -26
- package/dist/cesium/Workers/chunk-4T6AS6BZ.js +0 -26
- package/dist/cesium/Workers/chunk-5AG2MVRM.js +0 -26
- package/dist/cesium/Workers/chunk-5Z6L2FHX.js +0 -26
- package/dist/cesium/Workers/chunk-6AUUBDOF.js +0 -26
- package/dist/cesium/Workers/chunk-74N6MC2V.js +0 -26
- package/dist/cesium/Workers/chunk-7VJK3KHI.js +0 -26
- package/dist/cesium/Workers/chunk-7VZHIB6P.js +0 -26
- package/dist/cesium/Workers/chunk-7X2YQ6I4.js +0 -27
- package/dist/cesium/Workers/chunk-B2SKQ7LU.js +0 -26
- package/dist/cesium/Workers/chunk-B4TQDFIE.js +0 -26
- package/dist/cesium/Workers/chunk-B6TRTFAA.js +0 -26
- package/dist/cesium/Workers/chunk-BK3HCS7I.js +0 -26
- package/dist/cesium/Workers/chunk-BOPB43LN.js +0 -26
- package/dist/cesium/Workers/chunk-C6DMEJQ7.js +0 -26
- package/dist/cesium/Workers/chunk-CN7UN2OZ.js +0 -26
- package/dist/cesium/Workers/chunk-CSISXEG7.js +0 -26
- package/dist/cesium/Workers/chunk-CUOR5F7T.js +0 -28
- package/dist/cesium/Workers/chunk-DGCK3LD2.js +0 -30
- package/dist/cesium/Workers/chunk-DXEZYE3K.js +0 -62
- package/dist/cesium/Workers/chunk-EXBFEYPQ.js +0 -26
- package/dist/cesium/Workers/chunk-FK5KFB6H.js +0 -26
- package/dist/cesium/Workers/chunk-HPBHKP5S.js +0 -26
- package/dist/cesium/Workers/chunk-JCJ24DHF.js +0 -26
- package/dist/cesium/Workers/chunk-JEWHFDAA.js +0 -26
- package/dist/cesium/Workers/chunk-JZLZJJQD.js +0 -26
- package/dist/cesium/Workers/chunk-KRZBI2MU.js +0 -26
- package/dist/cesium/Workers/chunk-KTTUANTJ.js +0 -26
- package/dist/cesium/Workers/chunk-LDCAXLGS.js +0 -26
- package/dist/cesium/Workers/chunk-LOPN5R3I.js +0 -26
- package/dist/cesium/Workers/chunk-MDLPQIMP.js +0 -26
- package/dist/cesium/Workers/chunk-MRR3RGFO.js +0 -26
- package/dist/cesium/Workers/chunk-NPBZI5YA.js +0 -26
- package/dist/cesium/Workers/chunk-NUSW5B6A.js +0 -26
- package/dist/cesium/Workers/chunk-OUXRUXNB.js +0 -26
- package/dist/cesium/Workers/chunk-QPOPEH3M.js +0 -26
- package/dist/cesium/Workers/chunk-R2AN7EKC.js +0 -26
- package/dist/cesium/Workers/chunk-RURL6ZX2.js +0 -26
- package/dist/cesium/Workers/chunk-SUQM3OSW.js +0 -28
- package/dist/cesium/Workers/chunk-UBIRX2SP.js +0 -26
- package/dist/cesium/Workers/chunk-VAKC5J5C.js +0 -26
- package/dist/cesium/Workers/chunk-VHNZBQTR.js +0 -27
- package/dist/cesium/Workers/chunk-VKV642QV.js +0 -26
- package/dist/cesium/Workers/chunk-VMSXG4OA.js +0 -26
- package/dist/cesium/Workers/chunk-VQZSIOZW.js +0 -26
- package/dist/cesium/Workers/chunk-WZUWQMI7.js +0 -26
- package/dist/cesium/Workers/chunk-YBI55DLZ.js +0 -26
- package/dist/cesium/Workers/chunk-YEJWCH6C.js +0 -26
- package/dist/cesium/Workers/chunk-YPDO7SPO.js +0 -26
- package/dist/cesium/Workers/chunk-ZYWD6OQH.js +0 -26
- package/dist/cesium/Workers/combineGeometry.js +0 -26
- package/dist/cesium/Workers/createBoxGeometry.js +0 -26
- package/dist/cesium/Workers/createBoxOutlineGeometry.js +0 -26
- package/dist/cesium/Workers/createCircleGeometry.js +0 -26
- package/dist/cesium/Workers/createCircleOutlineGeometry.js +0 -26
- package/dist/cesium/Workers/createCoplanarPolygonGeometry.js +0 -26
- package/dist/cesium/Workers/createCoplanarPolygonOutlineGeometry.js +0 -26
- package/dist/cesium/Workers/createCorridorGeometry.js +0 -26
- package/dist/cesium/Workers/createCorridorOutlineGeometry.js +0 -26
- package/dist/cesium/Workers/createCylinderGeometry.js +0 -26
- package/dist/cesium/Workers/createCylinderOutlineGeometry.js +0 -26
- package/dist/cesium/Workers/createEllipseGeometry.js +0 -26
- package/dist/cesium/Workers/createEllipseOutlineGeometry.js +0 -26
- package/dist/cesium/Workers/createEllipsoidGeometry.js +0 -26
- package/dist/cesium/Workers/createEllipsoidOutlineGeometry.js +0 -26
- package/dist/cesium/Workers/createFrustumGeometry.js +0 -26
- package/dist/cesium/Workers/createFrustumOutlineGeometry.js +0 -26
- package/dist/cesium/Workers/createGeometry.js +0 -26
- package/dist/cesium/Workers/createGroundPolylineGeometry.js +0 -26
- package/dist/cesium/Workers/createPlaneGeometry.js +0 -26
- package/dist/cesium/Workers/createPlaneOutlineGeometry.js +0 -26
- package/dist/cesium/Workers/createPolygonGeometry.js +0 -26
- package/dist/cesium/Workers/createPolygonOutlineGeometry.js +0 -26
- package/dist/cesium/Workers/createPolylineGeometry.js +0 -26
- package/dist/cesium/Workers/createPolylineVolumeGeometry.js +0 -26
- package/dist/cesium/Workers/createPolylineVolumeOutlineGeometry.js +0 -26
- package/dist/cesium/Workers/createRectangleGeometry.js +0 -26
- package/dist/cesium/Workers/createRectangleOutlineGeometry.js +0 -26
- package/dist/cesium/Workers/createSimplePolylineGeometry.js +0 -26
- package/dist/cesium/Workers/createSphereGeometry.js +0 -26
- package/dist/cesium/Workers/createSphereOutlineGeometry.js +0 -26
- package/dist/cesium/Workers/createTaskProcessorWorker.js +0 -26
- package/dist/cesium/Workers/createVectorTileClampedPolylines.js +0 -26
- package/dist/cesium/Workers/createVectorTileGeometries.js +0 -26
- package/dist/cesium/Workers/createVectorTilePoints.js +0 -26
- package/dist/cesium/Workers/createVectorTilePolygons.js +0 -26
- package/dist/cesium/Workers/createVectorTilePolylines.js +0 -26
- package/dist/cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +0 -26
- package/dist/cesium/Workers/createVerticesFromHeightmap.js +0 -26
- package/dist/cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +0 -26
- package/dist/cesium/Workers/createWallGeometry.js +0 -26
- package/dist/cesium/Workers/createWallOutlineGeometry.js +0 -26
- package/dist/cesium/Workers/decodeDraco.js +0 -26
- package/dist/cesium/Workers/decodeGoogleEarthEnterprisePacket.js +0 -26
- package/dist/cesium/Workers/decodeI3S.js +0 -26
- package/dist/cesium/Workers/transcodeKTX2.js +0 -56
- package/dist/cesium/Workers/transferTypedArrayTest.js +0 -26
- package/dist/cesium/Workers/upsampleQuantizedTerrainMesh.js +0 -26
- package/src/engines/Cesium/core/Globe.tsx +0 -104
- /package/src/{Map/Sketch/utils.ts → utils/use-window-event.ts} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -6,18 +6,17 @@ import { CSSProperties } from 'react';
|
|
|
6
6
|
import { Feature as Feature_2 } from 'geojson';
|
|
7
7
|
import { ForwardRefExoticComponent } from 'react';
|
|
8
8
|
import { LineString } from 'geojson';
|
|
9
|
-
import { MemoExoticComponent } from 'react';
|
|
10
9
|
import { MultiLineString } from 'geojson';
|
|
11
10
|
import { MultiPoint } from 'geojson';
|
|
12
11
|
import { MultiPolygon } from 'geojson';
|
|
13
12
|
import { MutableRefObject } from 'react';
|
|
13
|
+
import { NamedExoticComponent } from 'react';
|
|
14
14
|
import { Point } from 'geojson';
|
|
15
15
|
import { Polygon as Polygon_2 } from 'geojson';
|
|
16
16
|
import { PropsWithoutRef } from 'react';
|
|
17
17
|
import { ReactNode } from 'react';
|
|
18
18
|
import { RefAttributes } from 'react';
|
|
19
19
|
import { RefObject } from 'react';
|
|
20
|
-
import { RequireExactlyOne } from 'type-fest';
|
|
21
20
|
import { WritableAtom } from 'jotai';
|
|
22
21
|
|
|
23
22
|
export declare type AmbientOcclusionProperty = {
|
|
@@ -161,16 +160,16 @@ export declare type CameraProperty = {
|
|
|
161
160
|
|
|
162
161
|
export declare type Cesium3DTilesAppearance = {
|
|
163
162
|
show?: boolean;
|
|
163
|
+
height?: number;
|
|
164
164
|
color?: string;
|
|
165
165
|
styleUrl?: string;
|
|
166
166
|
shadows?: "disabled" | "enabled" | "cast_only" | "receive_only";
|
|
167
|
-
colorBlendMode?: "highlight" | "replace" | "mix"
|
|
167
|
+
colorBlendMode?: "highlight" | "replace" | "mix";
|
|
168
168
|
edgeWidth?: number;
|
|
169
169
|
edgeColor?: string;
|
|
170
170
|
selectedFeatureColor?: string;
|
|
171
171
|
disableIndexingFeature?: boolean;
|
|
172
172
|
tileset?: string;
|
|
173
|
-
apiKey?: string;
|
|
174
173
|
experimental_clipping?: EXPERIMENTAL_clipping;
|
|
175
174
|
pointSize?: number;
|
|
176
175
|
meta?: unknown;
|
|
@@ -278,6 +277,7 @@ declare type CommonProps = {
|
|
|
278
277
|
isHidden?: boolean;
|
|
279
278
|
isSelected?: boolean;
|
|
280
279
|
meta?: Record<string, unknown>;
|
|
280
|
+
sketchEditingFeature?: SketchEditingFeature;
|
|
281
281
|
};
|
|
282
282
|
|
|
283
283
|
export declare function computeAtom(cache?: typeof globalDataFeaturesCache): WritableAtom<ComputedLayer | undefined, Command, void>;
|
|
@@ -299,6 +299,8 @@ export declare type ConditionsExpression = {
|
|
|
299
299
|
conditions: [string, string][];
|
|
300
300
|
};
|
|
301
301
|
|
|
302
|
+
declare type ControlPointMouseEventHandler = (index: number, isExtrudedPoint: boolean, type: "mousedown" | "click") => void;
|
|
303
|
+
|
|
302
304
|
export declare function convertLayer(l: Layer): LegacyLayer | undefined;
|
|
303
305
|
|
|
304
306
|
export declare function convertLegacyCluster(clusters: LegacyCluster[]): Cluster[];
|
|
@@ -320,6 +322,8 @@ declare type CoreContext = {
|
|
|
320
322
|
handleCameraForceHorizontalRollChange?: (enable?: boolean) => void;
|
|
321
323
|
handleInteractionModeChange?: (mode?: InteractionModeType | undefined) => void;
|
|
322
324
|
onSketchPluginFeatureCreate?: (cb: SketchEventCallback) => void;
|
|
325
|
+
onSketchPluginFeatureUpdate?: (cb: SketchEventCallback) => void;
|
|
326
|
+
onSketchPluginFeatureDelete?: (cb: SketchEventCallback) => void;
|
|
323
327
|
onSketchTypeChange?: (cb: (type: SketchType | undefined) => void) => void;
|
|
324
328
|
onLayerVisibility?: (cb: (e: LayerVisibilityEvent) => void) => void;
|
|
325
329
|
onLayerLoad?: (cb: (e: LayerLoadEvent) => void) => void;
|
|
@@ -331,9 +335,9 @@ declare type CoreContext = {
|
|
|
331
335
|
|
|
332
336
|
export declare const coreContext: Context<CoreContext>;
|
|
333
337
|
|
|
334
|
-
export declare const CoreVisualizer:
|
|
338
|
+
export declare const CoreVisualizer: NamedExoticComponent<CoreVisualizerProps & {
|
|
335
339
|
children?: ReactNode;
|
|
336
|
-
} & RefAttributes<MapRef
|
|
340
|
+
} & RefAttributes<MapRef>>;
|
|
337
341
|
|
|
338
342
|
export declare type CoreVisualizerProps = {
|
|
339
343
|
engine?: EngineType;
|
|
@@ -352,6 +356,7 @@ export declare type CoreVisualizerProps = {
|
|
|
352
356
|
ready?: boolean;
|
|
353
357
|
hiddenLayers?: string[];
|
|
354
358
|
zoomedLayerId?: string;
|
|
359
|
+
displayCredits?: boolean;
|
|
355
360
|
onCameraChange?: (camera: Camera) => void;
|
|
356
361
|
onLayerDrop?: (layerId: string, propertyKey: string, position: LatLng | undefined) => void;
|
|
357
362
|
onLayerSelect?: (layerId: string | undefined, layer: (() => Promise<ComputedLayer | undefined>) | undefined, feature: ComputedFeature | undefined, reason: LayerSelectionReason | undefined) => void;
|
|
@@ -359,12 +364,26 @@ export declare type CoreVisualizerProps = {
|
|
|
359
364
|
onMount?: () => void;
|
|
360
365
|
onSketchTypeChangeProp?: (type: SketchType | undefined) => void;
|
|
361
366
|
onSketchFeatureCreate?: (feature: SketchFeature | null) => void;
|
|
367
|
+
onSketchFeatureUpdate?: (feature: SketchFeature | null) => void;
|
|
368
|
+
onSketchFeatureDelete?: (layerId: string, featureId: string) => void;
|
|
362
369
|
onInteractionModeChange?: (mode: InteractionModeType) => void;
|
|
370
|
+
onAPIReady?: () => void;
|
|
371
|
+
onCreditsUpdate?: (credits?: Credits) => void;
|
|
363
372
|
};
|
|
364
373
|
|
|
365
|
-
export declare type
|
|
374
|
+
export declare type CreditItem = {
|
|
375
|
+
html?: string;
|
|
376
|
+
};
|
|
366
377
|
|
|
367
|
-
declare type
|
|
378
|
+
export declare type Credits = {
|
|
379
|
+
engine: {
|
|
380
|
+
cesium?: CreditItem;
|
|
381
|
+
};
|
|
382
|
+
lightbox: CreditItem[];
|
|
383
|
+
screen: CreditItem[];
|
|
384
|
+
};
|
|
385
|
+
|
|
386
|
+
declare type CursorType = "default" | "auto" | "help" | "pointer" | "grab" | "crosshair" | "wait";
|
|
368
387
|
|
|
369
388
|
export declare type Data = {
|
|
370
389
|
type: DataType;
|
|
@@ -376,6 +395,9 @@ export declare type Data = {
|
|
|
376
395
|
updateInterval?: number;
|
|
377
396
|
parameters?: Record<string, any>;
|
|
378
397
|
idProperty?: string;
|
|
398
|
+
serviceTokens?: {
|
|
399
|
+
googleMapApiKey?: string;
|
|
400
|
+
};
|
|
379
401
|
time?: {
|
|
380
402
|
property?: string;
|
|
381
403
|
interval?: number;
|
|
@@ -489,7 +511,8 @@ export declare type EngineProps = {
|
|
|
489
511
|
isLayerDragging?: boolean;
|
|
490
512
|
shouldRender?: boolean;
|
|
491
513
|
meta?: Record<string, unknown>;
|
|
492
|
-
|
|
514
|
+
displayCredits?: boolean;
|
|
515
|
+
layersRef?: RefObject<LayersRef | null>;
|
|
493
516
|
requestingRenderMode?: MutableRefObject<RequestingRenderMode>;
|
|
494
517
|
timelineManagerRef?: TimelineManagerRef;
|
|
495
518
|
onLayerSelect?: (layerId: string | undefined, featureId?: string, options?: LayerSelectionReason, info?: SelectedFeatureInfo) => void;
|
|
@@ -503,6 +526,7 @@ export declare type EngineProps = {
|
|
|
503
526
|
onLayerSelectWithRectStart?: (e: LayerSelectWithRectStart) => void;
|
|
504
527
|
onLayerSelectWithRectMove?: (e: LayerSelectWithRectMove) => void;
|
|
505
528
|
onLayerSelectWithRectEnd?: (e: LayerSelectWithRectEnd) => void;
|
|
529
|
+
onCreditsUpdate?: (credits?: Credits) => void;
|
|
506
530
|
};
|
|
507
531
|
|
|
508
532
|
export declare type EngineRef = {
|
|
@@ -531,7 +555,8 @@ export declare type EngineRef = {
|
|
|
531
555
|
isPositionVisible: (position: [x: number, y: number, z: number]) => boolean;
|
|
532
556
|
setView: (camera: CameraPosition) => void;
|
|
533
557
|
toWindowPosition: (position: [x: number, y: number, z: number]) => [x: number, y: number] | undefined;
|
|
534
|
-
getExtrudedHeight: (position: [x: number, y: number, z: number], windowPosition: [x: number, y: number]) => number | undefined;
|
|
558
|
+
getExtrudedHeight: (position: [x: number, y: number, z: number], windowPosition: [x: number, y: number], allowNegative?: boolean) => number | undefined;
|
|
559
|
+
getExtrudedPoint: (position: [x: number, y: number, z: number], extrutedHeight: number) => Position3d | undefined;
|
|
535
560
|
getSurfaceDistance: (point1: Cartesian3, point2: Cartesian3) => number | undefined;
|
|
536
561
|
equalsEpsilon2d: (point1: Position2d, point2: Position2d, relativeEpsilon: number | undefined, absoluteEpsilon: number | undefined) => boolean;
|
|
537
562
|
equalsEpsilon3d: (point1: Position3d, point2: Position3d, relativeEpsilon: number | undefined, absoluteEpsilon: number | undefined) => boolean;
|
|
@@ -539,7 +564,7 @@ export declare type EngineRef = {
|
|
|
539
564
|
type: SketchType;
|
|
540
565
|
controlPoints: Position3d[];
|
|
541
566
|
}) => LineString | Polygon_2 | MultiPolygon | Point | undefined;
|
|
542
|
-
setCursor: (cursor:
|
|
567
|
+
setCursor: (cursor: CursorType) => void;
|
|
543
568
|
flyTo: FlyTo;
|
|
544
569
|
flyToBBox: (bbox: [number, number, number, number], options?: CameraOptions & {
|
|
545
570
|
heading?: number;
|
|
@@ -578,7 +603,7 @@ export declare type EngineRef = {
|
|
|
578
603
|
tick: () => Date | void;
|
|
579
604
|
inViewport: (location?: LatLng) => boolean;
|
|
580
605
|
onTick: TickEvent;
|
|
581
|
-
tickEventCallback?: RefObject<TickEventCallback[]>;
|
|
606
|
+
tickEventCallback?: RefObject<TickEventCallback[] | null>;
|
|
582
607
|
removeTickEventListener: TickEvent;
|
|
583
608
|
findFeatureById: (layerId: string, featureId: string) => Feature | undefined;
|
|
584
609
|
bringToFront: (layerId: string) => void;
|
|
@@ -589,6 +614,8 @@ export declare type EngineRef = {
|
|
|
589
614
|
selectFeatures: (layerId: string, featureId: string[]) => void;
|
|
590
615
|
unselectFeatures: (layerId: string, featureId: string[]) => void;
|
|
591
616
|
pickManyFromViewport: (windowPosition: [x: number, y: number], windowWidth: number, windowHeight: number, condition?: (f: PickedFeature) => boolean) => PickedFeature[] | undefined;
|
|
617
|
+
calcRectangleControlPoint: (p1: Position3d, p2: Position3d, p3: Position3d) => [p1: Position3d, p2: Position3d, p3: Position3d];
|
|
618
|
+
getCredits: () => Credits | undefined;
|
|
592
619
|
} & MouseEventHandles;
|
|
593
620
|
|
|
594
621
|
export declare const engines: {
|
|
@@ -745,13 +772,19 @@ export declare type FrustumAppearance = {
|
|
|
745
772
|
length?: number;
|
|
746
773
|
};
|
|
747
774
|
|
|
748
|
-
export declare type
|
|
775
|
+
export declare type GeoidProperty = {
|
|
776
|
+
server: {
|
|
777
|
+
url: string;
|
|
778
|
+
geoidProperty: string;
|
|
779
|
+
};
|
|
780
|
+
};
|
|
749
781
|
|
|
750
|
-
declare type
|
|
751
|
-
|
|
752
|
-
controlPoints: readonly Position3d[];
|
|
782
|
+
declare type GeoidRef = {
|
|
783
|
+
getGeoidHeight: (lat?: number, lng?: number) => Promise<number | undefined>;
|
|
753
784
|
};
|
|
754
785
|
|
|
786
|
+
export declare type Geometry = Point | LineString | Polygon_2 | MultiPoint | MultiLineString | MultiPolygon;
|
|
787
|
+
|
|
755
788
|
export declare type GeometryOptionsXYZ = {
|
|
756
789
|
type: SketchType;
|
|
757
790
|
controlPoints: Position3d[];
|
|
@@ -844,7 +877,7 @@ declare type InfoboxProperty = {
|
|
|
844
877
|
|
|
845
878
|
export declare const INTERACTION_MODES: Record<InteractionModeType, number>;
|
|
846
879
|
|
|
847
|
-
export declare type InteractionModeType = "default" | "move" | "selection" | "sketch";
|
|
880
|
+
export declare type InteractionModeType = "default" | "move" | "selection" | "sketch" | "spatialId";
|
|
848
881
|
|
|
849
882
|
export declare function isSketchType(value: unknown): value is SketchType;
|
|
850
883
|
|
|
@@ -955,6 +988,7 @@ export declare type LayersRef = {
|
|
|
955
988
|
deleteLayer: (...ids: string[]) => void;
|
|
956
989
|
isLayer: (obj: any) => obj is LazyLayer;
|
|
957
990
|
isComputedLayer: (obj: any) => obj is ComputedLayer;
|
|
991
|
+
isTempLayer: (layerId?: string) => boolean;
|
|
958
992
|
layers: () => LazyLayer[];
|
|
959
993
|
walk: <T>(fn: (layer: LazyLayer, index: number, parents: LazyLayer[]) => T | void) => T | undefined;
|
|
960
994
|
find: (fn: (layer: LazyLayer, index: number, parents: LazyLayer[]) => boolean) => LazyLayer | undefined;
|
|
@@ -985,6 +1019,7 @@ export declare type LayerVisibilityEvent = {
|
|
|
985
1019
|
*/
|
|
986
1020
|
export declare type LazyLayer = Readonly<Layer> & {
|
|
987
1021
|
computed?: Readonly<ComputedLayer>;
|
|
1022
|
+
isTempLayer?: boolean;
|
|
988
1023
|
pluginId?: string;
|
|
989
1024
|
extensionId?: string;
|
|
990
1025
|
property?: any;
|
|
@@ -1075,15 +1110,16 @@ export declare type LUT = readonly ColorTuple[];
|
|
|
1075
1110
|
declare const Map_2: ForwardRefExoticComponent< {
|
|
1076
1111
|
engines?: Record<string, Engine> | undefined;
|
|
1077
1112
|
engine?: string | undefined;
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
} & RefAttributes<MapRef>>;
|
|
1113
|
+
onAPIReady?: (() => void) | undefined;
|
|
1114
|
+
} & Omit<Props_2, "Feature" | "viewerProperty" | "selectionReason" | "delegatedDataTypes" | "clusterComponent" | "selectedLayerId"> & Omit<EngineProps, "onLayerSelect" | "selectedLayerId" | "layerSelectionReason"> & Omit<SketchProps, "engineRef" | "SketchComponent" | "layersRef"> & RefAttributes<MapRef>>;
|
|
1081
1115
|
export { Map_2 as Map }
|
|
1082
1116
|
|
|
1083
1117
|
export declare type MapRef = {
|
|
1084
1118
|
engine: WrappedRef<EngineRef>;
|
|
1085
1119
|
layers: WrappedRef<LayersRef>;
|
|
1086
1120
|
sketch: WrappedRef<SketchRef>;
|
|
1121
|
+
spatialId?: WrappedRef<SpatialIdRef>;
|
|
1122
|
+
geoid: WrappedRef<GeoidRef>;
|
|
1087
1123
|
timeline?: TimelineManagerRef;
|
|
1088
1124
|
};
|
|
1089
1125
|
|
|
@@ -1136,6 +1172,7 @@ export declare type ModelAppearance = {
|
|
|
1136
1172
|
model?: string;
|
|
1137
1173
|
url?: string;
|
|
1138
1174
|
heightReference?: "none" | "clamp" | "relative";
|
|
1175
|
+
height?: number;
|
|
1139
1176
|
heading?: number;
|
|
1140
1177
|
pitch?: number;
|
|
1141
1178
|
roll?: number;
|
|
@@ -1273,6 +1310,7 @@ export declare type PolygonAppearance = {
|
|
|
1273
1310
|
stroke?: boolean;
|
|
1274
1311
|
strokeColor?: string;
|
|
1275
1312
|
strokeWidth?: number;
|
|
1313
|
+
height?: number;
|
|
1276
1314
|
heightReference?: "none" | "clamp" | "relative";
|
|
1277
1315
|
shadows?: "disabled" | "enabled" | "cast_only" | "receive_only";
|
|
1278
1316
|
lineJoin?: CanvasLineJoin;
|
|
@@ -1317,9 +1355,8 @@ declare type PropertyItem<T> = {
|
|
|
1317
1355
|
export declare type Props = {
|
|
1318
1356
|
engines?: Record<string, Engine>;
|
|
1319
1357
|
engine?: string;
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
};
|
|
1358
|
+
onAPIReady?: () => void;
|
|
1359
|
+
} & Omit<Props_2, "Feature" | "clusterComponent" | "selectionReason" | "delegatedDataTypes" | "selectedLayerId" | "viewerProperty"> & Omit<EngineProps, "onLayerSelect" | "layerSelectionReason" | "selectedLayerId"> & Omit<SketchProps, "layersRef" | "engineRef" | "SketchComponent">;
|
|
1323
1360
|
|
|
1324
1361
|
declare type Props_2 = Omit<Props_3, "atomMap" | "isHidden" | "selectedLayerId"> & {
|
|
1325
1362
|
selectedLayer?: {
|
|
@@ -1330,8 +1367,9 @@ declare type Props_2 = Omit<Props_3, "atomMap" | "isHidden" | "selectedLayerId">
|
|
|
1330
1367
|
hiddenLayers?: string[];
|
|
1331
1368
|
viewerProperty?: ViewerProperty;
|
|
1332
1369
|
requestingRenderMode?: MutableRefObject<RequestingRenderMode>;
|
|
1333
|
-
engineRef?: RefObject<EngineRef>;
|
|
1370
|
+
engineRef?: RefObject<EngineRef | null>;
|
|
1334
1371
|
onLayerSelect?: (layerId: string | undefined, featureId: string | undefined, layer: (() => Promise<ComputedLayer | undefined>) | undefined, reason: LayerSelectionReason | undefined, info: SelectedFeatureInfo | undefined) => void;
|
|
1372
|
+
onMount?: () => void;
|
|
1335
1373
|
};
|
|
1336
1374
|
|
|
1337
1375
|
declare type Props_3 = {
|
|
@@ -1459,17 +1497,34 @@ export declare type ShadowProperty = {
|
|
|
1459
1497
|
|
|
1460
1498
|
export declare type SketchAppearance = Partial<LayerAppearanceTypes>;
|
|
1461
1499
|
|
|
1462
|
-
declare type SketchComponentProps =
|
|
1463
|
-
|
|
1464
|
-
|
|
1500
|
+
declare type SketchComponentProps = {
|
|
1501
|
+
geometryOptions?: {
|
|
1502
|
+
type: SketchType;
|
|
1503
|
+
controlPoints: readonly Position3d[];
|
|
1504
|
+
} | null;
|
|
1465
1505
|
extrudedHeight?: number;
|
|
1506
|
+
extrudedPoint?: Position3d;
|
|
1507
|
+
centroidBasePoint?: Position3d;
|
|
1508
|
+
centroidExtrudedPoint?: Position3d;
|
|
1466
1509
|
disableShadow?: boolean;
|
|
1467
|
-
enableRelativeHeight?: boolean;
|
|
1468
1510
|
color?: string;
|
|
1469
|
-
|
|
1511
|
+
isEditing?: boolean;
|
|
1512
|
+
catchedControlPointIndex?: number;
|
|
1513
|
+
catchedExtrudedPoint?: boolean;
|
|
1514
|
+
selectedControlPointIndex?: number;
|
|
1515
|
+
handleControlPointMouseEvent?: ControlPointMouseEventHandler;
|
|
1516
|
+
handleAddControlPoint?: (position: Position3d, index: number) => void;
|
|
1517
|
+
};
|
|
1470
1518
|
|
|
1471
1519
|
export declare type SketchComponentType = ComponentType<SketchComponentProps>;
|
|
1472
1520
|
|
|
1521
|
+
export declare type SketchEditFeatureChangeCb = (feature: SketchEditingFeature | undefined) => void;
|
|
1522
|
+
|
|
1523
|
+
export declare type SketchEditingFeature = {
|
|
1524
|
+
layerId: string;
|
|
1525
|
+
feature: ComputedFeature;
|
|
1526
|
+
};
|
|
1527
|
+
|
|
1473
1528
|
export declare type SketchEventCallback = (event: SketchEventProps) => void;
|
|
1474
1529
|
|
|
1475
1530
|
export declare type SketchEventProps = {
|
|
@@ -1490,14 +1545,14 @@ export declare type SketchOptions = {
|
|
|
1490
1545
|
appearance?: SketchAppearance;
|
|
1491
1546
|
dataOnly?: boolean;
|
|
1492
1547
|
disableShadow?: boolean;
|
|
1493
|
-
enableRelativeHeight?: boolean;
|
|
1494
1548
|
rightClickToAbort?: boolean;
|
|
1495
1549
|
autoResetInteractionMode?: boolean;
|
|
1550
|
+
useCentroidExtrudedHeight?: boolean;
|
|
1496
1551
|
};
|
|
1497
1552
|
|
|
1498
1553
|
export declare type SketchProps = {
|
|
1499
|
-
layersRef: RefObject<LayersRef>;
|
|
1500
|
-
engineRef: RefObject<EngineRef>;
|
|
1554
|
+
layersRef: RefObject<LayersRef | null>;
|
|
1555
|
+
engineRef: RefObject<EngineRef | null>;
|
|
1501
1556
|
SketchComponent?: SketchComponentType;
|
|
1502
1557
|
selectedFeature?: Feature;
|
|
1503
1558
|
interactionMode?: InteractionModeType;
|
|
@@ -1505,7 +1560,17 @@ export declare type SketchProps = {
|
|
|
1505
1560
|
onSketchTypeChange?: (type: SketchType | undefined, from?: "editor" | "plugin") => void;
|
|
1506
1561
|
onSketchFeatureCreate?: (feature: SketchFeature | null) => void;
|
|
1507
1562
|
onSketchPluginFeatureCreate?: (props: SketchEventProps) => void;
|
|
1563
|
+
onSketchFeatureUpdate?: (feature: SketchFeature | null) => void;
|
|
1564
|
+
onSketchPluginFeatureUpdate?: (props: SketchEventProps) => void;
|
|
1565
|
+
onSketchFeatureDelete?: (layerId: string, featureId: string) => void;
|
|
1566
|
+
onSketchPluginFeatureDelete?: (props: {
|
|
1567
|
+
layerId: string;
|
|
1568
|
+
featureId: string;
|
|
1569
|
+
}) => void;
|
|
1508
1570
|
onLayerSelect?: OnLayerSelectType;
|
|
1571
|
+
sketchEditingFeature?: SketchEditingFeature;
|
|
1572
|
+
onSketchEditFeature?: (feature: SketchEditingFeature | undefined) => void;
|
|
1573
|
+
onMount?: () => void;
|
|
1509
1574
|
};
|
|
1510
1575
|
|
|
1511
1576
|
export declare type SketchRef = {
|
|
@@ -1513,6 +1578,11 @@ export declare type SketchRef = {
|
|
|
1513
1578
|
setType: (type: SketchType | undefined, from?: "editor" | "plugin") => void;
|
|
1514
1579
|
getOptions: () => SketchOptions;
|
|
1515
1580
|
overrideOptions: (options: SketchOptions) => void;
|
|
1581
|
+
editFeature: (feature: SketchEditingFeature | undefined) => void;
|
|
1582
|
+
cancelEdit: (ignoreAutoReSelect?: boolean) => void;
|
|
1583
|
+
applyEdit: () => void;
|
|
1584
|
+
deleteFeature: (layerId: string, featureId: string) => void;
|
|
1585
|
+
onEditFeatureChange: (cb: SketchEditFeatureChangeCb) => void;
|
|
1516
1586
|
};
|
|
1517
1587
|
|
|
1518
1588
|
export declare type SketchType = "marker" | "polyline" | "circle" | "rectangle" | "polygon" | "extrudedCircle" | "extrudedRectangle" | "extrudedPolygon";
|
|
@@ -1543,6 +1613,49 @@ export declare type Spacing = {
|
|
|
1543
1613
|
top: number;
|
|
1544
1614
|
};
|
|
1545
1615
|
|
|
1616
|
+
declare type SpatialIdPickSpaceOptions = {
|
|
1617
|
+
zoom?: number;
|
|
1618
|
+
maxHeight?: number;
|
|
1619
|
+
minHeight?: number;
|
|
1620
|
+
dataOnly?: boolean;
|
|
1621
|
+
rightClickToExit?: boolean;
|
|
1622
|
+
color?: string;
|
|
1623
|
+
outlineColor?: string;
|
|
1624
|
+
groundIndicatorColor?: string;
|
|
1625
|
+
selectorColor?: string;
|
|
1626
|
+
selectorOutlineColor?: string;
|
|
1627
|
+
verticalSpaceIndicatorColor?: string;
|
|
1628
|
+
verticalSpaceIndicatorOutlineColor?: string;
|
|
1629
|
+
};
|
|
1630
|
+
|
|
1631
|
+
declare type SpatialIdRef = {
|
|
1632
|
+
pickSpace: (options?: SpatialIdPickSpaceOptions) => void;
|
|
1633
|
+
exitPickSpace: () => void;
|
|
1634
|
+
onSpacePick: (cb: (space: SpatialIdSpaceData) => void) => void;
|
|
1635
|
+
};
|
|
1636
|
+
|
|
1637
|
+
declare type SpatialIdSpaceData = {
|
|
1638
|
+
id: string;
|
|
1639
|
+
center: {
|
|
1640
|
+
lat: number;
|
|
1641
|
+
lng: number;
|
|
1642
|
+
alt?: number;
|
|
1643
|
+
};
|
|
1644
|
+
alt: number;
|
|
1645
|
+
zoom: number;
|
|
1646
|
+
zfxy: {
|
|
1647
|
+
z: number;
|
|
1648
|
+
f: number;
|
|
1649
|
+
x: number;
|
|
1650
|
+
y: number;
|
|
1651
|
+
};
|
|
1652
|
+
zfxyStr: string;
|
|
1653
|
+
tilehash: string;
|
|
1654
|
+
hilbertTilehash: string;
|
|
1655
|
+
hilbertIndex: string;
|
|
1656
|
+
vertices: [number, number, number][];
|
|
1657
|
+
};
|
|
1658
|
+
|
|
1546
1659
|
export declare type StyleExpression = ConditionsExpression | string;
|
|
1547
1660
|
|
|
1548
1661
|
export declare type SunProperty = {
|
|
@@ -1581,6 +1694,8 @@ export declare type TileLabelProperty = {
|
|
|
1581
1694
|
id: string;
|
|
1582
1695
|
labelType: "japan_gsi_optimal_bvmap";
|
|
1583
1696
|
style: Record<string, any>;
|
|
1697
|
+
near?: number;
|
|
1698
|
+
far?: number;
|
|
1584
1699
|
};
|
|
1585
1700
|
|
|
1586
1701
|
export declare type TileProperty = {
|
|
@@ -1676,7 +1791,7 @@ export declare type Undefinable<T extends object> = {
|
|
|
1676
1791
|
|
|
1677
1792
|
export declare function useGet<T>(value: T): () => T;
|
|
1678
1793
|
|
|
1679
|
-
export declare const useVisualizer: () => RefObject<MapRef>;
|
|
1794
|
+
export declare const useVisualizer: () => RefObject<MapRef | null>;
|
|
1680
1795
|
|
|
1681
1796
|
export declare type ValueType = keyof ValueTypes;
|
|
1682
1797
|
|
|
@@ -1701,6 +1816,7 @@ export declare type ValueTypes = {
|
|
|
1701
1816
|
|
|
1702
1817
|
export declare type ViewerProperty = {
|
|
1703
1818
|
globe?: GlobeProperty;
|
|
1819
|
+
geoid?: GeoidProperty;
|
|
1704
1820
|
terrain?: TerrainProperty;
|
|
1705
1821
|
scene?: SceneProperty;
|
|
1706
1822
|
tiles?: TileProperty[];
|
|
@@ -1720,7 +1836,7 @@ export declare type Viewport = {
|
|
|
1720
1836
|
query: Record<string, string>;
|
|
1721
1837
|
};
|
|
1722
1838
|
|
|
1723
|
-
export declare type VisualizerContext = RefObject<MapRef>;
|
|
1839
|
+
export declare type VisualizerContext = RefObject<MapRef | null>;
|
|
1724
1840
|
|
|
1725
1841
|
export declare type WrappedRef<T> = {
|
|
1726
1842
|
[P in keyof T as T[P] extends (...args: any[]) => any ? P : never]: T[P] extends (...args: infer A) => infer R ? (...args: A) => R | undefined : never;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reearth/core",
|
|
3
|
-
"version": "0.0.7-alpha.
|
|
3
|
+
"version": "0.0.7-alpha.51",
|
|
4
4
|
"author": "Re:Earth contributors <community@reearth.io>",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"description": "A library that abstracts a map engine as one common API.",
|
|
@@ -21,23 +21,34 @@
|
|
|
21
21
|
"storybook": "storybook dev -p 6007",
|
|
22
22
|
"build-storybook": "storybook build",
|
|
23
23
|
"preversion": "yarn test run",
|
|
24
|
-
"version": "yarn build"
|
|
24
|
+
"version": "yarn build",
|
|
25
|
+
"sketch-typegen": "xstate typegen src/**/sketchMachine.ts"
|
|
25
26
|
},
|
|
26
27
|
"engines": {
|
|
27
28
|
"node": ">=20"
|
|
28
29
|
},
|
|
29
30
|
"peerDependencies": {
|
|
30
|
-
"cesium": "1.x",
|
|
31
|
-
"react": "^
|
|
32
|
-
"react-dom": "^
|
|
31
|
+
"cesium": "1.118.x",
|
|
32
|
+
"react": "^19.0.0",
|
|
33
|
+
"react-dom": "^19.0.0"
|
|
33
34
|
},
|
|
34
35
|
"dependencies": {
|
|
35
|
-
"@
|
|
36
|
+
"@radix-ui/react-checkbox": "1.3.3",
|
|
37
|
+
"@radix-ui/react-dialog": "1.1.15",
|
|
38
|
+
"@radix-ui/react-icons": "1.3.2",
|
|
39
|
+
"@radix-ui/react-select": "2.2.6",
|
|
40
|
+
"@radix-ui/react-separator": "1.1.8",
|
|
41
|
+
"@radix-ui/react-slider": "1.3.6",
|
|
42
|
+
"@radix-ui/react-slot": "1.2.4",
|
|
43
|
+
"@radix-ui/react-switch": "1.2.6",
|
|
44
|
+
"@radix-ui/react-toggle": "1.1.10",
|
|
45
|
+
"@reearth/cesium-mvt-imagery-provider": "1.6.1",
|
|
46
|
+
"@reearth/spatial-id-sdk": "0.0.0",
|
|
36
47
|
"@rot1024/use-transition": "1.0.0",
|
|
37
48
|
"@seznam/compose-react-refs": "1.0.6",
|
|
38
49
|
"@turf/invariant": "6.5.0",
|
|
39
50
|
"@turf/turf": "6.5.0",
|
|
40
|
-
"@types/proj4": "2.5.
|
|
51
|
+
"@types/proj4": "2.5.6",
|
|
41
52
|
"@ungap/event-target": "0.2.4",
|
|
42
53
|
"@xstate/react": "3.2.1",
|
|
43
54
|
"cesium-dnd": "1.1.0",
|
|
@@ -48,24 +59,27 @@
|
|
|
48
59
|
"geojson": "0.5.0",
|
|
49
60
|
"jotai": "1.12.1",
|
|
50
61
|
"js-md5": "0.7.3",
|
|
51
|
-
"jsep": "1.
|
|
52
|
-
"jsonpath-plus": "
|
|
62
|
+
"jsep": "1.4.0",
|
|
63
|
+
"jsonpath-plus": "10.3.0",
|
|
53
64
|
"jszip": "3.10.1",
|
|
54
65
|
"lodash-es": "4.17.21",
|
|
55
66
|
"lru-cache": "8.0.4",
|
|
56
67
|
"pbf": "3.2.1",
|
|
57
|
-
"proj4": "2.
|
|
68
|
+
"proj4": "2.20.2",
|
|
58
69
|
"protomaps": "1.23.1",
|
|
59
70
|
"react-dnd": "16.0.1",
|
|
60
71
|
"react-dnd-html5-backend": "16.0.1",
|
|
61
72
|
"react-error-boundary": "4.0.11",
|
|
62
73
|
"react-nl2br": "1.0.4",
|
|
63
|
-
"react-use": "17.
|
|
64
|
-
"resium": "
|
|
74
|
+
"react-use": "17.6.0",
|
|
75
|
+
"resium": "1.18.4",
|
|
65
76
|
"suspend-react": "0.1.3",
|
|
77
|
+
"tailwind-merge": "2.5.2",
|
|
78
|
+
"tailwindcss": "3.4.10",
|
|
79
|
+
"tailwindcss-animate": "1.0.7",
|
|
66
80
|
"tiny-invariant": "1.3.3",
|
|
67
|
-
"use-callback-ref": "1.3.
|
|
68
|
-
"use-custom-compare": "1.
|
|
81
|
+
"use-callback-ref": "1.3.3",
|
|
82
|
+
"use-custom-compare": "1.5.0",
|
|
69
83
|
"uuid": "9.0.1",
|
|
70
84
|
"xstate": "4.38.2"
|
|
71
85
|
},
|
|
@@ -73,49 +87,51 @@
|
|
|
73
87
|
"@apollo/client": "3.8.1",
|
|
74
88
|
"@chromatic-com/storybook": "^1.3.3",
|
|
75
89
|
"@emotion/jest": "11.11.0",
|
|
76
|
-
"@storybook/addon-essentials": "8.
|
|
77
|
-
"@storybook/addon-interactions": "8.
|
|
78
|
-
"@storybook/addon-links": "8.
|
|
79
|
-
"@storybook/addon-onboarding": "8.
|
|
80
|
-
"@storybook/blocks": "8.
|
|
81
|
-
"@storybook/react": "8.
|
|
82
|
-
"@storybook/react-vite": "8.
|
|
83
|
-
"@storybook/test": "8.
|
|
90
|
+
"@storybook/addon-essentials": "8.4.7",
|
|
91
|
+
"@storybook/addon-interactions": "8.4.7",
|
|
92
|
+
"@storybook/addon-links": "8.4.7",
|
|
93
|
+
"@storybook/addon-onboarding": "8.4.7",
|
|
94
|
+
"@storybook/blocks": "8.4.7",
|
|
95
|
+
"@storybook/react": "8.4.7",
|
|
96
|
+
"@storybook/react-vite": "8.4.7",
|
|
97
|
+
"@storybook/test": "8.4.7",
|
|
84
98
|
"@testing-library/jest-dom": "6.1.4",
|
|
85
99
|
"@testing-library/react": "14.0.0",
|
|
86
100
|
"@types/d3": "7.4.3",
|
|
87
|
-
"@types/geojson": "7946.0.
|
|
88
|
-
"@types/js-md5": "0.
|
|
101
|
+
"@types/geojson": "7946.0.16",
|
|
102
|
+
"@types/js-md5": "0.8.0",
|
|
89
103
|
"@types/lodash-es": "4.17.12",
|
|
90
|
-
"@types/node": "20.
|
|
104
|
+
"@types/node": "20.17.15",
|
|
91
105
|
"@types/pbf": "3.0.5",
|
|
92
|
-
"@types/react": "
|
|
93
|
-
"@types/react-dom": "
|
|
106
|
+
"@types/react": "19.0.0",
|
|
107
|
+
"@types/react-dom": "19.0.0",
|
|
108
|
+
"@types/scheduler": "0.23.0",
|
|
94
109
|
"@types/uuid": "9.0.8",
|
|
95
|
-
"@typescript-eslint/eslint-plugin": "7.2.0",
|
|
96
|
-
"@typescript-eslint/parser": "7.2.0",
|
|
97
110
|
"@vitejs/plugin-react": "4.2.1",
|
|
98
|
-
"
|
|
111
|
+
"@xstate/cli": "0.5.17",
|
|
112
|
+
"autoprefixer": "10.4.22",
|
|
113
|
+
"cesium": "1.118.0",
|
|
114
|
+
"class-variance-authority": "0.7.1",
|
|
115
|
+
"clsx": "2.1.1",
|
|
99
116
|
"eslint": "8.57.0",
|
|
100
117
|
"eslint-config-reearth": "0.3.0",
|
|
101
|
-
"eslint-plugin-react-hooks": "4.6.0",
|
|
102
|
-
"eslint-plugin-react-refresh": "0.4.6",
|
|
103
118
|
"eslint-plugin-storybook": "0.8.0",
|
|
104
119
|
"jsdom": "22.1.0",
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"react
|
|
108
|
-
"
|
|
120
|
+
"postcss": "8.5.6",
|
|
121
|
+
"prettier": "3.1.0",
|
|
122
|
+
"react": "19.0.1",
|
|
123
|
+
"react-dom": "19.0.1",
|
|
124
|
+
"storybook": "8.4.7",
|
|
109
125
|
"typescript": "5.2.2",
|
|
110
126
|
"vite": "5.0.8",
|
|
111
|
-
"vite-plugin-cesium": "1.2.
|
|
127
|
+
"vite-plugin-cesium": "1.2.23",
|
|
112
128
|
"vite-plugin-dts": "3.8.1",
|
|
113
|
-
"vite-plugin-svgr": "4.
|
|
129
|
+
"vite-plugin-svgr": "4.5.0",
|
|
114
130
|
"vite-tsconfig-paths": "^4.3.2",
|
|
115
131
|
"vitest": "1.0.4",
|
|
116
132
|
"web-streams-polyfill": "3.2.1"
|
|
117
133
|
},
|
|
118
134
|
"resolutions": {
|
|
119
|
-
"jackspeak": "
|
|
135
|
+
"jackspeak": "3.1.2"
|
|
120
136
|
}
|
|
121
137
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentType, useMemo, useCallback, ReactNode } from "react";
|
|
1
|
+
import { ComponentType, useMemo, useCallback, ReactNode, type JSX } from "react";
|
|
2
2
|
|
|
3
3
|
import LayerComponent, { type CommonProps, type Props as LayerProps } from "../Layer";
|
|
4
4
|
import type { Layer, Atom, Typography, DataType, ViewerProperty } from "../types";
|