@reearth/core 0.0.1
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/README.md +18 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_0.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_1.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_10.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_11.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_12.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_13.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_14.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_15.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_16.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_17.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_18.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_19.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_2.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_20.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_21.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_22.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_23.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_24.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_25.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_26.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_27.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_3.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_4.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_5.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_6.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_7.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_8.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_9.json +1 -0
- 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 +14 -0
- 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 +1 -0
- package/dist/cesium/Assets/Textures/waterNormals.jpg +0 -0
- package/dist/cesium/Assets/Textures/waterNormalsSmall.jpg +0 -0
- package/dist/cesium/Assets/approximateTerrainHeights.json +1 -0
- package/dist/cesium/ThirdParty/Workers/package.json +1 -0
- package/dist/cesium/ThirdParty/Workers/pako_deflate.min.js +1 -0
- package/dist/cesium/ThirdParty/Workers/pako_inflate.min.js +1 -0
- package/dist/cesium/ThirdParty/Workers/z-worker-pako.js +1 -0
- 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 +1 -0
- package/dist/cesium/Widgets/Animation/Animation.css +127 -0
- package/dist/cesium/Widgets/Animation/lighter.css +70 -0
- package/dist/cesium/Widgets/BaseLayerPicker/BaseLayerPicker.css +108 -0
- package/dist/cesium/Widgets/BaseLayerPicker/lighter.css +22 -0
- package/dist/cesium/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css +102 -0
- package/dist/cesium/Widgets/CesiumInspector/CesiumInspector.css +113 -0
- package/dist/cesium/Widgets/CesiumWidget/CesiumWidget.css +124 -0
- package/dist/cesium/Widgets/CesiumWidget/lighter.css +14 -0
- package/dist/cesium/Widgets/FullscreenButton/FullscreenButton.css +8 -0
- package/dist/cesium/Widgets/Geocoder/Geocoder.css +70 -0
- package/dist/cesium/Widgets/Geocoder/lighter.css +17 -0
- package/dist/cesium/Widgets/I3SBuildingSceneLayerExplorer/I3SBuildingSceneLayerExplorer.css +27 -0
- 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 +84 -0
- package/dist/cesium/Widgets/Images/NavigationHelp/MouseLeft.svg +76 -0
- package/dist/cesium/Widgets/Images/NavigationHelp/MouseMiddle.svg +76 -0
- package/dist/cesium/Widgets/Images/NavigationHelp/MouseRight.svg +76 -0
- package/dist/cesium/Widgets/Images/NavigationHelp/Touch.svg +120 -0
- package/dist/cesium/Widgets/Images/NavigationHelp/TouchDrag.svg +129 -0
- package/dist/cesium/Widgets/Images/NavigationHelp/TouchRotate.svg +76 -0
- package/dist/cesium/Widgets/Images/NavigationHelp/TouchTilt.svg +135 -0
- package/dist/cesium/Widgets/Images/NavigationHelp/TouchZoom.svg +74 -0
- 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 +92 -0
- package/dist/cesium/Widgets/InfoBox/InfoBoxDescription.css +178 -0
- package/dist/cesium/Widgets/NavigationHelpButton/NavigationHelpButton.css +93 -0
- package/dist/cesium/Widgets/NavigationHelpButton/lighter.css +38 -0
- package/dist/cesium/Widgets/PerformanceWatchdog/PerformanceWatchdog.css +15 -0
- package/dist/cesium/Widgets/ProjectionPicker/ProjectionPicker.css +38 -0
- package/dist/cesium/Widgets/SceneModePicker/SceneModePicker.css +56 -0
- package/dist/cesium/Widgets/SelectionIndicator/SelectionIndicator.css +20 -0
- package/dist/cesium/Widgets/Timeline/Timeline.css +103 -0
- package/dist/cesium/Widgets/Timeline/lighter.css +23 -0
- package/dist/cesium/Widgets/VRButton/VRButton.css +8 -0
- package/dist/cesium/Widgets/Viewer/Viewer.css +107 -0
- package/dist/cesium/Widgets/VoxelInspector/VoxelInspector.css +16 -0
- package/dist/cesium/Widgets/lighter.css +237 -0
- package/dist/cesium/Widgets/lighterShared.css +46 -0
- package/dist/cesium/Widgets/shared.css +103 -0
- package/dist/cesium/Widgets/widgets.css +1346 -0
- package/dist/cesium/Workers/chunk-2ED5WI77.js +26 -0
- package/dist/cesium/Workers/chunk-2MBPFWCP.js +26 -0
- package/dist/cesium/Workers/chunk-3C74MLG3.js +26 -0
- package/dist/cesium/Workers/chunk-45U7TTT3.js +26 -0
- package/dist/cesium/Workers/chunk-4N7SRDH5.js +26 -0
- package/dist/cesium/Workers/chunk-4T6AS6BZ.js +26 -0
- package/dist/cesium/Workers/chunk-5AG2MVRM.js +26 -0
- package/dist/cesium/Workers/chunk-5Z6L2FHX.js +26 -0
- package/dist/cesium/Workers/chunk-6AUUBDOF.js +26 -0
- package/dist/cesium/Workers/chunk-74N6MC2V.js +26 -0
- package/dist/cesium/Workers/chunk-7VJK3KHI.js +26 -0
- package/dist/cesium/Workers/chunk-7VZHIB6P.js +26 -0
- package/dist/cesium/Workers/chunk-7X2YQ6I4.js +27 -0
- package/dist/cesium/Workers/chunk-B2SKQ7LU.js +26 -0
- package/dist/cesium/Workers/chunk-B4TQDFIE.js +26 -0
- package/dist/cesium/Workers/chunk-B6TRTFAA.js +26 -0
- package/dist/cesium/Workers/chunk-BK3HCS7I.js +26 -0
- package/dist/cesium/Workers/chunk-BOPB43LN.js +26 -0
- package/dist/cesium/Workers/chunk-C6DMEJQ7.js +26 -0
- package/dist/cesium/Workers/chunk-CN7UN2OZ.js +26 -0
- package/dist/cesium/Workers/chunk-CSISXEG7.js +26 -0
- package/dist/cesium/Workers/chunk-CUOR5F7T.js +28 -0
- package/dist/cesium/Workers/chunk-DGCK3LD2.js +30 -0
- package/dist/cesium/Workers/chunk-DXEZYE3K.js +62 -0
- package/dist/cesium/Workers/chunk-EXBFEYPQ.js +26 -0
- package/dist/cesium/Workers/chunk-FK5KFB6H.js +26 -0
- package/dist/cesium/Workers/chunk-HPBHKP5S.js +26 -0
- package/dist/cesium/Workers/chunk-JCJ24DHF.js +26 -0
- package/dist/cesium/Workers/chunk-JEWHFDAA.js +26 -0
- package/dist/cesium/Workers/chunk-JZLZJJQD.js +26 -0
- package/dist/cesium/Workers/chunk-KRZBI2MU.js +26 -0
- package/dist/cesium/Workers/chunk-KTTUANTJ.js +26 -0
- package/dist/cesium/Workers/chunk-LDCAXLGS.js +26 -0
- package/dist/cesium/Workers/chunk-LOPN5R3I.js +26 -0
- package/dist/cesium/Workers/chunk-MDLPQIMP.js +26 -0
- package/dist/cesium/Workers/chunk-MRR3RGFO.js +26 -0
- package/dist/cesium/Workers/chunk-NPBZI5YA.js +26 -0
- package/dist/cesium/Workers/chunk-NUSW5B6A.js +26 -0
- package/dist/cesium/Workers/chunk-OUXRUXNB.js +26 -0
- package/dist/cesium/Workers/chunk-QPOPEH3M.js +26 -0
- package/dist/cesium/Workers/chunk-R2AN7EKC.js +26 -0
- package/dist/cesium/Workers/chunk-RURL6ZX2.js +26 -0
- package/dist/cesium/Workers/chunk-SUQM3OSW.js +28 -0
- package/dist/cesium/Workers/chunk-UBIRX2SP.js +26 -0
- package/dist/cesium/Workers/chunk-VAKC5J5C.js +26 -0
- package/dist/cesium/Workers/chunk-VHNZBQTR.js +27 -0
- package/dist/cesium/Workers/chunk-VKV642QV.js +26 -0
- package/dist/cesium/Workers/chunk-VMSXG4OA.js +26 -0
- package/dist/cesium/Workers/chunk-VQZSIOZW.js +26 -0
- package/dist/cesium/Workers/chunk-WZUWQMI7.js +26 -0
- package/dist/cesium/Workers/chunk-YBI55DLZ.js +26 -0
- package/dist/cesium/Workers/chunk-YEJWCH6C.js +26 -0
- package/dist/cesium/Workers/chunk-YPDO7SPO.js +26 -0
- package/dist/cesium/Workers/chunk-ZYWD6OQH.js +26 -0
- package/dist/cesium/Workers/combineGeometry.js +26 -0
- package/dist/cesium/Workers/createBoxGeometry.js +26 -0
- package/dist/cesium/Workers/createBoxOutlineGeometry.js +26 -0
- package/dist/cesium/Workers/createCircleGeometry.js +26 -0
- package/dist/cesium/Workers/createCircleOutlineGeometry.js +26 -0
- package/dist/cesium/Workers/createCoplanarPolygonGeometry.js +26 -0
- package/dist/cesium/Workers/createCoplanarPolygonOutlineGeometry.js +26 -0
- package/dist/cesium/Workers/createCorridorGeometry.js +26 -0
- package/dist/cesium/Workers/createCorridorOutlineGeometry.js +26 -0
- package/dist/cesium/Workers/createCylinderGeometry.js +26 -0
- package/dist/cesium/Workers/createCylinderOutlineGeometry.js +26 -0
- package/dist/cesium/Workers/createEllipseGeometry.js +26 -0
- package/dist/cesium/Workers/createEllipseOutlineGeometry.js +26 -0
- package/dist/cesium/Workers/createEllipsoidGeometry.js +26 -0
- package/dist/cesium/Workers/createEllipsoidOutlineGeometry.js +26 -0
- package/dist/cesium/Workers/createFrustumGeometry.js +26 -0
- package/dist/cesium/Workers/createFrustumOutlineGeometry.js +26 -0
- package/dist/cesium/Workers/createGeometry.js +26 -0
- package/dist/cesium/Workers/createGroundPolylineGeometry.js +26 -0
- package/dist/cesium/Workers/createPlaneGeometry.js +26 -0
- package/dist/cesium/Workers/createPlaneOutlineGeometry.js +26 -0
- package/dist/cesium/Workers/createPolygonGeometry.js +26 -0
- package/dist/cesium/Workers/createPolygonOutlineGeometry.js +26 -0
- package/dist/cesium/Workers/createPolylineGeometry.js +26 -0
- package/dist/cesium/Workers/createPolylineVolumeGeometry.js +26 -0
- package/dist/cesium/Workers/createPolylineVolumeOutlineGeometry.js +26 -0
- package/dist/cesium/Workers/createRectangleGeometry.js +26 -0
- package/dist/cesium/Workers/createRectangleOutlineGeometry.js +26 -0
- package/dist/cesium/Workers/createSimplePolylineGeometry.js +26 -0
- package/dist/cesium/Workers/createSphereGeometry.js +26 -0
- package/dist/cesium/Workers/createSphereOutlineGeometry.js +26 -0
- package/dist/cesium/Workers/createTaskProcessorWorker.js +26 -0
- package/dist/cesium/Workers/createVectorTileClampedPolylines.js +26 -0
- package/dist/cesium/Workers/createVectorTileGeometries.js +26 -0
- package/dist/cesium/Workers/createVectorTilePoints.js +26 -0
- package/dist/cesium/Workers/createVectorTilePolygons.js +26 -0
- package/dist/cesium/Workers/createVectorTilePolylines.js +26 -0
- package/dist/cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +26 -0
- package/dist/cesium/Workers/createVerticesFromHeightmap.js +26 -0
- package/dist/cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +26 -0
- package/dist/cesium/Workers/createWallGeometry.js +26 -0
- package/dist/cesium/Workers/createWallOutlineGeometry.js +26 -0
- package/dist/cesium/Workers/decodeDraco.js +26 -0
- package/dist/cesium/Workers/decodeGoogleEarthEnterprisePacket.js +26 -0
- package/dist/cesium/Workers/decodeI3S.js +26 -0
- package/dist/cesium/Workers/transcodeKTX2.js +56 -0
- package/dist/cesium/Workers/transferTypedArrayTest.js +26 -0
- package/dist/cesium/Workers/upsampleQuantizedTerrainMesh.js +26 -0
- package/dist/core.js +83397 -0
- package/dist/core.umd.cjs +6710 -0
- package/dist/index-DqatWUTw.js +3225 -0
- package/dist/index.d.ts +1760 -0
- package/package.json +115 -0
- package/src/Map/ClusteredLayers/index.tsx +106 -0
- package/src/Map/Layer/hooks.ts +180 -0
- package/src/Map/Layer/index.tsx +92 -0
- package/src/Map/Layers/hooks.test.ts +819 -0
- package/src/Map/Layers/hooks.ts +955 -0
- package/src/Map/Layers/index.test.tsx +188 -0
- package/src/Map/Layers/index.tsx +76 -0
- package/src/Map/Layers/keys.ts +51 -0
- package/src/Map/Layers/utils.test.ts +53 -0
- package/src/Map/Layers/utils.ts +37 -0
- package/src/Map/Sketch/hooks.ts +641 -0
- package/src/Map/Sketch/index.tsx +101 -0
- package/src/Map/Sketch/preset.ts +29 -0
- package/src/Map/Sketch/sketchMachine.ts +323 -0
- package/src/Map/Sketch/sketchMachine.typegen.ts +72 -0
- package/src/Map/Sketch/types.ts +52 -0
- package/src/Map/Sketch/utils.ts +24 -0
- package/src/Map/hooks.ts +127 -0
- package/src/Map/index.tsx +147 -0
- package/src/Map/ref.ts +147 -0
- package/src/Map/types/event.ts +104 -0
- package/src/Map/types/index.ts +545 -0
- package/src/Map/useTimelineManager.ts +215 -0
- package/src/Map/utils.test.ts +62 -0
- package/src/Map/utils.ts +71 -0
- package/src/Visualizer/DropHolder.tsx +41 -0
- package/src/Visualizer/Error.tsx +15 -0
- package/src/Visualizer/context.tsx +27 -0
- package/src/Visualizer/coreContext.tsx +47 -0
- package/src/Visualizer/engines.ts +7 -0
- package/src/Visualizer/featureFlags.ts +9 -0
- package/src/Visualizer/hooks.ts +403 -0
- package/src/Visualizer/index.stories.tsx +128 -0
- package/src/Visualizer/index.tsx +187 -0
- package/src/Visualizer/interactionMode.ts +25 -0
- package/src/Visualizer/useViewport.ts +74 -0
- package/src/e2eConfig.ts +20 -0
- package/src/engines/Cesium/Cluster.tsx +90 -0
- package/src/engines/Cesium/Event.tsx +15 -0
- package/src/engines/Cesium/Feature/Box/Edge.tsx +94 -0
- package/src/engines/Cesium/Feature/Box/ScalePoints.tsx +158 -0
- package/src/engines/Cesium/Feature/Box/Side.tsx +70 -0
- package/src/engines/Cesium/Feature/Box/constants.ts +63 -0
- package/src/engines/Cesium/Feature/Box/hooks/box.ts +375 -0
- package/src/engines/Cesium/Feature/Box/hooks/edge.ts +112 -0
- package/src/engines/Cesium/Feature/Box/hooks/scalePoint.ts +174 -0
- package/src/engines/Cesium/Feature/Box/hooks/side.ts +72 -0
- package/src/engines/Cesium/Feature/Box/index.tsx +156 -0
- package/src/engines/Cesium/Feature/Box/utils.ts +168 -0
- package/src/engines/Cesium/Feature/Ellipse/index.stories.tsx +48 -0
- package/src/engines/Cesium/Feature/Ellipse/index.tsx +91 -0
- package/src/engines/Cesium/Feature/Ellipsoid/index.tsx +84 -0
- package/src/engines/Cesium/Feature/Frustum/FrustumColorAppearance.ts +38 -0
- package/src/engines/Cesium/Feature/Frustum/getFieldOfView.ts +23 -0
- package/src/engines/Cesium/Feature/Frustum/index.stories.tsx +49 -0
- package/src/engines/Cesium/Feature/Frustum/index.tsx +163 -0
- package/src/engines/Cesium/Feature/Frustum/shaders/frustumAppearance.frag.glsl +31 -0
- package/src/engines/Cesium/Feature/Frustum/shaders/frustumAppearance.vert.glsl +29 -0
- package/src/engines/Cesium/Feature/HeatMap/HeatmapMesh.tsx +186 -0
- package/src/engines/Cesium/Feature/HeatMap/HeatmapMeshMaterial.ts +81 -0
- package/src/engines/Cesium/Feature/HeatMap/colorMap.ts +47 -0
- package/src/engines/Cesium/Feature/HeatMap/constants.ts +781 -0
- package/src/engines/Cesium/Feature/HeatMap/createMeshImageData.ts +108 -0
- package/src/engines/Cesium/Feature/HeatMap/index.tsx +169 -0
- package/src/engines/Cesium/Feature/HeatMap/shaders/heatmapMeshMaterial.glsl +78 -0
- package/src/engines/Cesium/Feature/HeatMap/shaders/makeContour.glsl +13 -0
- package/src/engines/Cesium/Feature/HeatMap/shaders/sampleBicubic.glsl +57 -0
- package/src/engines/Cesium/Feature/Marker/index.tsx +296 -0
- package/src/engines/Cesium/Feature/Marker/marker.svg +3 -0
- package/src/engines/Cesium/Feature/Model/index.stories.tsx +48 -0
- package/src/engines/Cesium/Feature/Model/index.tsx +223 -0
- package/src/engines/Cesium/Feature/PhotoOverlay/hooks.ts +98 -0
- package/src/engines/Cesium/Feature/PhotoOverlay/index.tsx +163 -0
- package/src/engines/Cesium/Feature/PhotoOverlay/primPhotoIcon.svg +3 -0
- package/src/engines/Cesium/Feature/Polygon/index.stories.tsx +174 -0
- package/src/engines/Cesium/Feature/Polygon/index.tsx +182 -0
- package/src/engines/Cesium/Feature/Polyline/index.tsx +98 -0
- package/src/engines/Cesium/Feature/Raster/hooks.ts +52 -0
- package/src/engines/Cesium/Feature/Raster/index.stories.tsx +77 -0
- package/src/engines/Cesium/Feature/Raster/index.tsx +37 -0
- package/src/engines/Cesium/Feature/Raster/mvt.ts +33 -0
- package/src/engines/Cesium/Feature/Raster/tiles.ts +27 -0
- package/src/engines/Cesium/Feature/Raster/tms.ts +31 -0
- package/src/engines/Cesium/Feature/Raster/types.ts +5 -0
- package/src/engines/Cesium/Feature/Raster/utils.test.ts +14 -0
- package/src/engines/Cesium/Feature/Raster/utils.ts +10 -0
- package/src/engines/Cesium/Feature/Raster/wms.ts +28 -0
- package/src/engines/Cesium/Feature/Resource/index.stories.tsx +46 -0
- package/src/engines/Cesium/Feature/Resource/index.tsx +218 -0
- package/src/engines/Cesium/Feature/Resource/utils.test.ts +69 -0
- package/src/engines/Cesium/Feature/Resource/utils.ts +377 -0
- package/src/engines/Cesium/Feature/Tileset/DrawClippingPolygon/index.tsx +77 -0
- package/src/engines/Cesium/Feature/Tileset/TilesetFeatureIndex.ts +46 -0
- package/src/engines/Cesium/Feature/Tileset/hooks.ts +793 -0
- package/src/engines/Cesium/Feature/Tileset/index.stories.tsx +41 -0
- package/src/engines/Cesium/Feature/Tileset/index.tsx +127 -0
- package/src/engines/Cesium/Feature/Tileset/types.ts +5 -0
- package/src/engines/Cesium/Feature/Tileset/useClippingBox.ts +457 -0
- package/src/engines/Cesium/Feature/Tileset/useDrawClipping.ts +200 -0
- package/src/engines/Cesium/Feature/context.ts +33 -0
- package/src/engines/Cesium/Feature/index.tsx +250 -0
- package/src/engines/Cesium/Feature/utils.test.tsx +30 -0
- package/src/engines/Cesium/Feature/utils.tsx +289 -0
- package/src/engines/Cesium/FeatureIndex.ts +15 -0
- package/src/engines/Cesium/JapanSeaLevelEllipsoid.ts +20 -0
- package/src/engines/Cesium/PostProcesses/README.md +1 -0
- package/src/engines/Cesium/PostProcesses/hbao/AmbientOcclusion.tsx +120 -0
- package/src/engines/Cesium/PostProcesses/hbao/AmbientOcclusionOutputType.ts +7 -0
- package/src/engines/Cesium/PostProcesses/hbao/README.md +3 -0
- package/src/engines/Cesium/PostProcesses/hbao/config.ts +29 -0
- package/src/engines/Cesium/PostProcesses/hbao/createAmbientOcclusionStage.ts +173 -0
- package/src/engines/Cesium/PostProcesses/hbao/createCrossBilateralFilterStage.ts +94 -0
- package/src/engines/Cesium/PostProcesses/hbao/index.ts +3 -0
- package/src/engines/Cesium/PostProcesses/hbao/shaders/ambientOcclusionGenerate.glsl +151 -0
- package/src/engines/Cesium/PostProcesses/hbao/shaders/ambientOcclusionModulate.glsl +46 -0
- package/src/engines/Cesium/PostProcesses/hbao/shaders/crossBilateralFilter.glsl +108 -0
- package/src/engines/Cesium/PostProcesses/hbao/shaders/depth.glsl +3 -0
- package/src/engines/Cesium/PostProcesses/hbao/shaders/globeDepth.glsl +15 -0
- package/src/engines/Cesium/PostProcesses/hbao/shaders/highPassRandom.glsl +28 -0
- package/src/engines/Cesium/PostProcesses/hbao/shaders/packing.glsl +7 -0
- package/src/engines/Cesium/PostProcesses/hbao/shaders/reconstructNormal.glsl +109 -0
- package/src/engines/Cesium/PostProcesses/hbao/shaders/reconstructPosition.glsl +10 -0
- package/src/engines/Cesium/PostProcesses/hbao/shaders/turboColorMap.glsl +20 -0
- package/src/engines/Cesium/PostProcesses/hbao/shaders/vogelDisk.glsl +13 -0
- package/src/engines/Cesium/Shaders/CustomShaders/NonPBRLightingShader.ts +66 -0
- package/src/engines/Cesium/Shaders/OverriddenShaders/GlobeFS/Definitions.glsl +5 -0
- package/src/engines/Cesium/Shaders/OverriddenShaders/GlobeFS/HeatmapForTerrain.glsl +13 -0
- package/src/engines/Cesium/Shaders/OverriddenShaders/GlobeFS/IBL.glsl +57 -0
- package/src/engines/Cesium/Shaders/OverriddenShaders/README.md +13 -0
- package/src/engines/Cesium/Sketch/ControlPoint.tsx +67 -0
- package/src/engines/Cesium/Sketch/Entity.tsx +43 -0
- package/src/engines/Cesium/Sketch/ExtrudedControlPoints.tsx +51 -0
- package/src/engines/Cesium/Sketch/ExtrudedMeasurement.tsx +70 -0
- package/src/engines/Cesium/Sketch/ExtrudedPolygonEntity.tsx +75 -0
- package/src/engines/Cesium/Sketch/MeasurementText.tsx +13 -0
- package/src/engines/Cesium/Sketch/PolygonEntity.tsx +48 -0
- package/src/engines/Cesium/Sketch/PolylineEntity.tsx +44 -0
- package/src/engines/Cesium/Sketch/ScreenSpaceElement.tsx +87 -0
- package/src/engines/Cesium/Sketch/SurfaceControlPoints.tsx +67 -0
- package/src/engines/Cesium/Sketch/SurfaceMeasurement.tsx +80 -0
- package/src/engines/Cesium/Sketch/createGeometry.ts +224 -0
- package/src/engines/Cesium/Sketch/index.tsx +119 -0
- package/src/engines/Cesium/Sketch/utils.ts +27 -0
- package/src/engines/Cesium/VertexTerrainElevationMaterial.ts +33 -0
- package/src/engines/Cesium/cameraLimiter.ts +256 -0
- package/src/engines/Cesium/common.test.ts +38 -0
- package/src/engines/Cesium/common.ts +901 -0
- package/src/engines/Cesium/constants.ts +25 -0
- package/src/engines/Cesium/core/Clock.tsx +58 -0
- package/src/engines/Cesium/core/Globe.tsx +136 -0
- package/src/engines/Cesium/core/Imagery.test.ts +102 -0
- package/src/engines/Cesium/core/Imagery.tsx +184 -0
- package/src/engines/Cesium/core/Indicator/Indicator.tsx +141 -0
- package/src/engines/Cesium/core/Indicator/crosshair.svg +3 -0
- package/src/engines/Cesium/core/labels/JapanGSIOptimalBVmapVectorMapLabel/JapanGSIOptimalBVmapLabelImagery.tsx +321 -0
- package/src/engines/Cesium/core/labels/JapanGSIOptimalBVmapVectorMapLabel/JapanGSIOptimalBVmapLabelImageryLayer.tsx +56 -0
- package/src/engines/Cesium/core/labels/JapanGSIOptimalBVmapVectorMapLabel/JapanGSIOptimalBVmapLabelImageryProvider.ts +146 -0
- package/src/engines/Cesium/core/labels/JapanGSIOptimalBVmapVectorMapLabel/JapanGSIOptimalBVmapVectorMapLabel.tsx +258 -0
- package/src/engines/Cesium/core/labels/JapanGSIOptimalBVmapVectorMapLabel/getAnnotationType.ts +117 -0
- package/src/engines/Cesium/core/labels/JapanGSIOptimalBVmapVectorMapLabel/helpers.ts +24 -0
- package/src/engines/Cesium/core/labels/JapanGSIOptimalBVmapVectorMapLabel/index.ts +3 -0
- package/src/engines/Cesium/core/labels/JapanGSIOptimalBVmapVectorMapLabel/types.ts +26 -0
- package/src/engines/Cesium/core/labels/LabelImageryLayers.tsx +39 -0
- package/src/engines/Cesium/core/presets.ts +95 -0
- package/src/engines/Cesium/helpers/createUniforms.ts +64 -0
- package/src/engines/Cesium/helpers/sphericalHaromic.test.ts +33 -0
- package/src/engines/Cesium/helpers/sphericalHaromic.ts +27 -0
- package/src/engines/Cesium/hooks/useInstance.ts +98 -0
- package/src/engines/Cesium/hooks/useLayerSelectWithRect.ts +157 -0
- package/src/engines/Cesium/hooks/useSceneEvent.ts +47 -0
- package/src/engines/Cesium/hooks.ts +1004 -0
- package/src/engines/Cesium/index.stories.tsx +42 -0
- package/src/engines/Cesium/index.tsx +285 -0
- package/src/engines/Cesium/pickMany.ts +310 -0
- package/src/engines/Cesium/type.d.ts +47 -0
- package/src/engines/Cesium/types.ts +24 -0
- package/src/engines/Cesium/useEngineRef.test.tsx +627 -0
- package/src/engines/Cesium/useEngineRef.ts +945 -0
- package/src/engines/Cesium/useOverrideGlobeShader.ts +322 -0
- package/src/engines/Cesium/utils/mouse.ts +16 -0
- package/src/engines/Cesium/utils/polygon.ts +48 -0
- package/src/engines/Cesium/utils/utils.ts +446 -0
- package/src/engines/Cesium/vertexTerrainElevationMaterial.glsl +25 -0
- package/src/engines/index.ts +37 -0
- package/src/env.d.ts +3 -0
- package/src/hooks/index.ts +2 -0
- package/src/hooks/useRefFunction.ts +10 -0
- package/src/hooks/useRefValue.ts +7 -0
- package/src/index.ts +4 -0
- package/src/mantle/README.md +7 -0
- package/src/mantle/atoms/cache.test.ts +61 -0
- package/src/mantle/atoms/cache.ts +55 -0
- package/src/mantle/atoms/compute.test.ts +794 -0
- package/src/mantle/atoms/compute.ts +344 -0
- package/src/mantle/atoms/data.test.ts +182 -0
- package/src/mantle/atoms/data.ts +114 -0
- package/src/mantle/atoms/index.ts +1 -0
- package/src/mantle/compat/backward.test.ts +368 -0
- package/src/mantle/compat/backward.ts +189 -0
- package/src/mantle/compat/forward.test.ts +688 -0
- package/src/mantle/compat/forward.ts +272 -0
- package/src/mantle/compat/index.ts +4 -0
- package/src/mantle/compat/types.ts +73 -0
- package/src/mantle/data/csv.test.ts +478 -0
- package/src/mantle/data/csv.ts +194 -0
- package/src/mantle/data/geojson.ts +72 -0
- package/src/mantle/data/georss.ts +172 -0
- package/src/mantle/data/gml.ts +244 -0
- package/src/mantle/data/gpx.test.ts +65 -0
- package/src/mantle/data/gpx.ts +551 -0
- package/src/mantle/data/gtfs.ts +116 -0
- package/src/mantle/data/gtfsReader.ts +454 -0
- package/src/mantle/data/index.test.ts +16 -0
- package/src/mantle/data/index.ts +73 -0
- package/src/mantle/data/shapefile.ts +232 -0
- package/src/mantle/data/utils.ts +21 -0
- package/src/mantle/evaluator/index.ts +40 -0
- package/src/mantle/evaluator/simple/conditionalExpression/index.ts +60 -0
- package/src/mantle/evaluator/simple/expression/constants.ts +204 -0
- package/src/mantle/evaluator/simple/expression/expression.test.ts +63 -0
- package/src/mantle/evaluator/simple/expression/expression.ts +116 -0
- package/src/mantle/evaluator/simple/expression/functions/binaryFunctions.ts +43 -0
- package/src/mantle/evaluator/simple/expression/functions/colors.ts +189 -0
- package/src/mantle/evaluator/simple/expression/functions/index.ts +3 -0
- package/src/mantle/evaluator/simple/expression/functions/unaryFunctions.ts +54 -0
- package/src/mantle/evaluator/simple/expression/index.ts +1 -0
- package/src/mantle/evaluator/simple/expression/node.ts +570 -0
- package/src/mantle/evaluator/simple/expression/runtime.ts +266 -0
- package/src/mantle/evaluator/simple/expression/variableReplacer.test.ts +54 -0
- package/src/mantle/evaluator/simple/expression/variableReplacer.ts +121 -0
- package/src/mantle/evaluator/simple/index.test.ts +656 -0
- package/src/mantle/evaluator/simple/index.ts +178 -0
- package/src/mantle/evaluator/simple/interval.test.ts +102 -0
- package/src/mantle/evaluator/simple/interval.ts +27 -0
- package/src/mantle/evaluator/simple/utils.test.ts +56 -0
- package/src/mantle/evaluator/simple/utils.ts +31 -0
- package/src/mantle/index.ts +6 -0
- package/src/mantle/types/appearance.ts +318 -0
- package/src/mantle/types/events.ts +16 -0
- package/src/mantle/types/expression.ts +9 -0
- package/src/mantle/types/index.ts +156 -0
- package/src/mantle/types/value.ts +153 -0
- package/src/mantle/utils.test.ts +74 -0
- package/src/mantle/utils.ts +53 -0
- package/src/reearthTypes.ts +64 -0
- package/src/setupTests.ts +1 -0
- package/src/test/setup.ts +40 -0
- package/src/test/utils.tsx +40 -0
- package/src/types.ts +66 -0
- package/src/utils/StringMatcher.test.ts +132 -0
- package/src/utils/StringMatcher.ts +104 -0
- package/src/utils/assertType.ts +1 -0
- package/src/utils/generate-random-string.ts +9 -0
- package/src/utils/idle.ts +22 -0
- package/src/utils/image.ts +35 -0
- package/src/utils/index.ts +11 -0
- package/src/utils/object.ts +70 -0
- package/src/utils/raf.ts +58 -0
- package/src/utils/time.ts +18 -0
- package/src/utils/use-delayed-count.test.ts +139 -0
- package/src/utils/use-delayed-count.ts +65 -0
- package/src/utils/use-dnd/drag.ts +34 -0
- package/src/utils/use-dnd/drop.ts +93 -0
- package/src/utils/use-dnd/index.tsx +20 -0
- package/src/utils/use-dnd/types.ts +47 -0
- package/src/utils/util.ts +81 -0
- package/src/utils/value.ts +260 -0
- package/src/vite-env.d.ts +1 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
vec3 reearth_calculateElevationMapForGlobe(vec4 colorToAlpha, vec3 color) {
|
|
2
|
+
if(greaterThan(colorToAlpha, vec4(0.9)) == bvec4(true)) {
|
|
3
|
+
float decodedValue = dot(color, vec3(16711680.0, 65280.0, 255.0));
|
|
4
|
+
float height = (decodedValue - 8388607.0) * 0.01;
|
|
5
|
+
float minHeight = czm_branchFreeTernary(logarithmic_3, pseudoLog(minHeight_1), minHeight_1);
|
|
6
|
+
float maxHeight = czm_branchFreeTernary(logarithmic_3, pseudoLog(maxHeight_2), maxHeight_2);
|
|
7
|
+
float value = czm_branchFreeTernary(logarithmic_3, pseudoLog(height), height);
|
|
8
|
+
float normalizedHeight = clamp((value - minHeight) / (maxHeight - minHeight), 0.0, 1.0);
|
|
9
|
+
vec4 mappedColor = texture(colorMap_0, vec2(normalizedHeight, 0.5));
|
|
10
|
+
return mappedColor.rgb;
|
|
11
|
+
}
|
|
12
|
+
return color;
|
|
13
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// This file refers this implementation:
|
|
2
|
+
// https://github.com/takram-design-engineering/plateau-view/blob/8ea8bf1d5ef64319d92d0eb05b936cca7f1a2e8f/libs/cesium/src/shaders/imageBasedLightingStage.glsl
|
|
3
|
+
|
|
4
|
+
// Derived from:
|
|
5
|
+
// https://github.com/CesiumGS/cesium/blob/1.106/packages/engine/Source/Shaders/Model/ImageBasedLightingStageFS.glsl
|
|
6
|
+
// Specular term was removed, as I never apply it on terrain.
|
|
7
|
+
vec3 reearth_imageBasedLightingStage(vec3 positionEC, vec3 normalEC,
|
|
8
|
+
vec3 lightDirectionEC, vec3 lightColorHdr,
|
|
9
|
+
czm_pbrParameters pbrParameters) {
|
|
10
|
+
vec3 v = -positionEC;
|
|
11
|
+
vec3 n = normalEC;
|
|
12
|
+
vec3 l = normalize(lightDirectionEC);
|
|
13
|
+
vec3 h = normalize(v + l);
|
|
14
|
+
float NdotV = abs(dot(n, v)) + 0.001;
|
|
15
|
+
float VdotH = clamp(dot(v, h), 0.0, 1.0);
|
|
16
|
+
|
|
17
|
+
const mat3 yUpToZUp = mat3(-1.0, 0.0, 0.0, 0.0, 0.0, -1.0, 0.0, 1.0, 0.0);
|
|
18
|
+
// Reference frame matrix can be computed only by world position and normal.
|
|
19
|
+
mat3 referenceFrameMatrix =
|
|
20
|
+
czm_transpose(czm_eastNorthUpToEyeCoordinates(v_positionMC, normalEC));
|
|
21
|
+
vec3 cubeDir =
|
|
22
|
+
normalize(yUpToZUp * referenceFrameMatrix * normalize(reflect(-v, n)));
|
|
23
|
+
vec3 diffuseIrradiance =
|
|
24
|
+
czm_sphericalHarmonics(cubeDir, u_reearth_sphericalHarmonicCoefficients);
|
|
25
|
+
|
|
26
|
+
return pbrParameters.diffuseColor * diffuseIrradiance;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
vec4 reearth_computeImageBasedLightingColor(vec4 color) {
|
|
30
|
+
if (u_reearth_globeImageBasedLighting) {
|
|
31
|
+
czm_pbrParameters pbrParameters;
|
|
32
|
+
pbrParameters.diffuseColor = color.rgb;
|
|
33
|
+
|
|
34
|
+
vec3 normalEC = normalize(v_normalEC);
|
|
35
|
+
vec3 lighting =
|
|
36
|
+
czm_pbrLighting(v_positionEC, normalEC, czm_lightDirectionEC,
|
|
37
|
+
czm_lightColorHdr, pbrParameters);
|
|
38
|
+
lighting += reearth_imageBasedLightingStage(
|
|
39
|
+
v_positionEC, normalEC, czm_lightDirectionEC,
|
|
40
|
+
czm_lightColorHdr, pbrParameters) *
|
|
41
|
+
u_vertexShadowDarkness;
|
|
42
|
+
|
|
43
|
+
#ifndef HDR
|
|
44
|
+
lighting = czm_acesTonemapping(lighting);
|
|
45
|
+
lighting = czm_linearToSrgb(lighting);
|
|
46
|
+
#endif
|
|
47
|
+
|
|
48
|
+
return vec4(color.rgb * lighting, color.a);
|
|
49
|
+
} else {
|
|
50
|
+
float diffuseIntensity = clamp(
|
|
51
|
+
czm_getLambertDiffuse(czm_lightDirectionEC, normalize(v_normalEC)) *
|
|
52
|
+
u_lambertDiffuseMultiplier +
|
|
53
|
+
u_vertexShadowDarkness,
|
|
54
|
+
0.0, 1.0);
|
|
55
|
+
return vec4(color.rgb * czm_lightColor * diffuseIntensity, color.a);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# OverriddenShaders
|
|
2
|
+
|
|
3
|
+
This is a set of shaders to override Cesium's shader.
|
|
4
|
+
|
|
5
|
+
The structure have to be as follow.
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
ShaderName/
|
|
9
|
+
XXX.glsl ... Define your own custom functions
|
|
10
|
+
Definitions.glsl ... Definition for each variable or function.
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
You must set `reearth_` prefix to the name of the function like `reearth_own_function()`. Also you must set `reearth_` to the name of the uniform and attribute like `u_reearth_variable` or `v_reearth_variable`.
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CallbackProperty,
|
|
3
|
+
HeightReference,
|
|
4
|
+
type Cartesian3,
|
|
5
|
+
type PositionProperty,
|
|
6
|
+
type Property,
|
|
7
|
+
} from "@cesium/engine";
|
|
8
|
+
import { useMemo, useRef, type FC } from "react";
|
|
9
|
+
import { Entity } from "resium";
|
|
10
|
+
import invariant from "tiny-invariant";
|
|
11
|
+
|
|
12
|
+
import { useConstant } from "../../../utils";
|
|
13
|
+
|
|
14
|
+
let image: HTMLCanvasElement | undefined;
|
|
15
|
+
|
|
16
|
+
function getImage(): HTMLCanvasElement {
|
|
17
|
+
if (image != null) {
|
|
18
|
+
return image;
|
|
19
|
+
}
|
|
20
|
+
image = document.createElement("canvas");
|
|
21
|
+
image.width = 16;
|
|
22
|
+
image.height = 16;
|
|
23
|
+
const context = image.getContext("2d");
|
|
24
|
+
invariant(context != null);
|
|
25
|
+
context.fillStyle = "white";
|
|
26
|
+
context.fillRect(3, 3, 10, 10);
|
|
27
|
+
context.strokeStyle = "black";
|
|
28
|
+
context.lineWidth = 2;
|
|
29
|
+
context.strokeRect(3, 3, 10, 10);
|
|
30
|
+
return image;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface ControlPointProps {
|
|
34
|
+
position: Property | Cartesian3;
|
|
35
|
+
clampToGround?: boolean;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export const ControlPoint: FC<ControlPointProps> = ({ position, clampToGround = false }) => {
|
|
39
|
+
const positionRef = useRef(position);
|
|
40
|
+
positionRef.current = position;
|
|
41
|
+
const positionProperty = useConstant(
|
|
42
|
+
() =>
|
|
43
|
+
new CallbackProperty(
|
|
44
|
+
(time, result) =>
|
|
45
|
+
"getValue" in positionRef.current
|
|
46
|
+
? positionRef.current.getValue(time, result)
|
|
47
|
+
: positionRef.current,
|
|
48
|
+
false,
|
|
49
|
+
) as unknown as PositionProperty,
|
|
50
|
+
);
|
|
51
|
+
|
|
52
|
+
const options = useMemo(
|
|
53
|
+
() => ({
|
|
54
|
+
position: positionProperty,
|
|
55
|
+
billboard: {
|
|
56
|
+
image: getImage(),
|
|
57
|
+
width: 8,
|
|
58
|
+
height: 8,
|
|
59
|
+
heightReference: clampToGround ? HeightReference.CLAMP_TO_GROUND : HeightReference.NONE,
|
|
60
|
+
disableDepthTestDistance: Infinity,
|
|
61
|
+
},
|
|
62
|
+
}),
|
|
63
|
+
[clampToGround, positionProperty],
|
|
64
|
+
);
|
|
65
|
+
|
|
66
|
+
return <Entity {...options} />;
|
|
67
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Entity as CesiumEntity, type EntityCollection } from "@cesium/engine";
|
|
2
|
+
import { omit } from "lodash-es";
|
|
3
|
+
import { forwardRef, memo, useEffect, useState } from "react";
|
|
4
|
+
import { useCesium } from "resium";
|
|
5
|
+
|
|
6
|
+
import { assignForwardedRef } from "./utils";
|
|
7
|
+
|
|
8
|
+
export interface EntityProps extends CesiumEntity.ConstructorOptions {
|
|
9
|
+
entities?: EntityCollection;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const Entity = memo(
|
|
13
|
+
forwardRef<CesiumEntity, EntityProps>(({ entities: entitiesProp, ...options }, ref) => {
|
|
14
|
+
const { viewer } = useCesium();
|
|
15
|
+
const scene = viewer?.scene;
|
|
16
|
+
const defaultEntities = viewer?.entities;
|
|
17
|
+
const entities = entitiesProp ?? defaultEntities;
|
|
18
|
+
const [entity, setEntity] = useState(() => new CesiumEntity(options));
|
|
19
|
+
|
|
20
|
+
useEffect(() => {
|
|
21
|
+
setEntity(new CesiumEntity(options));
|
|
22
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
23
|
+
}, [options.id]);
|
|
24
|
+
|
|
25
|
+
useEffect(() => {
|
|
26
|
+
entities?.add(entity);
|
|
27
|
+
return () => {
|
|
28
|
+
entities?.remove(entity);
|
|
29
|
+
scene?.requestRender();
|
|
30
|
+
};
|
|
31
|
+
}, [scene, entities, entity]);
|
|
32
|
+
|
|
33
|
+
useEffect(() => assignForwardedRef(ref, entity), [ref, entity]);
|
|
34
|
+
|
|
35
|
+
// Although it seems Entity.merge() is the way to merge with the new
|
|
36
|
+
// options, Object.assign() also works.
|
|
37
|
+
Object.assign(entity, omit(options, "id"));
|
|
38
|
+
|
|
39
|
+
scene?.requestRender();
|
|
40
|
+
|
|
41
|
+
return null;
|
|
42
|
+
}),
|
|
43
|
+
);
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Cartesian3, type Color } from "@cesium/engine";
|
|
2
|
+
import { memo, type FC } from "react";
|
|
3
|
+
import { useCesium } from "resium";
|
|
4
|
+
import invariant from "tiny-invariant";
|
|
5
|
+
|
|
6
|
+
import { ControlPoint } from "./ControlPoint";
|
|
7
|
+
import { type GeometryOptions } from "./createGeometry";
|
|
8
|
+
import { ExtrudedMeasurement } from "./ExtrudedMeasurement";
|
|
9
|
+
|
|
10
|
+
export interface ExtrudedControlPointsProps {
|
|
11
|
+
geometryOptions: GeometryOptions;
|
|
12
|
+
extrudedHeight: number;
|
|
13
|
+
color?: Color;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const cartesianScratch = new Cartesian3();
|
|
17
|
+
|
|
18
|
+
const ExtrudedControlPoints: FC<ExtrudedControlPointsProps> = memo(
|
|
19
|
+
({ geometryOptions: { controlPoints }, extrudedHeight, color }) => {
|
|
20
|
+
const { viewer } = useCesium();
|
|
21
|
+
const controlPoint = controlPoints[controlPoints.length - 1];
|
|
22
|
+
const normal = viewer?.scene?.globe.ellipsoid.geodeticSurfaceNormal(
|
|
23
|
+
controlPoint,
|
|
24
|
+
cartesianScratch,
|
|
25
|
+
);
|
|
26
|
+
|
|
27
|
+
invariant(normal !== undefined);
|
|
28
|
+
const extrudedPoint = Cartesian3.add(
|
|
29
|
+
controlPoint,
|
|
30
|
+
Cartesian3.multiplyByScalar(normal, extrudedHeight, cartesianScratch),
|
|
31
|
+
cartesianScratch,
|
|
32
|
+
);
|
|
33
|
+
|
|
34
|
+
return (
|
|
35
|
+
<>
|
|
36
|
+
<ControlPoint position={controlPoint} clampToGround />
|
|
37
|
+
<ControlPoint position={extrudedPoint} />
|
|
38
|
+
<ExtrudedMeasurement
|
|
39
|
+
a={controlPoint}
|
|
40
|
+
b={extrudedPoint}
|
|
41
|
+
extrudedHeight={extrudedHeight}
|
|
42
|
+
color={color}
|
|
43
|
+
/>
|
|
44
|
+
</>
|
|
45
|
+
);
|
|
46
|
+
},
|
|
47
|
+
);
|
|
48
|
+
|
|
49
|
+
ExtrudedControlPoints.displayName = "ExtrudedControlPoints";
|
|
50
|
+
|
|
51
|
+
export default ExtrudedControlPoints;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CallbackProperty,
|
|
3
|
+
Cartesian3,
|
|
4
|
+
PolylineDashMaterialProperty,
|
|
5
|
+
type Color,
|
|
6
|
+
type PositionProperty,
|
|
7
|
+
} from "@cesium/engine";
|
|
8
|
+
import { useMemo, useRef, type FC } from "react";
|
|
9
|
+
|
|
10
|
+
import { useConstant } from "../../../utils";
|
|
11
|
+
|
|
12
|
+
import { Entity, type EntityProps } from "./Entity";
|
|
13
|
+
import { MeasurementText } from "./MeasurementText";
|
|
14
|
+
import ScreenSpaceElement from "./ScreenSpaceElement";
|
|
15
|
+
|
|
16
|
+
const MeasurementLine: FC<{
|
|
17
|
+
a: Cartesian3;
|
|
18
|
+
b: Cartesian3;
|
|
19
|
+
color?: Color;
|
|
20
|
+
}> = ({ a, b, color }) => {
|
|
21
|
+
const controlPointsRef = useRef([a, b]);
|
|
22
|
+
controlPointsRef.current = [a, b];
|
|
23
|
+
const positionsProperty = useConstant(
|
|
24
|
+
() =>
|
|
25
|
+
new CallbackProperty(() => controlPointsRef.current, false) as unknown as PositionProperty,
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
const options = useMemo((): EntityProps => {
|
|
29
|
+
return {
|
|
30
|
+
polyline: {
|
|
31
|
+
positions: positionsProperty,
|
|
32
|
+
width: 1.5,
|
|
33
|
+
material: new PolylineDashMaterialProperty({
|
|
34
|
+
color,
|
|
35
|
+
dashLength: 8,
|
|
36
|
+
}),
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
}, [color, positionsProperty]);
|
|
40
|
+
|
|
41
|
+
return <Entity {...options} />;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export interface ExtrudedMeasurementProps {
|
|
45
|
+
a: Cartesian3;
|
|
46
|
+
b: Cartesian3;
|
|
47
|
+
extrudedHeight: number;
|
|
48
|
+
color?: Color;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export const ExtrudedMeasurement: FC<ExtrudedMeasurementProps> = ({
|
|
52
|
+
a,
|
|
53
|
+
b,
|
|
54
|
+
extrudedHeight,
|
|
55
|
+
color,
|
|
56
|
+
}) => {
|
|
57
|
+
const position = useConstant(() => new Cartesian3());
|
|
58
|
+
return (
|
|
59
|
+
<>
|
|
60
|
+
<ScreenSpaceElement position={Cartesian3.midpoint(a, b, position)}>
|
|
61
|
+
<MeasurementText>
|
|
62
|
+
{extrudedHeight < 1000
|
|
63
|
+
? `${extrudedHeight.toFixed(1)} m`
|
|
64
|
+
: `${(extrudedHeight / 1000).toFixed(1)} km`}
|
|
65
|
+
</MeasurementText>
|
|
66
|
+
</ScreenSpaceElement>
|
|
67
|
+
<MeasurementLine a={a} b={b} color={color} />
|
|
68
|
+
</>
|
|
69
|
+
);
|
|
70
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CallbackProperty,
|
|
3
|
+
ClassificationType,
|
|
4
|
+
ColorMaterialProperty,
|
|
5
|
+
HeightReference,
|
|
6
|
+
ShadowMode,
|
|
7
|
+
type Color,
|
|
8
|
+
type PolygonHierarchy,
|
|
9
|
+
} from "@cesium/engine";
|
|
10
|
+
import { useMemo, useRef, type FC } from "react";
|
|
11
|
+
|
|
12
|
+
import { useConstant } from "../../../utils";
|
|
13
|
+
import { useContext } from "../Feature/context";
|
|
14
|
+
|
|
15
|
+
import { Entity, type EntityProps } from "./Entity";
|
|
16
|
+
|
|
17
|
+
export interface ExtrudedPolygonEntityProps {
|
|
18
|
+
dynamic?: boolean;
|
|
19
|
+
id?: string;
|
|
20
|
+
hierarchy: PolygonHierarchy;
|
|
21
|
+
extrudedHeight: number;
|
|
22
|
+
color?: Color;
|
|
23
|
+
disableShadow?: boolean;
|
|
24
|
+
enableRelativeHeight?: boolean;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export const ExtrudedPolygonEntity: FC<ExtrudedPolygonEntityProps> = ({
|
|
28
|
+
dynamic = false,
|
|
29
|
+
id,
|
|
30
|
+
hierarchy: hierarchyProp,
|
|
31
|
+
extrudedHeight: extrudedHeightProp,
|
|
32
|
+
color,
|
|
33
|
+
disableShadow = false,
|
|
34
|
+
enableRelativeHeight = false,
|
|
35
|
+
}) => {
|
|
36
|
+
const hierarchyRef = useRef(hierarchyProp);
|
|
37
|
+
hierarchyRef.current = hierarchyProp;
|
|
38
|
+
const hierarchyProperty = useConstant(
|
|
39
|
+
() => new CallbackProperty(() => hierarchyRef.current, false),
|
|
40
|
+
);
|
|
41
|
+
const hierarchy = dynamic ? hierarchyProperty : hierarchyProp;
|
|
42
|
+
|
|
43
|
+
const extrudedHeightRef = useRef(extrudedHeightProp);
|
|
44
|
+
extrudedHeightRef.current = extrudedHeightProp;
|
|
45
|
+
const extrudedHeightProperty = useConstant(
|
|
46
|
+
() => new CallbackProperty(() => extrudedHeightRef.current, false),
|
|
47
|
+
);
|
|
48
|
+
const extrudedHeight = dynamic ? extrudedHeightProperty : extrudedHeightProp;
|
|
49
|
+
|
|
50
|
+
const options = useMemo(
|
|
51
|
+
(): EntityProps => ({
|
|
52
|
+
polygon: {
|
|
53
|
+
hierarchy,
|
|
54
|
+
extrudedHeight,
|
|
55
|
+
extrudedHeightReference: HeightReference.RELATIVE_TO_GROUND,
|
|
56
|
+
fill: true,
|
|
57
|
+
outline: true,
|
|
58
|
+
outlineWidth: 1,
|
|
59
|
+
outlineColor: color?.withAlpha(1),
|
|
60
|
+
material: new ColorMaterialProperty(color),
|
|
61
|
+
classificationType: ClassificationType.TERRAIN,
|
|
62
|
+
shadows: disableShadow ? ShadowMode.DISABLED : ShadowMode.ENABLED,
|
|
63
|
+
...(enableRelativeHeight
|
|
64
|
+
? { height: 0, heightReference: HeightReference.RELATIVE_TO_GROUND }
|
|
65
|
+
: undefined),
|
|
66
|
+
},
|
|
67
|
+
}),
|
|
68
|
+
[extrudedHeight, disableShadow, hierarchy, color, enableRelativeHeight],
|
|
69
|
+
);
|
|
70
|
+
|
|
71
|
+
const { requestRender } = useContext();
|
|
72
|
+
requestRender?.();
|
|
73
|
+
|
|
74
|
+
return <Entity id={id} {...options} />;
|
|
75
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
|
+
|
|
3
|
+
const textStyle = {
|
|
4
|
+
padding: "5px",
|
|
5
|
+
color: "#fff",
|
|
6
|
+
backgroundColor: "#000",
|
|
7
|
+
borderRadius: "5px",
|
|
8
|
+
lineHeight: 1,
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export const MeasurementText: FC<{ children: ReactNode }> = ({ children }) => {
|
|
12
|
+
return <div style={textStyle}>{children}</div>;
|
|
13
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CallbackProperty,
|
|
3
|
+
ClassificationType,
|
|
4
|
+
type Color,
|
|
5
|
+
type PolygonHierarchy,
|
|
6
|
+
} from "@cesium/engine";
|
|
7
|
+
import { useMemo, useRef, type FC } from "react";
|
|
8
|
+
|
|
9
|
+
import { useConstant } from "../../../utils";
|
|
10
|
+
import { useContext } from "../Feature/context";
|
|
11
|
+
|
|
12
|
+
import { Entity, type EntityProps } from "./Entity";
|
|
13
|
+
|
|
14
|
+
export interface PolygonEntityProps {
|
|
15
|
+
dynamic?: boolean;
|
|
16
|
+
hierarchy?: PolygonHierarchy;
|
|
17
|
+
color?: Color;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export const PolygonEntity: FC<PolygonEntityProps> = ({
|
|
21
|
+
dynamic = false,
|
|
22
|
+
hierarchy: hierarchyProp,
|
|
23
|
+
color,
|
|
24
|
+
}) => {
|
|
25
|
+
const hierarchyRef = useRef(hierarchyProp);
|
|
26
|
+
hierarchyRef.current = hierarchyProp;
|
|
27
|
+
const hierarchyProperty = useConstant(
|
|
28
|
+
() => new CallbackProperty(() => hierarchyRef.current, false),
|
|
29
|
+
);
|
|
30
|
+
const hierarchy = dynamic ? hierarchyProperty : hierarchyProp;
|
|
31
|
+
|
|
32
|
+
const options = useMemo(
|
|
33
|
+
(): EntityProps => ({
|
|
34
|
+
polygon: {
|
|
35
|
+
hierarchy,
|
|
36
|
+
fill: true,
|
|
37
|
+
material: color?.withAlpha(0.5),
|
|
38
|
+
classificationType: ClassificationType.TERRAIN,
|
|
39
|
+
},
|
|
40
|
+
}),
|
|
41
|
+
[color, hierarchy],
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
const { requestRender } = useContext();
|
|
45
|
+
requestRender?.();
|
|
46
|
+
|
|
47
|
+
return <Entity {...options} />;
|
|
48
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { CallbackProperty, ClassificationType, type Cartesian3, type Color } from "@cesium/engine";
|
|
2
|
+
import { useMemo, useRef, type FC } from "react";
|
|
3
|
+
|
|
4
|
+
import { useConstant } from "../../../utils";
|
|
5
|
+
import { useContext } from "../Feature/context";
|
|
6
|
+
|
|
7
|
+
import { Entity, type EntityProps } from "./Entity";
|
|
8
|
+
|
|
9
|
+
export interface PolylineEntityProps {
|
|
10
|
+
dynamic?: boolean;
|
|
11
|
+
positions: Cartesian3[];
|
|
12
|
+
color?: Color;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const PolylineEntity: FC<PolylineEntityProps> = ({
|
|
16
|
+
dynamic = false,
|
|
17
|
+
positions: positionsProp,
|
|
18
|
+
color,
|
|
19
|
+
}) => {
|
|
20
|
+
const positionsRef = useRef(positionsProp);
|
|
21
|
+
positionsRef.current = positionsProp;
|
|
22
|
+
const positionsProperty = useConstant(
|
|
23
|
+
() => new CallbackProperty(() => positionsRef.current, !dynamic),
|
|
24
|
+
);
|
|
25
|
+
const positions = dynamic ? positionsProperty : positionsProp;
|
|
26
|
+
|
|
27
|
+
const options = useMemo(
|
|
28
|
+
(): EntityProps => ({
|
|
29
|
+
polyline: {
|
|
30
|
+
positions,
|
|
31
|
+
width: 1.5,
|
|
32
|
+
material: color,
|
|
33
|
+
classificationType: ClassificationType.TERRAIN,
|
|
34
|
+
clampToGround: true,
|
|
35
|
+
},
|
|
36
|
+
}),
|
|
37
|
+
[color, positions],
|
|
38
|
+
);
|
|
39
|
+
|
|
40
|
+
const { requestRender } = useContext();
|
|
41
|
+
requestRender?.();
|
|
42
|
+
|
|
43
|
+
return <Entity {...options} />;
|
|
44
|
+
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { Cartesian2, Cartesian3, Ellipsoid, EllipsoidalOccluder } from "@cesium/engine";
|
|
2
|
+
import { motion, useMotionValue } from "framer-motion";
|
|
3
|
+
import { forwardRef, useRef, type ComponentPropsWithRef } from "react";
|
|
4
|
+
import { useMergeRefs } from "use-callback-ref";
|
|
5
|
+
|
|
6
|
+
import { useConstant } from "../../../utils";
|
|
7
|
+
import { useContext } from "../Feature/context";
|
|
8
|
+
import { usePreRender } from "../hooks/useSceneEvent";
|
|
9
|
+
|
|
10
|
+
export interface ScreenSpaceElementProps extends ComponentPropsWithRef<typeof motion.div> {
|
|
11
|
+
position?: Cartesian3;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const occluder = new EllipsoidalOccluder(Ellipsoid.WGS84, Cartesian3.ZERO);
|
|
16
|
+
|
|
17
|
+
const ScreenSpaceElement = forwardRef<HTMLDivElement, ScreenSpaceElementProps>(
|
|
18
|
+
({ position: positionProp, children, ...props }, forwardedRef) => {
|
|
19
|
+
const position = useConstant(() => new Cartesian3());
|
|
20
|
+
positionProp?.clone(position);
|
|
21
|
+
|
|
22
|
+
const motionTransform = useMotionValue("");
|
|
23
|
+
const motionDisplay = useMotionValue("none");
|
|
24
|
+
|
|
25
|
+
const { toWindowPosition, getCamera, toXYZ, isPositionVisible } = useContext();
|
|
26
|
+
|
|
27
|
+
const ref = useRef<HTMLDivElement>(null);
|
|
28
|
+
|
|
29
|
+
usePreRender(() => {
|
|
30
|
+
if (ref.current == null) {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
let windowPosition;
|
|
34
|
+
try {
|
|
35
|
+
const pos = toWindowPosition?.([position.x, position.y, position.z]);
|
|
36
|
+
windowPosition = new Cartesian2(pos?.[0], pos?.[1]);
|
|
37
|
+
} catch (error) {
|
|
38
|
+
motionDisplay.set("none");
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const camera = getCamera?.();
|
|
43
|
+
if (!camera) return;
|
|
44
|
+
const xyz = toXYZ?.(camera?.lng, camera?.lat, camera?.height);
|
|
45
|
+
if (!xyz) return;
|
|
46
|
+
occluder.cameraPosition = new Cartesian3(xyz[0], xyz[1], xyz[2]);
|
|
47
|
+
if (
|
|
48
|
+
windowPosition == null ||
|
|
49
|
+
windowPosition.x < 0 ||
|
|
50
|
+
windowPosition.y < 0 ||
|
|
51
|
+
windowPosition.x > window.innerWidth ||
|
|
52
|
+
windowPosition.y > window.innerHeight ||
|
|
53
|
+
!isPositionVisible?.([position.x, position.y, position.z])
|
|
54
|
+
) {
|
|
55
|
+
motionDisplay.set("none");
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
const x = `calc(${windowPosition.x}px - 50%)`;
|
|
59
|
+
const y = `calc(${windowPosition.y}px - 50%)`;
|
|
60
|
+
motionTransform.set(`translate(${x}, ${y})`);
|
|
61
|
+
motionDisplay.set("block");
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
const mergedRef = useMergeRefs([ref, forwardedRef]);
|
|
65
|
+
|
|
66
|
+
return (
|
|
67
|
+
<motion.div
|
|
68
|
+
ref={mergedRef}
|
|
69
|
+
{...props}
|
|
70
|
+
style={{
|
|
71
|
+
...props.style,
|
|
72
|
+
transform: motionTransform,
|
|
73
|
+
display: motionDisplay,
|
|
74
|
+
position: "absolute",
|
|
75
|
+
pointerEvents: "none",
|
|
76
|
+
left: 0,
|
|
77
|
+
top: 0,
|
|
78
|
+
}}>
|
|
79
|
+
{children}
|
|
80
|
+
</motion.div>
|
|
81
|
+
);
|
|
82
|
+
},
|
|
83
|
+
);
|
|
84
|
+
|
|
85
|
+
ScreenSpaceElement.displayName = "ScreenSpaceElement";
|
|
86
|
+
|
|
87
|
+
export default ScreenSpaceElement;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { Cartesian3, type Color } from "@cesium/engine";
|
|
2
|
+
import { memo, type FC } from "react";
|
|
3
|
+
|
|
4
|
+
import { ControlPoint } from "./ControlPoint";
|
|
5
|
+
import { type GeometryOptions } from "./createGeometry";
|
|
6
|
+
import { SurfaceMeasurement } from "./SurfaceMeasurement";
|
|
7
|
+
|
|
8
|
+
export interface SurfaceControlPointsProps {
|
|
9
|
+
geometryOptions: GeometryOptions;
|
|
10
|
+
color?: Color;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const cartesianScratch1 = new Cartesian3();
|
|
14
|
+
const cartesianScratch2 = new Cartesian3();
|
|
15
|
+
|
|
16
|
+
const SurfaceControlPoints: FC<SurfaceControlPointsProps> = memo(
|
|
17
|
+
({ geometryOptions: { type, controlPoints: controlPointsProp }, color }) => {
|
|
18
|
+
let controlPoints = [...controlPointsProp];
|
|
19
|
+
let measurementPoints: [Cartesian3, Cartesian3] | undefined;
|
|
20
|
+
let showLine = false;
|
|
21
|
+
|
|
22
|
+
if (type === "rectangle" && controlPoints.length === 3) {
|
|
23
|
+
const [p1, p2, p3] = controlPoints;
|
|
24
|
+
const projection = Cartesian3.projectVector(
|
|
25
|
+
Cartesian3.subtract(p3, p1, cartesianScratch1),
|
|
26
|
+
Cartesian3.subtract(p2, p1, cartesianScratch2),
|
|
27
|
+
cartesianScratch1,
|
|
28
|
+
);
|
|
29
|
+
const offset = Cartesian3.subtract(
|
|
30
|
+
p3,
|
|
31
|
+
Cartesian3.add(p1, projection, cartesianScratch1),
|
|
32
|
+
cartesianScratch2,
|
|
33
|
+
);
|
|
34
|
+
const p4 = Cartesian3.midpoint(p1, p2, cartesianScratch1);
|
|
35
|
+
const p5 = Cartesian3.add(p4, offset, cartesianScratch2);
|
|
36
|
+
controlPoints = [p1, p2, p5];
|
|
37
|
+
measurementPoints = [p4, p5];
|
|
38
|
+
showLine = true;
|
|
39
|
+
} else if (type === "marker") {
|
|
40
|
+
measurementPoints = undefined;
|
|
41
|
+
controlPoints = [];
|
|
42
|
+
} else if (controlPoints.length >= 2) {
|
|
43
|
+
measurementPoints = controlPoints.slice(-2) as [Cartesian3, Cartesian3];
|
|
44
|
+
showLine = type === "circle";
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
return (
|
|
48
|
+
<>
|
|
49
|
+
{controlPoints.map((controlPoint, index) => (
|
|
50
|
+
<ControlPoint key={index} position={controlPoint} clampToGround />
|
|
51
|
+
))}
|
|
52
|
+
{measurementPoints != undefined && (
|
|
53
|
+
<SurfaceMeasurement
|
|
54
|
+
a={measurementPoints[0]}
|
|
55
|
+
b={measurementPoints[1]}
|
|
56
|
+
color={color}
|
|
57
|
+
showLine={showLine}
|
|
58
|
+
/>
|
|
59
|
+
)}
|
|
60
|
+
</>
|
|
61
|
+
);
|
|
62
|
+
},
|
|
63
|
+
);
|
|
64
|
+
|
|
65
|
+
SurfaceControlPoints.displayName = "SurfaceControlPoints";
|
|
66
|
+
|
|
67
|
+
export default SurfaceControlPoints;
|