@reearth/core 0.0.7-alpha.7 → 0.0.7-alpha.70
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/LICENSE +177 -0
- package/dist/core.js +71433 -61051
- package/dist/core.umd.cjs +666 -680
- package/dist/{index-DqatWUTw.js → index-CUJ6HGQn.js} +1021 -908
- package/dist/index.d.ts +195 -73
- package/package.json +88 -74
- 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 +45 -12
- package/src/Map/Layers/index.tsx +13 -2
- package/src/Map/Layers/keys.ts +1 -0
- package/src/Map/Sketch/hooks.ts +454 -411
- package/src/Map/Sketch/index.tsx +68 -21
- package/src/Map/Sketch/sketchMachine.ts +640 -237
- 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 +558 -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 +42 -9
- package/src/Map/ref.ts +32 -3
- package/src/Map/types/customProvider.ts +32 -0
- package/src/Map/types/index.ts +42 -3
- package/src/Map/types/viewerProperty.ts +12 -1
- package/src/Map/useTimelineManager.ts +4 -10
- package/src/Map/utils.ts +1 -1
- package/src/Visualizer/Error.tsx +4 -1
- package/src/Visualizer/context.tsx +5 -5
- package/src/Visualizer/coreContext.tsx +3 -1
- package/src/Visualizer/hooks.ts +56 -22
- package/src/Visualizer/index.stories.tsx +15 -0
- package/src/Visualizer/index.tsx +29 -6
- package/src/Visualizer/useViewport.ts +1 -1
- package/src/engines/Cesium/Feature/Box/hooks/box.ts +4 -4
- package/src/engines/Cesium/Feature/Box/hooks/edge.ts +1 -1
- package/src/engines/Cesium/Feature/Box/hooks/side.ts +1 -1
- package/src/engines/Cesium/Feature/Box/utils.ts +6 -0
- package/src/engines/Cesium/Feature/Ellipse/index.stories.tsx +0 -1
- package/src/engines/Cesium/Feature/Frustum/getFieldOfView.ts +2 -0
- package/src/engines/Cesium/Feature/Frustum/index.stories.tsx +0 -1
- package/src/engines/Cesium/Feature/HeatMap/HeatmapMesh.tsx +1 -1
- package/src/engines/Cesium/Feature/Marker/index.tsx +1 -1
- package/src/engines/Cesium/Feature/Model/index.stories.tsx +1 -2
- package/src/engines/Cesium/Feature/Model/index.tsx +3 -3
- package/src/engines/Cesium/Feature/PhotoOverlay/hooks.ts +2 -2
- package/src/engines/Cesium/Feature/PhotoOverlay/index.tsx +3 -1
- package/src/engines/Cesium/Feature/Polygon/index.stories.tsx +0 -1
- package/src/engines/Cesium/Feature/Polygon/index.tsx +6 -4
- package/src/engines/Cesium/Feature/Raster/index.stories.tsx +0 -1
- package/src/engines/Cesium/Feature/Raster/mvt.ts +2 -1
- package/src/engines/Cesium/Feature/Resource/index.stories.tsx +0 -1
- package/src/engines/Cesium/Feature/Resource/index.tsx +1 -27
- package/src/engines/Cesium/Feature/Resource/utils.ts +86 -91
- package/src/engines/Cesium/Feature/Tileset/hooks.ts +273 -87
- package/src/engines/Cesium/Feature/Tileset/index.stories.tsx +0 -1
- package/src/engines/Cesium/Feature/Tileset/index.tsx +7 -14
- package/src/engines/Cesium/Feature/Tileset/useClippingBox.ts +2 -2
- package/src/engines/Cesium/Feature/Tileset/useDrawClipping.ts +2 -2
- package/src/engines/Cesium/Feature/context.ts +3 -0
- package/src/engines/Cesium/Feature/index.tsx +27 -10
- package/src/engines/Cesium/Feature/utils.tsx +20 -12
- package/src/engines/Cesium/PostProcesses/hbao/AmbientOcclusion.tsx +7 -4
- 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 +126 -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 +55 -18
- package/src/engines/Cesium/core/Clock.tsx +1 -1
- package/src/engines/Cesium/core/Globe/index.tsx +69 -0
- package/src/engines/Cesium/core/Globe/useTerrainProviderPromise.ts +81 -0
- package/src/engines/Cesium/core/Imagery.test.ts +299 -42
- package/src/engines/Cesium/core/Imagery.tsx +282 -54
- package/src/engines/Cesium/core/Indicator/Indicator.tsx +2 -2
- package/src/engines/Cesium/core/labels/JapanGSIOptimalBVmapVectorMapLabel/JapanGSIOptimalBVmapLabelImagery.tsx +13 -6
- package/src/engines/Cesium/core/labels/JapanGSIOptimalBVmapVectorMapLabel/JapanGSIOptimalBVmapLabelImageryLayer.tsx +2 -1
- package/src/engines/Cesium/core/labels/JapanGSIOptimalBVmapVectorMapLabel/JapanGSIOptimalBVmapLabelImageryProvider.ts +3 -4
- package/src/engines/Cesium/core/labels/JapanGSIOptimalBVmapVectorMapLabel/JapanGSIOptimalBVmapVectorMapLabel.tsx +14 -2
- package/src/engines/Cesium/core/labels/JapanGSIOptimalBVmapVectorMapLabel/helpers.ts +1 -1
- package/src/engines/Cesium/core/labels/LabelImageryLayers.tsx +10 -1
- package/src/engines/Cesium/core/presets.ts +122 -48
- package/src/engines/Cesium/helpers/getGeometryFromEntity.ts +55 -0
- package/src/engines/Cesium/hooks/useCamera.ts +2 -2
- package/src/engines/Cesium/hooks/useCameraLimiter.ts +1 -1
- package/src/engines/Cesium/hooks/useEngineRef.ts +52 -5
- 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 +3 -3
- package/src/engines/Cesium/hooks/useLayerSelectWithRect.ts +2 -2
- package/src/engines/Cesium/hooks/useOverrideGlobeShader/useOverrideGlobeShader.ts +115 -67
- package/src/engines/Cesium/hooks/useViewerProperty.ts +1 -1
- package/src/engines/Cesium/hooks.ts +68 -17
- package/src/engines/Cesium/index.stories.tsx +0 -1
- package/src/engines/Cesium/index.tsx +38 -8
- package/src/engines/Cesium/pickMany.ts +2 -0
- package/src/engines/Cesium/types.ts +1 -1
- package/src/engines/Cesium/utils/mouse.ts +1 -1
- package/src/engines/Cesium/utils/utils.ts +1 -1
- package/src/mantle/atoms/compute.test.ts +4 -4
- package/src/mantle/atoms/compute.ts +8 -4
- package/src/mantle/compat/forward.ts +1 -1
- package/src/mantle/data/geojson.ts +49 -26
- package/src/mantle/data/georss.ts +2 -2
- package/src/mantle/data/gml.ts +2 -2
- package/src/mantle/data/gpx.ts +2 -2
- package/src/mantle/data/shapefile/parseZip.ts +1 -0
- package/src/mantle/evaluator/simple/expression/README.md +392 -0
- package/src/mantle/evaluator/simple/expression/expression.test.ts +137 -0
- package/src/mantle/evaluator/simple/expression/node.ts +10 -12
- package/src/mantle/evaluator/simple/expression/variableReplacer.test.ts +178 -0
- package/src/mantle/evaluator/simple/expression/variableReplacer.ts +24 -11
- package/src/mantle/types/appearance.ts +4 -2
- package/src/mantle/types/index.ts +5 -0
- package/src/{Visualizer → shared}/interactionMode.ts +3 -2
- package/src/test/setup.ts +1 -1
- package/src/test/utils.tsx +1 -1
- package/src/types/modules.d.ts +96 -0
- package/src/utils/StringMatcher.ts +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/src/utils/value.ts +2 -2
- 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-2YD5QWGR.js +0 -28
- package/dist/cesium/Workers/chunk-3T4KR75X.js +0 -26
- package/dist/cesium/Workers/chunk-46KFVW24.js +0 -26
- package/dist/cesium/Workers/chunk-4EI6PP43.js +0 -28
- package/dist/cesium/Workers/chunk-4RS52VIY.js +0 -26
- package/dist/cesium/Workers/chunk-4YLYA3DC.js +0 -26
- package/dist/cesium/Workers/chunk-5ENAGXBI.js +0 -26
- package/dist/cesium/Workers/chunk-5VIB3TI5.js +0 -26
- package/dist/cesium/Workers/chunk-6NGZLDFZ.js +0 -26
- package/dist/cesium/Workers/chunk-6RGNWVZ2.js +0 -27
- package/dist/cesium/Workers/chunk-7AZZVJ52.js +0 -26
- package/dist/cesium/Workers/chunk-AMXAQQEL.js +0 -26
- package/dist/cesium/Workers/chunk-AQW44ZPC.js +0 -26
- package/dist/cesium/Workers/chunk-CPCMDW6Z.js +0 -26
- package/dist/cesium/Workers/chunk-DNL2WDRL.js +0 -26
- package/dist/cesium/Workers/chunk-ERW7V247.js +0 -26
- package/dist/cesium/Workers/chunk-EYRIA4TP.js +0 -26
- package/dist/cesium/Workers/chunk-F7RQIJML.js +0 -26
- package/dist/cesium/Workers/chunk-FPZMU6QP.js +0 -26
- package/dist/cesium/Workers/chunk-FZDVQW7A.js +0 -26
- package/dist/cesium/Workers/chunk-GAZ2U4FO.js +0 -26
- package/dist/cesium/Workers/chunk-I44IOOT4.js +0 -26
- package/dist/cesium/Workers/chunk-IALXUAD4.js +0 -26
- package/dist/cesium/Workers/chunk-IXBUEUZL.js +0 -26
- package/dist/cesium/Workers/chunk-J3GCYV5K.js +0 -26
- package/dist/cesium/Workers/chunk-KGSZTFHZ.js +0 -26
- package/dist/cesium/Workers/chunk-KKKPU2CI.js +0 -26
- package/dist/cesium/Workers/chunk-KTEJE5KE.js +0 -26
- package/dist/cesium/Workers/chunk-KYZ3DYY6.js +0 -26
- package/dist/cesium/Workers/chunk-L2QG4MRI.js +0 -26
- package/dist/cesium/Workers/chunk-MCE3KFYN.js +0 -26
- package/dist/cesium/Workers/chunk-MMLDGXML.js +0 -26
- package/dist/cesium/Workers/chunk-MTBRPBDQ.js +0 -26
- package/dist/cesium/Workers/chunk-OKT6VBRK.js +0 -26
- package/dist/cesium/Workers/chunk-PHYDKLSY.js +0 -26
- package/dist/cesium/Workers/chunk-PWPX3224.js +0 -26
- package/dist/cesium/Workers/chunk-QHOVE6WG.js +0 -26
- package/dist/cesium/Workers/chunk-QJ6MBL22.js +0 -26
- package/dist/cesium/Workers/chunk-QKO6VIG2.js +0 -26
- package/dist/cesium/Workers/chunk-QVEE4QL2.js +0 -26
- package/dist/cesium/Workers/chunk-RXQOQZ7S.js +0 -26
- package/dist/cesium/Workers/chunk-S3ZKQKMM.js +0 -26
- package/dist/cesium/Workers/chunk-SFEUMZSK.js +0 -26
- package/dist/cesium/Workers/chunk-T75MW4X3.js +0 -26
- package/dist/cesium/Workers/chunk-TVO2A75R.js +0 -66
- package/dist/cesium/Workers/chunk-UHR36K45.js +0 -27
- package/dist/cesium/Workers/chunk-UKJCDZOR.js +0 -26
- package/dist/cesium/Workers/chunk-VKVIYER6.js +0 -26
- package/dist/cesium/Workers/chunk-VPIQWTRZ.js +0 -26
- package/dist/cesium/Workers/chunk-XSX5HRFC.js +0 -26
- package/dist/cesium/Workers/chunk-Z5WQQHSL.js +0 -26
- package/dist/cesium/Workers/chunk-Z7B2VEL5.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/{Visualizer → shared}/featureFlags.ts +0 -0
- /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,9 +277,10 @@ 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
|
-
export declare function computeAtom(cache?: typeof globalDataFeaturesCache): WritableAtom<ComputedLayer | undefined, Command, void>;
|
|
283
|
+
export declare function computeAtom(cache?: typeof globalDataFeaturesCache): WritableAtom<ComputedLayer | undefined, [Command], void>;
|
|
284
284
|
|
|
285
285
|
export declare type ComputedFeature = CommonFeature<"computedFeature"> & Partial<AppearanceTypes>;
|
|
286
286
|
|
|
@@ -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:
|
|
335
|
-
children?: ReactNode;
|
|
336
|
-
} & RefAttributes<MapRef
|
|
338
|
+
export declare const CoreVisualizer: NamedExoticComponent<CoreVisualizerProps & {
|
|
339
|
+
children?: ReactNode | undefined;
|
|
340
|
+
} & RefAttributes<MapRef>>;
|
|
337
341
|
|
|
338
342
|
export declare type CoreVisualizerProps = {
|
|
339
343
|
engine?: EngineType;
|
|
@@ -347,11 +351,13 @@ export declare type CoreVisualizerProps = {
|
|
|
347
351
|
interactionMode?: InteractionModeType;
|
|
348
352
|
shouldRender?: boolean;
|
|
349
353
|
meta?: Record<string, unknown>;
|
|
354
|
+
customProvider?: CustomProviderConfig;
|
|
350
355
|
style?: CSSProperties;
|
|
351
356
|
small?: boolean;
|
|
352
357
|
ready?: boolean;
|
|
353
358
|
hiddenLayers?: string[];
|
|
354
359
|
zoomedLayerId?: string;
|
|
360
|
+
displayCredits?: boolean;
|
|
355
361
|
onCameraChange?: (camera: Camera) => void;
|
|
356
362
|
onLayerDrop?: (layerId: string, propertyKey: string, position: LatLng | undefined) => void;
|
|
357
363
|
onLayerSelect?: (layerId: string | undefined, layer: (() => Promise<ComputedLayer | undefined>) | undefined, feature: ComputedFeature | undefined, reason: LayerSelectionReason | undefined) => void;
|
|
@@ -359,12 +365,35 @@ export declare type CoreVisualizerProps = {
|
|
|
359
365
|
onMount?: () => void;
|
|
360
366
|
onSketchTypeChangeProp?: (type: SketchType | undefined) => void;
|
|
361
367
|
onSketchFeatureCreate?: (feature: SketchFeature | null) => void;
|
|
368
|
+
onSketchFeatureUpdate?: (feature: SketchFeature | null) => void;
|
|
369
|
+
onSketchFeatureDelete?: (layerId: string, featureId: string) => void;
|
|
362
370
|
onInteractionModeChange?: (mode: InteractionModeType) => void;
|
|
371
|
+
onAPIReady?: () => void;
|
|
372
|
+
onCreditsUpdate?: (credits?: Credits) => void;
|
|
373
|
+
};
|
|
374
|
+
|
|
375
|
+
export declare type CreditItem = {
|
|
376
|
+
html?: string;
|
|
363
377
|
};
|
|
364
378
|
|
|
365
|
-
export declare type
|
|
379
|
+
export declare type Credits = {
|
|
380
|
+
engine: {
|
|
381
|
+
cesium?: CreditItem;
|
|
382
|
+
};
|
|
383
|
+
lightbox: CreditItem[];
|
|
384
|
+
screen: CreditItem[];
|
|
385
|
+
};
|
|
386
|
+
|
|
387
|
+
declare type CursorType = "default" | "auto" | "help" | "pointer" | "grab" | "crosshair" | "wait";
|
|
366
388
|
|
|
367
|
-
declare type
|
|
389
|
+
export declare type CustomProviderConfig = {
|
|
390
|
+
imagery?: {
|
|
391
|
+
providers?: ImageryProviderEntry[];
|
|
392
|
+
};
|
|
393
|
+
layers?: {
|
|
394
|
+
providers?: LayerProviderEntry[];
|
|
395
|
+
};
|
|
396
|
+
};
|
|
368
397
|
|
|
369
398
|
export declare type Data = {
|
|
370
399
|
type: DataType;
|
|
@@ -376,6 +405,10 @@ export declare type Data = {
|
|
|
376
405
|
updateInterval?: number;
|
|
377
406
|
parameters?: Record<string, any>;
|
|
378
407
|
idProperty?: string;
|
|
408
|
+
provider?: string;
|
|
409
|
+
serviceTokens?: {
|
|
410
|
+
googleMapApiKey?: string;
|
|
411
|
+
};
|
|
379
412
|
time?: {
|
|
380
413
|
property?: string;
|
|
381
414
|
interval?: number;
|
|
@@ -400,7 +433,7 @@ export declare type DataRange = {
|
|
|
400
433
|
z: number;
|
|
401
434
|
};
|
|
402
435
|
|
|
403
|
-
export declare type DataType = "geojson" | "3dtiles" | "osm-buildings" | "google-photorealistic" | "czml" | "csv" | "wms" | "mvt" | "kml" | "gpx" | "shapefile" | "gtfs" | "gml" | "georss" | "gltf" | "tiles" | "tms" | "heatMap";
|
|
436
|
+
export declare type DataType = "geojson" | "3dtiles" | "osm-buildings" | "reearth-buildings" | "google-photorealistic" | "czml" | "csv" | "wms" | "mvt" | "kml" | "gpx" | "shapefile" | "gtfs" | "gml" | "georss" | "gltf" | "tiles" | "tms" | "heatMap";
|
|
404
437
|
|
|
405
438
|
export declare type DebugProperty = {
|
|
406
439
|
showGlobeWireframe?: boolean;
|
|
@@ -489,7 +522,9 @@ export declare type EngineProps = {
|
|
|
489
522
|
isLayerDragging?: boolean;
|
|
490
523
|
shouldRender?: boolean;
|
|
491
524
|
meta?: Record<string, unknown>;
|
|
492
|
-
|
|
525
|
+
customProvider?: CustomProviderConfig;
|
|
526
|
+
displayCredits?: boolean;
|
|
527
|
+
layersRef?: RefObject<LayersRef | null>;
|
|
493
528
|
requestingRenderMode?: MutableRefObject<RequestingRenderMode>;
|
|
494
529
|
timelineManagerRef?: TimelineManagerRef;
|
|
495
530
|
onLayerSelect?: (layerId: string | undefined, featureId?: string, options?: LayerSelectionReason, info?: SelectedFeatureInfo) => void;
|
|
@@ -503,6 +538,7 @@ export declare type EngineProps = {
|
|
|
503
538
|
onLayerSelectWithRectStart?: (e: LayerSelectWithRectStart) => void;
|
|
504
539
|
onLayerSelectWithRectMove?: (e: LayerSelectWithRectMove) => void;
|
|
505
540
|
onLayerSelectWithRectEnd?: (e: LayerSelectWithRectEnd) => void;
|
|
541
|
+
onCreditsUpdate?: (credits?: Credits) => void;
|
|
506
542
|
};
|
|
507
543
|
|
|
508
544
|
export declare type EngineRef = {
|
|
@@ -531,7 +567,8 @@ export declare type EngineRef = {
|
|
|
531
567
|
isPositionVisible: (position: [x: number, y: number, z: number]) => boolean;
|
|
532
568
|
setView: (camera: CameraPosition) => void;
|
|
533
569
|
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;
|
|
570
|
+
getExtrudedHeight: (position: [x: number, y: number, z: number], windowPosition: [x: number, y: number], allowNegative?: boolean) => number | undefined;
|
|
571
|
+
getExtrudedPoint: (position: [x: number, y: number, z: number], extrutedHeight: number) => Position3d | undefined;
|
|
535
572
|
getSurfaceDistance: (point1: Cartesian3, point2: Cartesian3) => number | undefined;
|
|
536
573
|
equalsEpsilon2d: (point1: Position2d, point2: Position2d, relativeEpsilon: number | undefined, absoluteEpsilon: number | undefined) => boolean;
|
|
537
574
|
equalsEpsilon3d: (point1: Position3d, point2: Position3d, relativeEpsilon: number | undefined, absoluteEpsilon: number | undefined) => boolean;
|
|
@@ -539,7 +576,7 @@ export declare type EngineRef = {
|
|
|
539
576
|
type: SketchType;
|
|
540
577
|
controlPoints: Position3d[];
|
|
541
578
|
}) => LineString | Polygon_2 | MultiPolygon | Point | undefined;
|
|
542
|
-
setCursor: (cursor:
|
|
579
|
+
setCursor: (cursor: CursorType) => void;
|
|
543
580
|
flyTo: FlyTo;
|
|
544
581
|
flyToBBox: (bbox: [number, number, number, number], options?: CameraOptions & {
|
|
545
582
|
heading?: number;
|
|
@@ -578,7 +615,7 @@ export declare type EngineRef = {
|
|
|
578
615
|
tick: () => Date | void;
|
|
579
616
|
inViewport: (location?: LatLng) => boolean;
|
|
580
617
|
onTick: TickEvent;
|
|
581
|
-
tickEventCallback?: RefObject<TickEventCallback[]>;
|
|
618
|
+
tickEventCallback?: RefObject<TickEventCallback[] | null>;
|
|
582
619
|
removeTickEventListener: TickEvent;
|
|
583
620
|
findFeatureById: (layerId: string, featureId: string) => Feature | undefined;
|
|
584
621
|
bringToFront: (layerId: string) => void;
|
|
@@ -589,6 +626,8 @@ export declare type EngineRef = {
|
|
|
589
626
|
selectFeatures: (layerId: string, featureId: string[]) => void;
|
|
590
627
|
unselectFeatures: (layerId: string, featureId: string[]) => void;
|
|
591
628
|
pickManyFromViewport: (windowPosition: [x: number, y: number], windowWidth: number, windowHeight: number, condition?: (f: PickedFeature) => boolean) => PickedFeature[] | undefined;
|
|
629
|
+
calcRectangleControlPoint: (p1: Position3d, p2: Position3d, p3: Position3d) => [p1: Position3d, p2: Position3d, p3: Position3d];
|
|
630
|
+
getCredits: () => Credits | undefined;
|
|
592
631
|
} & MouseEventHandles;
|
|
593
632
|
|
|
594
633
|
export declare const engines: {
|
|
@@ -745,13 +784,19 @@ export declare type FrustumAppearance = {
|
|
|
745
784
|
length?: number;
|
|
746
785
|
};
|
|
747
786
|
|
|
748
|
-
export declare type
|
|
787
|
+
export declare type GeoidProperty = {
|
|
788
|
+
server: {
|
|
789
|
+
url: string;
|
|
790
|
+
geoidProperty: string;
|
|
791
|
+
};
|
|
792
|
+
};
|
|
749
793
|
|
|
750
|
-
declare type
|
|
751
|
-
|
|
752
|
-
controlPoints: readonly Position3d[];
|
|
794
|
+
declare type GeoidRef = {
|
|
795
|
+
getGeoidHeight: (lat?: number, lng?: number) => Promise<number | undefined>;
|
|
753
796
|
};
|
|
754
797
|
|
|
798
|
+
export declare type Geometry = Point | LineString | Polygon_2 | MultiPoint | MultiLineString | MultiPolygon;
|
|
799
|
+
|
|
755
800
|
export declare type GeometryOptionsXYZ = {
|
|
756
801
|
type: SketchType;
|
|
757
802
|
controlPoints: Position3d[];
|
|
@@ -761,11 +806,11 @@ export declare function getCompat(l: Layer | undefined): LayerCompat | undefined
|
|
|
761
806
|
|
|
762
807
|
declare const globalDataFeaturesCache: {
|
|
763
808
|
get: Atom_2<(key: string, key2: string) => Feature[] | undefined>;
|
|
764
|
-
set: WritableAtom<null, {
|
|
809
|
+
set: WritableAtom<null, [value: {
|
|
765
810
|
key: string;
|
|
766
811
|
key2: string;
|
|
767
812
|
value?: Feature[] | undefined;
|
|
768
|
-
}, void> & {
|
|
813
|
+
}], void> & {
|
|
769
814
|
init: null;
|
|
770
815
|
};
|
|
771
816
|
getAll: Atom_2<(key: string) => Feature[][] | undefined>;
|
|
@@ -811,6 +856,23 @@ export declare type ImageBasedLighting = {
|
|
|
811
856
|
sphericalHarmonicCoefficients?: [number, number, number][];
|
|
812
857
|
};
|
|
813
858
|
|
|
859
|
+
/**
|
|
860
|
+
* Generic provider configuration for overriding external data sources.
|
|
861
|
+
*
|
|
862
|
+
* - imagery.providers: imagery tile providers keyed by id
|
|
863
|
+
* - layers.providers: 3D tileset providers keyed by id
|
|
864
|
+
*
|
|
865
|
+
* Terrain is configured via viewer/engine terrain settings (see useTerrainProviderPromise)
|
|
866
|
+
* or via each layer's own `url` field.
|
|
867
|
+
*/
|
|
868
|
+
export declare type ImageryProviderEntry = {
|
|
869
|
+
id: string;
|
|
870
|
+
url: string;
|
|
871
|
+
credit?: string;
|
|
872
|
+
maximumLevel?: number;
|
|
873
|
+
minimumLevel?: number;
|
|
874
|
+
};
|
|
875
|
+
|
|
814
876
|
export declare type IndicatorProperty = {
|
|
815
877
|
type?: "default" | "crosshair" | "custom";
|
|
816
878
|
image?: string;
|
|
@@ -844,7 +906,7 @@ declare type InfoboxProperty = {
|
|
|
844
906
|
|
|
845
907
|
export declare const INTERACTION_MODES: Record<InteractionModeType, number>;
|
|
846
908
|
|
|
847
|
-
export declare type InteractionModeType = "default" | "move" | "selection" | "sketch";
|
|
909
|
+
export declare type InteractionModeType = "default" | "move" | "selection" | "sketch" | "spatialId";
|
|
848
910
|
|
|
849
911
|
export declare function isSketchType(value: unknown): value is SketchType;
|
|
850
912
|
|
|
@@ -911,6 +973,12 @@ export declare type LayerLoadEvent = {
|
|
|
911
973
|
layerId: string | undefined;
|
|
912
974
|
};
|
|
913
975
|
|
|
976
|
+
export declare type LayerProviderEntry = {
|
|
977
|
+
id: string;
|
|
978
|
+
url: string;
|
|
979
|
+
options?: Record<string, unknown>;
|
|
980
|
+
};
|
|
981
|
+
|
|
914
982
|
export declare type LayerSelectionReason = {
|
|
915
983
|
reason?: string;
|
|
916
984
|
defaultInfobox?: DefaultInfobox;
|
|
@@ -955,6 +1023,7 @@ export declare type LayersRef = {
|
|
|
955
1023
|
deleteLayer: (...ids: string[]) => void;
|
|
956
1024
|
isLayer: (obj: any) => obj is LazyLayer;
|
|
957
1025
|
isComputedLayer: (obj: any) => obj is ComputedLayer;
|
|
1026
|
+
isTempLayer: (layerId?: string) => boolean;
|
|
958
1027
|
layers: () => LazyLayer[];
|
|
959
1028
|
walk: <T>(fn: (layer: LazyLayer, index: number, parents: LazyLayer[]) => T | void) => T | undefined;
|
|
960
1029
|
find: (fn: (layer: LazyLayer, index: number, parents: LazyLayer[]) => boolean) => LazyLayer | undefined;
|
|
@@ -985,6 +1054,7 @@ export declare type LayerVisibilityEvent = {
|
|
|
985
1054
|
*/
|
|
986
1055
|
export declare type LazyLayer = Readonly<Layer> & {
|
|
987
1056
|
computed?: Readonly<ComputedLayer>;
|
|
1057
|
+
isTempLayer?: boolean;
|
|
988
1058
|
pluginId?: string;
|
|
989
1059
|
extensionId?: string;
|
|
990
1060
|
property?: any;
|
|
@@ -1073,17 +1143,18 @@ export declare type LookAtDestination = {
|
|
|
1073
1143
|
export declare type LUT = readonly ColorTuple[];
|
|
1074
1144
|
|
|
1075
1145
|
declare const Map_2: ForwardRefExoticComponent< {
|
|
1076
|
-
engines?: Record<string, Engine
|
|
1077
|
-
engine?: string
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
} & RefAttributes<MapRef>>;
|
|
1146
|
+
engines?: Record<string, Engine>;
|
|
1147
|
+
engine?: string;
|
|
1148
|
+
onAPIReady?: () => void;
|
|
1149
|
+
} & Omit<Props_2, "Feature" | "viewerProperty" | "selectionReason" | "delegatedDataTypes" | "clusterComponent" | "selectedLayerId"> & Omit<EngineProps, "onLayerSelect" | "selectedLayerId" | "layerSelectionReason"> & Omit<SketchProps, "engineRef" | "SketchComponent" | "layersRef"> & RefAttributes<MapRef>>;
|
|
1081
1150
|
export { Map_2 as Map }
|
|
1082
1151
|
|
|
1083
1152
|
export declare type MapRef = {
|
|
1084
1153
|
engine: WrappedRef<EngineRef>;
|
|
1085
1154
|
layers: WrappedRef<LayersRef>;
|
|
1086
1155
|
sketch: WrappedRef<SketchRef>;
|
|
1156
|
+
spatialId?: WrappedRef<SpatialIdRef>;
|
|
1157
|
+
geoid: WrappedRef<GeoidRef>;
|
|
1087
1158
|
timeline?: TimelineManagerRef;
|
|
1088
1159
|
};
|
|
1089
1160
|
|
|
@@ -1136,6 +1207,7 @@ export declare type ModelAppearance = {
|
|
|
1136
1207
|
model?: string;
|
|
1137
1208
|
url?: string;
|
|
1138
1209
|
heightReference?: "none" | "clamp" | "relative";
|
|
1210
|
+
height?: number;
|
|
1139
1211
|
heading?: number;
|
|
1140
1212
|
pitch?: number;
|
|
1141
1213
|
roll?: number;
|
|
@@ -1273,6 +1345,7 @@ export declare type PolygonAppearance = {
|
|
|
1273
1345
|
stroke?: boolean;
|
|
1274
1346
|
strokeColor?: string;
|
|
1275
1347
|
strokeWidth?: number;
|
|
1348
|
+
height?: number;
|
|
1276
1349
|
heightReference?: "none" | "clamp" | "relative";
|
|
1277
1350
|
shadows?: "disabled" | "enabled" | "cast_only" | "receive_only";
|
|
1278
1351
|
lineJoin?: CanvasLineJoin;
|
|
@@ -1317,9 +1390,8 @@ declare type PropertyItem<T> = {
|
|
|
1317
1390
|
export declare type Props = {
|
|
1318
1391
|
engines?: Record<string, Engine>;
|
|
1319
1392
|
engine?: string;
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
};
|
|
1393
|
+
onAPIReady?: () => void;
|
|
1394
|
+
} & Omit<Props_2, "Feature" | "clusterComponent" | "selectionReason" | "delegatedDataTypes" | "selectedLayerId" | "viewerProperty"> & Omit<EngineProps, "onLayerSelect" | "layerSelectionReason" | "selectedLayerId"> & Omit<SketchProps, "layersRef" | "engineRef" | "SketchComponent">;
|
|
1323
1395
|
|
|
1324
1396
|
declare type Props_2 = Omit<Props_3, "atomMap" | "isHidden" | "selectedLayerId"> & {
|
|
1325
1397
|
selectedLayer?: {
|
|
@@ -1330,8 +1402,9 @@ declare type Props_2 = Omit<Props_3, "atomMap" | "isHidden" | "selectedLayerId">
|
|
|
1330
1402
|
hiddenLayers?: string[];
|
|
1331
1403
|
viewerProperty?: ViewerProperty;
|
|
1332
1404
|
requestingRenderMode?: MutableRefObject<RequestingRenderMode>;
|
|
1333
|
-
engineRef?: RefObject<EngineRef>;
|
|
1405
|
+
engineRef?: RefObject<EngineRef | null>;
|
|
1334
1406
|
onLayerSelect?: (layerId: string | undefined, featureId: string | undefined, layer: (() => Promise<ComputedLayer | undefined>) | undefined, reason: LayerSelectionReason | undefined, info: SelectedFeatureInfo | undefined) => void;
|
|
1407
|
+
onMount?: () => void;
|
|
1335
1408
|
};
|
|
1336
1409
|
|
|
1337
1410
|
declare type Props_3 = {
|
|
@@ -1459,17 +1532,34 @@ export declare type ShadowProperty = {
|
|
|
1459
1532
|
|
|
1460
1533
|
export declare type SketchAppearance = Partial<LayerAppearanceTypes>;
|
|
1461
1534
|
|
|
1462
|
-
declare type SketchComponentProps =
|
|
1463
|
-
|
|
1464
|
-
|
|
1535
|
+
declare type SketchComponentProps = {
|
|
1536
|
+
geometryOptions?: {
|
|
1537
|
+
type: SketchType;
|
|
1538
|
+
controlPoints: readonly Position3d[];
|
|
1539
|
+
} | null;
|
|
1465
1540
|
extrudedHeight?: number;
|
|
1541
|
+
extrudedPoint?: Position3d;
|
|
1542
|
+
centroidBasePoint?: Position3d;
|
|
1543
|
+
centroidExtrudedPoint?: Position3d;
|
|
1466
1544
|
disableShadow?: boolean;
|
|
1467
|
-
enableRelativeHeight?: boolean;
|
|
1468
1545
|
color?: string;
|
|
1469
|
-
|
|
1546
|
+
isEditing?: boolean;
|
|
1547
|
+
catchedControlPointIndex?: number;
|
|
1548
|
+
catchedExtrudedPoint?: boolean;
|
|
1549
|
+
selectedControlPointIndex?: number;
|
|
1550
|
+
handleControlPointMouseEvent?: ControlPointMouseEventHandler;
|
|
1551
|
+
handleAddControlPoint?: (position: Position3d, index: number) => void;
|
|
1552
|
+
};
|
|
1470
1553
|
|
|
1471
1554
|
export declare type SketchComponentType = ComponentType<SketchComponentProps>;
|
|
1472
1555
|
|
|
1556
|
+
export declare type SketchEditFeatureChangeCb = (feature: SketchEditingFeature | undefined) => void;
|
|
1557
|
+
|
|
1558
|
+
export declare type SketchEditingFeature = {
|
|
1559
|
+
layerId: string;
|
|
1560
|
+
feature: ComputedFeature;
|
|
1561
|
+
};
|
|
1562
|
+
|
|
1473
1563
|
export declare type SketchEventCallback = (event: SketchEventProps) => void;
|
|
1474
1564
|
|
|
1475
1565
|
export declare type SketchEventProps = {
|
|
@@ -1490,14 +1580,14 @@ export declare type SketchOptions = {
|
|
|
1490
1580
|
appearance?: SketchAppearance;
|
|
1491
1581
|
dataOnly?: boolean;
|
|
1492
1582
|
disableShadow?: boolean;
|
|
1493
|
-
enableRelativeHeight?: boolean;
|
|
1494
1583
|
rightClickToAbort?: boolean;
|
|
1495
1584
|
autoResetInteractionMode?: boolean;
|
|
1585
|
+
useCentroidExtrudedHeight?: boolean;
|
|
1496
1586
|
};
|
|
1497
1587
|
|
|
1498
1588
|
export declare type SketchProps = {
|
|
1499
|
-
layersRef: RefObject<LayersRef>;
|
|
1500
|
-
engineRef: RefObject<EngineRef>;
|
|
1589
|
+
layersRef: RefObject<LayersRef | null>;
|
|
1590
|
+
engineRef: RefObject<EngineRef | null>;
|
|
1501
1591
|
SketchComponent?: SketchComponentType;
|
|
1502
1592
|
selectedFeature?: Feature;
|
|
1503
1593
|
interactionMode?: InteractionModeType;
|
|
@@ -1505,7 +1595,17 @@ export declare type SketchProps = {
|
|
|
1505
1595
|
onSketchTypeChange?: (type: SketchType | undefined, from?: "editor" | "plugin") => void;
|
|
1506
1596
|
onSketchFeatureCreate?: (feature: SketchFeature | null) => void;
|
|
1507
1597
|
onSketchPluginFeatureCreate?: (props: SketchEventProps) => void;
|
|
1598
|
+
onSketchFeatureUpdate?: (feature: SketchFeature | null) => void;
|
|
1599
|
+
onSketchPluginFeatureUpdate?: (props: SketchEventProps) => void;
|
|
1600
|
+
onSketchFeatureDelete?: (layerId: string, featureId: string) => void;
|
|
1601
|
+
onSketchPluginFeatureDelete?: (props: {
|
|
1602
|
+
layerId: string;
|
|
1603
|
+
featureId: string;
|
|
1604
|
+
}) => void;
|
|
1508
1605
|
onLayerSelect?: OnLayerSelectType;
|
|
1606
|
+
sketchEditingFeature?: SketchEditingFeature;
|
|
1607
|
+
onSketchEditFeature?: (feature: SketchEditingFeature | undefined) => void;
|
|
1608
|
+
onMount?: () => void;
|
|
1509
1609
|
};
|
|
1510
1610
|
|
|
1511
1611
|
export declare type SketchRef = {
|
|
@@ -1513,6 +1613,11 @@ export declare type SketchRef = {
|
|
|
1513
1613
|
setType: (type: SketchType | undefined, from?: "editor" | "plugin") => void;
|
|
1514
1614
|
getOptions: () => SketchOptions;
|
|
1515
1615
|
overrideOptions: (options: SketchOptions) => void;
|
|
1616
|
+
editFeature: (feature: SketchEditingFeature | undefined) => void;
|
|
1617
|
+
cancelEdit: (ignoreAutoReSelect?: boolean) => void;
|
|
1618
|
+
applyEdit: () => void;
|
|
1619
|
+
deleteFeature: (layerId: string, featureId: string) => void;
|
|
1620
|
+
onEditFeatureChange: (cb: SketchEditFeatureChangeCb) => void;
|
|
1516
1621
|
};
|
|
1517
1622
|
|
|
1518
1623
|
export declare type SketchType = "marker" | "polyline" | "circle" | "rectangle" | "polygon" | "extrudedCircle" | "extrudedRectangle" | "extrudedPolygon";
|
|
@@ -1543,6 +1648,49 @@ export declare type Spacing = {
|
|
|
1543
1648
|
top: number;
|
|
1544
1649
|
};
|
|
1545
1650
|
|
|
1651
|
+
declare type SpatialIdPickSpaceOptions = {
|
|
1652
|
+
zoom?: number;
|
|
1653
|
+
maxHeight?: number;
|
|
1654
|
+
minHeight?: number;
|
|
1655
|
+
dataOnly?: boolean;
|
|
1656
|
+
rightClickToExit?: boolean;
|
|
1657
|
+
color?: string;
|
|
1658
|
+
outlineColor?: string;
|
|
1659
|
+
groundIndicatorColor?: string;
|
|
1660
|
+
selectorColor?: string;
|
|
1661
|
+
selectorOutlineColor?: string;
|
|
1662
|
+
verticalSpaceIndicatorColor?: string;
|
|
1663
|
+
verticalSpaceIndicatorOutlineColor?: string;
|
|
1664
|
+
};
|
|
1665
|
+
|
|
1666
|
+
declare type SpatialIdRef = {
|
|
1667
|
+
pickSpace: (options?: SpatialIdPickSpaceOptions) => void;
|
|
1668
|
+
exitPickSpace: () => void;
|
|
1669
|
+
onSpacePick: (cb: (space: SpatialIdSpaceData) => void) => void;
|
|
1670
|
+
};
|
|
1671
|
+
|
|
1672
|
+
declare type SpatialIdSpaceData = {
|
|
1673
|
+
id: string;
|
|
1674
|
+
center: {
|
|
1675
|
+
lat: number;
|
|
1676
|
+
lng: number;
|
|
1677
|
+
alt?: number;
|
|
1678
|
+
};
|
|
1679
|
+
alt: number;
|
|
1680
|
+
zoom: number;
|
|
1681
|
+
zfxy: {
|
|
1682
|
+
z: number;
|
|
1683
|
+
f: number;
|
|
1684
|
+
x: number;
|
|
1685
|
+
y: number;
|
|
1686
|
+
};
|
|
1687
|
+
zfxyStr: string;
|
|
1688
|
+
tilehash: string;
|
|
1689
|
+
hilbertTilehash: string;
|
|
1690
|
+
hilbertIndex: string;
|
|
1691
|
+
vertices: [number, number, number][];
|
|
1692
|
+
};
|
|
1693
|
+
|
|
1546
1694
|
export declare type StyleExpression = ConditionsExpression | string;
|
|
1547
1695
|
|
|
1548
1696
|
export declare type SunProperty = {
|
|
@@ -1557,7 +1705,7 @@ export declare type Tag = {
|
|
|
1557
1705
|
|
|
1558
1706
|
export declare type TerrainProperty = {
|
|
1559
1707
|
enabled?: boolean;
|
|
1560
|
-
type?: "cesium" | "
|
|
1708
|
+
type?: "cesium" | "cesiumion" | "reearth_terrain";
|
|
1561
1709
|
url?: string;
|
|
1562
1710
|
normal?: boolean;
|
|
1563
1711
|
elevationHeatMap?: ElevationHeatMapProperty;
|
|
@@ -1581,12 +1729,15 @@ export declare type TileLabelProperty = {
|
|
|
1581
1729
|
id: string;
|
|
1582
1730
|
labelType: "japan_gsi_optimal_bvmap";
|
|
1583
1731
|
style: Record<string, any>;
|
|
1732
|
+
near?: number;
|
|
1733
|
+
far?: number;
|
|
1584
1734
|
};
|
|
1585
1735
|
|
|
1586
1736
|
export declare type TileProperty = {
|
|
1587
1737
|
id: string;
|
|
1588
1738
|
type?: string;
|
|
1589
1739
|
url?: string;
|
|
1740
|
+
cesiumIonAssetId?: number;
|
|
1590
1741
|
opacity?: number;
|
|
1591
1742
|
zoomLevel?: number[];
|
|
1592
1743
|
zoomLevelForURL?: number[];
|
|
@@ -1612,7 +1763,7 @@ declare type TimelineCommit = (PlayCommand | PauseCommand | SetTimeCommand | Set
|
|
|
1612
1763
|
};
|
|
1613
1764
|
|
|
1614
1765
|
export declare type TimelineCommitter = {
|
|
1615
|
-
source:
|
|
1766
|
+
source: string;
|
|
1616
1767
|
id?: string;
|
|
1617
1768
|
};
|
|
1618
1769
|
|
|
@@ -1676,7 +1827,7 @@ export declare type Undefinable<T extends object> = {
|
|
|
1676
1827
|
|
|
1677
1828
|
export declare function useGet<T>(value: T): () => T;
|
|
1678
1829
|
|
|
1679
|
-
export declare const useVisualizer: () => RefObject<MapRef>;
|
|
1830
|
+
export declare const useVisualizer: () => RefObject<MapRef | null>;
|
|
1680
1831
|
|
|
1681
1832
|
export declare type ValueType = keyof ValueTypes;
|
|
1682
1833
|
|
|
@@ -1701,6 +1852,7 @@ export declare type ValueTypes = {
|
|
|
1701
1852
|
|
|
1702
1853
|
export declare type ViewerProperty = {
|
|
1703
1854
|
globe?: GlobeProperty;
|
|
1855
|
+
geoid?: GeoidProperty;
|
|
1704
1856
|
terrain?: TerrainProperty;
|
|
1705
1857
|
scene?: SceneProperty;
|
|
1706
1858
|
tiles?: TileProperty[];
|
|
@@ -1720,7 +1872,7 @@ export declare type Viewport = {
|
|
|
1720
1872
|
query: Record<string, string>;
|
|
1721
1873
|
};
|
|
1722
1874
|
|
|
1723
|
-
export declare type VisualizerContext = RefObject<MapRef>;
|
|
1875
|
+
export declare type VisualizerContext = RefObject<MapRef | null>;
|
|
1724
1876
|
|
|
1725
1877
|
export declare type WrappedRef<T> = {
|
|
1726
1878
|
[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;
|
|
@@ -1729,38 +1881,8 @@ export declare type WrappedRef<T> = {
|
|
|
1729
1881
|
export { }
|
|
1730
1882
|
|
|
1731
1883
|
|
|
1732
|
-
declare global {
|
|
1733
|
-
interface Window {
|
|
1734
|
-
REEARTH_E2E_ACCESS_TOKEN?: string;
|
|
1735
|
-
REEARTH_E2E_CESIUM_VIEWER?: any;
|
|
1736
|
-
}
|
|
1737
|
-
}
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
1884
|
declare module "@cesium/engine" {
|
|
1741
1885
|
namespace SceneTransforms {
|
|
1742
1886
|
function transformWindowToDrawingBuffer(scene: Scene, windowPosition: Cartesian2, result?: Cartesian2): Cartesian2;
|
|
1743
1887
|
}
|
|
1744
1888
|
}
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
namespace SceneTransforms {
|
|
1748
|
-
function transformWindowToDrawingBuffer(scene: Scene, windowPosition: Cartesian2, result?: Cartesian2): Cartesian2;
|
|
1749
|
-
}
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
declare global {
|
|
1753
|
-
namespace Vi {
|
|
1754
|
-
interface JestAssertion<T = any> extends jest.Matchers<void, T>, EmotionMatchers {
|
|
1755
|
-
toHaveStyleRule: EmotionMatchers["toHaveStyleRule"];
|
|
1756
|
-
}
|
|
1757
|
-
}
|
|
1758
|
-
}
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
namespace Vi {
|
|
1762
|
-
interface JestAssertion<T = any> extends jest.Matchers<void, T>, EmotionMatchers {
|
|
1763
|
-
toHaveStyleRule: EmotionMatchers["toHaveStyleRule"];
|
|
1764
|
-
}
|
|
1765
|
-
}
|
|
1766
|
-
|