@dp_unity/dpu-gis-viewer 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 +0 -0
- package/dist/DPUStatic/Assets/IAU2006_XYS/IAU2006_XYS_0.json +1 -0
- package/dist/DPUStatic/Assets/IAU2006_XYS/IAU2006_XYS_1.json +1 -0
- package/dist/DPUStatic/Assets/IAU2006_XYS/IAU2006_XYS_10.json +1 -0
- package/dist/DPUStatic/Assets/IAU2006_XYS/IAU2006_XYS_11.json +1 -0
- package/dist/DPUStatic/Assets/IAU2006_XYS/IAU2006_XYS_12.json +1 -0
- package/dist/DPUStatic/Assets/IAU2006_XYS/IAU2006_XYS_13.json +1 -0
- package/dist/DPUStatic/Assets/IAU2006_XYS/IAU2006_XYS_14.json +1 -0
- package/dist/DPUStatic/Assets/IAU2006_XYS/IAU2006_XYS_15.json +1 -0
- package/dist/DPUStatic/Assets/IAU2006_XYS/IAU2006_XYS_16.json +1 -0
- package/dist/DPUStatic/Assets/IAU2006_XYS/IAU2006_XYS_17.json +1 -0
- package/dist/DPUStatic/Assets/IAU2006_XYS/IAU2006_XYS_18.json +1 -0
- package/dist/DPUStatic/Assets/IAU2006_XYS/IAU2006_XYS_19.json +1 -0
- package/dist/DPUStatic/Assets/IAU2006_XYS/IAU2006_XYS_2.json +1 -0
- package/dist/DPUStatic/Assets/IAU2006_XYS/IAU2006_XYS_20.json +1 -0
- package/dist/DPUStatic/Assets/IAU2006_XYS/IAU2006_XYS_21.json +1 -0
- package/dist/DPUStatic/Assets/IAU2006_XYS/IAU2006_XYS_22.json +1 -0
- package/dist/DPUStatic/Assets/IAU2006_XYS/IAU2006_XYS_23.json +1 -0
- package/dist/DPUStatic/Assets/IAU2006_XYS/IAU2006_XYS_24.json +1 -0
- package/dist/DPUStatic/Assets/IAU2006_XYS/IAU2006_XYS_25.json +1 -0
- package/dist/DPUStatic/Assets/IAU2006_XYS/IAU2006_XYS_26.json +1 -0
- package/dist/DPUStatic/Assets/IAU2006_XYS/IAU2006_XYS_27.json +1 -0
- package/dist/DPUStatic/Assets/IAU2006_XYS/IAU2006_XYS_3.json +1 -0
- package/dist/DPUStatic/Assets/IAU2006_XYS/IAU2006_XYS_4.json +1 -0
- package/dist/DPUStatic/Assets/IAU2006_XYS/IAU2006_XYS_5.json +1 -0
- package/dist/DPUStatic/Assets/IAU2006_XYS/IAU2006_XYS_6.json +1 -0
- package/dist/DPUStatic/Assets/IAU2006_XYS/IAU2006_XYS_7.json +1 -0
- package/dist/DPUStatic/Assets/IAU2006_XYS/IAU2006_XYS_8.json +1 -0
- package/dist/DPUStatic/Assets/IAU2006_XYS/IAU2006_XYS_9.json +1 -0
- package/dist/DPUStatic/Assets/Images/bing_maps_credit.png +0 -0
- package/dist/DPUStatic/Assets/Images/cesium_credit.png +0 -0
- package/dist/DPUStatic/Assets/Images/google_earth_credit.png +0 -0
- package/dist/DPUStatic/Assets/Images/ion-credit.png +0 -0
- package/dist/DPUStatic/Assets/Textures/LensFlare/DirtMask.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/LensFlare/StarBurst.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/NaturalEarthII/0/0/0.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/NaturalEarthII/0/1/0.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/NaturalEarthII/1/0/0.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/NaturalEarthII/1/0/1.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/NaturalEarthII/1/1/0.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/NaturalEarthII/1/1/1.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/NaturalEarthII/1/2/0.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/NaturalEarthII/1/2/1.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/NaturalEarthII/1/3/0.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/NaturalEarthII/1/3/1.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/NaturalEarthII/2/0/0.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/NaturalEarthII/2/0/1.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/NaturalEarthII/2/0/2.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/NaturalEarthII/2/0/3.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/NaturalEarthII/2/1/0.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/NaturalEarthII/2/1/1.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/NaturalEarthII/2/1/2.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/NaturalEarthII/2/1/3.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/NaturalEarthII/2/2/0.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/NaturalEarthII/2/2/1.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/NaturalEarthII/2/2/2.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/NaturalEarthII/2/2/3.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/NaturalEarthII/2/3/0.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/NaturalEarthII/2/3/1.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/NaturalEarthII/2/3/2.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/NaturalEarthII/2/3/3.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/NaturalEarthII/2/4/0.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/NaturalEarthII/2/4/1.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/NaturalEarthII/2/4/2.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/NaturalEarthII/2/4/3.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/NaturalEarthII/2/5/0.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/NaturalEarthII/2/5/1.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/NaturalEarthII/2/5/2.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/NaturalEarthII/2/5/3.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/NaturalEarthII/2/6/0.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/NaturalEarthII/2/6/1.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/NaturalEarthII/2/6/2.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/NaturalEarthII/2/6/3.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/NaturalEarthII/2/7/0.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/NaturalEarthII/2/7/1.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/NaturalEarthII/2/7/2.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/NaturalEarthII/2/7/3.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/NaturalEarthII/tilemapresource.xml +14 -0
- package/dist/DPUStatic/Assets/Textures/SkyBox/tycho2t3_80_mx.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/SkyBox/tycho2t3_80_my.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/SkyBox/tycho2t3_80_mz.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/SkyBox/tycho2t3_80_px.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/SkyBox/tycho2t3_80_py.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/SkyBox/tycho2t3_80_pz.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/airfield.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/airport.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/alcohol-shop.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/america-football.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/art-gallery.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/bakery.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/bank.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/bar.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/baseball.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/basketball.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/beer.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/bicycle.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/building.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/bus.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/cafe.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/camera.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/campsite.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/car.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/cemetery.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/cesium.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/chemist.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/cinema.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/circle-stroked.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/circle.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/city.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/clothing-store.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/college.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/commercial.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/cricket.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/cross.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/dam.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/danger.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/disability.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/dog-park.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/embassy.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/emergency-telephone.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/entrance.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/farm.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/fast-food.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/ferry.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/fire-station.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/fuel.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/garden.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/gift.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/golf.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/grocery.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/hairdresser.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/harbor.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/heart.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/heliport.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/hospital.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/ice-cream.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/industrial.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/land-use.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/laundry.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/library.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/lighthouse.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/lodging.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/logging.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/london-underground.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/marker-stroked.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/marker.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/minefield.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/mobilephone.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/monument.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/museum.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/music.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/oil-well.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/park.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/park2.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/parking-garage.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/parking.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/pharmacy.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/pitch.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/place-of-worship.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/playground.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/police.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/polling-place.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/post.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/prison.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/rail-above.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/rail-light.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/rail-metro.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/rail-underground.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/rail.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/religious-christian.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/religious-jewish.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/religious-muslim.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/restaurant.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/roadblock.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/rocket.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/school.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/scooter.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/shop.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/skiing.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/slaughterhouse.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/soccer.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/square-stroked.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/square.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/star-stroked.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/star.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/suitcase.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/swimming.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/telephone.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/tennis.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/theatre.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/toilets.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/town-hall.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/town.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/triangle-stroked.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/triangle.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/village.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/warehouse.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/waste-basket.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/water.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/wetland.png +0 -0
- package/dist/DPUStatic/Assets/Textures/maki/zoo.png +0 -0
- package/dist/DPUStatic/Assets/Textures/moonSmall.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/pin.svg +1 -0
- package/dist/DPUStatic/Assets/Textures/waterNormals.jpg +0 -0
- package/dist/DPUStatic/Assets/Textures/waterNormalsSmall.jpg +0 -0
- package/dist/DPUStatic/Assets/approximateTerrainHeights.json +1 -0
- package/dist/DPUStatic/ThirdParty/Workers/package.json +1 -0
- package/dist/DPUStatic/ThirdParty/Workers/pako_deflate.min.js +2 -0
- package/dist/DPUStatic/ThirdParty/Workers/pako_deflate.min.js.LICENSE.txt +1 -0
- package/dist/DPUStatic/ThirdParty/Workers/pako_inflate.min.js +2 -0
- package/dist/DPUStatic/ThirdParty/Workers/pako_inflate.min.js.LICENSE.txt +1 -0
- package/dist/DPUStatic/ThirdParty/Workers/z-worker-pako.js +1 -0
- package/dist/DPUStatic/ThirdParty/basis_transcoder.wasm +0 -0
- package/dist/DPUStatic/ThirdParty/draco_decoder.wasm +0 -0
- package/dist/DPUStatic/ThirdParty/google-earth-dbroot-parser.js +1 -0
- package/dist/DPUStatic/Widgets/Animation/Animation.css +127 -0
- package/dist/DPUStatic/Widgets/Animation/lighter.css +70 -0
- package/dist/DPUStatic/Widgets/BaseLayerPicker/BaseLayerPicker.css +108 -0
- package/dist/DPUStatic/Widgets/BaseLayerPicker/lighter.css +22 -0
- package/dist/DPUStatic/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css +102 -0
- package/dist/DPUStatic/Widgets/CesiumInspector/CesiumInspector.css +113 -0
- package/dist/DPUStatic/Widgets/CesiumWidget/CesiumWidget.css +119 -0
- package/dist/DPUStatic/Widgets/CesiumWidget/lighter.css +14 -0
- package/dist/DPUStatic/Widgets/FullscreenButton/FullscreenButton.css +8 -0
- package/dist/DPUStatic/Widgets/Geocoder/Geocoder.css +70 -0
- package/dist/DPUStatic/Widgets/Geocoder/lighter.css +17 -0
- package/dist/DPUStatic/Widgets/I3SBuildingSceneLayerExplorer/I3SBuildingSceneLayerExplorer.css +27 -0
- package/dist/DPUStatic/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldHillshade.png +0 -0
- package/dist/DPUStatic/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldImagery.png +0 -0
- package/dist/DPUStatic/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldOcean.png +0 -0
- package/dist/DPUStatic/Widgets/Images/ImageryProviders/bingAerial.png +0 -0
- package/dist/DPUStatic/Widgets/Images/ImageryProviders/bingAerialLabels.png +0 -0
- package/dist/DPUStatic/Widgets/Images/ImageryProviders/bingRoads.png +0 -0
- package/dist/DPUStatic/Widgets/Images/ImageryProviders/blueMarble.png +0 -0
- package/dist/DPUStatic/Widgets/Images/ImageryProviders/earthAtNight.png +0 -0
- package/dist/DPUStatic/Widgets/Images/ImageryProviders/mapQuestOpenStreetMap.png +0 -0
- package/dist/DPUStatic/Widgets/Images/ImageryProviders/mapboxSatellite.png +0 -0
- package/dist/DPUStatic/Widgets/Images/ImageryProviders/mapboxStreets.png +0 -0
- package/dist/DPUStatic/Widgets/Images/ImageryProviders/mapboxTerrain.png +0 -0
- package/dist/DPUStatic/Widgets/Images/ImageryProviders/naturalEarthII.png +0 -0
- package/dist/DPUStatic/Widgets/Images/ImageryProviders/openStreetMap.png +0 -0
- package/dist/DPUStatic/Widgets/Images/ImageryProviders/sentinel-2.png +0 -0
- package/dist/DPUStatic/Widgets/Images/ImageryProviders/stadiaAlidadeSmooth.png +0 -0
- package/dist/DPUStatic/Widgets/Images/ImageryProviders/stadiaAlidadeSmoothDark.png +0 -0
- package/dist/DPUStatic/Widgets/Images/ImageryProviders/stamenToner.png +0 -0
- package/dist/DPUStatic/Widgets/Images/ImageryProviders/stamenWatercolor.png +0 -0
- package/dist/DPUStatic/Widgets/Images/NavigationHelp/Mouse.svg +84 -0
- package/dist/DPUStatic/Widgets/Images/NavigationHelp/MouseLeft.svg +76 -0
- package/dist/DPUStatic/Widgets/Images/NavigationHelp/MouseMiddle.svg +76 -0
- package/dist/DPUStatic/Widgets/Images/NavigationHelp/MouseRight.svg +76 -0
- package/dist/DPUStatic/Widgets/Images/NavigationHelp/Touch.svg +120 -0
- package/dist/DPUStatic/Widgets/Images/NavigationHelp/TouchDrag.svg +129 -0
- package/dist/DPUStatic/Widgets/Images/NavigationHelp/TouchRotate.svg +76 -0
- package/dist/DPUStatic/Widgets/Images/NavigationHelp/TouchTilt.svg +135 -0
- package/dist/DPUStatic/Widgets/Images/NavigationHelp/TouchZoom.svg +74 -0
- package/dist/DPUStatic/Widgets/Images/TerrainProviders/CesiumWorldTerrain.png +0 -0
- package/dist/DPUStatic/Widgets/Images/TerrainProviders/Ellipsoid.png +0 -0
- package/dist/DPUStatic/Widgets/Images/TimelineIcons.png +0 -0
- package/dist/DPUStatic/Widgets/Images/info-loading.gif +0 -0
- package/dist/DPUStatic/Widgets/InfoBox/InfoBox.css +92 -0
- package/dist/DPUStatic/Widgets/InfoBox/InfoBoxDescription.css +178 -0
- package/dist/DPUStatic/Widgets/NavigationHelpButton/NavigationHelpButton.css +93 -0
- package/dist/DPUStatic/Widgets/NavigationHelpButton/lighter.css +38 -0
- package/dist/DPUStatic/Widgets/PerformanceWatchdog/PerformanceWatchdog.css +15 -0
- package/dist/DPUStatic/Widgets/ProjectionPicker/ProjectionPicker.css +38 -0
- package/dist/DPUStatic/Widgets/SceneModePicker/SceneModePicker.css +56 -0
- package/dist/DPUStatic/Widgets/SelectionIndicator/SelectionIndicator.css +20 -0
- package/dist/DPUStatic/Widgets/Timeline/Timeline.css +103 -0
- package/dist/DPUStatic/Widgets/Timeline/lighter.css +23 -0
- package/dist/DPUStatic/Widgets/VRButton/VRButton.css +8 -0
- package/dist/DPUStatic/Widgets/Viewer/Viewer.css +107 -0
- package/dist/DPUStatic/Widgets/VoxelInspector/VoxelInspector.css +16 -0
- package/dist/DPUStatic/Widgets/lighter.css +237 -0
- package/dist/DPUStatic/Widgets/lighterShared.css +46 -0
- package/dist/DPUStatic/Widgets/shared.css +103 -0
- package/dist/DPUStatic/Widgets/widgets.css +1342 -0
- package/dist/DPUStatic/Workers/chunk-24JYWT5N.js +2 -0
- package/dist/DPUStatic/Workers/chunk-24JYWT5N.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-34ULWVZF.js +2 -0
- package/dist/DPUStatic/Workers/chunk-34ULWVZF.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-3THTQ4QB.js +2 -0
- package/dist/DPUStatic/Workers/chunk-3THTQ4QB.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-42FICTTZ.js +2 -0
- package/dist/DPUStatic/Workers/chunk-42FICTTZ.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-4BYMTYMT.js +2 -0
- package/dist/DPUStatic/Workers/chunk-4BYMTYMT.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-54PMPXZ4.js +2 -0
- package/dist/DPUStatic/Workers/chunk-54PMPXZ4.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-5CC3QRYS.js +2 -0
- package/dist/DPUStatic/Workers/chunk-5CC3QRYS.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-6HIVPZ7K.js +2 -0
- package/dist/DPUStatic/Workers/chunk-6HIVPZ7K.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-72CGGEJF.js +2 -0
- package/dist/DPUStatic/Workers/chunk-72CGGEJF.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-CTRWX4F5.js +2 -0
- package/dist/DPUStatic/Workers/chunk-CTRWX4F5.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-D5HNP2LB.js +2 -0
- package/dist/DPUStatic/Workers/chunk-D5HNP2LB.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-E7HC3VTG.js +2 -0
- package/dist/DPUStatic/Workers/chunk-E7HC3VTG.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-FNTGP2KW.js +2 -0
- package/dist/DPUStatic/Workers/chunk-FNTGP2KW.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-G72WI3OZ.js +2 -0
- package/dist/DPUStatic/Workers/chunk-G72WI3OZ.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-G75U3WZT.js +2 -0
- package/dist/DPUStatic/Workers/chunk-G75U3WZT.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-GJI4ZBKE.js +2 -0
- package/dist/DPUStatic/Workers/chunk-GJI4ZBKE.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-HQ4YU6WD.js +2 -0
- package/dist/DPUStatic/Workers/chunk-HQ4YU6WD.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-HQXG4R4L.js +2 -0
- package/dist/DPUStatic/Workers/chunk-HQXG4R4L.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-HTYD62GU.js +2 -0
- package/dist/DPUStatic/Workers/chunk-HTYD62GU.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-IF6EJ7KL.js +2 -0
- package/dist/DPUStatic/Workers/chunk-IF6EJ7KL.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-JR7WFPVR.js +2 -0
- package/dist/DPUStatic/Workers/chunk-JR7WFPVR.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-JXLT7VPX.js +2 -0
- package/dist/DPUStatic/Workers/chunk-JXLT7VPX.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-K2M3OJ7Z.js +2 -0
- package/dist/DPUStatic/Workers/chunk-K2M3OJ7Z.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-LH3SUUXG.js +2 -0
- package/dist/DPUStatic/Workers/chunk-LH3SUUXG.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-M3A6SPGI.js +2 -0
- package/dist/DPUStatic/Workers/chunk-M3A6SPGI.js.LICENSE.txt +67 -0
- package/dist/DPUStatic/Workers/chunk-MWSGYAUE.js +2 -0
- package/dist/DPUStatic/Workers/chunk-MWSGYAUE.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-N3A5CZ2S.js +2 -0
- package/dist/DPUStatic/Workers/chunk-N3A5CZ2S.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-N5HLZFHR.js +2 -0
- package/dist/DPUStatic/Workers/chunk-N5HLZFHR.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-OTRIIEF3.js +2 -0
- package/dist/DPUStatic/Workers/chunk-OTRIIEF3.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-OZYLWM74.js +2 -0
- package/dist/DPUStatic/Workers/chunk-OZYLWM74.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-PJQ53UQY.js +2 -0
- package/dist/DPUStatic/Workers/chunk-PJQ53UQY.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-PJUDOIE3.js +2 -0
- package/dist/DPUStatic/Workers/chunk-PJUDOIE3.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-PY4CW263.js +2 -0
- package/dist/DPUStatic/Workers/chunk-PY4CW263.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-Q5IXWMLP.js +2 -0
- package/dist/DPUStatic/Workers/chunk-Q5IXWMLP.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-Q5MYX5A2.js +2 -0
- package/dist/DPUStatic/Workers/chunk-Q5MYX5A2.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-R62IKKEC.js +2 -0
- package/dist/DPUStatic/Workers/chunk-R62IKKEC.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-RDAVO5OM.js +2 -0
- package/dist/DPUStatic/Workers/chunk-RDAVO5OM.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-RNF7TLFF.js +2 -0
- package/dist/DPUStatic/Workers/chunk-RNF7TLFF.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-RRZIPF5C.js +2 -0
- package/dist/DPUStatic/Workers/chunk-RRZIPF5C.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-S4VBGY2U.js +2 -0
- package/dist/DPUStatic/Workers/chunk-S4VBGY2U.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-SOCYD7RP.js +2 -0
- package/dist/DPUStatic/Workers/chunk-SOCYD7RP.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-SYY6FTAS.js +2 -0
- package/dist/DPUStatic/Workers/chunk-SYY6FTAS.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-UCTPWOTZ.js +2 -0
- package/dist/DPUStatic/Workers/chunk-UCTPWOTZ.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-UJMUN4NO.js +2 -0
- package/dist/DPUStatic/Workers/chunk-UJMUN4NO.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-W5MIOKEY.js +2 -0
- package/dist/DPUStatic/Workers/chunk-W5MIOKEY.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-W7OWWJQT.js +2 -0
- package/dist/DPUStatic/Workers/chunk-W7OWWJQT.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-WJYW7YDO.js +2 -0
- package/dist/DPUStatic/Workers/chunk-WJYW7YDO.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-XSINRSN5.js +2 -0
- package/dist/DPUStatic/Workers/chunk-XSINRSN5.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-Z6PJ3IIE.js +2 -0
- package/dist/DPUStatic/Workers/chunk-Z6PJ3IIE.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-Z7BLUZ7R.js +2 -0
- package/dist/DPUStatic/Workers/chunk-Z7BLUZ7R.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-ZFYLUAMF.js +2 -0
- package/dist/DPUStatic/Workers/chunk-ZFYLUAMF.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/chunk-ZHF7X3YD.js +2 -0
- package/dist/DPUStatic/Workers/chunk-ZHF7X3YD.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/combineGeometry.js +2 -0
- package/dist/DPUStatic/Workers/combineGeometry.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/createBoxGeometry.js +2 -0
- package/dist/DPUStatic/Workers/createBoxGeometry.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/createBoxOutlineGeometry.js +2 -0
- package/dist/DPUStatic/Workers/createBoxOutlineGeometry.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/createCircleGeometry.js +2 -0
- package/dist/DPUStatic/Workers/createCircleGeometry.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/createCircleOutlineGeometry.js +2 -0
- package/dist/DPUStatic/Workers/createCircleOutlineGeometry.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/createCoplanarPolygonGeometry.js +2 -0
- package/dist/DPUStatic/Workers/createCoplanarPolygonGeometry.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/createCoplanarPolygonOutlineGeometry.js +2 -0
- package/dist/DPUStatic/Workers/createCoplanarPolygonOutlineGeometry.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/createCorridorGeometry.js +2 -0
- package/dist/DPUStatic/Workers/createCorridorGeometry.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/createCorridorOutlineGeometry.js +2 -0
- package/dist/DPUStatic/Workers/createCorridorOutlineGeometry.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/createCylinderGeometry.js +2 -0
- package/dist/DPUStatic/Workers/createCylinderGeometry.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/createCylinderOutlineGeometry.js +2 -0
- package/dist/DPUStatic/Workers/createCylinderOutlineGeometry.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/createEllipseGeometry.js +2 -0
- package/dist/DPUStatic/Workers/createEllipseGeometry.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/createEllipseOutlineGeometry.js +2 -0
- package/dist/DPUStatic/Workers/createEllipseOutlineGeometry.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/createEllipsoidGeometry.js +2 -0
- package/dist/DPUStatic/Workers/createEllipsoidGeometry.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/createEllipsoidOutlineGeometry.js +2 -0
- package/dist/DPUStatic/Workers/createEllipsoidOutlineGeometry.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/createFrustumGeometry.js +2 -0
- package/dist/DPUStatic/Workers/createFrustumGeometry.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/createFrustumOutlineGeometry.js +2 -0
- package/dist/DPUStatic/Workers/createFrustumOutlineGeometry.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/createGeometry.js +2 -0
- package/dist/DPUStatic/Workers/createGeometry.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/createGroundPolylineGeometry.js +2 -0
- package/dist/DPUStatic/Workers/createGroundPolylineGeometry.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/createPlaneGeometry.js +2 -0
- package/dist/DPUStatic/Workers/createPlaneGeometry.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/createPlaneOutlineGeometry.js +2 -0
- package/dist/DPUStatic/Workers/createPlaneOutlineGeometry.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/createPolygonGeometry.js +2 -0
- package/dist/DPUStatic/Workers/createPolygonGeometry.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/createPolygonOutlineGeometry.js +2 -0
- package/dist/DPUStatic/Workers/createPolygonOutlineGeometry.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/createPolylineGeometry.js +2 -0
- package/dist/DPUStatic/Workers/createPolylineGeometry.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/createPolylineVolumeGeometry.js +2 -0
- package/dist/DPUStatic/Workers/createPolylineVolumeGeometry.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/createPolylineVolumeOutlineGeometry.js +2 -0
- package/dist/DPUStatic/Workers/createPolylineVolumeOutlineGeometry.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/createRectangleGeometry.js +2 -0
- package/dist/DPUStatic/Workers/createRectangleGeometry.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/createRectangleOutlineGeometry.js +2 -0
- package/dist/DPUStatic/Workers/createRectangleOutlineGeometry.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/createSimplePolylineGeometry.js +2 -0
- package/dist/DPUStatic/Workers/createSimplePolylineGeometry.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/createSphereGeometry.js +2 -0
- package/dist/DPUStatic/Workers/createSphereGeometry.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/createSphereOutlineGeometry.js +2 -0
- package/dist/DPUStatic/Workers/createSphereOutlineGeometry.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/createTaskProcessorWorker.js +2 -0
- package/dist/DPUStatic/Workers/createTaskProcessorWorker.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/createVectorTileClampedPolylines.js +2 -0
- package/dist/DPUStatic/Workers/createVectorTileClampedPolylines.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/createVectorTileGeometries.js +2 -0
- package/dist/DPUStatic/Workers/createVectorTileGeometries.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/createVectorTilePoints.js +2 -0
- package/dist/DPUStatic/Workers/createVectorTilePoints.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/createVectorTilePolygons.js +2 -0
- package/dist/DPUStatic/Workers/createVectorTilePolygons.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/createVectorTilePolylines.js +2 -0
- package/dist/DPUStatic/Workers/createVectorTilePolylines.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +2 -0
- package/dist/DPUStatic/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/createVerticesFromHeightmap.js +2 -0
- package/dist/DPUStatic/Workers/createVerticesFromHeightmap.js.LICENSE.txt +26 -0
- package/dist/DPUStatic/Workers/createVerticesFromQuantizedTerrainMesh.js +2 -0
- package/dist/DPUStatic/Workers/createVerticesFromQuantizedTerrainMesh.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/createWallGeometry.js +2 -0
- package/dist/DPUStatic/Workers/createWallGeometry.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/createWallOutlineGeometry.js +2 -0
- package/dist/DPUStatic/Workers/createWallOutlineGeometry.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/decodeDraco.js +2 -0
- package/dist/DPUStatic/Workers/decodeDraco.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/decodeGoogleEarthEnterprisePacket.js +2 -0
- package/dist/DPUStatic/Workers/decodeGoogleEarthEnterprisePacket.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/decodeI3S.js +2 -0
- package/dist/DPUStatic/Workers/decodeI3S.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/transcodeKTX2.js +2 -0
- package/dist/DPUStatic/Workers/transcodeKTX2.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/transferTypedArrayTest.js +2 -0
- package/dist/DPUStatic/Workers/transferTypedArrayTest.js.LICENSE.txt +24 -0
- package/dist/DPUStatic/Workers/upsampleQuantizedTerrainMesh.js +2 -0
- package/dist/DPUStatic/Workers/upsampleQuantizedTerrainMesh.js.LICENSE.txt +24 -0
- package/dist/index.js +3 -0
- package/dist/index.js.LICENSE.txt +51 -0
- package/dist/index.js.map +1 -0
- package/dist/types/DPUService.d.ts +6 -0
- package/dist/types/DPUViewer.d.ts +93 -0
- package/dist/types/class/tileModel.d.ts +33 -0
- package/dist/types/icon.d.ts +33 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/interfaces/styleElement.interface.d.ts +17 -0
- package/dist/types/services/Dialog/formLabelPoint.d.ts +43 -0
- package/dist/types/services/contextMenu.d.ts +32 -0
- package/dist/types/services/coordinates.d.ts +22 -0
- package/dist/types/services/createToolbar.d.ts +31 -0
- package/dist/types/services/dataProperties.d.ts +31 -0
- package/dist/types/services/flyCamera.d.ts +101 -0
- package/dist/types/services/flyToLocation.d.ts +32 -0
- package/dist/types/services/footerView.d.ts +18 -0
- package/dist/types/services/labelPoint.d.ts +135 -0
- package/dist/types/services/mapWeather.d.ts +34 -0
- package/dist/types/services/mesureCesium.d.ts +69 -0
- package/dist/types/services/sceneManager.d.ts +35 -0
- package/dist/types/services/styleElement.d.ts +10 -0
- package/dist/types/services/treeTileModel.d.ts +66 -0
- package/dist/types/utils/Dialog/dialog.d.ts +34 -0
- package/dist/types/utils/Dialog/validToken.d.ts +12 -0
- package/dist/types/utils/compass/DomUtil.d.ts +23 -0
- package/dist/types/utils/compass/Widget.d.ts +44 -0
- package/dist/types/utils/compass/compass.d.ts +60 -0
- package/dist/types/utils/compass/icons/compass-outer.d.ts +6 -0
- package/dist/types/utils/compass/icons/index.d.ts +4 -0
- package/dist/types/utils/utils.d.ts +16 -0
- package/package.json +49 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see createVectorTilePolygons.js.LICENSE.txt */
|
|
2
|
+
import{a as R}from"./chunk-JXLT7VPX.js";import{a as It}from"./chunk-4BYMTYMT.js";import{a as M}from"./chunk-SOCYD7RP.js";import{a as bt}from"./chunk-Q5MYX5A2.js";import"./chunk-CTRWX4F5.js";import"./chunk-Z7BLUZ7R.js";import"./chunk-PY4CW263.js";import"./chunk-RRZIPF5C.js";import{a as W}from"./chunk-34ULWVZF.js";import"./chunk-K2M3OJ7Z.js";import{h as z}from"./chunk-M3A6SPGI.js";import"./chunk-D5HNP2LB.js";import{a as o,b as nt,d as j}from"./chunk-S4VBGY2U.js";import{a as et}from"./chunk-UCTPWOTZ.js";import"./chunk-54PMPXZ4.js";import"./chunk-R62IKKEC.js";import"./chunk-N3A5CZ2S.js";import"./chunk-G75U3WZT.js";import{e as A}from"./chunk-3THTQ4QB.js";var kt=new o,Bt=new j,Nt=new z,E={min:void 0,max:void 0,indexBytesPerElement:void 0};function Pt(t){let e=new Float64Array(t),n=0;E.indexBytesPerElement=e[n++],E.min=e[n++],E.max=e[n++],o.unpack(e,n,kt),n+=o.packedLength,j.unpack(e,n,Bt),n+=j.packedLength,z.unpack(e,n,Nt)}function Tt(t){let e=t.length,n=0;for(let r=0;r<e;++r)n+=R.packedLength+3+t[r].batchIds.length;return n}function Ct(t,e,n){let r=e.length,o=2+r*M.packedLength+1+Tt(n),a=new Float64Array(o),i=0;a[i++]=t,a[i++]=r;for(let t=0;t<r;++t)M.pack(e[t],a,i),i+=M.packedLength;let s=n.length;a[i++]=s;for(let t=0;t<s;++t){let e=n[t];R.pack(e.color,a,i),i+=R.packedLength,a[i++]=e.offset,a[i++]=e.count;let r=e.batchIds,o=r.length;a[i++]=o;for(let t=0;t<o;++t)a[i++]=r[t]}return a}var yt=32767,wt=new o,Ht=new o,St=new o,Ut=new o,Ft=new o,Lt=new nt,Mt=new z;function Rt(t,e){let n;Pt(t.packedBuffer),n=2===E.indexBytesPerElement?new Uint16Array(t.indices):new Uint32Array(t.indices);let r=new Uint16Array(t.positions),a=new Uint32Array(t.counts),i=new Uint32Array(t.indexCounts),s=new Uint32Array(t.batchIds),f=new Uint32Array(t.batchTableColors),c=new Array(a.length),h=kt,l=Bt,u=Nt,m=E.min,p=E.max,d=t.minimumHeights,k=t.maximumHeights;A(d)&&A(k)&&(d=new Float32Array(d),k=new Float32Array(k));let g,w,I,b=r.length/2,y=r.subarray(0,b),T=r.subarray(b,2*b);bt.zigZagDeltaDecode(y,T);let N=new Float64Array(3*b);for(g=0;g<b;++g){let t=y[g],e=T[g],n=et.lerp(u.west,u.east,t/yt),r=et.lerp(u.south,u.north,e/yt),a=nt.fromRadians(n,r,0,Lt),i=l.cartographicToCartesian(a,wt);o.pack(i,N,3*g)}let j=a.length,x=new Array(j),L=new Array(j),P=0,U=0;for(g=0;g<j;++g)x[g]=P,L[g]=U,P+=a[g],U+=i[g];let B=new Float32Array(3*b*2),S=new Uint16Array(2*b),F=new Uint32Array(L.length),C=new Uint32Array(i.length),O=[],Y={};for(g=0;g<j;++g)I=f[g],A(Y[I])?(Y[I].positionLength+=a[g],Y[I].indexLength+=i[g],Y[I].batchIds.push(g)):Y[I]={positionLength:a[g],indexLength:i[g],offset:0,indexOffset:0,batchIds:[g]};let Z,G=0,_=0;for(I in Y)if(Y.hasOwnProperty(I)){Z=Y[I],Z.offset=G,Z.indexOffset=_;let t=2*Z.positionLength,e=2*Z.indexLength+6*Z.positionLength;G+=t,_+=e,Z.indexLength=e}let H=[];for(I in Y)Y.hasOwnProperty(I)&&(Z=Y[I],H.push({color:R.fromRgba(parseInt(I)),offset:Z.indexOffset,count:Z.indexLength,batchIds:Z.batchIds}));for(g=0;g<j;++g){I=f[g],Z=Y[I];let t=Z.offset,e=3*t,r=t,b=x[g],y=a[g],T=s[g],E=m,j=p;A(d)&&A(k)&&(E=d[g],j=k[g]);let P=Number.POSITIVE_INFINITY,U=Number.NEGATIVE_INFINITY,R=Number.POSITIVE_INFINITY,W=Number.NEGATIVE_INFINITY;for(w=0;w<y;++w){let t=o.unpack(N,3*b+3*w,wt);l.scaleToGeodeticSurface(t,t);let n=l.cartesianToCartographic(t,Lt),a=n.latitude,i=n.longitude;P=Math.min(a,P),U=Math.max(a,U),R=Math.min(i,R),W=Math.max(i,W);let s=l.geodeticSurfaceNormal(t,Ht),f=o.multiplyByScalar(s,E,St),c=o.add(t,f,Ut);f=o.multiplyByScalar(s,j,f);let u=o.add(t,f,Ft);o.subtract(u,h,u),o.subtract(c,h,c),o.pack(u,B,e),o.pack(c,B,e+3),S[r]=T,S[r+1]=T,e+=6,r+=2}u=Mt,u.west=R,u.east=W,u.south=P,u.north=U,c[g]=M.fromRectangle(u,m,p,l);let G=Z.indexOffset,_=L[g],H=i[g];for(F[g]=G,w=0;w<H;w+=3){let e=n[_+w]-b,r=n[_+w+1]-b,o=n[_+w+2]-b;O[G++]=2*e+t,O[G++]=2*r+t,O[G++]=2*o+t,O[G++]=2*o+1+t,O[G++]=2*r+1+t,O[G++]=2*e+1+t}for(w=0;w<y;++w){let e=w,n=(w+1)%y;O[G++]=2*e+1+t,O[G++]=2*n+t,O[G++]=2*e+t,O[G++]=2*e+1+t,O[G++]=2*n+1+t,O[G++]=2*n+t}Z.offset+=2*y,Z.indexOffset=G,C[g]=G-F[g]}O=W.createTypedArray(B.length/3,O);let V=H.length;for(let t=0;t<V;++t){let e=H[t].batchIds,n=0,r=e.length;for(let t=0;t<r;++t)n+=C[e[t]];H[t].count=n}let v=Ct(2===O.BYTES_PER_ELEMENT?W.UNSIGNED_SHORT:W.UNSIGNED_INT,c,H);return e.push(B.buffer,O.buffer,F.buffer,C.buffer,S.buffer,v.buffer),{positions:B.buffer,indices:O.buffer,indexOffsets:F.buffer,indexCounts:C.buffer,batchIds:S.buffer,packedBuffer:v.buffer}}var Jt=It(Rt);export{Jt as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.124
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see createVectorTilePolylines.js.LICENSE.txt */
|
|
2
|
+
import{a as K}from"./chunk-4BYMTYMT.js";import{a as G}from"./chunk-Q5MYX5A2.js";import{a as S}from"./chunk-34ULWVZF.js";import{c as B,h as R}from"./chunk-M3A6SPGI.js";import"./chunk-D5HNP2LB.js";import{a as t,b as _,d as L}from"./chunk-S4VBGY2U.js";import{a as F}from"./chunk-UCTPWOTZ.js";import"./chunk-54PMPXZ4.js";import"./chunk-R62IKKEC.js";import"./chunk-N3A5CZ2S.js";import"./chunk-G75U3WZT.js";import"./chunk-3THTQ4QB.js";var O=32767,ct=new _,rt=new t;function it(e,r,a,n,u){let o=e.length/3,s=e.subarray(0,o),f=e.subarray(o,2*o),i=e.subarray(2*o,3*o);G.zigZagDeltaDecode(s,f,i);let c=new Float64Array(e.length);for(let e=0;e<o;++e){let o=s[e],p=f[e],l=i[e],d=F.lerp(r.west,r.east,o/O),h=F.lerp(r.south,r.north,p/O),k=F.lerp(a,n,l/O),b=_.fromRadians(d,h,k,ct),m=u.cartographicToCartesian(b,rt);t.pack(m,c,3*e)}return c}var Y=it,X=new R,$=new L,j=new t,H={min:void 0,max:void 0};function at(e){e=new Float64Array(e);let r=0;H.min=e[r++],H.max=e[r++],R.unpack(e,r,X),r+=R.packedLength,L.unpack(e,r,$),r+=L.packedLength,t.unpack(e,r,j)}function ft(t){let e=t.length,r=new Uint32Array(e+1),a=0;for(let n=0;n<e;++n)r[n]=a,a+=t[n];return r[e]=a,r}var Z=new t,q=new t,J=new t,dt=new t,Q=new t;function ut(e,r){let a=new Uint16Array(e.positions),n=new Uint16Array(e.widths),u=new Uint32Array(e.counts),o=new Uint16Array(e.batchIds);at(e.packedBuffer);let s,f=X,i=$,c=j,p=H.min,l=H.max,d=Y(a,f,p,l,i),h=d.length/3,k=4*h-4,b=new Float32Array(3*k),m=new Float32Array(3*k),w=new Float32Array(3*k),y=new Float32Array(2*k),A=new Uint16Array(k),T=0,P=0,U=0,F=0,g=u.length;for(s=0;s<g;++s){let e=u[s],r=n[s],a=o[s];for(let n=0;n<e;++n){let u;if(0===n){let e=t.unpack(d,3*F,Z),r=t.unpack(d,3*(F+1),q);u=t.subtract(e,r,J),t.add(e,u,u)}else u=t.unpack(d,3*(F+n-1),J);let o,s=t.unpack(d,3*(F+n),dt);if(n===e-1){let r=t.unpack(d,3*(F+e-1),Z),a=t.unpack(d,3*(F+e-2),q);o=t.subtract(r,a,Q),t.add(r,o,o)}else o=t.unpack(d,3*(F+n+1),Q);t.subtract(u,c,u),t.subtract(s,c,s),t.subtract(o,c,o);let f=n===e-1?2:4;for(let e=0===n?2:0;e<f;++e){t.pack(s,b,T),t.pack(u,m,T),t.pack(o,w,T),T+=3;let n=e-2<0?-1:1;y[P++]=e%2*2-1,y[P++]=n*r,A[U++]=a}}F+=e}let I=S.createTypedArray(k,6*h-6),L=0,E=0;for(g=h-1,s=0;s<g;++s)I[E++]=L,I[E++]=L+2,I[E++]=L+1,I[E++]=L+1,I[E++]=L+2,I[E++]=L+3,L+=4;r.push(b.buffer,m.buffer,w.buffer),r.push(y.buffer,A.buffer,I.buffer);let N={indexDatatype:2===I.BYTES_PER_ELEMENT?S.UNSIGNED_SHORT:S.UNSIGNED_INT,currentPositions:b.buffer,previousPositions:m.buffer,nextPositions:w.buffer,expandAndWidth:y.buffer,batchIds:A.buffer,indices:I.buffer};if(e.keepDecodedPositions){let t=ft(u);r.push(d.buffer,t.buffer),N=B(N,{decodedPositions:d.buffer,decodedPositionOffsets:t.buffer})}return N}var It=K(ut);export{It as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.124
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see createVerticesFromGoogleEarthEnterpriseBuffer.js.LICENSE.txt */
|
|
2
|
+
import{a as Gt,b as Xt}from"./chunk-PJQ53UQY.js";import{a as kt}from"./chunk-4BYMTYMT.js";import{a as lt}from"./chunk-UJMUN4NO.js";import{a as Dt}from"./chunk-SOCYD7RP.js";import"./chunk-Q5MYX5A2.js";import"./chunk-CTRWX4F5.js";import{a as qt}from"./chunk-Z7BLUZ7R.js";import"./chunk-PY4CW263.js";import"./chunk-RRZIPF5C.js";import{d as Lt}from"./chunk-K2M3OJ7Z.js";import{b as $,g as Ot,h as zt}from"./chunk-M3A6SPGI.js";import"./chunk-D5HNP2LB.js";import{a as P,b as N,c as wt,d as Ht}from"./chunk-S4VBGY2U.js";import{a as r}from"./chunk-UCTPWOTZ.js";import"./chunk-54PMPXZ4.js";import{a as Vt}from"./chunk-R62IKKEC.js";import{a as Ut}from"./chunk-N3A5CZ2S.js";import"./chunk-G75U3WZT.js";import{e as ht}from"./chunk-3THTQ4QB.js";var te=Uint16Array.BYTES_PER_ELEMENT,mt=Int32Array.BYTES_PER_ELEMENT,Pt=Uint32Array.BYTES_PER_ELEMENT,ee=Float32Array.BYTES_PER_ELEMENT,H=Float64Array.BYTES_PER_ELEMENT;function tt(t,e,n){n=Ut(n,r);let i=t.length;for(let o=0;o<i;++o)if(n.equalsEpsilon(t[o],e,r.EPSILON12))return o;return-1}function oe(t,e){t.ellipsoid=Ht.clone(t.ellipsoid),t.rectangle=zt.clone(t.rectangle);let n=se(t.buffer,t.relativeToCenter,t.ellipsoid,t.rectangle,t.nativeRectangle,t.exaggeration,t.exaggerationRelativeHeight,t.skirtHeight,t.includeWebMercatorT,t.negativeAltitudeExponentBias,t.negativeElevationThreshold),i=n.vertices;e.push(i.buffer);let r=n.indices;return e.push(r.buffer),{vertices:i.buffer,indices:r.buffer,numberOfAttributes:n.encoding.stride,minimumHeight:n.minimumHeight,maximumHeight:n.maximumHeight,boundingSphere3D:n.boundingSphere3D,orientedBoundingBox:n.orientedBoundingBox,occludeePointInScaledSpace:n.occludeePointInScaledSpace,encoding:n.encoding,vertexCountWithoutSkirts:n.vertexCountWithoutSkirts,indexCountWithoutSkirts:n.indexCountWithoutSkirts,westIndicesSouthToNorth:n.westIndicesSouthToNorth,southIndicesEastToWest:n.southIndicesEastToWest,eastIndicesNorthToSouth:n.eastIndicesNorthToSouth,northIndicesWestToEast:n.northIndicesWestToEast}}var u=new N,G=new P,ne=new P,ie=new P,re=new $;function se(t,e,n,i,o,a,s,l,h,c,d){let m,g,p,I,T,f;ht(i)?(m=i.west,g=i.south,p=i.east,I=i.north,T=i.width,f=i.height):(m=r.toRadians(o.west),g=r.toRadians(o.south),p=r.toRadians(o.east),I=r.toRadians(o.north),T=r.toRadians(i.width),f=r.toRadians(i.height));let E,x,S=[g,I],w=[m,p],k=Ot.eastNorthUpToFixedFrame(e,n),R=$.inverseTransformation(k,re);h&&(E=lt.geodeticLatitudeToMercatorAngle(g),x=1/(lt.geodeticLatitudeToMercatorAngle(I)-E));let A=1!==a,M=new DataView(t),b=Number.POSITIVE_INFINITY,B=Number.NEGATIVE_INFINITY,y=ne;y.x=Number.POSITIVE_INFINITY,y.y=Number.POSITIVE_INFINITY,y.z=Number.POSITIVE_INFINITY;let v=ie;v.x=Number.NEGATIVE_INFINITY,v.y=Number.NEGATIVE_INFINITY,v.z=Number.NEGATIVE_INFINITY;let F,_,C=0,U=0,Y=0;for(_=0;_<4;++_){let t=C;F=M.getUint32(t,!0),t+=Pt;let e=r.toRadians(180*M.getFloat64(t,!0));t+=H,-1===tt(w,e)&&w.push(e);let n=r.toRadians(180*M.getFloat64(t,!0));t+=H,-1===tt(S,n)&&S.push(n),t+=2*H;let i=M.getInt32(t,!0);t+=mt,U+=i,i=M.getInt32(t,!0),Y+=3*i,C+=F+Pt}let j=[],W=[],O=new Array(U),V=new Array(U),L=new Array(U),D=h?new Array(U):[],Z=A?new Array(U):[],z=new Array(Y),Q=[],X=[],q=[],J=[],K=0,et=0;for(C=0,_=0;_<4;++_){F=M.getUint32(C,!0),C+=Pt;let t=C,e=r.toRadians(180*M.getFloat64(C,!0));C+=H;let i=r.toRadians(180*M.getFloat64(C,!0));C+=H;let o=r.toRadians(180*M.getFloat64(C,!0)),a=.5*o;C+=H;let s=r.toRadians(180*M.getFloat64(C,!0)),l=.5*s;C+=H;let T=M.getInt32(C,!0);C+=mt;let f=M.getInt32(C,!0);C+=mt,C+=mt;let k=new Array(T);for(let t=0;t<T;++t){let T=e+M.getUint8(C++)*o;u.longitude=T;let f=i+M.getUint8(C++)*s;u.latitude=f;let H=M.getFloat32(C,!0);if(C+=ee,0!==H&&H<d&&(H*=-Math.pow(2,c)),H*=6371010,u.height=H,-1!==tt(w,T)||-1!==tt(S,f)){let e=tt(j,u,N);if(-1!==e){k[t]=W[e];continue}j.push(N.clone(u)),W.push(K)}k[t]=K,Math.abs(T-m)<a?Q.push({index:K,cartographic:N.clone(u)}):Math.abs(T-p)<a?q.push({index:K,cartographic:N.clone(u)}):Math.abs(f-g)<l?X.push({index:K,cartographic:N.clone(u)}):Math.abs(f-I)<l&&J.push({index:K,cartographic:N.clone(u)}),b=Math.min(H,b),B=Math.max(H,B),L[K]=H;let F=n.cartographicToCartesian(u);if(O[K]=F,h&&(D[K]=(lt.geodeticLatitudeToMercatorAngle(f)-E)*x),A){let t=n.geodeticSurfaceNormal(F);Z[K]=t}$.multiplyByPoint(R,F,G),P.minimumByComponent(G,y,y),P.maximumByComponent(G,v,v);let _=(T-m)/(p-m);_=r.clamp(_,0,1);let U=(f-g)/(I-g);U=r.clamp(U,0,1),V[K]=new wt(_,U),++K}let _=3*f;for(let t=0;t<_;++t,++et)z[et]=k[M.getUint16(C,!0)],C+=te;if(F!==C-t)throw new Vt("Invalid terrain tile.")}O.length=K,V.length=K,L.length=K,h&&(D.length=K),A&&(Z.length=K);let nt=K,it=et,rt={hMin:b,lastBorderPoint:void 0,skirtHeight:l,toENU:R,ellipsoid:n,minimum:y,maximum:v};Q.sort((function(t,e){return e.cartographic.latitude-t.cartographic.latitude})),X.sort((function(t,e){return t.cartographic.longitude-e.cartographic.longitude})),q.sort((function(t,e){return t.cartographic.latitude-e.cartographic.latitude})),J.sort((function(t,e){return e.cartographic.longitude-t.cartographic.longitude}));let ot=1e-5;if(gt(O,L,V,D,Z,z,rt,Q,-ot*T,!0,-ot*f),gt(O,L,V,D,Z,z,rt,X,-ot*f,!1),gt(O,L,V,D,Z,z,rt,q,ot*T,!0,ot*f),gt(O,L,V,D,Z,z,rt,J,ot*f,!1),Q.length>0&&J.length>0){let t=Q[0].index,e=nt,n=J[J.length-1].index,i=O.length-1;z.push(n,i,e,e,t,n)}U=O.length;let at,ut=Lt.fromPoints(O);ht(i)&&(at=Dt.fromRectangle(i,b,B,n));let st=new Gt(n).computeHorizonCullingPointPossiblyUnderEllipsoid(e,O,b),ct=new qt(y,v,e),dt=new Xt(e,ct,rt.hMin,B,k,!1,h,A,a,s),pt=new Float32Array(U*dt.stride),It=0;for(let t=0;t<U;++t)It=dt.encode(pt,It,O[t],V[t],L[t],void 0,D[t],Z[t]);let Tt=Q.map((function(t){return t.index})).reverse(),ft=X.map((function(t){return t.index})).reverse(),Nt=q.map((function(t){return t.index})).reverse(),Et=J.map((function(t){return t.index})).reverse();return ft.unshift(Nt[Nt.length-1]),ft.push(Tt[0]),Et.unshift(Tt[Tt.length-1]),Et.push(Nt[0]),{vertices:pt,indices:new Uint16Array(z),maximumHeight:B,minimumHeight:b,encoding:dt,boundingSphere3D:ut,orientedBoundingBox:at,occludeePointInScaledSpace:st,vertexCountWithoutSkirts:nt,indexCountWithoutSkirts:it,westIndicesSouthToNorth:Tt,southIndicesEastToWest:ft,eastIndicesNorthToSouth:Nt,northIndicesWestToEast:Et}}function gt(t,e,n,i,o,a,s,l,h,c,d){let m=l.length;for(let g=0;g<m;++g){let p=l[g],I=p.cartographic,T=p.index,f=t.length,E=I.longitude,x=I.latitude;x=r.clamp(x,-r.PI_OVER_TWO,r.PI_OVER_TWO);let S=I.height-s.skirtHeight;s.hMin=Math.min(s.hMin,S),N.fromRadians(E,x,S,u),c&&(u.longitude+=h),c?g===m-1?u.latitude+=d:0===g&&(u.latitude-=d):u.latitude+=h;let w=s.ellipsoid.cartographicToCartesian(u);t.push(w),e.push(S),n.push(wt.clone(n[T])),i.length>0&&i.push(i[T]),o.length>0&&o.push(o[T]),$.multiplyByPoint(s.toENU,w,G);let k=s.minimum,R=s.maximum;P.minimumByComponent(G,k,k),P.maximumByComponent(G,R,R);let A=s.lastBorderPoint;if(ht(A)){let t=A.index;a.push(t,f-1,f,f,T,t)}s.lastBorderPoint=p}}var Ae=kt(oe);export{Ae as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.124
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see createVerticesFromHeightmap.js.LICENSE.txt */
|
|
2
|
+
import{a as sr,b as fr}from"./chunk-PJQ53UQY.js";import{a as tr}from"./chunk-4BYMTYMT.js";import{a as Ue}from"./chunk-UJMUN4NO.js";import{a as ar}from"./chunk-SOCYD7RP.js";import"./chunk-Q5MYX5A2.js";import"./chunk-CTRWX4F5.js";import{a as nr}from"./chunk-Z7BLUZ7R.js";import"./chunk-PY4CW263.js";import"./chunk-RRZIPF5C.js";import{d as ir}from"./chunk-K2M3OJ7Z.js";import{b as xe,g as rr,h as ae}from"./chunk-M3A6SPGI.js";import"./chunk-D5HNP2LB.js";import{a as ie,c as er,d as Ie}from"./chunk-S4VBGY2U.js";import{a as ge}from"./chunk-UCTPWOTZ.js";import"./chunk-54PMPXZ4.js";import{a as He}from"./chunk-R62IKKEC.js";import{a as Y}from"./chunk-N3A5CZ2S.js";import{a as he}from"./chunk-G75U3WZT.js";import{c as Ir,d as xr,e as G}from"./chunk-3THTQ4QB.js";var ur=Ir(((e,t)=>{!function(){var e,i,r,a,n,s,l=(e={defaultNoDataValue:-34027999387901484e22,decode:function(t,s){var l=(s=s||{}).encodedMaskData||null===s.encodedMaskData,o=n(t,s.inputOffset||0,l),f=null!==s.noDataValue?s.noDataValue:e.defaultNoDataValue,u=i(o,s.pixelType||Float32Array,s.encodedMaskData,f,s.returnMask),h={width:o.width,height:o.height,pixelData:u.resultPixels,minValue:u.minValue,maxValue:o.pixels.maxValue,noDataValue:f};return u.resultMask&&(h.maskData=u.resultMask),s.returnEncodedMask&&o.mask&&(h.encodedMaskData=o.mask.bitset?o.mask.bitset:null),s.returnFileInfo&&(h.fileInfo=r(o),s.computeUsedBitDepths&&(h.fileInfo.bitDepths=a(o))),h}},i=function(e,t,i,r,a){var n,l,o,f=0,u=e.pixels.numBlocksX,h=e.pixels.numBlocksY,c=Math.floor(e.width/u),m=Math.floor(e.height/h),d=2*e.maxZError,g=Number.MAX_VALUE;i=i||(e.mask?e.mask.bitset:null),l=new t(e.width*e.height),a&&i&&(o=new Uint8Array(e.width*e.height));for(var p,w,x=new Float32Array(c*m),k=0;k<=h;k++){var y=k!==h?m:e.height%h;if(0!==y)for(var I=0;I<=u;I++){var U=I!==u?c:e.width%u;if(0!==U){var b,T,v,M,A=k*e.width*m+I*c,V=e.width-U,D=e.pixels.blocks[f];if(D.encoding<2?(0===D.encoding?b=D.rawData:(s(D.stuffedData,D.bitsPerPixel,D.numValidPixels,D.offset,d,x,e.pixels.maxValue),b=x),T=0):v=2===D.encoding?0:D.offset,i)for(w=0;w<y;w++){for(7&A&&(M=i[A>>3],M<<=7&A),p=0;p<U;p++)7&A||(M=i[A>>3]),128&M?(o&&(o[A]=1),g=g>(n=D.encoding<2?b[T++]:v)?n:g,l[A++]=n):(o&&(o[A]=0),l[A++]=r),M<<=1;A+=V}else if(D.encoding<2)for(w=0;w<y;w++){for(p=0;p<U;p++)g=g>(n=b[T++])?n:g,l[A++]=n;A+=V}else for(g=g>v?v:g,w=0;w<y;w++){for(p=0;p<U;p++)l[A++]=v;A+=V}if(1===D.encoding&&T!==D.numValidPixels)throw"Block and Mask do not match";f++}}}return{resultPixels:l,resultMask:o,minValue:g}},r=function(e){return{fileIdentifierString:e.fileIdentifierString,fileVersion:e.fileVersion,imageType:e.imageType,height:e.height,width:e.width,maxZError:e.maxZError,eofOffset:e.eofOffset,mask:e.mask?{numBlocksX:e.mask.numBlocksX,numBlocksY:e.mask.numBlocksY,numBytes:e.mask.numBytes,maxValue:e.mask.maxValue}:null,pixels:{numBlocksX:e.pixels.numBlocksX,numBlocksY:e.pixels.numBlocksY,numBytes:e.pixels.numBytes,maxValue:e.pixels.maxValue,noDataValue:e.noDataValue}}},a=function(e){for(var t=e.pixels.numBlocksX*e.pixels.numBlocksY,i={},r=0;r<t;r++){var a=e.pixels.blocks[r];0===a.encoding?i.float32=!0:1===a.encoding?i[a.bitsPerPixel]=!0:i[0]=!0}return Object.keys(i)},n=function(e,t,i){var r={},a=new Uint8Array(e,t,10);if(r.fileIdentifierString=String.fromCharCode.apply(null,a),"CntZImage"!==r.fileIdentifierString.trim())throw"Unexpected file identifier string: "+r.fileIdentifierString;t+=10;var n=new DataView(e,t,24);if(r.fileVersion=n.getInt32(0,!0),r.imageType=n.getInt32(4,!0),r.height=n.getUint32(8,!0),r.width=n.getUint32(12,!0),r.maxZError=n.getFloat64(16,!0),t+=24,!i)if(n=new DataView(e,t,16),r.mask={},r.mask.numBlocksY=n.getUint32(0,!0),r.mask.numBlocksX=n.getUint32(4,!0),r.mask.numBytes=n.getUint32(8,!0),r.mask.maxValue=n.getFloat32(12,!0),t+=16,r.mask.numBytes>0){var s=new Uint8Array(Math.ceil(r.width*r.height/8)),l=(n=new DataView(e,t,r.mask.numBytes)).getInt16(0,!0),o=2,f=0;do{if(l>0)for(;l--;)s[f++]=n.getUint8(o++);else{var u=n.getUint8(o++);for(l=-l;l--;)s[f++]=u}l=n.getInt16(o,!0),o+=2}while(o<r.mask.numBytes);if(-32768!==l||f<s.length)throw"Unexpected end of mask RLE encoding";r.mask.bitset=s,t+=r.mask.numBytes}else r.mask.numBytes|r.mask.numBlocksY|r.mask.maxValue||(r.mask.bitset=new Uint8Array(Math.ceil(r.width*r.height/8)));n=new DataView(e,t,16),r.pixels={},r.pixels.numBlocksY=n.getUint32(0,!0),r.pixels.numBlocksX=n.getUint32(4,!0),r.pixels.numBytes=n.getUint32(8,!0),r.pixels.maxValue=n.getFloat32(12,!0),t+=16;var h=r.pixels.numBlocksX,c=r.pixels.numBlocksY,m=h+(r.width%h>0?1:0),d=c+(r.height%c>0?1:0);r.pixels.blocks=new Array(m*d);for(var g=0,p=0;p<d;p++)for(var w=0;w<m;w++){var x=0,k=e.byteLength-t;n=new DataView(e,t,Math.min(10,k));var y={};r.pixels.blocks[g++]=y;var I=n.getUint8(0);if(x++,y.encoding=63&I,y.encoding>3)throw"Invalid block encoding ("+y.encoding+")";if(2!==y.encoding){if(0!==I&&2!==I){if(I>>=6,y.offsetType=I,2===I)y.offset=n.getInt8(1),x++;else if(1===I)y.offset=n.getInt16(1,!0),x+=2;else{if(0!==I)throw"Invalid block offset type";y.offset=n.getFloat32(1,!0),x+=4}if(1===y.encoding)if(I=n.getUint8(x),x++,y.bitsPerPixel=63&I,I>>=6,y.numValidPixelsType=I,2===I)y.numValidPixels=n.getUint8(x),x++;else if(1===I)y.numValidPixels=n.getUint16(x,!0),x+=2;else{if(0!==I)throw"Invalid valid pixel count type";y.numValidPixels=n.getUint32(x,!0),x+=4}}var U;if(t+=x,3!==y.encoding)if(0===y.encoding){var b=(r.pixels.numBytes-1)/4;if(b!==Math.floor(b))throw"uncompressed block has invalid length";U=new ArrayBuffer(4*b),new Uint8Array(U).set(new Uint8Array(e,t,4*b));var T=new Float32Array(U);y.rawData=T,t+=4*b}else if(1===y.encoding){var v=Math.ceil(y.numValidPixels*y.bitsPerPixel/8),M=Math.ceil(v/4);U=new ArrayBuffer(4*M),new Uint8Array(U).set(new Uint8Array(e,t,v)),y.stuffedData=new Uint32Array(U),t+=v}}else t++}return r.eofOffset=t,r},s=function(e,t,i,r,a,n,s){var l,o,f,u=(1<<t)-1,h=0,c=0,m=Math.ceil((s-r)/a),d=4*e.length-Math.ceil(t*i/8);for(e[e.length-1]<<=8*d,l=0;l<i;l++){if(0===c&&(f=e[h++],c=32),c>=t)o=f>>>c-t&u,c-=t;else{var g=t-c;o=(f&u)<<g&u,o+=(f=e[h++])>>>(c=32-g)}n[l]=o<m?r+o*a:s}return n},e),o=function(){"use strict";var e=function(e,t,i,r,a,n,s,l){var o,f,u,h,c,m=(1<<i)-1,d=0,g=0,p=4*e.length-Math.ceil(i*r/8);if(e[e.length-1]<<=8*p,a)for(o=0;o<r;o++)0===g&&(u=e[d++],g=32),g>=i?(f=u>>>g-i&m,g-=i):(f=(u&m)<<(h=i-g)&m,f+=(u=e[d++])>>>(g=32-h)),t[o]=a[f];else for(c=Math.ceil((l-n)/s),o=0;o<r;o++)0===g&&(u=e[d++],g=32),g>=i?(f=u>>>g-i&m,g-=i):(f=(u&m)<<(h=i-g)&m,f+=(u=e[d++])>>>(g=32-h)),t[o]=f<c?n+f*s:l},t=function(e,t,i,r,a,n,s,l){var o,f,u,h,c=(1<<i)-1,m=0,d=0,g=0;if(a)for(o=0;o<r;o++)0===d&&(u=e[m++],d=32,g=0),d>=i?(f=u>>>g&c,d-=i,g+=i):(f=u>>>g&c,d=32-(h=i-d),f|=((u=e[m++])&(1<<h)-1)<<i-h,g=h),t[o]=a[f];else{var p=Math.ceil((l-n)/s);for(o=0;o<r;o++)0===d&&(u=e[m++],d=32,g=0),d>=i?(f=u>>>g&c,d-=i,g+=i):(f=u>>>g&c,d=32-(h=i-d),f|=((u=e[m++])&(1<<h)-1)<<i-h,g=h),t[o]=f<p?n+f*s:l}return t},i={HUFFMAN_LUT_BITS_MAX:12,computeChecksumFletcher32:function(e){for(var t=65535,i=65535,r=e.length,a=Math.floor(r/2),n=0;a;){var s=a>=359?359:a;a-=s;do{t+=e[n++]<<8,i+=t+=e[n++]}while(--s);t=(65535&t)+(t>>>16),i=(65535&i)+(i>>>16)}return 1&r&&(i+=t+=e[n]<<8),((i=(65535&i)+(i>>>16))<<16|(t=(65535&t)+(t>>>16)))>>>0},readHeaderInfo:function(e,t){var i=t.ptr,r=new Uint8Array(e,i,6),a={};if(a.fileIdentifierString=String.fromCharCode.apply(null,r),0!==a.fileIdentifierString.lastIndexOf("Lerc2",0))throw"Unexpected file identifier string (expect Lerc2 ): "+a.fileIdentifierString;i+=6;var n,s=new DataView(e,i,8),l=s.getInt32(0,!0);if(a.fileVersion=l,i+=4,l>=3&&(a.checksum=s.getUint32(4,!0),i+=4),s=new DataView(e,i,12),a.height=s.getUint32(0,!0),a.width=s.getUint32(4,!0),i+=8,l>=4?(a.numDims=s.getUint32(8,!0),i+=4):a.numDims=1,s=new DataView(e,i,40),a.numValidPixel=s.getUint32(0,!0),a.microBlockSize=s.getInt32(4,!0),a.blobSize=s.getInt32(8,!0),a.imageType=s.getInt32(12,!0),a.maxZError=s.getFloat64(16,!0),a.zMin=s.getFloat64(24,!0),a.zMax=s.getFloat64(32,!0),i+=40,t.headerInfo=a,t.ptr=i,l>=3&&(n=l>=4?52:48,this.computeChecksumFletcher32(new Uint8Array(e,i-n,a.blobSize-14))!==a.checksum))throw"Checksum failed.";return!0},checkMinMaxRanges:function(e,t){var i=t.headerInfo,r=this.getDataTypeArray(i.imageType),a=i.numDims*this.getDataTypeSize(i.imageType),n=this.readSubArray(e,t.ptr,r,a),s=this.readSubArray(e,t.ptr+a,r,a);t.ptr+=2*a;var l,o=!0;for(l=0;l<i.numDims;l++)if(n[l]!==s[l]){o=!1;break}return i.minValues=n,i.maxValues=s,o},readSubArray:function(e,t,i,r){var a;if(i===Uint8Array)a=new Uint8Array(e,t,r);else{var n=new ArrayBuffer(r);new Uint8Array(n).set(new Uint8Array(e,t,r)),a=new i(n)}return a},readMask:function(e,t){var i,r,a=t.ptr,n=t.headerInfo,s=n.width*n.height,l=n.numValidPixel,o=new DataView(e,a,4),f={};if(f.numBytes=o.getUint32(0,!0),a+=4,(0===l||s===l)&&0!==f.numBytes)throw"invalid mask";if(0===l)i=new Uint8Array(Math.ceil(s/8)),f.bitset=i,r=new Uint8Array(s),t.pixels.resultMask=r,a+=f.numBytes;else if(f.numBytes>0){i=new Uint8Array(Math.ceil(s/8));var u=(o=new DataView(e,a,f.numBytes)).getInt16(0,!0),h=2,c=0,m=0;do{if(u>0)for(;u--;)i[c++]=o.getUint8(h++);else for(m=o.getUint8(h++),u=-u;u--;)i[c++]=m;u=o.getInt16(h,!0),h+=2}while(h<f.numBytes);if(-32768!==u||c<i.length)throw"Unexpected end of mask RLE encoding";r=new Uint8Array(s);var d=0,g=0;for(g=0;g<s;g++)7&g?(d=i[g>>3],d<<=7&g):d=i[g>>3],128&d&&(r[g]=1);t.pixels.resultMask=r,f.bitset=i,a+=f.numBytes}return t.ptr=a,t.mask=f,!0},readDataOneSweep:function(e,t,r){var a,n=t.ptr,s=t.headerInfo,l=s.numDims,o=s.width*s.height,f=s.imageType,u=s.numValidPixel*i.getDataTypeSize(f)*l,h=t.pixels.resultMask;if(r===Uint8Array)a=new Uint8Array(e,n,u);else{var c=new ArrayBuffer(u);new Uint8Array(c).set(new Uint8Array(e,n,u)),a=new r(c)}if(a.length===o*l)t.pixels.resultPixels=a;else{t.pixels.resultPixels=new r(o*l);var m=0,d=0,g=0,p=0;if(l>1)for(g=0;g<l;g++)for(p=g*o,d=0;d<o;d++)h[d]&&(t.pixels.resultPixels[p+d]=a[m++]);else for(d=0;d<o;d++)h[d]&&(t.pixels.resultPixels[d]=a[m++])}return n+=u,t.ptr=n,!0},readHuffmanTree:function(e,t){var a=this.HUFFMAN_LUT_BITS_MAX,n=new DataView(e,t.ptr,16);if(t.ptr+=16,n.getInt32(0,!0)<2)throw"unsupported Huffman version";var s=n.getInt32(4,!0),l=n.getInt32(8,!0),o=n.getInt32(12,!0);if(l>=o)return!1;var f=new Uint32Array(o-l);i.decodeBits(e,t,f);var u,h,c,m,d=[];for(u=l;u<o;u++)d[h=u-(u<s?0:s)]={first:f[u-l],second:null};var g=e.byteLength-t.ptr,p=Math.ceil(g/4),w=new ArrayBuffer(4*p);new Uint8Array(w).set(new Uint8Array(e,t.ptr,g));var x,k=new Uint32Array(w),y=0,I=0;for(x=k[0],u=l;u<o;u++)(m=d[h=u-(u<s?0:s)].first)>0&&(d[h].second=x<<y>>>32-m,32-y>=m?32===(y+=m)&&(y=0,x=k[++I]):(y+=m-32,x=k[++I],d[h].second|=x>>>32-y));var U,b=0,T=new r;for(u=0;u<d.length;u++)void 0!==d[u]&&(b=Math.max(b,d[u].first));U=b>=a?a:b,b>=30&&console.log("WARning, large NUM LUT BITS IS "+b);var v,M,A,V,D,B=[];for(u=l;u<o;u++)if((m=d[h=u-(u<s?0:s)].first)>0)if(v=[m,h],m<=U)for(M=d[h].second<<U-m,A=1<<U-m,c=0;c<A;c++)B[M|c]=v;else for(M=d[h].second,D=T,V=m-1;V>=0;V--)M>>>V&1?(D.right||(D.right=new r),D=D.right):(D.left||(D.left=new r),D=D.left),0===V&&!D.val&&(D.val=v[1]);return{decodeLut:B,numBitsLUTQick:U,numBitsLUT:b,tree:T,stuffedData:k,srcPtr:I,bitPos:y}},readHuffman:function(e,t,i){var r,a,n,s,l,o,f,u,h,c=t.headerInfo,m=c.numDims,d=t.headerInfo.height,g=t.headerInfo.width,p=g*d,w=this.readHuffmanTree(e,t),x=w.decodeLut,k=w.tree,y=w.stuffedData,I=w.srcPtr,U=w.bitPos,b=w.numBitsLUTQick,T=w.numBitsLUT,v=0===t.headerInfo.imageType?128:0,M=t.pixels.resultMask,A=0;U>0&&(I++,U=0);var V,D=y[I],B=1===t.encodeMode,S=new i(p*m),P=S;for(V=0;V<c.numDims;V++){if(m>1&&(P=new i(S.buffer,p*V,p),A=0),t.headerInfo.numValidPixel===g*d)for(u=0,o=0;o<d;o++)for(f=0;f<g;f++,u++){if(a=0,l=s=D<<U>>>32-b,32-U<b&&(l=s|=y[I+1]>>>64-U-b),x[l])a=x[l][1],U+=x[l][0];else for(l=s=D<<U>>>32-T,32-U<T&&(l=s|=y[I+1]>>>64-U-T),r=k,h=0;h<T;h++)if(!(r=s>>>T-h-1&1?r.right:r.left).left&&!r.right){a=r.val,U=U+h+1;break}U>=32&&(U-=32,D=y[++I]),n=a-v,B?(n+=f>0?A:o>0?P[u-g]:A,n&=255,P[u]=n,A=n):P[u]=n}else for(u=0,o=0;o<d;o++)for(f=0;f<g;f++,u++)if(M[u]){if(a=0,l=s=D<<U>>>32-b,32-U<b&&(l=s|=y[I+1]>>>64-U-b),x[l])a=x[l][1],U+=x[l][0];else for(l=s=D<<U>>>32-T,32-U<T&&(l=s|=y[I+1]>>>64-U-T),r=k,h=0;h<T;h++)if(!(r=s>>>T-h-1&1?r.right:r.left).left&&!r.right){a=r.val,U=U+h+1;break}U>=32&&(U-=32,D=y[++I]),n=a-v,B?(f>0&&M[u-1]?n+=A:o>0&&M[u-g]?n+=P[u-g]:n+=A,n&=255,P[u]=n,A=n):P[u]=n}t.ptr=t.ptr+4*(I+1)+(U>0?4:0)}t.pixels.resultPixels=S},decodeBits:function(i,r,a,n,s){var l=r.headerInfo,o=l.fileVersion,f=0,u=new DataView(i,r.ptr,5),h=u.getUint8(0);f++;var c=h>>6,m=0===c?4:3-c,d=(32&h)>0,g=31&h,p=0;if(1===m)p=u.getUint8(f),f++;else if(2===m)p=u.getUint16(f,!0),f+=2;else{if(4!==m)throw"Invalid valid pixel count type";p=u.getUint32(f,!0),f+=4}var w,x,k,y,I,U,b,T,v,M=2*l.maxZError,A=l.numDims>1?l.maxValues[s]:l.zMax;if(d){for(r.counter.lut++,T=u.getUint8(f),f++,y=Math.ceil((T-1)*g/8),I=Math.ceil(y/4),x=new ArrayBuffer(4*I),k=new Uint8Array(x),r.ptr+=f,k.set(new Uint8Array(i,r.ptr,y)),b=new Uint32Array(x),r.ptr+=y,v=0;T-1>>>v;)v++;y=Math.ceil(p*v/8),I=Math.ceil(y/4),x=new ArrayBuffer(4*I),(k=new Uint8Array(x)).set(new Uint8Array(i,r.ptr,y)),w=new Uint32Array(x),r.ptr+=y,U=o>=3?function(e,t,i,r,a,n){var s,l=(1<<t)-1,o=0,f=0,u=0,h=0,c=0,m=0,d=[],g=Math.ceil((n-r)/a);for(f=0;f<i;f++)0===h&&(s=e[o++],h=32,m=0),h>=t?(c=s>>>m&l,h-=t,m+=t):(c=s>>>m&l,h=32-(u=t-h),c|=((s=e[o++])&(1<<u)-1)<<t-u,m=u),d[f]=c<g?r+c*a:n;return d.unshift(r),d}(b,g,T-1,n,M,A):function(e,t,i,r,a,n){var s,l=(1<<t)-1,o=0,f=0,u=0,h=0,c=0,m=[],d=4*e.length-Math.ceil(t*i/8);e[e.length-1]<<=8*d;var g=Math.ceil((n-r)/a);for(f=0;f<i;f++)0===h&&(s=e[o++],h=32),h>=t?(c=s>>>h-t&l,h-=t):(c=(s&l)<<(u=t-h)&l,c+=(s=e[o++])>>>(h=32-u)),m[f]=c<g?r+c*a:n;return m.unshift(r),m}(b,g,T-1,n,M,A),o>=3?t(w,a,v,p,U):e(w,a,v,p,U)}else r.counter.bitstuffer++,v=g,r.ptr+=f,v>0&&(y=Math.ceil(p*v/8),I=Math.ceil(y/4),x=new ArrayBuffer(4*I),(k=new Uint8Array(x)).set(new Uint8Array(i,r.ptr,y)),w=new Uint32Array(x),r.ptr+=y,o>=3?null==n?function(e,t,i,r){var a,n,s,l,o=(1<<i)-1,f=0,u=0,h=0;for(a=0;a<r;a++)0===u&&(s=e[f++],u=32,h=0),u>=i?(n=s>>>h&o,u-=i,h+=i):(n=s>>>h&o,u=32-(l=i-u),n|=((s=e[f++])&(1<<l)-1)<<i-l,h=l),t[a]=n}(w,a,v,p):t(w,a,v,p,!1,n,M,A):null==n?function(e,t,i,r){var a,n,s,l,o=(1<<i)-1,f=0,u=0,h=4*e.length-Math.ceil(i*r/8);for(e[e.length-1]<<=8*h,a=0;a<r;a++)0===u&&(s=e[f++],u=32),u>=i?(n=s>>>u-i&o,u-=i):(n=(s&o)<<(l=i-u)&o,n+=(s=e[f++])>>>(u=32-l)),t[a]=n}(w,a,v,p):e(w,a,v,p,!1,n,M,A))},readTiles:function(e,t,r){var a=t.headerInfo,n=a.width,s=a.height,l=a.microBlockSize,o=a.imageType,f=i.getDataTypeSize(o),u=Math.ceil(n/l),h=Math.ceil(s/l);t.pixels.numBlocksY=h,t.pixels.numBlocksX=u,t.pixels.ptr=0;var c,m,d,g,p,w,x,k,y=0,I=0,U=0,b=0,T=0,v=0,M=0,A=0,V=0,D=0,B=0,S=0,P=0,E=0,F=0,Y=new r(l*l),N=s%l||l,C=n%l||l,O=a.numDims,L=t.pixels.resultMask,R=t.pixels.resultPixels;for(U=0;U<h;U++)for(T=U!==h-1?l:N,b=0;b<u;b++)for(D=U*n*l+b*l,B=n-(v=b!==u-1?l:C),k=0;k<O;k++){if(O>1&&(R=new r(t.pixels.resultPixels.buffer,n*s*k*f,n*s)),M=e.byteLength-t.ptr,m={},F=0,F++,V=(A=(c=new DataView(e,t.ptr,Math.min(10,M))).getUint8(0))>>6&255,(A>>2&15)!=(b*l>>3&15))throw"integrity issue";if((p=3&A)>3)throw t.ptr+=F,"Invalid block encoding ("+p+")";if(2!==p)if(0===p){if(t.counter.uncompressed++,t.ptr+=F,S=(S=T*v*f)<(P=e.byteLength-t.ptr)?S:P,d=new ArrayBuffer(S%f==0?S:S+f-S%f),new Uint8Array(d).set(new Uint8Array(e,t.ptr,S)),g=new r(d),E=0,L)for(y=0;y<T;y++){for(I=0;I<v;I++)L[D]&&(R[D]=g[E++]),D++;D+=B}else for(y=0;y<T;y++){for(I=0;I<v;I++)R[D++]=g[E++];D+=B}t.ptr+=E*f}else if(w=i.getDataTypeUsed(o,V),x=i.getOnePixel(m,F,w,c),F+=i.getDataTypeSize(w),3===p)if(t.ptr+=F,t.counter.constantoffset++,L)for(y=0;y<T;y++){for(I=0;I<v;I++)L[D]&&(R[D]=x),D++;D+=B}else for(y=0;y<T;y++){for(I=0;I<v;I++)R[D++]=x;D+=B}else if(t.ptr+=F,i.decodeBits(e,t,Y,x,k),F=0,L)for(y=0;y<T;y++){for(I=0;I<v;I++)L[D]&&(R[D]=Y[F++]),D++;D+=B}else for(y=0;y<T;y++){for(I=0;I<v;I++)R[D++]=Y[F++];D+=B}else t.counter.constant++,t.ptr+=F}},formatFileInfo:function(e){return{fileIdentifierString:e.headerInfo.fileIdentifierString,fileVersion:e.headerInfo.fileVersion,imageType:e.headerInfo.imageType,height:e.headerInfo.height,width:e.headerInfo.width,numValidPixel:e.headerInfo.numValidPixel,microBlockSize:e.headerInfo.microBlockSize,blobSize:e.headerInfo.blobSize,maxZError:e.headerInfo.maxZError,pixelType:i.getPixelType(e.headerInfo.imageType),eofOffset:e.eofOffset,mask:e.mask?{numBytes:e.mask.numBytes}:null,pixels:{numBlocksX:e.pixels.numBlocksX,numBlocksY:e.pixels.numBlocksY,maxValue:e.headerInfo.zMax,minValue:e.headerInfo.zMin,noDataValue:e.noDataValue}}},constructConstantSurface:function(e){var t=e.headerInfo.zMax,i=e.headerInfo.numDims,r=e.headerInfo.height*e.headerInfo.width,a=r*i,n=0,s=0,l=0,o=e.pixels.resultMask;if(o)if(i>1)for(n=0;n<i;n++)for(l=n*r,s=0;s<r;s++)o[s]&&(e.pixels.resultPixels[l+s]=t);else for(s=0;s<r;s++)o[s]&&(e.pixels.resultPixels[s]=t);else if(e.pixels.resultPixels.fill)e.pixels.resultPixels.fill(t);else for(s=0;s<a;s++)e.pixels.resultPixels[s]=t},getDataTypeArray:function(e){var t;switch(e){case 0:t=Int8Array;break;case 1:t=Uint8Array;break;case 2:t=Int16Array;break;case 3:t=Uint16Array;break;case 4:t=Int32Array;break;case 5:t=Uint32Array;break;case 6:default:t=Float32Array;break;case 7:t=Float64Array}return t},getPixelType:function(e){var t;switch(e){case 0:t="S8";break;case 1:t="U8";break;case 2:t="S16";break;case 3:t="U16";break;case 4:t="S32";break;case 5:t="U32";break;case 6:default:t="F32";break;case 7:t="F64"}return t},isValidPixelValue:function(e,t){if(null==t)return!1;var i;switch(e){case 0:i=t>=-128&&t<=127;break;case 1:i=t>=0&&t<=255;break;case 2:i=t>=-32768&&t<=32767;break;case 3:i=t>=0&&t<=65536;break;case 4:i=t>=-2147483648&&t<=2147483647;break;case 5:i=t>=0&&t<=4294967296;break;case 6:i=t>=-34027999387901484e22&&t<=34027999387901484e22;break;case 7:i=t>=5e-324&&t<=17976931348623157e292;break;default:i=!1}return i},getDataTypeSize:function(e){var t=0;switch(e){case 0:case 1:t=1;break;case 2:case 3:t=2;break;case 4:case 5:case 6:t=4;break;case 7:t=8;break;default:t=e}return t},getDataTypeUsed:function(e,t){var i=e;switch(e){case 2:case 4:i=e-t;break;case 3:case 5:i=e-2*t;break;case 6:i=0===t?e:1===t?2:1;break;case 7:i=0===t?e:e-2*t+1;break;default:i=e}return i},getOnePixel:function(e,t,i,r){var a=0;switch(i){case 0:a=r.getInt8(t);break;case 1:a=r.getUint8(t);break;case 2:a=r.getInt16(t,!0);break;case 3:a=r.getUint16(t,!0);break;case 4:a=r.getInt32(t,!0);break;case 5:a=r.getUInt32(t,!0);break;case 6:a=r.getFloat32(t,!0);break;case 7:a=r.getFloat64(t,!0);break;default:throw"the decoder does not understand this pixel type"}return a}},r=function(e,t,i){this.val=e,this.left=t,this.right=i},a={decode:function(e,t){var r=(t=t||{}).noDataValue,a=0,n={};if(n.ptr=t.inputOffset||0,n.pixels={},i.readHeaderInfo(e,n)){var s=n.headerInfo,l=s.fileVersion,o=i.getDataTypeArray(s.imageType);i.readMask(e,n),s.numValidPixel!==s.width*s.height&&!n.pixels.resultMask&&(n.pixels.resultMask=t.maskData);var f,u=s.width*s.height;if(n.pixels.resultPixels=new o(u*s.numDims),n.counter={onesweep:0,uncompressed:0,lut:0,bitstuffer:0,constant:0,constantoffset:0},0!==s.numValidPixel)if(s.zMax===s.zMin)i.constructConstantSurface(n);else if(l>=4&&i.checkMinMaxRanges(e,n))i.constructConstantSurface(n);else{var h=new DataView(e,n.ptr,2),c=h.getUint8(0);if(n.ptr++,c)i.readDataOneSweep(e,n,o);else if(l>1&&s.imageType<=1&&Math.abs(s.maxZError-.5)<1e-5){var m=h.getUint8(1);if(n.ptr++,n.encodeMode=m,m>2||l<4&&m>1)throw"Invalid Huffman flag "+m;m?i.readHuffman(e,n,o):i.readTiles(e,n,o)}else i.readTiles(e,n,o)}n.eofOffset=n.ptr,t.inputOffset?(f=n.headerInfo.blobSize+t.inputOffset-n.ptr,Math.abs(f)>=1&&(n.eofOffset=t.inputOffset+n.headerInfo.blobSize)):(f=n.headerInfo.blobSize-n.ptr,Math.abs(f)>=1&&(n.eofOffset=n.headerInfo.blobSize));var d={width:s.width,height:s.height,pixelData:n.pixels.resultPixels,minValue:s.zMin,maxValue:s.zMax,validPixelCount:s.numValidPixel,dimCount:s.numDims,dimStats:{minValues:s.minValues,maxValues:s.maxValues},maskData:n.pixels.resultMask};if(n.pixels.resultMask&&i.isValidPixelValue(s.imageType,r)){var g=n.pixels.resultMask;for(a=0;a<u;a++)g[a]||(d.pixelData[a]=r);d.noDataValue=r}return n.noDataValue=r,t.returnFileInfo&&(d.fileInfo=i.formatFileInfo(n)),d}},getBandCount:function(e){for(var t=0,r=0,a={ptr:0,pixels:{}};r<e.byteLength-58;)i.readHeaderInfo(e,a),r+=a.headerInfo.blobSize,t++,a.ptr=r;return t}};return a}(),f=function(){var e=new ArrayBuffer(4),t=new Uint8Array(e);return new Uint32Array(e)[0]=1,1===t[0]}(),u={decode:function(e,t){if(!f)throw"Big endian system is not supported.";var i,r,a,n,s,u=(t=t||{}).inputOffset||0,h=new Uint8Array(e,u,10),c=String.fromCharCode.apply(null,h);if("CntZImage"===c.trim())i=l,r=1;else{if("Lerc2"!==c.substring(0,5))throw"Unexpected file identifier string: "+c;i=o,r=2}for(var m,d,g,p=0,w=e.byteLength-10,x=[],k={width:0,height:0,pixels:[],pixelType:t.pixelType,mask:null,statistics:[]};u<w;){var y=i.decode(e,{inputOffset:u,encodedMaskData:m,maskData:g,returnMask:0===p,returnEncodedMask:0===p,returnFileInfo:!0,pixelType:t.pixelType||null,noDataValue:t.noDataValue||null});u=y.fileInfo.eofOffset,0===p&&(m=y.encodedMaskData,g=y.maskData,k.width=y.width,k.height=y.height,k.dimCount=y.dimCount||1,k.pixelType=y.pixelType||y.fileInfo.pixelType,k.mask=y.maskData),r>1&&y.fileInfo.mask&&y.fileInfo.mask.numBytes>0&&x.push(y.maskData),p++,k.pixels.push(y.pixelData),k.statistics.push({minValue:y.minValue,maxValue:y.maxValue,noDataValue:y.noDataValue,dimStats:y.dimStats})}if(r>1&&x.length>1){for(s=k.width*k.height,k.bandMasks=x,(g=new Uint8Array(s)).set(x[0]),a=1;a<x.length;a++)for(d=x[a],n=0;n<s;n++)g[n]=g[n]&d[n];k.maskData=g}return k}};"function"==typeof define&&define.amd?define([],(function(){return u})):typeof t<"u"&&t.exports?t.exports=u:this.Lerc=u}()})),Ur={NONE:0,LERC:1},or=Object.freeze(Ur),Q={};Q.DEFAULT_STRUCTURE=Object.freeze({heightScale:1,heightOffset:0,elementsPerHeight:1,stride:1,elementMultiplier:256,isBigEndian:!1});var Ye=new ie,Tr=new xe,kr=new ie,yr=new ie;Q.computeVertices=function(e){if(!G(e)||!G(e.heightmap))throw new he("options.heightmap is required.");if(!G(e.width)||!G(e.height))throw new he("options.width and options.height are required.");if(!G(e.nativeRectangle))throw new he("options.nativeRectangle is required.");if(!G(e.skirtHeight))throw new he("options.skirtHeight is required.");let t,i,r,a,n=Math.cos,s=Math.sin,l=Math.sqrt,o=Math.atan,f=Math.exp,u=ge.PI_OVER_TWO,h=ge.toRadians,c=e.heightmap,m=e.width,d=e.height,g=e.skirtHeight,p=g>0,w=Y(e.isGeographic,!0),x=Y(e.ellipsoid,Ie.default),k=1/x.maximumRadius,y=ae.clone(e.nativeRectangle),I=ae.clone(e.rectangle);G(I)?(t=I.west,i=I.south,r=I.east,a=I.north):w?(t=h(y.west),i=h(y.south),r=h(y.east),a=h(y.north)):(t=y.west*k,i=u-2*o(f(-y.south*k)),r=y.east*k,a=u-2*o(f(-y.north*k)));let U=e.relativeToCenter,b=G(U);U=b?U:ie.ZERO;let T=Y(e.includeWebMercatorT,!1),v=Y(e.exaggeration,1),M=Y(e.exaggerationRelativeHeight,0),A=1!==v,V=Y(e.structure,Q.DEFAULT_STRUCTURE),D=Y(V.heightScale,Q.DEFAULT_STRUCTURE.heightScale),B=Y(V.heightOffset,Q.DEFAULT_STRUCTURE.heightOffset),S=Y(V.elementsPerHeight,Q.DEFAULT_STRUCTURE.elementsPerHeight),P=Y(V.stride,Q.DEFAULT_STRUCTURE.stride),E=Y(V.elementMultiplier,Q.DEFAULT_STRUCTURE.elementMultiplier),F=Y(V.isBigEndian,Q.DEFAULT_STRUCTURE.isBigEndian),N=ae.computeWidth(y),C=ae.computeHeight(y),O=N/(m-1),L=C/(d-1);w||(N*=k,C*=k);let R,z,H=x.radiiSquared,_=H.x,j=H.y,Z=H.z,X=65536,W=-65536,q=rr.eastNorthUpToFixedFrame(U,x),J=xe.inverseTransformation(q,Tr);T&&(R=Ue.geodeticLatitudeToMercatorAngle(i),z=1/(Ue.geodeticLatitudeToMercatorAngle(a)-R));let K=kr;K.x=Number.POSITIVE_INFINITY,K.y=Number.POSITIVE_INFINITY,K.z=Number.POSITIVE_INFINITY;let $=yr;$.x=Number.NEGATIVE_INFINITY,$.y=Number.NEGATIVE_INFINITY,$.z=Number.NEGATIVE_INFINITY;let ee=Number.POSITIVE_INFINITY,te=m*d,re=te+(g>0?2*m+2*d:0),ne=new Array(re),se=new Array(re),le=new Array(re),oe=T?new Array(re):[],fe=A?new Array(re):[],ue=0,ce=d,me=0,de=m;p&&(--ue,++ce,--me,++de);let pe=1e-5;for(let e=ue;e<ce;++e){let p=e;p<0&&(p=0),p>=d&&(p=d-1);let I=y.north-L*p;I=w?h(I):u-2*o(f(-I*k));let U=(I-i)/(a-i);U=ge.clamp(U,0,1);let b=e===ue,v=e===ce-1;g>0&&(b?I+=pe*C:v&&(I-=pe*C));let M,V=n(I),Y=s(I),H=Z*Y;T&&(M=(Ue.geodeticLatitudeToMercatorAngle(I)-R)*z);for(let e=me;e<de;++e){let i=e;i<0&&(i=0),i>=m&&(i=m-1);let a,o=p*(m*P)+i*P;if(1===S)a=c[o];else{let e;if(a=0,F)for(e=0;e<S;++e)a=a*E+c[o+e];else for(e=S-1;e>=0;--e)a=a*E+c[o+e]}a=a*D+B,W=Math.max(W,a),X=Math.min(X,a);let f=y.west+O*i;w?f=h(f):f*=k;let u=(f-t)/(r-t);u=ge.clamp(u,0,1);let I=p*m+i;if(g>0){let t=e===me,r=e===de-1,n=b||v||t||r;if((b||v)&&(t||r))continue;n&&(a-=g,t?(I=te+(d-p-1),f-=pe*N):v?I=te+d+(m-i-1):r?(I=te+d+m+p,f+=pe*N):b&&(I=te+d+m+d+i))}let C=V*n(f),L=V*s(f),R=_*C,z=j*L,Z=1/l(R*C+z*L+H*Y),Q=R*Z,G=z*Z,q=H*Z,re=new ie;re.x=Q+C*a,re.y=G+L*a,re.z=q+Y*a,xe.multiplyByPoint(J,re,Ye),ie.minimumByComponent(Ye,K,K),ie.maximumByComponent(Ye,$,$),ee=Math.min(ee,a),ne[I]=re,le[I]=new er(u,U),se[I]=a,T&&(oe[I]=M),A&&(fe[I]=x.geodeticSurfaceNormal(re))}}let we,ke,ye=ir.fromPoints(ne);G(I)&&(we=ar.fromRectangle(I,X,W,x)),b&&(ke=new sr(x).computeHorizonCullingPointPossiblyUnderEllipsoid(U,ne,X));let be=new nr(K,$,U),Te=new fr(U,be,ee,W,q,!1,T,A,v,M),ve=new Float32Array(re*Te.stride),Me=0;for(let e=0;e<re;++e)Me=Te.encode(ve,Me,ne[e],le[e],se[e],void 0,oe[e],fe[e]);return{vertices:ve,maximumHeight:W,minimumHeight:X,encoding:Te,boundingSphere3D:ye,orientedBoundingBox:we,occludeePointInScaledSpace:ke}};var lr=Q,cr=xr(ur(),1);function Mr(e,t){if(e.encoding===or.LERC){let t;try{t=cr.default.decode(e.heightmap)}catch(e){throw new He(e)}if(t.statistics[0].minValue===Number.MAX_VALUE)throw new He("Invalid tile data");e.heightmap=t.pixels[0],e.width=t.width,e.height=t.height}e.ellipsoid=Ie.clone(e.ellipsoid),e.rectangle=ae.clone(e.rectangle);let i=lr.computeVertices(e),r=i.vertices;return t.push(r.buffer),{vertices:r.buffer,numberOfAttributes:i.encoding.stride,minimumHeight:i.minimumHeight,maximumHeight:i.maximumHeight,gridWidth:e.width,gridHeight:e.height,boundingSphere3D:i.boundingSphere3D,orientedBoundingBox:i.orientedBoundingBox,occludeePointInScaledSpace:i.occludeePointInScaledSpace,encoding:i.encoding,westIndicesSouthToNorth:i.westIndicesSouthToNorth,southIndicesEastToWest:i.southIndicesEastToWest,eastIndicesNorthToSouth:i.eastIndicesNorthToSouth,northIndicesWestToEast:i.northIndicesWestToEast}}var Pr=tr(Mr);export{Pr as default};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/* Copyright 2015-2018 Esri. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 @preserve */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @license
|
|
5
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
6
|
+
* Version 1.124
|
|
7
|
+
*
|
|
8
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
9
|
+
*
|
|
10
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
+
* you may not use this file except in compliance with the License.
|
|
12
|
+
* You may obtain a copy of the License at
|
|
13
|
+
*
|
|
14
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
+
*
|
|
16
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
17
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
+
* See the License for the specific language governing permissions and
|
|
20
|
+
* limitations under the License.
|
|
21
|
+
*
|
|
22
|
+
* Columbus View (Pat. Pend.)
|
|
23
|
+
*
|
|
24
|
+
* Portions licensed separately.
|
|
25
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
26
|
+
*/
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see createVerticesFromQuantizedTerrainMesh.js.LICENSE.txt */
|
|
2
|
+
import{a as Ct,b as vt}from"./chunk-PJQ53UQY.js";import{a as Mt}from"./chunk-4BYMTYMT.js";import{a as z}from"./chunk-UJMUN4NO.js";import"./chunk-Q5MYX5A2.js";import{a as Wt}from"./chunk-Z7BLUZ7R.js";import{a as X}from"./chunk-34ULWVZF.js";import"./chunk-K2M3OJ7Z.js";import{b as U,g as bt,h as At}from"./chunk-M3A6SPGI.js";import"./chunk-D5HNP2LB.js";import{a as P,b as wt,c as lt,d as pt}from"./chunk-S4VBGY2U.js";import{a as f}from"./chunk-UCTPWOTZ.js";import"./chunk-54PMPXZ4.js";import"./chunk-R62IKKEC.js";import"./chunk-N3A5CZ2S.js";import{a as m}from"./chunk-G75U3WZT.js";import{e as w}from"./chunk-3THTQ4QB.js";function T(){m.throwInstantiationError()}Object.defineProperties(T.prototype,{errorEvent:{get:m.throwInstantiationError},credit:{get:m.throwInstantiationError},tilingScheme:{get:m.throwInstantiationError},hasWaterMask:{get:m.throwInstantiationError},hasVertexNormals:{get:m.throwInstantiationError},availability:{get:m.throwInstantiationError}});var Ot=[];T.getRegularGridIndices=function(t,e){if(t*e>=f.FOUR_GIGABYTES)throw new m("The total number of vertices (width * height) must be less than 4,294,967,296.");let r=Ot[t];w(r)||(Ot[t]=r=[]);let n=r[e];return w(n)||(n=t*e<f.SIXTY_FOUR_KILOBYTES?r[e]=new Uint16Array((t-1)*(e-1)*6):r[e]=new Uint32Array((t-1)*(e-1)*6),Pt(t,e,n,0)),n};var Gt=[];T.getRegularGridIndicesAndEdgeIndices=function(t,e){if(t*e>=f.FOUR_GIGABYTES)throw new m("The total number of vertices (width * height) must be less than 4,294,967,296.");let r=Gt[t];w(r)||(Gt[t]=r=[]);let n=r[e];if(!w(n)){let i=T.getRegularGridIndices(t,e),o=Lt(t,e),a=o.westIndicesSouthToNorth,s=o.southIndicesEastToWest,h=o.eastIndicesNorthToSouth,u=o.northIndicesWestToEast;n=r[e]={indices:i,westIndicesSouthToNorth:a,southIndicesEastToWest:s,eastIndicesNorthToSouth:h,northIndicesWestToEast:u}}return n};var kt=[];function Lt(t,e){let r,n=new Array(e),i=new Array(t),o=new Array(e),a=new Array(t);for(r=0;r<t;++r)a[r]=r,i[r]=t*e-1-r;for(r=0;r<e;++r)o[r]=(r+1)*t-1,n[r]=(e-r-1)*t;return{westIndicesSouthToNorth:n,southIndicesEastToWest:i,eastIndicesNorthToSouth:o,northIndicesWestToEast:a}}function Pt(t,e,r,n){let i=0;for(let o=0;o<e-1;++o){for(let e=0;e<t-1;++e){let e=i,o=e+t,a=o+1,s=e+1;r[n++]=e,r[n++]=o,r[n++]=s,r[n++]=s,r[n++]=o,r[n++]=a,++i}++i}}function Z(t,e,r,n){let i=t[0],o=t.length;for(let a=1;a<o;++a){let o=t[a];r[n++]=i,r[n++]=o,r[n++]=e,r[n++]=e,r[n++]=o,r[n++]=e+1,i=o,++e}return n}T.getRegularGridAndSkirtIndicesAndEdgeIndices=function(t,e){if(t*e>=f.FOUR_GIGABYTES)throw new m("The total number of vertices (width * height) must be less than 4,294,967,296.");let r=kt[t];w(r)||(kt[t]=r=[]);let n=r[e];if(!w(n)){let i=t*e,o=(t-1)*(e-1)*6,a=2*t+2*e,s=i+a,h=o+6*Math.max(0,a-4),u=Lt(t,e),c=u.westIndicesSouthToNorth,l=u.southIndicesEastToWest,d=u.eastIndicesNorthToSouth,m=u.northIndicesWestToEast,I=X.createTypedArray(s,h);Pt(t,e,I,0),T.addSkirtIndices(c,l,d,m,i,I,o),n=r[e]={indices:I,westIndicesSouthToNorth:c,southIndicesEastToWest:l,eastIndicesNorthToSouth:d,northIndicesWestToEast:m,indexCountWithoutSkirts:o}}return n},T.addSkirtIndices=function(t,e,r,n,i,o,a){let s=i;a=Z(t,s,o,a),s+=t.length,a=Z(e,s,o,a),s+=e.length,a=Z(r,s,o,a),s+=r.length,Z(n,s,o,a)},T.heightmapTerrainQuality=.25,T.getEstimatedLevelZeroGeometricErrorForAHeightmap=function(t,e,r){return 2*t.maximumRadius*Math.PI*T.heightmapTerrainQuality/(e*r)},T.prototype.requestTileGeometry=m.throwInstantiationError,T.prototype.getLevelMaximumGeometricError=m.throwInstantiationError,T.prototype.getTileDataAvailable=m.throwInstantiationError,T.prototype.loadTileDataAvailability=m.throwInstantiationError;var Vt=T,ht=32767,D=new P,Xt=new P,Zt=new P,u=new wt,Y=new lt;function Jt(t,e){let r,n,i=t.quantizedVertices,o=i.length/3,a=t.octEncodedNormals,s=t.westIndices.length+t.eastIndices.length+t.southIndices.length+t.northIndices.length,h=t.includeWebMercatorT,c=t.exaggeration,l=t.exaggerationRelativeHeight,d=1!==c,m=At.clone(t.rectangle),I=m.west,T=m.south,g=m.east,p=m.north,N=pt.clone(t.ellipsoid),y=t.minimumHeight,E=t.maximumHeight,S=t.relativeToCenter,A=bt.eastNorthUpToFixedFrame(S,N),b=U.inverseTransformation(A,new U);h&&(r=z.geodeticLatitudeToMercatorAngle(T),n=1/(z.geodeticLatitudeToMercatorAngle(p)-r));let k=i.subarray(0,o),M=i.subarray(o,2*o),x=i.subarray(2*o,3*o),G=w(a),W=new Array(o),v=new Array(o),F=new Array(o),O=h?new Array(o):[],_=d?new Array(o):[],j=Xt;j.x=Number.POSITIVE_INFINITY,j.y=Number.POSITIVE_INFINITY,j.z=Number.POSITIVE_INFINITY;let H=Zt;H.x=Number.NEGATIVE_INFINITY,H.y=Number.NEGATIVE_INFINITY,H.z=Number.NEGATIVE_INFINITY;let V=Number.POSITIVE_INFINITY,C=Number.NEGATIVE_INFINITY,Z=Number.POSITIVE_INFINITY,B=Number.NEGATIVE_INFINITY;for(let t=0;t<o;++t){let e=k[t],i=M[t],o=e/ht,a=i/ht,s=f.lerp(y,E,x[t]/ht);u.longitude=f.lerp(I,g,o),u.latitude=f.lerp(T,p,a),u.height=s,V=Math.min(u.longitude,V),C=Math.max(u.longitude,C),Z=Math.min(u.latitude,Z),B=Math.max(u.latitude,B);let c=N.cartographicToCartesian(u);W[t]=new lt(o,a),v[t]=s,F[t]=c,h&&(O[t]=(z.geodeticLatitudeToMercatorAngle(u.latitude)-r)*n),d&&(_[t]=N.geodeticSurfaceNormal(c)),U.multiplyByPoint(b,c,D),P.minimumByComponent(D,j,j),P.maximumByComponent(D,H,H)}let L,R=tt(t.westIndices,(function(t,e){return W[t].y-W[e].y})),Q=tt(t.eastIndices,(function(t,e){return W[e].y-W[t].y})),K=tt(t.southIndices,(function(t,e){return W[e].x-W[t].x})),q=tt(t.northIndices,(function(t,e){return W[t].x-W[e].x}));y<0&&(L=new Ct(N).computeHorizonCullingPointPossiblyUnderEllipsoid(S,F,y));let et=y;et=Math.min(et,J(t.westIndices,t.westSkirtHeight,v,W,m,N,b,j,H)),et=Math.min(et,J(t.southIndices,t.southSkirtHeight,v,W,m,N,b,j,H)),et=Math.min(et,J(t.eastIndices,t.eastSkirtHeight,v,W,m,N,b,j,H)),et=Math.min(et,J(t.northIndices,t.northSkirtHeight,v,W,m,N,b,j,H));let rt=new Wt(j,H,S),nt=new vt(S,rt,et,E,A,G,h,d,c,l),it=nt.stride,ot=new Float32Array(o*it+s*it),at=0;for(let t=0;t<o;++t){if(G){let e=2*t;Y.x=a[e],Y.y=a[e+1]}at=nt.encode(ot,at,F[t],W[t],v[t],Y,O[t],_[t])}let st=Math.max(0,2*(s-4)),ut=t.indices.length+3*st,ct=X.createTypedArray(o+s,ut);ct.set(t.indices,0);let dt=1e-4,mt=(C-V)*dt,It=(B-Z)*dt,Tt=-mt,gt=mt,ft=It,wt=-It,Nt=o*it;return $(ot,Nt,R,nt,v,W,a,N,m,t.westSkirtHeight,r,n,Tt,0),Nt+=t.westIndices.length*it,$(ot,Nt,K,nt,v,W,a,N,m,t.southSkirtHeight,r,n,0,wt),Nt+=t.southIndices.length*it,$(ot,Nt,Q,nt,v,W,a,N,m,t.eastSkirtHeight,r,n,gt,0),Nt+=t.eastIndices.length*it,$(ot,Nt,q,nt,v,W,a,N,m,t.northSkirtHeight,r,n,0,ft),Vt.addSkirtIndices(R,K,Q,q,o,ct,t.indices.length),e.push(ot.buffer,ct.buffer),{vertices:ot.buffer,indices:ct.buffer,westIndicesSouthToNorth:R,southIndicesEastToWest:K,eastIndicesNorthToSouth:Q,northIndicesWestToEast:q,vertexStride:it,center:S,minimumHeight:y,maximumHeight:E,occludeePointInScaledSpace:L,encoding:nt,indexCountWithoutSkirts:t.indices.length}}function J(t,e,r,n,i,o,a,s,h){let c=Number.POSITIVE_INFINITY,l=i.north,d=i.south,m=i.east,I=i.west;m<I&&(m+=f.TWO_PI);let T=t.length;for(let i=0;i<T;++i){let T=t[i],g=r[T],w=n[T];u.longitude=f.lerp(I,m,w.x),u.latitude=f.lerp(d,l,w.y),u.height=g-e;let p=o.cartographicToCartesian(u,D);U.multiplyByPoint(a,p,p),P.minimumByComponent(p,s,s),P.maximumByComponent(p,h,h),c=Math.min(c,u.height)}return c}function $(t,e,r,n,i,o,a,s,h,c,l,d,m,I){let T=w(a),g=h.north,p=h.south,N=h.east,y=h.west;N<y&&(N+=f.TWO_PI);let E=r.length;for(let h=0;h<E;++h){let w=r[h],E=i[w],S=o[w];u.longitude=f.lerp(y,N,S.x)+m,u.latitude=f.lerp(p,g,S.y)+I,u.height=E-c;let A,b,k=s.cartographicToCartesian(u,D);if(T){let t=2*w;Y.x=a[t],Y.y=a[t+1]}n.hasWebMercatorT&&(A=(z.geodeticLatitudeToMercatorAngle(u.latitude)-l)*d),n.hasGeodeticSurfaceNormals&&(b=s.geodeticSurfaceNormal(k)),e=n.encode(t,e,k,S,u.height,Y,A,b)}}function tt(t,e){let r;return"function"==typeof t.slice&&(r=t.slice(),"function"!=typeof r.sort&&(r=void 0)),w(r)||(r=Array.prototype.slice.call(t)),r.sort(e),r}var Se=Mt(Jt);export{Se as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.124
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see createWallGeometry.js.LICENSE.txt */
|
|
2
|
+
import{a as nt}from"./chunk-42FICTTZ.js";import"./chunk-RNF7TLFF.js";import"./chunk-E7HC3VTG.js";import{a as _}from"./chunk-6HIVPZ7K.js";import"./chunk-GJI4ZBKE.js";import"./chunk-RDAVO5OM.js";import"./chunk-PY4CW263.js";import"./chunk-RRZIPF5C.js";import{a as ot}from"./chunk-34ULWVZF.js";import{a as it}from"./chunk-24JYWT5N.js";import{b as tt,c as et,d as S}from"./chunk-LH3SUUXG.js";import{d as I}from"./chunk-K2M3OJ7Z.js";import"./chunk-M3A6SPGI.js";import{a as R}from"./chunk-D5HNP2LB.js";import{a as s,d as l}from"./chunk-S4VBGY2U.js";import{a as J}from"./chunk-UCTPWOTZ.js";import"./chunk-54PMPXZ4.js";import"./chunk-R62IKKEC.js";import{a as w}from"./chunk-N3A5CZ2S.js";import{a as P}from"./chunk-G75U3WZT.js";import{e as r}from"./chunk-3THTQ4QB.js";var Q=new s,Y=new s,lt=new s,st=new s,pt=new s,ut=new s,ft=new s;function k(t){let e=(t=w(t,w.EMPTY_OBJECT)).positions,i=t.maximumHeights,n=t.minimumHeights;if(!r(e))throw new P("options.positions is required.");if(r(i)&&i.length!==e.length)throw new P("options.positions and options.maximumHeights must have the same length.");if(r(n)&&n.length!==e.length)throw new P("options.positions and options.minimumHeights must have the same length.");let o=w(t.vertexFormat,_.DEFAULT),a=w(t.granularity,J.RADIANS_PER_DEGREE),m=w(t.ellipsoid,l.default);this._positions=e,this._minimumHeights=n,this._maximumHeights=i,this._vertexFormat=_.clone(o),this._granularity=a,this._ellipsoid=l.clone(m),this._workerName="createWallGeometry";let p=1+e.length*s.packedLength+2;r(n)&&(p+=n.length),r(i)&&(p+=i.length),this.packedLength=p+l.packedLength+_.packedLength+1}k.pack=function(t,e,i){if(!r(t))throw new P("value is required");if(!r(e))throw new P("array is required");i=w(i,0);let n,o=t._positions,a=o.length;for(e[i++]=a,n=0;n<a;++n,i+=s.packedLength)s.pack(o[n],e,i);let m=t._minimumHeights;if(a=r(m)?m.length:0,e[i++]=a,r(m))for(n=0;n<a;++n)e[i++]=m[n];let p=t._maximumHeights;if(a=r(p)?p.length:0,e[i++]=a,r(p))for(n=0;n<a;++n)e[i++]=p[n];return l.pack(t._ellipsoid,e,i),i+=l.packedLength,_.pack(t._vertexFormat,e,i),e[i+=_.packedLength]=t._granularity,e};var mt=l.clone(l.UNIT_SPHERE),rt=new _,V={positions:void 0,minimumHeights:void 0,maximumHeights:void 0,ellipsoid:mt,vertexFormat:rt,granularity:void 0};k.unpack=function(t,e,i){if(!r(t))throw new P("array is required");e=w(e,0);let n,o,a,m=t[e++],p=new Array(m);for(n=0;n<m;++n,e+=s.packedLength)p[n]=s.unpack(t,e);if(m=t[e++],m>0)for(o=new Array(m),n=0;n<m;++n)o[n]=t[e++];if(m=t[e++],m>0)for(a=new Array(m),n=0;n<m;++n)a[n]=t[e++];let u=l.unpack(t,e,mt);e+=l.packedLength;let h=_.unpack(t,e,rt),c=t[e+=_.packedLength];return r(i)?(i._positions=p,i._minimumHeights=o,i._maximumHeights=a,i._ellipsoid=l.clone(u,i._ellipsoid),i._vertexFormat=_.clone(h,i._vertexFormat),i._granularity=c,i):(V.positions=p,V.minimumHeights=o,V.maximumHeights=a,V.granularity=c,new k(V))},k.fromConstantHeights=function(t){let e=(t=w(t,w.EMPTY_OBJECT)).positions;if(!r(e))throw new P("options.positions is required.");let i,n,o=t.minimumHeight,s=t.maximumHeight,a=r(o),m=r(s);if(a||m){let t=e.length;i=a?new Array(t):void 0,n=m?new Array(t):void 0;for(let e=0;e<t;++e)a&&(i[e]=o),m&&(n[e]=s)}return new k({positions:e,maximumHeights:n,minimumHeights:i,ellipsoid:t.ellipsoid,vertexFormat:t.vertexFormat})},k.createGeometry=function(t){let e=t._positions,i=t._minimumHeights,n=t._maximumHeights,o=t._vertexFormat,a=t._granularity,m=t._ellipsoid,l=nt.computePositions(m,e,n,i,a,!0);if(!r(l))return;let p=l.bottomPositions,u=l.topPositions,h=l.numCorners,c=u.length,g=2*c,f=o.position?new Float64Array(g):void 0,w=o.normal?new Float32Array(g):void 0,k=o.tangent?new Float32Array(g):void 0,d=o.bitangent?new Float32Array(g):void 0,_=o.st?new Float32Array(g/3*2):void 0,y=0,v=0,A=0,P=0,x=0,H=ft,F=ut,L=pt,T=!0;c/=3;let j,E=0,b=1/(c-h-1);for(j=0;j<c;++j){let t=3*j,e=s.fromArray(u,t,Q),i=s.fromArray(p,t,Y);if(o.position&&(f[y++]=i.x,f[y++]=i.y,f[y++]=i.z,f[y++]=e.x,f[y++]=e.y,f[y++]=e.z),o.st&&(_[x++]=E,_[x++]=0,_[x++]=E,_[x++]=1),o.normal||o.tangent||o.bitangent){let i=s.clone(s.ZERO,st),n=s.subtract(e,m.geodeticSurfaceNormal(e,Y),Y);if(j+1<c&&(i=s.fromArray(u,t+3,st)),T){let t=s.subtract(i,e,lt),r=s.subtract(n,e,Q);H=s.normalize(s.cross(r,t,H),H),T=!1}s.equalsEpsilon(e,i,J.EPSILON10)?T=!0:(E+=b,o.tangent&&(F=s.normalize(s.subtract(i,e,F),F)),o.bitangent&&(L=s.normalize(s.cross(H,F,L),L))),o.normal&&(w[v++]=H.x,w[v++]=H.y,w[v++]=H.z,w[v++]=H.x,w[v++]=H.y,w[v++]=H.z),o.tangent&&(k[P++]=F.x,k[P++]=F.y,k[P++]=F.z,k[P++]=F.x,k[P++]=F.y,k[P++]=F.z),o.bitangent&&(d[A++]=L.x,d[A++]=L.y,d[A++]=L.z,d[A++]=L.x,d[A++]=L.y,d[A++]=L.z)}}let O=new it;o.position&&(O.position=new S({componentDatatype:R.DOUBLE,componentsPerAttribute:3,values:f})),o.normal&&(O.normal=new S({componentDatatype:R.FLOAT,componentsPerAttribute:3,values:w})),o.tangent&&(O.tangent=new S({componentDatatype:R.FLOAT,componentsPerAttribute:3,values:k})),o.bitangent&&(O.bitangent=new S({componentDatatype:R.FLOAT,componentsPerAttribute:3,values:d})),o.st&&(O.st=new S({componentDatatype:R.FLOAT,componentsPerAttribute:2,values:_}));let V=g/3;g-=6*(h+1);let z=ot.createTypedArray(V,g),C=0;for(j=0;j<V-2;j+=2){let t=j,e=j+2,i=s.fromArray(f,3*t,Q),n=s.fromArray(f,3*e,Y);if(s.equalsEpsilon(i,n,J.EPSILON10))continue;let r=j+1,o=j+3;z[C++]=r,z[C++]=t,z[C++]=o,z[C++]=o,z[C++]=t,z[C++]=e}return new et({attributes:O,indices:z,primitiveType:tt.TRIANGLES,boundingSphere:new I.fromVertices(f)})};var X=k;function ht(t,e){return r(e)&&(t=X.unpack(t,e)),t._ellipsoid=l.clone(t._ellipsoid),X.createGeometry(t)}var Ot=ht;export{Ot as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.124
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see createWallOutlineGeometry.js.LICENSE.txt */
|
|
2
|
+
import{a as B}from"./chunk-42FICTTZ.js";import"./chunk-RNF7TLFF.js";import"./chunk-E7HC3VTG.js";import"./chunk-GJI4ZBKE.js";import"./chunk-RDAVO5OM.js";import"./chunk-PY4CW263.js";import"./chunk-RRZIPF5C.js";import{a as W}from"./chunk-34ULWVZF.js";import{a as N}from"./chunk-24JYWT5N.js";import{b as R,c as S,d as M}from"./chunk-LH3SUUXG.js";import{d as D}from"./chunk-K2M3OJ7Z.js";import"./chunk-M3A6SPGI.js";import{a as q}from"./chunk-D5HNP2LB.js";import{a as p,d as l}from"./chunk-S4VBGY2U.js";import{a as O}from"./chunk-UCTPWOTZ.js";import"./chunk-54PMPXZ4.js";import"./chunk-R62IKKEC.js";import{a as d}from"./chunk-N3A5CZ2S.js";import{a as _}from"./chunk-G75U3WZT.js";import{e as m}from"./chunk-3THTQ4QB.js";var U=new p,z=new p;function w(i){let t=(i=d(i,d.EMPTY_OBJECT)).positions,e=i.maximumHeights,o=i.minimumHeights;if(!m(t))throw new _("options.positions is required.");if(m(e)&&e.length!==t.length)throw new _("options.positions and options.maximumHeights must have the same length.");if(m(o)&&o.length!==t.length)throw new _("options.positions and options.minimumHeights must have the same length.");let n=d(i.granularity,O.RADIANS_PER_DEGREE),r=d(i.ellipsoid,l.default);this._positions=t,this._minimumHeights=o,this._maximumHeights=e,this._granularity=n,this._ellipsoid=l.clone(r),this._workerName="createWallOutlineGeometry";let s=1+t.length*p.packedLength+2;m(o)&&(s+=o.length),m(e)&&(s+=e.length),this.packedLength=s+l.packedLength+1}w.pack=function(i,t,e){if(!m(i))throw new _("value is required");if(!m(t))throw new _("array is required");e=d(e,0);let o,n=i._positions,r=n.length;for(t[e++]=r,o=0;o<r;++o,e+=p.packedLength)p.pack(n[o],t,e);let s=i._minimumHeights;if(r=m(s)?s.length:0,t[e++]=r,m(s))for(o=0;o<r;++o)t[e++]=s[o];let a=i._maximumHeights;if(r=m(a)?a.length:0,t[e++]=r,m(a))for(o=0;o<r;++o)t[e++]=a[o];return l.pack(i._ellipsoid,t,e),t[e+=l.packedLength]=i._granularity,t};var G=l.clone(l.UNIT_SPHERE),b={positions:void 0,minimumHeights:void 0,maximumHeights:void 0,ellipsoid:G,granularity:void 0};w.unpack=function(i,t,e){if(!m(i))throw new _("array is required");t=d(t,0);let o,n,r,s=i[t++],a=new Array(s);for(o=0;o<s;++o,t+=p.packedLength)a[o]=p.unpack(i,t);if(s=i[t++],s>0)for(n=new Array(s),o=0;o<s;++o)n[o]=i[t++];if(s=i[t++],s>0)for(r=new Array(s),o=0;o<s;++o)r[o]=i[t++];let h=l.unpack(i,t,G),u=i[t+=l.packedLength];return m(e)?(e._positions=a,e._minimumHeights=n,e._maximumHeights=r,e._ellipsoid=l.clone(h,e._ellipsoid),e._granularity=u,e):(b.positions=a,b.minimumHeights=n,b.maximumHeights=r,b.granularity=u,new w(b))},w.fromConstantHeights=function(i){let t=(i=d(i,d.EMPTY_OBJECT)).positions;if(!m(t))throw new _("options.positions is required.");let e,o,n=i.minimumHeight,r=i.maximumHeight,s=m(n),a=m(r);if(s||a){let i=t.length;e=s?new Array(i):void 0,o=a?new Array(i):void 0;for(let t=0;t<i;++t)s&&(e[t]=n),a&&(o[t]=r)}return new w({positions:t,maximumHeights:o,minimumHeights:e,ellipsoid:i.ellipsoid})},w.createGeometry=function(i){let t=i._positions,e=i._minimumHeights,o=i._maximumHeights,n=i._granularity,r=i._ellipsoid,s=B.computePositions(r,t,o,e,n,!1);if(!m(s))return;let a,l=s.bottomPositions,h=s.topPositions,u=h.length,c=2*u,g=new Float64Array(c),d=0;for(u/=3,a=0;a<u;++a){let i=3*a,t=p.fromArray(h,i,U),e=p.fromArray(l,i,z);g[d++]=e.x,g[d++]=e.y,g[d++]=e.z,g[d++]=t.x,g[d++]=t.y,g[d++]=t.z}let f=new N({position:new M({componentDatatype:q.DOUBLE,componentsPerAttribute:3,values:g})}),w=c/3;c=2*w-4+w;let _=W.createTypedArray(w,c),k=0;for(a=0;a<w-2;a+=2){let i=a,t=a+2,e=p.fromArray(g,3*i,U),o=p.fromArray(g,3*t,z);if(p.equalsEpsilon(e,o,O.EPSILON10))continue;let n=a+1,r=a+3;_[k++]=n,_[k++]=i,_[k++]=n,_[k++]=r,_[k++]=i,_[k++]=t}return _[k++]=w-2,_[k++]=w-1,new S({attributes:f,indices:_,primitiveType:R.LINES,boundingSphere:new D.fromVertices(g)})};var C=w;function J(i,t){return m(t)&&(i=C.unpack(i,t)),i._ellipsoid=l.clone(i._ellipsoid),C.createGeometry(i)}var pi=J;export{pi as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.124
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see decodeDraco.js.LICENSE.txt */
|
|
2
|
+
import{a as O}from"./chunk-JR7WFPVR.js";import{a as I}from"./chunk-4BYMTYMT.js";import{a as m}from"./chunk-34ULWVZF.js";import{a as w}from"./chunk-D5HNP2LB.js";import"./chunk-UCTPWOTZ.js";import"./chunk-54PMPXZ4.js";import{a as A}from"./chunk-R62IKKEC.js";import"./chunk-N3A5CZ2S.js";import"./chunk-G75U3WZT.js";import{d as D,e as d}from"./chunk-3THTQ4QB.js";var o,b=D(O(),1);function F(t,e){let r=t.num_points(),n=t.num_faces(),a=new o.DracoInt32Array,i=3*n,s=m.createTypedArray(r,i),u=0;for(let r=0;r<n;++r)e.GetFaceFromMesh(t,r,a),s[u+0]=a.GetValue(0),s[u+1]=a.GetValue(1),s[u+2]=a.GetValue(2),u+=3;return o.destroy(a),{typedArray:s,numberOfIndices:i}}function U(t,e,r,n,a){let i,s;n.quantizationBits<=8?(s=new o.DracoUInt8Array,i=new Uint8Array(a),e.GetAttributeUInt8ForAllPoints(t,r,s)):n.quantizationBits<=16?(s=new o.DracoUInt16Array,i=new Uint16Array(a),e.GetAttributeUInt16ForAllPoints(t,r,s)):(s=new o.DracoFloat32Array,i=new Float32Array(a),e.GetAttributeFloatForAllPoints(t,r,s));for(let t=0;t<a;++t)i[t]=s.GetValue(t);return o.destroy(s),i}function k(t,e,r,n){let a,i;switch(r.data_type()){case 1:case 11:i=new o.DracoInt8Array,a=new Int8Array(n),e.GetAttributeInt8ForAllPoints(t,r,i);break;case 2:i=new o.DracoUInt8Array,a=new Uint8Array(n),e.GetAttributeUInt8ForAllPoints(t,r,i);break;case 3:i=new o.DracoInt16Array,a=new Int16Array(n),e.GetAttributeInt16ForAllPoints(t,r,i);break;case 4:i=new o.DracoUInt16Array,a=new Uint16Array(n),e.GetAttributeUInt16ForAllPoints(t,r,i);break;case 5:case 7:i=new o.DracoInt32Array,a=new Int32Array(n),e.GetAttributeInt32ForAllPoints(t,r,i);break;case 6:case 8:i=new o.DracoUInt32Array,a=new Uint32Array(n),e.GetAttributeUInt32ForAllPoints(t,r,i);break;case 9:case 10:i=new o.DracoFloat32Array,a=new Float32Array(n),e.GetAttributeFloatForAllPoints(t,r,i)}for(let t=0;t<n;++t)a[t]=i.GetValue(t);return o.destroy(i),a}function p(t,e,r){let n,a=t.num_points(),i=r.num_components(),s=new o.AttributeQuantizationTransform;if(s.InitFromAttribute(r)){let t=new Array(i);for(let e=0;e<i;++e)t[e]=s.min_value(e);n={quantizationBits:s.quantization_bits(),minValues:t,range:s.range(),octEncoded:!1}}o.destroy(s),s=new o.AttributeOctahedronTransform,s.InitFromAttribute(r)&&(n={quantizationBits:s.quantization_bits(),octEncoded:!0}),o.destroy(s);let u,l=a*i;u=d(n)?U(t,e,r,n,l):k(t,e,r,l);let c=w.fromTypedArray(u);return{array:u,data:{componentsPerAttribute:i,componentDatatype:c,byteOffset:r.byte_offset(),byteStride:w.getSizeInBytes(c)*i,normalized:r.normalized(),quantization:n}}}function _(t){let e=new o.Decoder;t.dequantizeInShader&&(e.SkipAttributeTransform(o.POSITION),e.SkipAttributeTransform(o.NORMAL));let r=new o.DecoderBuffer;if(r.Init(t.buffer,t.buffer.length),e.GetEncodedGeometryType(r)!==o.POINT_CLOUD)throw new A("Draco geometry type must be POINT_CLOUD.");let n=new o.PointCloud,a=e.DecodeBufferToPointCloud(r,n);if(!a.ok()||0===n.ptr)throw new A(`Error decoding draco point cloud: ${a.error_msg()}`);o.destroy(r);let i={},s=t.properties;for(let t in s)if(s.hasOwnProperty(t)){let r;if("POSITION"===t||"NORMAL"===t){let a=e.GetAttributeId(n,o[t]);r=e.GetAttribute(n,a)}else{let o=s[t];r=e.GetAttributeByUniqueId(n,o)}i[t]=p(n,e,r)}return o.destroy(n),o.destroy(e),i}function g(t){let e=new o.Decoder,r=["POSITION","NORMAL","COLOR","TEX_COORD"];if(t.dequantizeInShader)for(let t=0;t<r.length;++t)e.SkipAttributeTransform(o[r[t]]);let n=t.bufferView,a=new o.DecoderBuffer;if(a.Init(t.array,n.byteLength),e.GetEncodedGeometryType(a)!==o.TRIANGULAR_MESH)throw new A("Unsupported draco mesh geometry type.");let i=new o.Mesh,s=e.DecodeBufferToMesh(a,i);if(!s.ok()||0===i.ptr)throw new A(`Error decoding draco mesh geometry: ${s.error_msg()}`);o.destroy(a);let u={},l=t.compressedAttributes;for(let t in l)if(l.hasOwnProperty(t)){let r=l[t],o=e.GetAttributeByUniqueId(i,r);u[t]=p(i,e,o)}let c={indexArray:F(i,e),attributeData:u};return o.destroy(i),o.destroy(e),c}async function z(t,e){return d(t.bufferView)?g(t):_(t)}async function C(t,e){let r=t.webAssemblyConfig;return o=d(r)&&d(r.wasmBinaryFile)?await(0,b.default)(r):await(0,b.default)(),!0}async function G(t,e){let r=t.webAssemblyConfig;return d(r)?C(t,e):z(t,e)}var h=I(G);export{h as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.124
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see decodeGoogleEarthEnterprisePacket.js.LICENSE.txt */
|
|
2
|
+
import{a as Se}from"./chunk-4BYMTYMT.js";import{a as D}from"./chunk-R62IKKEC.js";import{b as ae}from"./chunk-G75U3WZT.js";import{c as R,d as Ot,e as me}from"./chunk-3THTQ4QB.js";var Ie=R(((e,t)=>{"use strict";t.exports=(e,t,i,r)=>{let n=65535&e,a=e>>>16&65535,s=0;for(;0!==i;){s=i>2e3?2e3:i,i-=s;do{n=n+t[r++]|0,a=a+n|0}while(--s);n%=65521,a%=65521}return n|a<<16}})),De=R(((e,t)=>{"use strict";var i=new Uint32Array((()=>{let e,t=[];for(var i=0;i<256;i++){e=i;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[i]=e}return t})());t.exports=(e,t,r,n)=>{let a=i,s=n+r;e^=-1;for(let i=n;i<s;i++)e=e>>>8^a[255&(e^t[i])];return~e}})),Oe=R(((e,t)=>{"use strict";t.exports=function(e,t){let i,r,n,a,s,o,l,f,d,h,c,u,w,b,m,g,k,_,p,v,y,x,E,R,T=e.state;i=e.next_in,E=e.input,r=i+(e.avail_in-5),n=e.next_out,R=e.output,a=n-(t-e.avail_out),s=n+(e.avail_out-257),o=T.dmax,l=T.wsize,f=T.whave,d=T.wnext,h=T.window,c=T.hold,u=T.bits,w=T.lencode,b=T.distcode,m=(1<<T.lenbits)-1,g=(1<<T.distbits)-1;e:do{u<15&&(c+=E[i++]<<u,u+=8,c+=E[i++]<<u,u+=8),k=w[c&m];t:for(;;){if(_=k>>>24,c>>>=_,u-=_,_=k>>>16&255,0===_)R[n++]=65535&k;else{if(!(16&_)){if(64&_){if(32&_){T.mode=16191;break e}e.msg="invalid literal/length code",T.mode=16209;break e}k=w[(65535&k)+(c&(1<<_)-1)];continue t}for(p=65535&k,_&=15,_&&(u<_&&(c+=E[i++]<<u,u+=8),p+=c&(1<<_)-1,c>>>=_,u-=_),u<15&&(c+=E[i++]<<u,u+=8,c+=E[i++]<<u,u+=8),k=b[c&g];;){if(_=k>>>24,c>>>=_,u-=_,_=k>>>16&255,16&_){if(v=65535&k,_&=15,u<_&&(c+=E[i++]<<u,u+=8,u<_&&(c+=E[i++]<<u,u+=8)),v+=c&(1<<_)-1,v>o){e.msg="invalid distance too far back",T.mode=16209;break e}if(c>>>=_,u-=_,_=n-a,v>_){if(_=v-_,_>f&&T.sane){e.msg="invalid distance too far back",T.mode=16209;break e}if(y=0,x=h,0===d){if(y+=l-_,_<p){p-=_;do{R[n++]=h[y++]}while(--_);y=n-v,x=R}}else if(d<_){if(y+=l+d-_,_-=d,_<p){p-=_;do{R[n++]=h[y++]}while(--_);if(y=0,d<p){_=d,p-=_;do{R[n++]=h[y++]}while(--_);y=n-v,x=R}}}else if(y+=d-_,_<p){p-=_;do{R[n++]=h[y++]}while(--_);y=n-v,x=R}for(;p>2;)R[n++]=x[y++],R[n++]=x[y++],R[n++]=x[y++],p-=3;p&&(R[n++]=x[y++],p>1&&(R[n++]=x[y++]))}else{y=n-v;do{R[n++]=R[y++],R[n++]=R[y++],R[n++]=R[y++],p-=3}while(p>2);p&&(R[n++]=R[y++],p>1&&(R[n++]=R[y++]))}break}if(64&_){e.msg="invalid distance code",T.mode=16209;break e}k=b[(65535&k)+(c&(1<<_)-1)]}}break}}while(i<r&&n<s);p=u>>3,i-=p,u-=p<<3,c&=(1<<u)-1,e.next_in=i,e.next_out=n,e.avail_in=i<r?r-i+5:5-(i-r),e.avail_out=n<s?s-n+257:257-(n-s),T.hold=c,T.bits=u}})),Me=R(((e,t)=>{"use strict";var i=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),r=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),n=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),a=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);t.exports=(e,t,s,o,l,f,d,h)=>{let c,u,w,b,m,g,k,_,p,v=h.bits,y=0,x=0,E=0,R=0,T=0,A=0,D=0,U=0,S=0,Z=0,I=null,O=new Uint16Array(16),N=new Uint16Array(16),C=null;for(y=0;y<=15;y++)O[y]=0;for(x=0;x<o;x++)O[t[s+x]]++;for(T=v,R=15;R>=1&&0===O[R];R--);if(T>R&&(T=R),0===R)return l[f++]=20971520,l[f++]=20971520,h.bits=1,0;for(E=1;E<R&&0===O[E];E++);for(T<E&&(T=E),U=1,y=1;y<=15;y++)if(U<<=1,U-=O[y],U<0)return-1;if(U>0&&(0===e||1!==R))return-1;for(N[1]=0,y=1;y<15;y++)N[y+1]=N[y]+O[y];for(x=0;x<o;x++)0!==t[s+x]&&(d[N[t[s+x]]++]=x);if(0===e?(I=C=d,g=20):1===e?(I=i,C=r,g=257):(I=n,C=a,g=0),Z=0,x=0,y=E,m=f,A=T,D=0,w=-1,S=1<<T,b=S-1,1===e&&S>852||2===e&&S>592)return 1;for(;;){k=y-D,d[x]+1<g?(_=0,p=d[x]):d[x]>=g?(_=C[d[x]-g],p=I[d[x]-g]):(_=96,p=0),c=1<<y-D,u=1<<A,E=u;do{u-=c,l[m+(Z>>D)+u]=k<<24|_<<16|p}while(0!==u);for(c=1<<y-1;Z&c;)c>>=1;if(0!==c?(Z&=c-1,Z+=c):Z=0,x++,0==--O[y]){if(y===R)break;y=t[s+d[x]]}if(y>T&&(Z&b)!==w){for(0===D&&(D=T),m+=E,A=y-D,U=1<<A;A+D<R&&(U-=O[A+D],!(U<=0));)A++,U<<=1;if(S+=1<<A,1===e&&S>852||2===e&&S>592)return 1;w=Z&b,l[w]=T<<24|A<<16|m-f}}return 0!==Z&&(l[m+Z]=y-D<<24|64<<16),h.bits=T,0}})),J=R(((e,t)=>{"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}})),bt=R(((e,t)=>{"use strict";var i=Ie(),r=De(),n=Oe(),a=Me(),{Z_FINISH:s,Z_BLOCK:o,Z_TREES:l,Z_OK:f,Z_STREAM_END:d,Z_NEED_DICT:h,Z_STREAM_ERROR:c,Z_DATA_ERROR:u,Z_MEM_ERROR:w,Z_BUF_ERROR:b,Z_DEFLATED:m}=J(),g=16180,k=16190,_=16191,p=16192,v=16194,y=16199,x=16200,E=16206,R=16209,T=16210,A=e=>(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24);function D(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var U,S,Z=e=>{if(!e)return 1;let t=e.state;return!t||t.strm!==e||t.mode<g||t.mode>16211?1:0},I=e=>{if(Z(e))return c;let t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=g,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(852),t.distcode=t.distdyn=new Int32Array(592),t.sane=1,t.back=-1,f},O=e=>{if(Z(e))return c;let t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,I(e)},N=(e,t)=>{let i;if(Z(e))return c;let r=e.state;return t<0?(i=0,t=-t):(i=5+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?c:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=i,r.wbits=t,O(e))},C=(e,t)=>{if(!e)return c;let i=new D;e.state=i,i.strm=e,i.window=null,i.mode=g;let r=N(e,t);return r!==f&&(e.state=null),r},B=!0,M=e=>{if(B){U=new Int32Array(512),S=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(a(1,e.lens,0,288,U,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;a(2,e.lens,0,32,S,0,e.work,{bits:5}),B=!1}e.lencode=U,e.lenbits=9,e.distcode=S,e.distbits=5},F=(e,t,i,r)=>{let n,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),r>=a.wsize?(a.window.set(t.subarray(i-a.wsize,i),0),a.wnext=0,a.whave=a.wsize):(n=a.wsize-a.wnext,n>r&&(n=r),a.window.set(t.subarray(i-r,i-r+n),a.wnext),(r-=n)?(a.window.set(t.subarray(i-r,i),0),a.wnext=r,a.whave=a.wsize):(a.wnext+=n,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=n))),0};t.exports.inflateReset=O,t.exports.inflateReset2=N,t.exports.inflateResetKeep=I,t.exports.inflateInit=e=>C(e,15),t.exports.inflateInit2=C,t.exports.inflate=(e,t)=>{let D,U,S,I,O,N,C,B,H,L,P,z,V,Y,j,G,K,J,Q,W,X,q,$,ee,te=0,ie=new Uint8Array(4),re=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Z(e)||!e.output||!e.input&&0!==e.avail_in)return c;D=e.state,D.mode===_&&(D.mode=p),O=e.next_out,S=e.output,C=e.avail_out,I=e.next_in,U=e.input,N=e.avail_in,B=D.hold,H=D.bits,L=N,P=C,q=f;e:for(;;)switch(D.mode){case g:if(0===D.wrap){D.mode=p;break}for(;H<16;){if(0===N)break e;N--,B+=U[I++]<<H,H+=8}if(2&D.wrap&&35615===B){0===D.wbits&&(D.wbits=15),D.check=0,ie[0]=255&B,ie[1]=B>>>8&255,D.check=r(D.check,ie,2,0),B=0,H=0,D.mode=16181;break}if(D.head&&(D.head.done=!1),!(1&D.wrap)||(((255&B)<<8)+(B>>8))%31){e.msg="incorrect header check",D.mode=R;break}if((15&B)!==m){e.msg="unknown compression method",D.mode=R;break}if(B>>>=4,H-=4,X=8+(15&B),0===D.wbits&&(D.wbits=X),X>15||X>D.wbits){e.msg="invalid window size",D.mode=R;break}D.dmax=1<<D.wbits,D.flags=0,e.adler=D.check=1,D.mode=512&B?16189:_,B=0,H=0;break;case 16181:for(;H<16;){if(0===N)break e;N--,B+=U[I++]<<H,H+=8}if(D.flags=B,(255&D.flags)!==m){e.msg="unknown compression method",D.mode=R;break}if(57344&D.flags){e.msg="unknown header flags set",D.mode=R;break}D.head&&(D.head.text=B>>8&1),512&D.flags&&4&D.wrap&&(ie[0]=255&B,ie[1]=B>>>8&255,D.check=r(D.check,ie,2,0)),B=0,H=0,D.mode=16182;case 16182:for(;H<32;){if(0===N)break e;N--,B+=U[I++]<<H,H+=8}D.head&&(D.head.time=B),512&D.flags&&4&D.wrap&&(ie[0]=255&B,ie[1]=B>>>8&255,ie[2]=B>>>16&255,ie[3]=B>>>24&255,D.check=r(D.check,ie,4,0)),B=0,H=0,D.mode=16183;case 16183:for(;H<16;){if(0===N)break e;N--,B+=U[I++]<<H,H+=8}D.head&&(D.head.xflags=255&B,D.head.os=B>>8),512&D.flags&&4&D.wrap&&(ie[0]=255&B,ie[1]=B>>>8&255,D.check=r(D.check,ie,2,0)),B=0,H=0,D.mode=16184;case 16184:if(1024&D.flags){for(;H<16;){if(0===N)break e;N--,B+=U[I++]<<H,H+=8}D.length=B,D.head&&(D.head.extra_len=B),512&D.flags&&4&D.wrap&&(ie[0]=255&B,ie[1]=B>>>8&255,D.check=r(D.check,ie,2,0)),B=0,H=0}else D.head&&(D.head.extra=null);D.mode=16185;case 16185:if(1024&D.flags&&(z=D.length,z>N&&(z=N),z&&(D.head&&(X=D.head.extra_len-D.length,D.head.extra||(D.head.extra=new Uint8Array(D.head.extra_len)),D.head.extra.set(U.subarray(I,I+z),X)),512&D.flags&&4&D.wrap&&(D.check=r(D.check,U,z,I)),N-=z,I+=z,D.length-=z),D.length))break e;D.length=0,D.mode=16186;case 16186:if(2048&D.flags){if(0===N)break e;z=0;do{X=U[I+z++],D.head&&X&&D.length<65536&&(D.head.name+=String.fromCharCode(X))}while(X&&z<N);if(512&D.flags&&4&D.wrap&&(D.check=r(D.check,U,z,I)),N-=z,I+=z,X)break e}else D.head&&(D.head.name=null);D.length=0,D.mode=16187;case 16187:if(4096&D.flags){if(0===N)break e;z=0;do{X=U[I+z++],D.head&&X&&D.length<65536&&(D.head.comment+=String.fromCharCode(X))}while(X&&z<N);if(512&D.flags&&4&D.wrap&&(D.check=r(D.check,U,z,I)),N-=z,I+=z,X)break e}else D.head&&(D.head.comment=null);D.mode=16188;case 16188:if(512&D.flags){for(;H<16;){if(0===N)break e;N--,B+=U[I++]<<H,H+=8}if(4&D.wrap&&B!==(65535&D.check)){e.msg="header crc mismatch",D.mode=R;break}B=0,H=0}D.head&&(D.head.hcrc=D.flags>>9&1,D.head.done=!0),e.adler=D.check=0,D.mode=_;break;case 16189:for(;H<32;){if(0===N)break e;N--,B+=U[I++]<<H,H+=8}e.adler=D.check=A(B),B=0,H=0,D.mode=k;case k:if(0===D.havedict)return e.next_out=O,e.avail_out=C,e.next_in=I,e.avail_in=N,D.hold=B,D.bits=H,h;e.adler=D.check=1,D.mode=_;case _:if(t===o||t===l)break e;case p:if(D.last){B>>>=7&H,H-=7&H,D.mode=E;break}for(;H<3;){if(0===N)break e;N--,B+=U[I++]<<H,H+=8}switch(D.last=1&B,B>>>=1,H-=1,3&B){case 0:D.mode=16193;break;case 1:if(M(D),D.mode=y,t===l){B>>>=2,H-=2;break e}break;case 2:D.mode=16196;break;case 3:e.msg="invalid block type",D.mode=R}B>>>=2,H-=2;break;case 16193:for(B>>>=7&H,H-=7&H;H<32;){if(0===N)break e;N--,B+=U[I++]<<H,H+=8}if((65535&B)!=(B>>>16^65535)){e.msg="invalid stored block lengths",D.mode=R;break}if(D.length=65535&B,B=0,H=0,D.mode=v,t===l)break e;case v:D.mode=16195;case 16195:if(z=D.length,z){if(z>N&&(z=N),z>C&&(z=C),0===z)break e;S.set(U.subarray(I,I+z),O),N-=z,I+=z,C-=z,O+=z,D.length-=z;break}D.mode=_;break;case 16196:for(;H<14;){if(0===N)break e;N--,B+=U[I++]<<H,H+=8}if(D.nlen=257+(31&B),B>>>=5,H-=5,D.ndist=1+(31&B),B>>>=5,H-=5,D.ncode=4+(15&B),B>>>=4,H-=4,D.nlen>286||D.ndist>30){e.msg="too many length or distance symbols",D.mode=R;break}D.have=0,D.mode=16197;case 16197:for(;D.have<D.ncode;){for(;H<3;){if(0===N)break e;N--,B+=U[I++]<<H,H+=8}D.lens[re[D.have++]]=7&B,B>>>=3,H-=3}for(;D.have<19;)D.lens[re[D.have++]]=0;if(D.lencode=D.lendyn,D.lenbits=7,$={bits:D.lenbits},q=a(0,D.lens,0,19,D.lencode,0,D.work,$),D.lenbits=$.bits,q){e.msg="invalid code lengths set",D.mode=R;break}D.have=0,D.mode=16198;case 16198:for(;D.have<D.nlen+D.ndist;){for(;te=D.lencode[B&(1<<D.lenbits)-1],j=te>>>24,G=te>>>16&255,K=65535&te,!(j<=H);){if(0===N)break e;N--,B+=U[I++]<<H,H+=8}if(K<16)B>>>=j,H-=j,D.lens[D.have++]=K;else{if(16===K){for(ee=j+2;H<ee;){if(0===N)break e;N--,B+=U[I++]<<H,H+=8}if(B>>>=j,H-=j,0===D.have){e.msg="invalid bit length repeat",D.mode=R;break}X=D.lens[D.have-1],z=3+(3&B),B>>>=2,H-=2}else if(17===K){for(ee=j+3;H<ee;){if(0===N)break e;N--,B+=U[I++]<<H,H+=8}B>>>=j,H-=j,X=0,z=3+(7&B),B>>>=3,H-=3}else{for(ee=j+7;H<ee;){if(0===N)break e;N--,B+=U[I++]<<H,H+=8}B>>>=j,H-=j,X=0,z=11+(127&B),B>>>=7,H-=7}if(D.have+z>D.nlen+D.ndist){e.msg="invalid bit length repeat",D.mode=R;break}for(;z--;)D.lens[D.have++]=X}}if(D.mode===R)break;if(0===D.lens[256]){e.msg="invalid code -- missing end-of-block",D.mode=R;break}if(D.lenbits=9,$={bits:D.lenbits},q=a(1,D.lens,0,D.nlen,D.lencode,0,D.work,$),D.lenbits=$.bits,q){e.msg="invalid literal/lengths set",D.mode=R;break}if(D.distbits=6,D.distcode=D.distdyn,$={bits:D.distbits},q=a(2,D.lens,D.nlen,D.ndist,D.distcode,0,D.work,$),D.distbits=$.bits,q){e.msg="invalid distances set",D.mode=R;break}if(D.mode=y,t===l)break e;case y:D.mode=x;case x:if(N>=6&&C>=258){e.next_out=O,e.avail_out=C,e.next_in=I,e.avail_in=N,D.hold=B,D.bits=H,n(e,P),O=e.next_out,S=e.output,C=e.avail_out,I=e.next_in,U=e.input,N=e.avail_in,B=D.hold,H=D.bits,D.mode===_&&(D.back=-1);break}for(D.back=0;te=D.lencode[B&(1<<D.lenbits)-1],j=te>>>24,G=te>>>16&255,K=65535&te,!(j<=H);){if(0===N)break e;N--,B+=U[I++]<<H,H+=8}if(G&&!(240&G)){for(J=j,Q=G,W=K;te=D.lencode[W+((B&(1<<J+Q)-1)>>J)],j=te>>>24,G=te>>>16&255,K=65535&te,!(J+j<=H);){if(0===N)break e;N--,B+=U[I++]<<H,H+=8}B>>>=J,H-=J,D.back+=J}if(B>>>=j,H-=j,D.back+=j,D.length=K,0===G){D.mode=16205;break}if(32&G){D.back=-1,D.mode=_;break}if(64&G){e.msg="invalid literal/length code",D.mode=R;break}D.extra=15&G,D.mode=16201;case 16201:if(D.extra){for(ee=D.extra;H<ee;){if(0===N)break e;N--,B+=U[I++]<<H,H+=8}D.length+=B&(1<<D.extra)-1,B>>>=D.extra,H-=D.extra,D.back+=D.extra}D.was=D.length,D.mode=16202;case 16202:for(;te=D.distcode[B&(1<<D.distbits)-1],j=te>>>24,G=te>>>16&255,K=65535&te,!(j<=H);){if(0===N)break e;N--,B+=U[I++]<<H,H+=8}if(!(240&G)){for(J=j,Q=G,W=K;te=D.distcode[W+((B&(1<<J+Q)-1)>>J)],j=te>>>24,G=te>>>16&255,K=65535&te,!(J+j<=H);){if(0===N)break e;N--,B+=U[I++]<<H,H+=8}B>>>=J,H-=J,D.back+=J}if(B>>>=j,H-=j,D.back+=j,64&G){e.msg="invalid distance code",D.mode=R;break}D.offset=K,D.extra=15&G,D.mode=16203;case 16203:if(D.extra){for(ee=D.extra;H<ee;){if(0===N)break e;N--,B+=U[I++]<<H,H+=8}D.offset+=B&(1<<D.extra)-1,B>>>=D.extra,H-=D.extra,D.back+=D.extra}if(D.offset>D.dmax){e.msg="invalid distance too far back",D.mode=R;break}D.mode=16204;case 16204:if(0===C)break e;if(z=P-C,D.offset>z){if(z=D.offset-z,z>D.whave&&D.sane){e.msg="invalid distance too far back",D.mode=R;break}z>D.wnext?(z-=D.wnext,V=D.wsize-z):V=D.wnext-z,z>D.length&&(z=D.length),Y=D.window}else Y=S,V=O-D.offset,z=D.length;z>C&&(z=C),C-=z,D.length-=z;do{S[O++]=Y[V++]}while(--z);0===D.length&&(D.mode=x);break;case 16205:if(0===C)break e;S[O++]=D.length,C--,D.mode=x;break;case E:if(D.wrap){for(;H<32;){if(0===N)break e;N--,B|=U[I++]<<H,H+=8}if(P-=C,e.total_out+=P,D.total+=P,4&D.wrap&&P&&(e.adler=D.check=D.flags?r(D.check,S,P,O-P):i(D.check,S,P,O-P)),P=C,4&D.wrap&&(D.flags?B:A(B))!==D.check){e.msg="incorrect data check",D.mode=R;break}B=0,H=0}D.mode=16207;case 16207:if(D.wrap&&D.flags){for(;H<32;){if(0===N)break e;N--,B+=U[I++]<<H,H+=8}if(4&D.wrap&&B!==(4294967295&D.total)){e.msg="incorrect length check",D.mode=R;break}B=0,H=0}D.mode=16208;case 16208:q=d;break e;case R:q=u;break e;case T:return w;default:return c}return e.next_out=O,e.avail_out=C,e.next_in=I,e.avail_in=N,D.hold=B,D.bits=H,(D.wsize||P!==e.avail_out&&D.mode<R&&(D.mode<E||t!==s))&&F(e,e.output,e.next_out,P-e.avail_out)?(D.mode=T,w):(L-=e.avail_in,P-=e.avail_out,e.total_in+=L,e.total_out+=P,D.total+=P,4&D.wrap&&P&&(e.adler=D.check=D.flags?r(D.check,S,P,e.next_out-P):i(D.check,S,P,e.next_out-P)),e.data_type=D.bits+(D.last?64:0)+(D.mode===_?128:0)+(D.mode===y||D.mode===v?256:0),(0===L&&0===P||t===s)&&q===f&&(q=b),q)},t.exports.inflateEnd=e=>{if(Z(e))return c;let t=e.state;return t.window&&(t.window=null),e.state=null,f},t.exports.inflateGetHeader=(e,t)=>{if(Z(e))return c;let i=e.state;return 2&i.wrap?(i.head=t,t.done=!1,f):c},t.exports.inflateSetDictionary=(e,t)=>{let r,n,a,s=t.length;return Z(e)||(r=e.state,0!==r.wrap&&r.mode!==k)?c:r.mode===k&&(n=1,n=i(n,t,s,0),n!==r.check)?u:(a=F(e,t,s,s),a?(r.mode=T,w):(r.havedict=1,f))},t.exports.inflateInfo="pako inflate (from Nodeca project)"})),_t=R(((e,t)=>{"use strict";var i=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);t.exports.assign=function(e){let t=Array.prototype.slice.call(arguments,1);for(;t.length;){let r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(let t in r)i(r,t)&&(e[t]=r[t])}}return e},t.exports.flattenChunks=e=>{let t=0;for(let i=0,r=e.length;i<r;i++)t+=e[i].length;let i=new Uint8Array(t);for(let t=0,r=0,n=e.length;t<n;t++){let n=e[t];i.set(n,r),r+=n.length}return i}})),kt=R(((e,t)=>{"use strict";var i=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{i=!1}var r=new Uint8Array(256);for(let e=0;e<256;e++)r[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;r[254]=r[254]=1,t.exports.string2buf=e=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(e);let t,i,r,n,a,s=e.length,o=0;for(n=0;n<s;n++)i=e.charCodeAt(n),55296==(64512&i)&&n+1<s&&(r=e.charCodeAt(n+1),56320==(64512&r)&&(i=65536+(i-55296<<10)+(r-56320),n++)),o+=i<128?1:i<2048?2:i<65536?3:4;for(t=new Uint8Array(o),a=0,n=0;a<o;n++)i=e.charCodeAt(n),55296==(64512&i)&&n+1<s&&(r=e.charCodeAt(n+1),56320==(64512&r)&&(i=65536+(i-55296<<10)+(r-56320),n++)),i<128?t[a++]=i:i<2048?(t[a++]=192|i>>>6,t[a++]=128|63&i):i<65536?(t[a++]=224|i>>>12,t[a++]=128|i>>>6&63,t[a++]=128|63&i):(t[a++]=240|i>>>18,t[a++]=128|i>>>12&63,t[a++]=128|i>>>6&63,t[a++]=128|63&i);return t},t.exports.buf2string=(e,t)=>{let n=t||e.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(e.subarray(0,t));let a,s,o=new Array(2*n);for(s=0,a=0;a<n;){let t=e[a++];if(t<128){o[s++]=t;continue}let i=r[t];if(i>4)o[s++]=65533,a+=i-1;else{for(t&=2===i?31:3===i?15:7;i>1&&a<n;)t=t<<6|63&e[a++],i--;i>1?o[s++]=65533:t<65536?o[s++]=t:(t-=65536,o[s++]=55296|t>>10&1023,o[s++]=56320|1023&t)}}return((e,t)=>{if(t<65534&&e.subarray&&i)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let r="";for(let i=0;i<t;i++)r+=String.fromCharCode(e[i]);return r})(o,s)},t.exports.utf8border=(e,t)=>{(t=t||e.length)>e.length&&(t=e.length);let i=t-1;for(;i>=0&&128==(192&e[i]);)i--;return i<0||0===i?t:i+r[e[i]]>t?i:t}})),Et=R(((e,t)=>{"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}})),St=R(((e,t)=>{"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}})),vt=R(((e,t)=>{"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}})),Rt=R(((e,t)=>{"use strict";var i=bt(),r=_t(),n=kt(),a=Et(),s=St(),o=vt(),l=Object.prototype.toString,{Z_NO_FLUSH:f,Z_FINISH:d,Z_OK:h,Z_STREAM_END:c,Z_NEED_DICT:u,Z_STREAM_ERROR:w,Z_DATA_ERROR:b,Z_MEM_ERROR:m}=J();function g(e){this.options=r.assign({chunkSize:65536,windowBits:15,to:""},e||{});let t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(15&t.windowBits||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;let f=i.inflateInit2(this.strm,t.windowBits);if(f!==h)throw new Error(a[f]);if(this.header=new o,i.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=n.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(f=i.inflateSetDictionary(this.strm,t.dictionary),f!==h)))throw new Error(a[f])}function k(e,t){let i=new g(t);if(i.push(e),i.err)throw i.msg||a[i.err];return i.result}g.prototype.push=function(e,t){let r,a,s,o=this.strm,g=this.options.chunkSize,k=this.options.dictionary;if(this.ended)return!1;for(a=t===~~t?t:!0===t?d:f,"[object ArrayBuffer]"===l.call(e)?o.input=new Uint8Array(e):o.input=e,o.next_in=0,o.avail_in=o.input.length;;){for(0===o.avail_out&&(o.output=new Uint8Array(g),o.next_out=0,o.avail_out=g),r=i.inflate(o,a),r===u&&k&&(r=i.inflateSetDictionary(o,k),r===h?r=i.inflate(o,a):r===b&&(r=u));o.avail_in>0&&r===c&&o.state.wrap>0&&0!==e[o.next_in];)i.inflateReset(o),r=i.inflate(o,a);switch(r){case w:case b:case u:case m:return this.onEnd(r),this.ended=!0,!1}if(s=o.avail_out,o.next_out&&(0===o.avail_out||r===c))if("string"===this.options.to){let e=n.utf8border(o.output,o.next_out),t=o.next_out-e,i=n.buf2string(o.output,e);o.next_out=t,o.avail_out=g-t,t&&o.output.set(o.output.subarray(e,e+t),0),this.onData(i)}else this.onData(o.output.length===o.next_out?o.output:o.output.subarray(0,o.next_out));if(r!==h||0!==s){if(r===c)return r=i.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,!0;if(0===o.avail_in)break}}return!0},g.prototype.onData=function(e){this.chunks.push(e)},g.prototype.onEnd=function(e){e===h&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.exports.Inflate=g,t.exports.inflate=k,t.exports.inflateRaw=function(e,t){return(t=t||{}).raw=!0,k(e,t)},t.exports.ungzip=k,t.exports.constants=J()})),Nt=1953029805,Mt=2917034100;function oe(e,t){if(oe.passThroughDataForTesting)return t;ae.typeOf.object("key",e),ae.typeOf.object("data",t);let i=e.byteLength;if(0===i||i%4!=0)throw new D("The length of key must be greater than 0 and a multiple of 4.");let r=new DataView(t),n=r.getUint32(0,!0);if(n===Nt||n===Mt)return t;let a,s=new DataView(e),o=0,l=t.byteLength,f=l-l%8,d=i,h=8;for(;o<f;)for(h=(h+8)%24,a=h;o<f&&a<d;)r.setUint32(o,r.getUint32(o,!0)^s.getUint32(a,!0),!0),r.setUint32(o+4,r.getUint32(o+4,!0)^s.getUint32(a+4,!0),!0),o+=8,a+=24;if(o<l)for(a>=d&&(h=(h+8)%24,a=h);o<l;)r.setUint8(o,r.getUint8(o)^s.getUint8(a)),o++,a++}oe.passThroughDataForTesting=!1;var Te=oe;function Zt(e,t){return!!(e&t)}var F=Zt,Bt=[1,2,4,8],ve=15,Ct=16,Lt=64,Pt=128;function N(e,t,i,r,n,a){this._bits=e,this.cnodeVersion=t,this.imageryVersion=i,this.terrainVersion=r,this.imageryProvider=n,this.terrainProvider=a,this.ancestorHasTerrain=!1,this.terrainState=void 0}N.clone=function(e,t){return me(t)?(t._bits=e._bits,t.cnodeVersion=e.cnodeVersion,t.imageryVersion=e.imageryVersion,t.terrainVersion=e.terrainVersion,t.imageryProvider=e.imageryProvider,t.terrainProvider=e.terrainProvider):t=new N(e._bits,e.cnodeVersion,e.imageryVersion,e.terrainVersion,e.imageryProvider,e.terrainProvider),t.ancestorHasTerrain=e.ancestorHasTerrain,t.terrainState=e.terrainState,t},N.prototype.setParent=function(e){this.ancestorHasTerrain=e.ancestorHasTerrain||this.hasTerrain()},N.prototype.hasSubtree=function(){return F(this._bits,Ct)},N.prototype.hasImagery=function(){return F(this._bits,Lt)},N.prototype.hasTerrain=function(){return F(this._bits,Pt)},N.prototype.hasChildren=function(){return F(this._bits,ve)},N.prototype.hasChild=function(e){return F(this._bits,Bt[e])},N.prototype.getChildBitmask=function(){return this._bits&ve};var ye=N,Ut=Ot(Rt(),1),G=Uint16Array.BYTES_PER_ELEMENT,H=Int32Array.BYTES_PER_ELEMENT,Y=Uint32Array.BYTES_PER_ELEMENT,C={METADATA:0,TERRAIN:1,DBROOT:2};function Si(e,t){let i=C.fromString(e.type),r=e.buffer;Te(e.key,r);let n=Di(r);r=n.buffer;let a=n.length;switch(i){case C.METADATA:return vi(r,a,e.quadKey);case C.TERRAIN:return Ii(r,a,t);case C.DBROOT:return t.push(r),{buffer:r}}}C.fromString=function(e){return"Metadata"===e?C.METADATA:"Terrain"===e?C.TERRAIN:"DbRoot"===e?C.DBROOT:void 0};var Ti=32301;function vi(e,t,i){let r=new DataView(e),n=0,a=r.getUint32(n,!0);if(n+=Y,a!==Ti)throw new D("Invalid magic");let s=r.getUint32(n,!0);if(n+=Y,1!==s)throw new D("Invalid data type. Must be 1 for QuadTreePacket");let o=r.getUint32(n,!0);if(n+=Y,2!==o)throw new D("Invalid QuadTreePacket version. Only version 2 is supported.");let l=r.getInt32(n,!0);n+=H;let f=r.getInt32(n,!0);if(n+=H,32!==f)throw new D("Invalid instance size.");let d=r.getInt32(n,!0);n+=H;let h=r.getInt32(n,!0);n+=H;let c=r.getInt32(n,!0);if(n+=H,d!==l*f+n)throw new D("Invalid dataBufferOffset");if(d+h+c!==t)throw new D("Invalid packet offsets");let u=[];for(let e=0;e<l;++e){let e=r.getUint8(n);++n,++n;let t=r.getUint16(n,!0);n+=G;let i=r.getUint16(n,!0);n+=G;let a=r.getUint16(n,!0);n+=G,n+=G,n+=G,n+=H,n+=H,n+=8;let s=r.getUint8(n++),o=r.getUint8(n++);n+=G,u.push(new ye(e,t,i,a,s,o))}let w=[],b=0,m=0,g=u[b++];return""===i?++m:w[i]=g,function e(t,i,r){let n=!1;if(4===r){if(i.hasSubtree())return;n=!0}for(let a=0;a<4;++a){let s=t+a.toString();if(n)w[s]=null;else if(r<4)if(i.hasChild(a)){if(b===l)return void console.log("Incorrect number of instances");let t=u[b++];w[s]=t,e(s,t,r+1)}else w[s]=null}}(i,g,m),w}var yi=5,Ai=4;function Ii(e,t,i){let r=new DataView(e),n=function(e){for(let i=0;i<Ai;++i){let i=r.getUint32(e,!0);if(e+=Y,(e+=i)>t)throw new D("Malformed terrain packet found.")}return e},a=0,s=[];for(;s.length<yi;){let t=a;a=n(a);let r=e.slice(t,a);i.push(r),s.push(r)}return s}var Dt=1953029805,Ri=2917034100;function Di(e){let t=new DataView(e),i=0,r=t.getUint32(i,!0);if(i+=Y,r!==Dt&&r!==Ri)throw new D("Invalid magic");let n=t.getUint32(i,r===Dt);i+=Y;let a=new Uint8Array(e,i),s=Ut.default.inflate(a);if(s.length!==n)throw new D("Size of packet doesn't match header");return s}var en=Se(Si);export{en as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.124
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see decodeI3S.js.LICENSE.txt */
|
|
2
|
+
import{a as xt}from"./chunk-JR7WFPVR.js";import{a as P}from"./chunk-JXLT7VPX.js";import{a as yt}from"./chunk-4BYMTYMT.js";import{a as ht}from"./chunk-UJMUN4NO.js";import{a as g,b as ot,d as st,e as it}from"./chunk-S4VBGY2U.js";import{a as M}from"./chunk-UCTPWOTZ.js";import{a as ft}from"./chunk-N3A5CZ2S.js";import{b as lt}from"./chunk-G75U3WZT.js";import{d as mt,e as h}from"./chunk-3THTQ4QB.js";var at=mt(xt(),1);function wt(t){return lt.defined("value",t),t<=.04045?.07739938080495357*t:Math.pow(.9478672985781991*(t+.055),2.4)}var ut,k=wt;function It(t,e,n,r,o,a){return(n*(1-t)+r*t)*(1-e)+(o*(1-t)+a*t)*e}function H(t,e,n,r){return r[t+e*n]}function At(t,e,n){let r=n.nativeExtent,o=(t-r.west)/(r.east-r.west)*(n.width-1),a=(e-r.south)/(r.north-r.south)*(n.height-1),i=Math.floor(o),l=Math.floor(a);o-=i,a-=l;let s=i<n.width?i+1:i,u=l<n.height?l+1:l;l=n.height-1-l,u=n.height-1-u;let f=It(o,a,H(i,l,n.width,n.buffer),H(s,l,n.width,n.buffer),H(i,u,n.width,n.buffer),H(s,u,n.width,n.buffer));return f=f*n.scale+n.offset,f}function bt(t,e,n){for(let r=0;r<n.length;r++){let o=n[r].nativeExtent,a=new g;if("WebMercator"===n[r].projectionType){let o=n[r].projection._ellipsoid._radii;a=new ht(new st(o.x,o.y,o.z)).project(new ot(t,e,0))}else a.x=t,a.y=e;if(a.x>o.west&&a.x<o.east&&a.y>o.south&&a.y<o.north)return At(a.x,a.y,n[r])}return 0}function Lt(t,e,n,r,o,a,i){if(i)return;let l=bt(o.longitude,o.latitude,a);for(let i=0;i<t;++i){let t=bt(o.longitude+M.toRadians(n*e[3*i]),o.latitude+M.toRadians(r*e[3*i+1]),a);e[3*i+2]+=t-l}}function Ot(t,e,n,r,o,a,i,l,s){if(0===t||!h(e)||0===e.length)return;let u=new st(Math.sqrt(i.x),Math.sqrt(i.y),Math.sqrt(i.z));for(let i=0;i<t;++i){let t=3*i,f=t+1,c=t+2,y=new ot;y.longitude=r.longitude+M.toRadians(l*e[t]),y.latitude=r.latitude+M.toRadians(s*e[f]),y.height=r.height+e[c];let p={};u.cartographicToCartesian(y,p),p.x-=o.x,p.y-=o.y,p.z-=o.z;let b={};if(it.multiplyByVector(a,p,b),e[t]=b.x,e[f]=b.y,e[c]=b.z,h(n)){let e=new g(n[t],n[f],n[c]),r={};it.multiplyByVector(a,e,r),n[t]=r.x,n[f]=r.y,n[c]=r.z}}}function Tt(t,e,n){for(let r=0;r<t;++r){let t=n[4*r]/65535,o=n[4*r+1]/65535,a=(n[4*r+2]-n[4*r])/65535,i=(n[4*r+3]-n[4*r+1])/65535;e[2*r]*=a,e[2*r]+=t,e[2*r+1]*=i,e[2*r+1]+=o}}function Ct(t,e,n,r){let o=new Uint32Array(t),a=h(e)?t=>e[t]:t=>t,i=0;if(r&&h(n)){let e=t=>n[4*a(t)+3]<255;for(let n=0;n<t;n+=3)!e(n)&&!e(n+1)&&!e(n+2)&&(o[i++]=a(n),o[i++]=a(n+1),o[i++]=a(n+2));if(i>0){let n=i;for(let r=0;r<t;r+=3)(e(r)||e(r+1)||e(r+2))&&(o[n++]=a(r),o[n++]=a(r+1),o[n++]=a(r+2))}else for(let e=0;e<t;++e)o[e]=a(e)}else{i=t;for(let e=0;e<t;++e)o[e]=a(e)}return{indexArray:o,transparentVertexOffset:i}}function Ft(t,e,n){let r=e[n];if(h(r))return r;let o=e[n]={positions:{},indices:{},edges:{}},a=ft(t[n],t.default);return o.hasOutline=h(a?.edges),o}function Ut(t,e,n,r){if(!h(t[n])){let o=3*n,a=e;for(let t=0;t<3;t++){let e=r[o+t];h(a[e])||(a[e]={}),a=a[e]}h(a.index)||(a.index=n),t[n]=a.index}}function Vt(t,e,n,r,o,a){let i,l;r<o?(i=r,l=o):(i=o,l=r);let s=t[i];h(s)||(s=t[i]={});let u=s[l];h(u)||(u=s[l]={normalsIndex:[],outlines:[]}),u.normalsIndex.push(a),(0===u.outlines.length||e!==r||n!==o)&&u.outlines.push(e,n)}function Et(t,e,n,r){let o=[];for(let a=0;a<n.length;a+=3){let i=Ft(t,o,h(e)?e[n[a]]:"default");if(!i.hasOutline)continue;let l=i.indices,s=i.positions;for(let t=0;t<3;t++)Ut(l,s,n[a+t],r);let u=i.edges;for(let t=0;t<3;t++){let e=n[a+t],r=n[a+(t+1)%3];Vt(u,e,r,l[e],l[r],a)}}return o}var O=new g,X=new g,Y=new g;function gt(t,e,n,r){let o=3*n[e],a=3*n[e+1],i=3*n[e+2];g.fromArray(r,o,O),g.fromArray(r,a,X),g.fromArray(r,i,Y),g.subtract(X,O,X),g.subtract(Y,O,Y),g.cross(X,Y,O);let l=g.magnitude(O);0!==l&&g.divideByScalar(O,l,O);let s=3*e,u=3*(e+1),f=3*(e+2);g.pack(O,t,s),g.pack(O,t,u),g.pack(O,t,f)}var z=new g,ct=new g;function _t(t,e,n){g.fromArray(t,e,z),g.fromArray(t,n,ct);let r=g.dot(z,ct),o=g.magnitude(g.cross(z,ct,z));return Math.atan2(o,r)<.25}function Rt(t,e,n,r,o){if(e.normalsIndex.length>1){let t=r.length===o.length;for(let a=0;a<e.normalsIndex.length;a++){let i=e.normalsIndex[a];if(h(o[3*i])||gt(o,i,n,r),0!==a)for(let r=0;r<a;r++){let a=e.normalsIndex[r];if(_t(o,t?3*n[i]:3*i,t?3*n[a]:3*a))return}}}t.push(...e.outlines)}function Nt(t,e,n,r,o){let a=Object.keys(e);for(let i=0;i<a.length;i++){let l=e[a[i]],s=Object.keys(l);for(let e=0;e<s.length;e++)Rt(t,l[s[e]],n,r,o)}}function Bt(t,e,n,r){let o=[],a=Object.keys(t);for(let i=0;i<a.length;i++)Nt(o,t[a[i]].edges,e,n,r);return o}function Gt(t,e,n,r,o){if(!h(t)||0===Object.keys(t).length)return;let a=Et(t,e,n,r);(!h(o)||3*n.length!==o.length)&&(o=[]);let i=Bt(a,n,r,o);return i.length>0?new Uint32Array(i):void 0}function St(t){let e=new Float32Array(t.length);for(let n=0;n<t.length;n+=4)e[n]=k(P.byteToFloat(t[n])),e[n+1]=k(P.byteToFloat(t[n+1])),e[n+2]=k(P.byteToFloat(t[n+2])),e[n+3]=P.byteToFloat(t[n+3]);return e}function vt(t,e,n,r,o,a,i){let l={normals:void 0,positions:void 0,uv0s:void 0,colors:void 0,featureIndex:void 0,vertexCount:void 0};if(0===t||!h(n)||0===n.length||h(r))return l;if(h(e)){l.vertexCount=e.length,l.positions=new Float32Array(3*e.length),l.uv0s=h(o)?new Float32Array(2*e.length):void 0,l.colors=h(a)?new Uint8Array(4*e.length):void 0,l.featureIndex=h(i)?new Array(e.length):void 0;for(let t=0;t<e.length;t++){let r=e[t];l.positions[3*t]=n[3*r],l.positions[3*t+1]=n[3*r+1],l.positions[3*t+2]=n[3*r+2],h(l.uv0s)&&(l.uv0s[2*t]=o[2*r],l.uv0s[2*t+1]=o[2*r+1]),h(l.colors)&&(l.colors[4*t]=a[4*r],l.colors[4*t+1]=a[4*r+1],l.colors[4*t+2]=a[4*r+2],l.colors[4*t+3]=a[4*r+3]),h(l.featureIndex)&&(l.featureIndex[t]=i[r])}t=e.length,n=l.positions}e=new Array(t);for(let n=0;n<t;n++)e[n]=n;l.normals=new Float32Array(3*e.length);for(let t=0;t<e.length;t+=3)gt(l.normals,t,e,n);return l}function Mt(t,e,n,r,o,a,i,l){if(0===t||!h(n)||0===n.length)return{buffers:[],bufferViews:[],accessors:[],meshes:[],nodes:[],nodesInScene:[]};let s=[],u=[],f=[],c=[],y=[],g=[],p={},b=[];h(e)&&(t=e.length);let{indexArray:d,transparentVertexOffset:m}=Ct(t,e,a,l.splitGeometryByColorTransparency),w=new Blob([d],{type:"application/binary"}),A=URL.createObjectURL(w),x=t,I=l.enableFeatures&&h(i)?new Float32Array(i.length):void 0,v=0;if(h(I))for(let t=0;t<i.length;++t){I[t]=i[t];let e=i[t]+1;v<e&&(v=e)}let O,L=Gt(l.symbologyData,i,d,n,r);if(h(L)){let t=new Blob([L],{type:"application/binary"});O=URL.createObjectURL(t)}let C=n.subarray(0,3*x),T=new Blob([C],{type:"application/binary"}),U=URL.createObjectURL(T),R=Number.POSITIVE_INFINITY,_=Number.NEGATIVE_INFINITY,V=Number.POSITIVE_INFINITY,F=Number.NEGATIVE_INFINITY,G=Number.POSITIVE_INFINITY,E=Number.NEGATIVE_INFINITY;for(let t=0;t<C.length/3;t++)R=Math.min(R,C[3*t+0]),_=Math.max(_,C[3*t+0]),V=Math.min(V,C[3*t+1]),F=Math.max(F,C[3*t+1]),G=Math.min(G,C[3*t+2]),E=Math.max(E,C[3*t+2]);let M,N=r?r.subarray(0,3*x):void 0;if(h(N)){let t=new Blob([N],{type:"application/binary"});M=URL.createObjectURL(t)}let D,j=o?o.subarray(0,2*x):void 0;if(h(j)){let t=new Blob([j],{type:"application/binary"});D=URL.createObjectURL(t)}let B,k=h(a)?St(a.subarray(0,4*x)):void 0;if(h(k)){let t=new Blob([k],{type:"application/binary"});B=URL.createObjectURL(t)}let S,P=h(I)?I.subarray(0,x):void 0;if(h(P)){let t=new Blob([P],{type:"application/binary"});S=URL.createObjectURL(t)}let Y,X=h(I)?new Float32Array(v):void 0;if(h(X)){for(let t=0;t<X.length;++t)X[t]=t;let t=new Blob([X],{type:"application/binary"});Y=URL.createObjectURL(t)}let z={},H={};z.POSITION=f.length,s.push({uri:U,byteLength:C.byteLength}),u.push({buffer:s.length-1,byteOffset:0,byteLength:C.byteLength,target:34962}),f.push({bufferView:u.length-1,byteOffset:0,componentType:5126,count:C.length/3,type:"VEC3",max:[R,V,G],min:[_,F,E]}),h(M)&&(z.NORMAL=f.length,s.push({uri:M,byteLength:N.byteLength}),u.push({buffer:s.length-1,byteOffset:0,byteLength:N.byteLength,target:34962}),f.push({bufferView:u.length-1,byteOffset:0,componentType:5126,count:N.length/3,type:"VEC3"})),h(D)&&(z.TEXCOORD_0=f.length,s.push({uri:D,byteLength:j.byteLength}),u.push({buffer:s.length-1,byteOffset:0,byteLength:j.byteLength,target:34962}),f.push({bufferView:u.length-1,byteOffset:0,componentType:5126,count:j.length/2,type:"VEC2"})),h(B)&&(z.COLOR_0=f.length,s.push({uri:B,byteLength:k.byteLength}),u.push({buffer:s.length-1,byteOffset:0,byteLength:k.byteLength,target:34962}),f.push({bufferView:u.length-1,byteOffset:0,componentType:5126,count:k.length/4,type:"VEC4"})),h(S)&&(z._FEATURE_ID_0=f.length,s.push({uri:S,byteLength:P.byteLength}),u.push({buffer:s.length-1,byteOffset:0,byteLength:P.byteLength,target:34963}),f.push({bufferView:u.length-1,byteOffset:0,componentType:5126,count:P.length,type:"SCALAR"}),H.EXT_mesh_features={featureIds:[{attribute:0,propertyTable:0,featureCount:v}]},b.push("EXT_mesh_features")),h(Y)&&(s.push({uri:Y,byteLength:X.byteLength}),u.push({buffer:s.length-1,byteOffset:0,byteLength:X.byteLength,target:34963}),p.EXT_structural_metadata={schema:{id:"i3s-metadata-schema-001",name:"I3S metadata schema 001",description:"The schema for I3S metadata",version:"1.0",classes:{feature:{name:"feature",description:"Feature metadata",properties:{index:{description:"The feature index",type:"SCALAR",componentType:"FLOAT32",required:!0}}}}},propertyTables:[{name:"feature-indices-mapping",class:"feature",count:v,properties:{index:{values:u.length-1}}}]},b.push("EXT_structural_metadata")),h(O)&&(s.push({uri:O,byteLength:L.byteLength}),u.push({buffer:s.length-1,byteOffset:0,byteLength:L.byteLength,target:34963}),f.push({bufferView:u.length-1,byteOffset:0,componentType:5125,count:L.length,type:"SCALAR"}),H.CESIUM_primitive_outline={indices:f.length-1},b.push("CESIUM_primitive_outline")),s.push({uri:A,byteLength:d.byteLength}),u.push({buffer:s.length-1,byteOffset:0,byteLength:d.byteLength,target:34963});let W=[];return m>0&&(f.push({bufferView:u.length-1,byteOffset:0,componentType:5125,count:m,type:"SCALAR"}),W.push({attributes:z,indices:f.length-1,material:W.length,extensions:H})),m<t&&(f.push({bufferView:u.length-1,byteOffset:4*m,componentType:5125,count:t-m,type:"SCALAR"}),W.push({attributes:z,indices:f.length-1,material:W.length,extensions:H,extra:{isTransparent:!0}})),c.push({primitives:W}),g.push(0),y.push({mesh:0}),{buffers:s,bufferViews:u,accessors:f,meshes:c,nodes:y,nodesInScene:g,rootExtensions:p,extensionsUsed:b}}function Pt(t,e,n,r){let o=new Uint8Array(t,0,5);return 68===o[0]&&82===o[1]&&65===o[2]&&67===o[3]&&79===o[4]?jt(t,n):Ht(t,e,n,r)}function jt(t){let e=ut,n=new e.DecoderBuffer,r=new Uint8Array(t);n.Init(r,r.length);let o,a,i=new e.Decoder,l=i.GetEncodedGeometryType(n),s=new e.MetadataQuerier;l===e.TRIANGULAR_MESH&&(o=new e.Mesh,a=i.DecodeBufferToMesh(n,o));let u={vertexCount:[0],featureCount:0};if(h(a)&&a.ok()&&0!==o.ptr){let t=o.num_faces(),n=o.num_attributes(),r=o.num_points();u.indices=new Uint32Array(3*t);let a=u.indices;u.vertexCount[0]=r,u.scale_x=1,u.scale_y=1;let l=new e.DracoInt32Array(3);for(let e=0;e<t;++e)i.GetFaceFromMesh(o,e,l),a[3*e]=l.GetValue(0),a[3*e+1]=l.GetValue(1),a[3*e+2]=l.GetValue(2);e.destroy(l);for(let t=0;t<n;++t){let n=i.GetAttribute(o,t),a=kt(e,i,o,n,r),l=n.attribute_type(),f="unknown";l===e.POSITION?f="positions":l===e.NORMAL?f="normals":l===e.COLOR?f="colors":l===e.TEX_COORD&&(f="uv0s");let c=i.GetAttributeMetadata(o,t);if(0!==c.ptr){let t=s.NumEntries(c);for(let e=0;e<t;++e){let t=s.GetEntryName(c,e);"i3s-scale_x"===t?u.scale_x=s.GetDoubleEntry(c,"i3s-scale_x"):"i3s-scale_y"===t?u.scale_y=s.GetDoubleEntry(c,"i3s-scale_y"):"i3s-attribute-type"===t&&(f=s.GetStringEntry(c,"i3s-attribute-type"))}}h(u[f])&&console.log("Attribute already exists",f),u[f]=a,"feature-index"===f&&u.featureCount++}e.destroy(o)}return e.destroy(s),e.destroy(i),u}function kt(t,e,n,r,o){let a,i=r.num_components()*o,l=[function(){},function(){a=new t.DracoInt8Array(i),e.GetAttributeInt8ForAllPoints(n,r,a)||console.error("Bad stream");let o=new Int8Array(i);for(let t=0;t<i;++t)o[t]=a.GetValue(t);return o},function(){a=new t.DracoInt8Array(i),e.GetAttributeUInt8ForAllPoints(n,r,a)||console.error("Bad stream");let o=new Uint8Array(i);for(let t=0;t<i;++t)o[t]=a.GetValue(t);return o},function(){a=new t.DracoInt16Array(i),e.GetAttributeInt16ForAllPoints(n,r,a)||console.error("Bad stream");let o=new Int16Array(i);for(let t=0;t<i;++t)o[t]=a.GetValue(t);return o},function(){a=new t.DracoInt16Array(i),e.GetAttributeUInt16ForAllPoints(n,r,a)||console.error("Bad stream");let o=new Uint16Array(i);for(let t=0;t<i;++t)o[t]=a.GetValue(t);return o},function(){a=new t.DracoInt32Array(i),e.GetAttributeInt32ForAllPoints(n,r,a)||console.error("Bad stream");let o=new Int32Array(i);for(let t=0;t<i;++t)o[t]=a.GetValue(t);return o},function(){a=new t.DracoInt32Array(i),e.GetAttributeUInt32ForAllPoints(n,r,a)||console.error("Bad stream");let o=new Uint32Array(i);for(let t=0;t<i;++t)o[t]=a.GetValue(t);return o},function(){},function(){},function(){a=new t.DracoFloat32Array(i),e.GetAttributeFloatForAllPoints(n,r,a)||console.error("Bad stream");let o=new Float32Array(i);for(let t=0;t<i;++t)o[t]=a.GetValue(t);return o},function(){},function(){a=new t.DracoUInt8Array(i),e.GetAttributeUInt8ForAllPoints(n,r,a)||console.error("Bad stream");let o=new Uint8Array(i);for(let t=0;t<i;++t)o[t]=a.GetValue(t);return o}][r.data_type()]();return h(a)&&t.destroy(a),l}var W={position:function(t,e,n){let r=3*t.vertexCount;return t.positions=new Float32Array(e,n,r),n+4*r},normal:function(t,e,n){let r=3*t.vertexCount;return t.normals=new Float32Array(e,n,r),n+4*r},uv0:function(t,e,n){let r=2*t.vertexCount;return t.uv0s=new Float32Array(e,n,r),n+4*r},color:function(t,e,n){let r=4*t.vertexCount;return t.colors=new Uint8Array(e,n,r),n+r},featureId:function(t,e,n){return n+8*t.featureCount},id:function(t,e,n){return n+8*t.featureCount},faceRange:function(t,e,n){let r=2*t.featureCount;return t.faceRange=new Uint32Array(e,n,r),n+4*r},uvRegion:function(t,e,n){let r=4*t.vertexCount;return t["uv-region"]=new Uint16Array(e,n,r),n+2*r},region:function(t,e,n){let r=4*t.vertexCount;return t["uv-region"]=new Uint16Array(e,n,r),n+2*r}};function Ht(t,e,n,r){let o={vertexCount:0},a=new DataView(t);try{let i=0;if(o.vertexCount=a.getUint32(i,1),i+=4,o.featureCount=a.getUint32(i,1),i+=4,h(n))for(let e=0;e<n.attributes.length;e++)h(W[n.attributes[e]])?i=W[n.attributes[e]](o,t,i):console.error("Unknown decoder for",n.attributes[e]);else{let n=e.ordering,a=e.featureAttributeOrder;h(r)&&h(r.geometryData)&&h(r.geometryData[0])&&h(r.geometryData[0].params)&&(n=Object.keys(r.geometryData[0].params.vertexAttributes),a=Object.keys(r.geometryData[0].params.featureAttributes));for(let e=0;e<n.length;e++)i=(0,W[n[e]])(o,t,i);for(let e=0;e<a.length;e++)i=(0,W[a[e]])(o,t,i)}}catch(t){console.error(t)}return o.scale_x=1,o.scale_y=1,o}function Xt(t){let e,n=Pt(t.binaryData,t.schema,t.bufferInfo,t.featureData);if(h(t.geoidDataList)&&t.geoidDataList.length>0&&Lt(n.vertexCount,n.positions,n.scale_x,n.scale_y,t.cartographicCenter,t.geoidDataList,!1),Ot(n.vertexCount,n.positions,n.normals,t.cartographicCenter,t.cartesianCenter,t.parentRotation,t.ellipsoidRadiiSquare,n.scale_x,n.scale_y),h(n.uv0s)&&h(n["uv-region"])&&Tt(n.vertexCount,n.uv0s,n["uv-region"]),h(n["feature-index"]))e=n["feature-index"];else if(h(n.faceRange)){e=new Array(n.vertexCount);for(let t=0;t<n.faceRange.length-1;t+=2){let r=t/2,o=n.faceRange[t],a=n.faceRange[t+1];for(let t=o;t<=a;t++)e[3*t]=r,e[3*t+1]=r,e[3*t+2]=r}}if(t.calculateNormals){let t=vt(n.vertexCount,n.indices,n.positions,n.normals,n.uv0s,n.colors,e);h(t.normals)&&(n.normals=t.normals,h(t.vertexCount)&&(n.vertexCount=t.vertexCount,n.indices=t.indices,n.positions=t.positions,n.uv0s=t.uv0s,n.colors=t.colors,e=t.featureIndex))}let r=Mt(n.vertexCount,n.indices,n.positions,n.normals,n.uv0s,n.colors,e,t),o={positions:n.positions,indices:n.indices,featureIndex:e,sourceURL:t.url,cartesianCenter:t.cartesianCenter,parentRotation:t.parentRotation};return r._customAttributes=o,{meshData:r}}async function Yt(t,e){let n=t.webAssemblyConfig;return ut=h(n)&&h(n.wasmBinaryFile)?await(0,at.default)(n):await(0,at.default)(),!0}function zt(t,e){let n=t.webAssemblyConfig;return h(n)?Yt(t,e):Xt(t,e)}var se=yt(zt);export{se as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.124
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|