drone_view 3.0.62 → 3.0.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/droneView.js +1 -1
- package/package.json +1 -1
- package/servicee/3d/Assets/IAU2006_XYS/IAU2006_XYS_0.json +1 -0
- package/servicee/3d/Assets/IAU2006_XYS/IAU2006_XYS_1.json +1 -0
- package/servicee/3d/Assets/IAU2006_XYS/IAU2006_XYS_10.json +1 -0
- package/servicee/3d/Assets/IAU2006_XYS/IAU2006_XYS_11.json +1 -0
- package/servicee/3d/Assets/IAU2006_XYS/IAU2006_XYS_12.json +1 -0
- package/servicee/3d/Assets/IAU2006_XYS/IAU2006_XYS_13.json +1 -0
- package/servicee/3d/Assets/IAU2006_XYS/IAU2006_XYS_14.json +1 -0
- package/servicee/3d/Assets/IAU2006_XYS/IAU2006_XYS_15.json +1 -0
- package/servicee/3d/Assets/IAU2006_XYS/IAU2006_XYS_16.json +1 -0
- package/servicee/3d/Assets/IAU2006_XYS/IAU2006_XYS_17.json +1 -0
- package/servicee/3d/Assets/IAU2006_XYS/IAU2006_XYS_18.json +1 -0
- package/servicee/3d/Assets/IAU2006_XYS/IAU2006_XYS_19.json +1 -0
- package/servicee/3d/Assets/IAU2006_XYS/IAU2006_XYS_2.json +1 -0
- package/servicee/3d/Assets/IAU2006_XYS/IAU2006_XYS_20.json +1 -0
- package/servicee/3d/Assets/IAU2006_XYS/IAU2006_XYS_21.json +1 -0
- package/servicee/3d/Assets/IAU2006_XYS/IAU2006_XYS_22.json +1 -0
- package/servicee/3d/Assets/IAU2006_XYS/IAU2006_XYS_23.json +1 -0
- package/servicee/3d/Assets/IAU2006_XYS/IAU2006_XYS_24.json +1 -0
- package/servicee/3d/Assets/IAU2006_XYS/IAU2006_XYS_25.json +1 -0
- package/servicee/3d/Assets/IAU2006_XYS/IAU2006_XYS_26.json +1 -0
- package/servicee/3d/Assets/IAU2006_XYS/IAU2006_XYS_27.json +1 -0
- package/servicee/3d/Assets/IAU2006_XYS/IAU2006_XYS_3.json +1 -0
- package/servicee/3d/Assets/IAU2006_XYS/IAU2006_XYS_4.json +1 -0
- package/servicee/3d/Assets/IAU2006_XYS/IAU2006_XYS_5.json +1 -0
- package/servicee/3d/Assets/IAU2006_XYS/IAU2006_XYS_6.json +1 -0
- package/servicee/3d/Assets/IAU2006_XYS/IAU2006_XYS_7.json +1 -0
- package/servicee/3d/Assets/IAU2006_XYS/IAU2006_XYS_8.json +1 -0
- package/servicee/3d/Assets/IAU2006_XYS/IAU2006_XYS_9.json +1 -0
- package/servicee/3d/Assets/Images/bing_maps_credit.png +0 -0
- package/servicee/3d/Assets/Images/cesium_credit.png +0 -0
- package/servicee/3d/Assets/Images/google_earth_credit.png +0 -0
- package/servicee/3d/Assets/Images/ion-credit.png +0 -0
- package/servicee/3d/Assets/Textures/LensFlare/DirtMask.jpg +0 -0
- package/servicee/3d/Assets/Textures/LensFlare/StarBurst.jpg +0 -0
- package/servicee/3d/Assets/Textures/NaturalEarthII/0/0/0.jpg +0 -0
- package/servicee/3d/Assets/Textures/NaturalEarthII/0/1/0.jpg +0 -0
- package/servicee/3d/Assets/Textures/NaturalEarthII/1/0/0.jpg +0 -0
- package/servicee/3d/Assets/Textures/NaturalEarthII/1/0/1.jpg +0 -0
- package/servicee/3d/Assets/Textures/NaturalEarthII/1/1/0.jpg +0 -0
- package/servicee/3d/Assets/Textures/NaturalEarthII/1/1/1.jpg +0 -0
- package/servicee/3d/Assets/Textures/NaturalEarthII/1/2/0.jpg +0 -0
- package/servicee/3d/Assets/Textures/NaturalEarthII/1/2/1.jpg +0 -0
- package/servicee/3d/Assets/Textures/NaturalEarthII/1/3/0.jpg +0 -0
- package/servicee/3d/Assets/Textures/NaturalEarthII/1/3/1.jpg +0 -0
- package/servicee/3d/Assets/Textures/NaturalEarthII/2/0/0.jpg +0 -0
- package/servicee/3d/Assets/Textures/NaturalEarthII/2/0/1.jpg +0 -0
- package/servicee/3d/Assets/Textures/NaturalEarthII/2/0/2.jpg +0 -0
- package/servicee/3d/Assets/Textures/NaturalEarthII/2/0/3.jpg +0 -0
- package/servicee/3d/Assets/Textures/NaturalEarthII/2/1/0.jpg +0 -0
- package/servicee/3d/Assets/Textures/NaturalEarthII/2/1/1.jpg +0 -0
- package/servicee/3d/Assets/Textures/NaturalEarthII/2/1/2.jpg +0 -0
- package/servicee/3d/Assets/Textures/NaturalEarthII/2/1/3.jpg +0 -0
- package/servicee/3d/Assets/Textures/NaturalEarthII/2/2/0.jpg +0 -0
- package/servicee/3d/Assets/Textures/NaturalEarthII/2/2/1.jpg +0 -0
- package/servicee/3d/Assets/Textures/NaturalEarthII/2/2/2.jpg +0 -0
- package/servicee/3d/Assets/Textures/NaturalEarthII/2/2/3.jpg +0 -0
- package/servicee/3d/Assets/Textures/NaturalEarthII/2/3/0.jpg +0 -0
- package/servicee/3d/Assets/Textures/NaturalEarthII/2/3/1.jpg +0 -0
- package/servicee/3d/Assets/Textures/NaturalEarthII/2/3/2.jpg +0 -0
- package/servicee/3d/Assets/Textures/NaturalEarthII/2/3/3.jpg +0 -0
- package/servicee/3d/Assets/Textures/NaturalEarthII/2/4/0.jpg +0 -0
- package/servicee/3d/Assets/Textures/NaturalEarthII/2/4/1.jpg +0 -0
- package/servicee/3d/Assets/Textures/NaturalEarthII/2/4/2.jpg +0 -0
- package/servicee/3d/Assets/Textures/NaturalEarthII/2/4/3.jpg +0 -0
- package/servicee/3d/Assets/Textures/NaturalEarthII/2/5/0.jpg +0 -0
- package/servicee/3d/Assets/Textures/NaturalEarthII/2/5/1.jpg +0 -0
- package/servicee/3d/Assets/Textures/NaturalEarthII/2/5/2.jpg +0 -0
- package/servicee/3d/Assets/Textures/NaturalEarthII/2/5/3.jpg +0 -0
- package/servicee/3d/Assets/Textures/NaturalEarthII/2/6/0.jpg +0 -0
- package/servicee/3d/Assets/Textures/NaturalEarthII/2/6/1.jpg +0 -0
- package/servicee/3d/Assets/Textures/NaturalEarthII/2/6/2.jpg +0 -0
- package/servicee/3d/Assets/Textures/NaturalEarthII/2/6/3.jpg +0 -0
- package/servicee/3d/Assets/Textures/NaturalEarthII/2/7/0.jpg +0 -0
- package/servicee/3d/Assets/Textures/NaturalEarthII/2/7/1.jpg +0 -0
- package/servicee/3d/Assets/Textures/NaturalEarthII/2/7/2.jpg +0 -0
- package/servicee/3d/Assets/Textures/NaturalEarthII/2/7/3.jpg +0 -0
- package/servicee/3d/Assets/Textures/NaturalEarthII/tilemapresource.xml +14 -0
- package/servicee/3d/Assets/Textures/SkyBox/tycho2t3_80_mx.jpg +0 -0
- package/servicee/3d/Assets/Textures/SkyBox/tycho2t3_80_my.jpg +0 -0
- package/servicee/3d/Assets/Textures/SkyBox/tycho2t3_80_mz.jpg +0 -0
- package/servicee/3d/Assets/Textures/SkyBox/tycho2t3_80_px.jpg +0 -0
- package/servicee/3d/Assets/Textures/SkyBox/tycho2t3_80_py.jpg +0 -0
- package/servicee/3d/Assets/Textures/SkyBox/tycho2t3_80_pz.jpg +0 -0
- package/servicee/3d/Assets/Textures/maki/airfield.png +0 -0
- package/servicee/3d/Assets/Textures/maki/airport.png +0 -0
- package/servicee/3d/Assets/Textures/maki/alcohol-shop.png +0 -0
- package/servicee/3d/Assets/Textures/maki/america-football.png +0 -0
- package/servicee/3d/Assets/Textures/maki/art-gallery.png +0 -0
- package/servicee/3d/Assets/Textures/maki/bakery.png +0 -0
- package/servicee/3d/Assets/Textures/maki/bank.png +0 -0
- package/servicee/3d/Assets/Textures/maki/bar.png +0 -0
- package/servicee/3d/Assets/Textures/maki/baseball.png +0 -0
- package/servicee/3d/Assets/Textures/maki/basketball.png +0 -0
- package/servicee/3d/Assets/Textures/maki/beer.png +0 -0
- package/servicee/3d/Assets/Textures/maki/bicycle.png +0 -0
- package/servicee/3d/Assets/Textures/maki/building.png +0 -0
- package/servicee/3d/Assets/Textures/maki/bus.png +0 -0
- package/servicee/3d/Assets/Textures/maki/cafe.png +0 -0
- package/servicee/3d/Assets/Textures/maki/camera.png +0 -0
- package/servicee/3d/Assets/Textures/maki/campsite.png +0 -0
- package/servicee/3d/Assets/Textures/maki/car.png +0 -0
- package/servicee/3d/Assets/Textures/maki/cemetery.png +0 -0
- package/servicee/3d/Assets/Textures/maki/cesium.png +0 -0
- package/servicee/3d/Assets/Textures/maki/chemist.png +0 -0
- package/servicee/3d/Assets/Textures/maki/cinema.png +0 -0
- package/servicee/3d/Assets/Textures/maki/circle-stroked.png +0 -0
- package/servicee/3d/Assets/Textures/maki/circle.png +0 -0
- package/servicee/3d/Assets/Textures/maki/city.png +0 -0
- package/servicee/3d/Assets/Textures/maki/clothing-store.png +0 -0
- package/servicee/3d/Assets/Textures/maki/college.png +0 -0
- package/servicee/3d/Assets/Textures/maki/commercial.png +0 -0
- package/servicee/3d/Assets/Textures/maki/cricket.png +0 -0
- package/servicee/3d/Assets/Textures/maki/cross.png +0 -0
- package/servicee/3d/Assets/Textures/maki/dam.png +0 -0
- package/servicee/3d/Assets/Textures/maki/danger.png +0 -0
- package/servicee/3d/Assets/Textures/maki/disability.png +0 -0
- package/servicee/3d/Assets/Textures/maki/dog-park.png +0 -0
- package/servicee/3d/Assets/Textures/maki/embassy.png +0 -0
- package/servicee/3d/Assets/Textures/maki/emergency-telephone.png +0 -0
- package/servicee/3d/Assets/Textures/maki/entrance.png +0 -0
- package/servicee/3d/Assets/Textures/maki/farm.png +0 -0
- package/servicee/3d/Assets/Textures/maki/fast-food.png +0 -0
- package/servicee/3d/Assets/Textures/maki/ferry.png +0 -0
- package/servicee/3d/Assets/Textures/maki/fire-station.png +0 -0
- package/servicee/3d/Assets/Textures/maki/fuel.png +0 -0
- package/servicee/3d/Assets/Textures/maki/garden.png +0 -0
- package/servicee/3d/Assets/Textures/maki/gift.png +0 -0
- package/servicee/3d/Assets/Textures/maki/golf.png +0 -0
- package/servicee/3d/Assets/Textures/maki/grocery.png +0 -0
- package/servicee/3d/Assets/Textures/maki/hairdresser.png +0 -0
- package/servicee/3d/Assets/Textures/maki/harbor.png +0 -0
- package/servicee/3d/Assets/Textures/maki/heart.png +0 -0
- package/servicee/3d/Assets/Textures/maki/heliport.png +0 -0
- package/servicee/3d/Assets/Textures/maki/hospital.png +0 -0
- package/servicee/3d/Assets/Textures/maki/ice-cream.png +0 -0
- package/servicee/3d/Assets/Textures/maki/industrial.png +0 -0
- package/servicee/3d/Assets/Textures/maki/land-use.png +0 -0
- package/servicee/3d/Assets/Textures/maki/laundry.png +0 -0
- package/servicee/3d/Assets/Textures/maki/library.png +0 -0
- package/servicee/3d/Assets/Textures/maki/lighthouse.png +0 -0
- package/servicee/3d/Assets/Textures/maki/lodging.png +0 -0
- package/servicee/3d/Assets/Textures/maki/logging.png +0 -0
- package/servicee/3d/Assets/Textures/maki/london-underground.png +0 -0
- package/servicee/3d/Assets/Textures/maki/marker-stroked.png +0 -0
- package/servicee/3d/Assets/Textures/maki/marker.png +0 -0
- package/servicee/3d/Assets/Textures/maki/minefield.png +0 -0
- package/servicee/3d/Assets/Textures/maki/mobilephone.png +0 -0
- package/servicee/3d/Assets/Textures/maki/monument.png +0 -0
- package/servicee/3d/Assets/Textures/maki/museum.png +0 -0
- package/servicee/3d/Assets/Textures/maki/music.png +0 -0
- package/servicee/3d/Assets/Textures/maki/oil-well.png +0 -0
- package/servicee/3d/Assets/Textures/maki/park.png +0 -0
- package/servicee/3d/Assets/Textures/maki/park2.png +0 -0
- package/servicee/3d/Assets/Textures/maki/parking-garage.png +0 -0
- package/servicee/3d/Assets/Textures/maki/parking.png +0 -0
- package/servicee/3d/Assets/Textures/maki/pharmacy.png +0 -0
- package/servicee/3d/Assets/Textures/maki/pitch.png +0 -0
- package/servicee/3d/Assets/Textures/maki/place-of-worship.png +0 -0
- package/servicee/3d/Assets/Textures/maki/playground.png +0 -0
- package/servicee/3d/Assets/Textures/maki/police.png +0 -0
- package/servicee/3d/Assets/Textures/maki/polling-place.png +0 -0
- package/servicee/3d/Assets/Textures/maki/post.png +0 -0
- package/servicee/3d/Assets/Textures/maki/prison.png +0 -0
- package/servicee/3d/Assets/Textures/maki/rail-above.png +0 -0
- package/servicee/3d/Assets/Textures/maki/rail-light.png +0 -0
- package/servicee/3d/Assets/Textures/maki/rail-metro.png +0 -0
- package/servicee/3d/Assets/Textures/maki/rail-underground.png +0 -0
- package/servicee/3d/Assets/Textures/maki/rail.png +0 -0
- package/servicee/3d/Assets/Textures/maki/religious-christian.png +0 -0
- package/servicee/3d/Assets/Textures/maki/religious-jewish.png +0 -0
- package/servicee/3d/Assets/Textures/maki/religious-muslim.png +0 -0
- package/servicee/3d/Assets/Textures/maki/restaurant.png +0 -0
- package/servicee/3d/Assets/Textures/maki/roadblock.png +0 -0
- package/servicee/3d/Assets/Textures/maki/rocket.png +0 -0
- package/servicee/3d/Assets/Textures/maki/school.png +0 -0
- package/servicee/3d/Assets/Textures/maki/scooter.png +0 -0
- package/servicee/3d/Assets/Textures/maki/shop.png +0 -0
- package/servicee/3d/Assets/Textures/maki/skiing.png +0 -0
- package/servicee/3d/Assets/Textures/maki/slaughterhouse.png +0 -0
- package/servicee/3d/Assets/Textures/maki/soccer.png +0 -0
- package/servicee/3d/Assets/Textures/maki/square-stroked.png +0 -0
- package/servicee/3d/Assets/Textures/maki/square.png +0 -0
- package/servicee/3d/Assets/Textures/maki/star-stroked.png +0 -0
- package/servicee/3d/Assets/Textures/maki/star.png +0 -0
- package/servicee/3d/Assets/Textures/maki/suitcase.png +0 -0
- package/servicee/3d/Assets/Textures/maki/swimming.png +0 -0
- package/servicee/3d/Assets/Textures/maki/telephone.png +0 -0
- package/servicee/3d/Assets/Textures/maki/tennis.png +0 -0
- package/servicee/3d/Assets/Textures/maki/theatre.png +0 -0
- package/servicee/3d/Assets/Textures/maki/toilets.png +0 -0
- package/servicee/3d/Assets/Textures/maki/town-hall.png +0 -0
- package/servicee/3d/Assets/Textures/maki/town.png +0 -0
- package/servicee/3d/Assets/Textures/maki/triangle-stroked.png +0 -0
- package/servicee/3d/Assets/Textures/maki/triangle.png +0 -0
- package/servicee/3d/Assets/Textures/maki/village.png +0 -0
- package/servicee/3d/Assets/Textures/maki/warehouse.png +0 -0
- package/servicee/3d/Assets/Textures/maki/waste-basket.png +0 -0
- package/servicee/3d/Assets/Textures/maki/water.png +0 -0
- package/servicee/3d/Assets/Textures/maki/wetland.png +0 -0
- package/servicee/3d/Assets/Textures/maki/zoo.png +0 -0
- package/servicee/3d/Assets/Textures/moonSmall.jpg +0 -0
- package/servicee/3d/Assets/Textures/pin.svg +1 -0
- package/servicee/3d/Assets/Textures/waterNormals.jpg +0 -0
- package/servicee/3d/Assets/Textures/waterNormalsSmall.jpg +0 -0
- package/servicee/3d/Assets/approximateTerrainHeights.json +1 -0
- package/servicee/3d/Cesium.js +16569 -0
- package/servicee/3d/ThirdParty/Workers/package.json +1 -0
- package/servicee/3d/ThirdParty/Workers/zip-web-worker.js +1 -0
- package/servicee/3d/ThirdParty/basis_transcoder.wasm +0 -0
- package/servicee/3d/ThirdParty/draco_decoder.wasm +0 -0
- package/servicee/3d/ThirdParty/google-earth-dbroot-parser.js +1 -0
- package/servicee/3d/ThirdParty/wasm_splats_bg.wasm +0 -0
- package/servicee/3d/ThirdParty/zip-module.wasm +0 -0
- package/servicee/3d/Widgets/Animation/Animation.css +127 -0
- package/servicee/3d/Widgets/Animation/lighter.css +70 -0
- package/servicee/3d/Widgets/BaseLayerPicker/BaseLayerPicker.css +108 -0
- package/servicee/3d/Widgets/BaseLayerPicker/lighter.css +22 -0
- package/servicee/3d/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css +102 -0
- package/servicee/3d/Widgets/CesiumInspector/CesiumInspector.css +113 -0
- package/servicee/3d/Widgets/CesiumWidget/CesiumWidget.css +119 -0
- package/servicee/3d/Widgets/CesiumWidget/lighter.css +14 -0
- package/servicee/3d/Widgets/FullscreenButton/FullscreenButton.css +8 -0
- package/servicee/3d/Widgets/Geocoder/Geocoder.css +70 -0
- package/servicee/3d/Widgets/Geocoder/lighter.css +17 -0
- package/servicee/3d/Widgets/I3SBuildingSceneLayerExplorer/I3SBuildingSceneLayerExplorer.css +27 -0
- package/servicee/3d/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldHillshade.png +0 -0
- package/servicee/3d/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldImagery.png +0 -0
- package/servicee/3d/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldOcean.png +0 -0
- package/servicee/3d/Widgets/Images/ImageryProviders/bingAerial.png +0 -0
- package/servicee/3d/Widgets/Images/ImageryProviders/bingAerialLabels.png +0 -0
- package/servicee/3d/Widgets/Images/ImageryProviders/bingRoads.png +0 -0
- package/servicee/3d/Widgets/Images/ImageryProviders/blueMarble.png +0 -0
- package/servicee/3d/Widgets/Images/ImageryProviders/earthAtNight.png +0 -0
- package/servicee/3d/Widgets/Images/ImageryProviders/googleContour.png +0 -0
- package/servicee/3d/Widgets/Images/ImageryProviders/googleLabels.png +0 -0
- package/servicee/3d/Widgets/Images/ImageryProviders/googleRoadmap.png +0 -0
- package/servicee/3d/Widgets/Images/ImageryProviders/googleSatellite.png +0 -0
- package/servicee/3d/Widgets/Images/ImageryProviders/googleSatelliteLabels.png +0 -0
- package/servicee/3d/Widgets/Images/ImageryProviders/mapQuestOpenStreetMap.png +0 -0
- package/servicee/3d/Widgets/Images/ImageryProviders/mapboxSatellite.png +0 -0
- package/servicee/3d/Widgets/Images/ImageryProviders/mapboxStreets.png +0 -0
- package/servicee/3d/Widgets/Images/ImageryProviders/mapboxTerrain.png +0 -0
- package/servicee/3d/Widgets/Images/ImageryProviders/naturalEarthII.png +0 -0
- package/servicee/3d/Widgets/Images/ImageryProviders/openStreetMap.png +0 -0
- package/servicee/3d/Widgets/Images/ImageryProviders/sentinel-2.png +0 -0
- package/servicee/3d/Widgets/Images/ImageryProviders/stadiaAlidadeSmooth.png +0 -0
- package/servicee/3d/Widgets/Images/ImageryProviders/stadiaAlidadeSmoothDark.png +0 -0
- package/servicee/3d/Widgets/Images/ImageryProviders/stamenToner.png +0 -0
- package/servicee/3d/Widgets/Images/ImageryProviders/stamenWatercolor.png +0 -0
- package/servicee/3d/Widgets/Images/NavigationHelp/Mouse.svg +84 -0
- package/servicee/3d/Widgets/Images/NavigationHelp/MouseLeft.svg +76 -0
- package/servicee/3d/Widgets/Images/NavigationHelp/MouseMiddle.svg +76 -0
- package/servicee/3d/Widgets/Images/NavigationHelp/MouseRight.svg +76 -0
- package/servicee/3d/Widgets/Images/NavigationHelp/Touch.svg +120 -0
- package/servicee/3d/Widgets/Images/NavigationHelp/TouchDrag.svg +129 -0
- package/servicee/3d/Widgets/Images/NavigationHelp/TouchRotate.svg +76 -0
- package/servicee/3d/Widgets/Images/NavigationHelp/TouchTilt.svg +135 -0
- package/servicee/3d/Widgets/Images/NavigationHelp/TouchZoom.svg +74 -0
- package/servicee/3d/Widgets/Images/TerrainProviders/CesiumWorldTerrain.png +0 -0
- package/servicee/3d/Widgets/Images/TerrainProviders/Ellipsoid.png +0 -0
- package/servicee/3d/Widgets/Images/TimelineIcons.png +0 -0
- package/servicee/3d/Widgets/Images/info-loading.gif +0 -0
- package/servicee/3d/Widgets/InfoBox/InfoBox.css +92 -0
- package/servicee/3d/Widgets/InfoBox/InfoBoxDescription.css +178 -0
- package/servicee/3d/Widgets/NavigationHelpButton/NavigationHelpButton.css +93 -0
- package/servicee/3d/Widgets/NavigationHelpButton/lighter.css +38 -0
- package/servicee/3d/Widgets/PerformanceWatchdog/PerformanceWatchdog.css +15 -0
- package/servicee/3d/Widgets/ProjectionPicker/ProjectionPicker.css +38 -0
- package/servicee/3d/Widgets/SceneModePicker/SceneModePicker.css +56 -0
- package/servicee/3d/Widgets/SelectionIndicator/SelectionIndicator.css +20 -0
- package/servicee/3d/Widgets/Timeline/Timeline.css +103 -0
- package/servicee/3d/Widgets/Timeline/lighter.css +23 -0
- package/servicee/3d/Widgets/VRButton/VRButton.css +8 -0
- package/servicee/3d/Widgets/Viewer/Viewer.css +107 -0
- package/servicee/3d/Widgets/VoxelInspector/VoxelInspector.css +16 -0
- package/servicee/3d/Widgets/lighter.css +237 -0
- package/servicee/3d/Widgets/lighterShared.css +46 -0
- package/servicee/3d/Widgets/shared.css +103 -0
- package/servicee/3d/Widgets/widgets.css +1342 -0
- package/servicee/3d/Workers/chunk-2ZPEMRCT.js +26 -0
- package/servicee/3d/Workers/chunk-2ZPEMRCT.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-3BSRJTW3.js +26 -0
- package/servicee/3d/Workers/chunk-3BSRJTW3.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-3WSHJXU2.js +26 -0
- package/servicee/3d/Workers/chunk-3WSHJXU2.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-42MGKNSS.js +26 -0
- package/servicee/3d/Workers/chunk-42MGKNSS.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-4MJDNHOT.js +26 -0
- package/servicee/3d/Workers/chunk-4MJDNHOT.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-4WJUWBRK.js +26 -0
- package/servicee/3d/Workers/chunk-4WJUWBRK.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-5G23AKP3.js +27 -0
- package/servicee/3d/Workers/chunk-5G23AKP3.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-5HPISDSZ.js +26 -0
- package/servicee/3d/Workers/chunk-5HPISDSZ.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-APG2S62J.js +26 -0
- package/servicee/3d/Workers/chunk-APG2S62J.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-AZLP5742.js +26 -0
- package/servicee/3d/Workers/chunk-AZLP5742.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-BJAB7QAF.js +26 -0
- package/servicee/3d/Workers/chunk-BJAB7QAF.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-BTDQB5Q4.js +26 -0
- package/servicee/3d/Workers/chunk-BTDQB5Q4.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-CJRI54BI.js +26 -0
- package/servicee/3d/Workers/chunk-CJRI54BI.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-CUP6SILZ.js +26 -0
- package/servicee/3d/Workers/chunk-CUP6SILZ.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-D2NFCOGE.js +28 -0
- package/servicee/3d/Workers/chunk-D2NFCOGE.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-DK73HV33.js +26 -0
- package/servicee/3d/Workers/chunk-DK73HV33.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-EDF5FKWJ.js +26 -0
- package/servicee/3d/Workers/chunk-EDF5FKWJ.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-ET7KY3BS.js +26 -0
- package/servicee/3d/Workers/chunk-ET7KY3BS.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-FIHQI7E3.js +26 -0
- package/servicee/3d/Workers/chunk-FIHQI7E3.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-FVGSQINW.js +26 -0
- package/servicee/3d/Workers/chunk-FVGSQINW.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-FWF3VNA2.js +26 -0
- package/servicee/3d/Workers/chunk-FWF3VNA2.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-GTQ3WXPT.js +26 -0
- package/servicee/3d/Workers/chunk-GTQ3WXPT.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-HSJ6GSLC.js +26 -0
- package/servicee/3d/Workers/chunk-HSJ6GSLC.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-IOTBNCMN.js +26 -0
- package/servicee/3d/Workers/chunk-IOTBNCMN.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-IYO6TYGP.js +26 -0
- package/servicee/3d/Workers/chunk-IYO6TYGP.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-J7MBSSYW.js +26 -0
- package/servicee/3d/Workers/chunk-J7MBSSYW.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-KWAHJ72S.js +28 -0
- package/servicee/3d/Workers/chunk-KWAHJ72S.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-KX5PR5Q3.js +26 -0
- package/servicee/3d/Workers/chunk-KX5PR5Q3.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-LJBMXZ6U.js +26 -0
- package/servicee/3d/Workers/chunk-LJBMXZ6U.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-LPJEXZWM.js +26 -0
- package/servicee/3d/Workers/chunk-LPJEXZWM.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-MKDADUG3.js +26 -0
- package/servicee/3d/Workers/chunk-MKDADUG3.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-NOIUI5SY.js +27 -0
- package/servicee/3d/Workers/chunk-NOIUI5SY.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-OFCC6BNI.js +26 -0
- package/servicee/3d/Workers/chunk-OFCC6BNI.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-OXJ2LJUE.js +26 -0
- package/servicee/3d/Workers/chunk-OXJ2LJUE.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-Q4W25C4L.js +26 -0
- package/servicee/3d/Workers/chunk-Q4W25C4L.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-QORMFUM4.js +26 -0
- package/servicee/3d/Workers/chunk-QORMFUM4.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-RCHWDG3R.js +26 -0
- package/servicee/3d/Workers/chunk-RCHWDG3R.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-RYOF6QSA.js +26 -0
- package/servicee/3d/Workers/chunk-RYOF6QSA.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-SCO7TMKT.js +26 -0
- package/servicee/3d/Workers/chunk-SCO7TMKT.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-SNSHUVCZ.js +26 -0
- package/servicee/3d/Workers/chunk-SNSHUVCZ.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-SXKYZMEL.js +26 -0
- package/servicee/3d/Workers/chunk-SXKYZMEL.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-T6Q6HX5J.js +26 -0
- package/servicee/3d/Workers/chunk-T6Q6HX5J.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-T77EB7BE.js +26 -0
- package/servicee/3d/Workers/chunk-T77EB7BE.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-TGKHFJV6.js +26 -0
- package/servicee/3d/Workers/chunk-TGKHFJV6.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-U6GWZBRL.js +26 -0
- package/servicee/3d/Workers/chunk-U6GWZBRL.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-UTYWXSQT.js +66 -0
- package/servicee/3d/Workers/chunk-UTYWXSQT.js.LICENSE.txt +67 -0
- package/servicee/3d/Workers/chunk-VHZAK4GN.js +26 -0
- package/servicee/3d/Workers/chunk-VHZAK4GN.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-VTK7G5BX.js +26 -0
- package/servicee/3d/Workers/chunk-VTK7G5BX.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-XBWRWNYZ.js +26 -0
- package/servicee/3d/Workers/chunk-XBWRWNYZ.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-XQDTMI7Q.js +26 -0
- package/servicee/3d/Workers/chunk-XQDTMI7Q.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-XQIJGAVD.js +26 -0
- package/servicee/3d/Workers/chunk-XQIJGAVD.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-XRRBRTKL.js +26 -0
- package/servicee/3d/Workers/chunk-XRRBRTKL.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-YHWHVNY2.js +26 -0
- package/servicee/3d/Workers/chunk-YHWHVNY2.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/chunk-YY6GMQGO.js +26 -0
- package/servicee/3d/Workers/chunk-YY6GMQGO.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/combineGeometry.js +26 -0
- package/servicee/3d/Workers/combineGeometry.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/createBoxGeometry.js +26 -0
- package/servicee/3d/Workers/createBoxGeometry.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/createBoxOutlineGeometry.js +26 -0
- package/servicee/3d/Workers/createBoxOutlineGeometry.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/createCircleGeometry.js +26 -0
- package/servicee/3d/Workers/createCircleGeometry.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/createCircleOutlineGeometry.js +26 -0
- package/servicee/3d/Workers/createCircleOutlineGeometry.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/createCoplanarPolygonGeometry.js +26 -0
- package/servicee/3d/Workers/createCoplanarPolygonGeometry.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/createCoplanarPolygonOutlineGeometry.js +26 -0
- package/servicee/3d/Workers/createCoplanarPolygonOutlineGeometry.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/createCorridorGeometry.js +26 -0
- package/servicee/3d/Workers/createCorridorGeometry.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/createCorridorOutlineGeometry.js +26 -0
- package/servicee/3d/Workers/createCorridorOutlineGeometry.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/createCylinderGeometry.js +26 -0
- package/servicee/3d/Workers/createCylinderGeometry.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/createCylinderOutlineGeometry.js +26 -0
- package/servicee/3d/Workers/createCylinderOutlineGeometry.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/createEllipseGeometry.js +26 -0
- package/servicee/3d/Workers/createEllipseGeometry.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/createEllipseOutlineGeometry.js +26 -0
- package/servicee/3d/Workers/createEllipseOutlineGeometry.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/createEllipsoidGeometry.js +26 -0
- package/servicee/3d/Workers/createEllipsoidGeometry.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/createEllipsoidOutlineGeometry.js +26 -0
- package/servicee/3d/Workers/createEllipsoidOutlineGeometry.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/createFrustumGeometry.js +26 -0
- package/servicee/3d/Workers/createFrustumGeometry.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/createFrustumOutlineGeometry.js +26 -0
- package/servicee/3d/Workers/createFrustumOutlineGeometry.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/createGeometry.js +26 -0
- package/servicee/3d/Workers/createGeometry.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/createGroundPolylineGeometry.js +26 -0
- package/servicee/3d/Workers/createGroundPolylineGeometry.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/createPlaneGeometry.js +26 -0
- package/servicee/3d/Workers/createPlaneGeometry.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/createPlaneOutlineGeometry.js +26 -0
- package/servicee/3d/Workers/createPlaneOutlineGeometry.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/createPolygonGeometry.js +26 -0
- package/servicee/3d/Workers/createPolygonGeometry.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/createPolygonOutlineGeometry.js +26 -0
- package/servicee/3d/Workers/createPolygonOutlineGeometry.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/createPolylineGeometry.js +26 -0
- package/servicee/3d/Workers/createPolylineGeometry.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/createPolylineVolumeGeometry.js +26 -0
- package/servicee/3d/Workers/createPolylineVolumeGeometry.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/createPolylineVolumeOutlineGeometry.js +26 -0
- package/servicee/3d/Workers/createPolylineVolumeOutlineGeometry.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/createRectangleGeometry.js +26 -0
- package/servicee/3d/Workers/createRectangleGeometry.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/createRectangleOutlineGeometry.js +26 -0
- package/servicee/3d/Workers/createRectangleOutlineGeometry.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/createSimplePolylineGeometry.js +26 -0
- package/servicee/3d/Workers/createSimplePolylineGeometry.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/createSphereGeometry.js +26 -0
- package/servicee/3d/Workers/createSphereGeometry.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/createSphereOutlineGeometry.js +26 -0
- package/servicee/3d/Workers/createSphereOutlineGeometry.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/createTaskProcessorWorker.js +26 -0
- package/servicee/3d/Workers/createTaskProcessorWorker.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/createVectorTileClampedPolylines.js +26 -0
- package/servicee/3d/Workers/createVectorTileClampedPolylines.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/createVectorTileGeometries.js +26 -0
- package/servicee/3d/Workers/createVectorTileGeometries.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/createVectorTilePoints.js +26 -0
- package/servicee/3d/Workers/createVectorTilePoints.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/createVectorTilePolygons.js +26 -0
- package/servicee/3d/Workers/createVectorTilePolygons.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/createVectorTilePolylines.js +26 -0
- package/servicee/3d/Workers/createVectorTilePolylines.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/createVerticesFromCesium3DTilesTerrain.js +26 -0
- package/servicee/3d/Workers/createVerticesFromCesium3DTilesTerrain.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +26 -0
- package/servicee/3d/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/createVerticesFromHeightmap.js +26 -0
- package/servicee/3d/Workers/createVerticesFromHeightmap.js.LICENSE.txt +26 -0
- package/servicee/3d/Workers/createVerticesFromQuantizedTerrainMesh.js +26 -0
- package/servicee/3d/Workers/createVerticesFromQuantizedTerrainMesh.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/createWallGeometry.js +26 -0
- package/servicee/3d/Workers/createWallGeometry.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/createWallOutlineGeometry.js +26 -0
- package/servicee/3d/Workers/createWallOutlineGeometry.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/decodeDraco.js +26 -0
- package/servicee/3d/Workers/decodeDraco.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/decodeGoogleEarthEnterprisePacket.js +26 -0
- package/servicee/3d/Workers/decodeGoogleEarthEnterprisePacket.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/decodeI3S.js +26 -0
- package/servicee/3d/Workers/decodeI3S.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/gaussianSplatSorter.js +26 -0
- package/servicee/3d/Workers/gaussianSplatSorter.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/gaussianSplatTextureGenerator.js +26 -0
- package/servicee/3d/Workers/gaussianSplatTextureGenerator.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/transcodeKTX2.js +56 -0
- package/servicee/3d/Workers/transcodeKTX2.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/transferTypedArrayTest.js +26 -0
- package/servicee/3d/Workers/transferTypedArrayTest.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/upsampleQuantizedTerrainMesh.js +26 -0
- package/servicee/3d/Workers/upsampleQuantizedTerrainMesh.js.LICENSE.txt +24 -0
- package/servicee/3d/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +26 -0
- package/servicee/3d/Workers/upsampleVerticesFromCesium3DTilesTerrain.js.LICENSE.txt +24 -0
- package/servicee/3d/index.cjs +16569 -0
- package/servicee/3d/index.js +16569 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.135.0
|
|
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
|
+
*/
|
|
25
|
+
|
|
26
|
+
import{a as x}from"./chunk-D2NFCOGE.js";import{a as w}from"./chunk-VHZAK4GN.js";import{i as c}from"./chunk-UTYWXSQT.js";import"./chunk-RCHWDG3R.js";import"./chunk-4WJUWBRK.js";import"./chunk-5G23AKP3.js";import{a as h,b as l,d as p}from"./chunk-KWAHJ72S.js";import{a as i}from"./chunk-MKDADUG3.js";import"./chunk-NOIUI5SY.js";import"./chunk-XRRBRTKL.js";var u=32767,F=new l,L=new h,b=new c,y=new p,a={min:void 0,max:void 0};function V(t){t=new Float64Array(t);let o=0;a.min=t[o++],a.max=t[o++],c.unpack(t,o,b),o+=c.packedLength,p.unpack(t,o,y)}function z(t,o){let s=new Uint16Array(t.positions);V(t.packedBuffer);let e=b,C=y,A=a.min,P=a.max,n=s.length/3,f=s.subarray(0,n),g=s.subarray(n,2*n),d=s.subarray(2*n,3*n);w.zigZagDeltaDecode(f,g,d);let m=new Float64Array(s.length);for(let r=0;r<n;++r){let k=f[r],E=g[r],H=d[r],M=i.lerp(e.west,e.east,k/u),R=i.lerp(e.south,e.north,E/u),T=i.lerp(A,P,H/u),v=l.fromRadians(M,R,T,F),D=C.cartographicToCartesian(v,L);h.pack(D,m,r*3)}return o.push(m.buffer),{positions:m.buffer}}var G=x(z);export{G as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.135.0
|
|
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,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.135.0
|
|
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
|
+
*/
|
|
25
|
+
|
|
26
|
+
import{a as R}from"./chunk-GTQ3WXPT.js";import{a as It}from"./chunk-D2NFCOGE.js";import{a as M}from"./chunk-SCO7TMKT.js";import{a as bt}from"./chunk-VHZAK4GN.js";import"./chunk-ET7KY3BS.js";import"./chunk-CUP6SILZ.js";import"./chunk-HSJ6GSLC.js";import"./chunk-SXKYZMEL.js";import{a as W}from"./chunk-T6Q6HX5J.js";import"./chunk-XQIJGAVD.js";import{i as z}from"./chunk-UTYWXSQT.js";import"./chunk-RCHWDG3R.js";import"./chunk-4WJUWBRK.js";import"./chunk-5G23AKP3.js";import{a as o,b as nt,d as j}from"./chunk-KWAHJ72S.js";import{a as et}from"./chunk-MKDADUG3.js";import"./chunk-NOIUI5SY.js";import{e as A}from"./chunk-XRRBRTKL.js";var kt=new o,Bt=new j,Nt=new z,E={min:void 0,max:void 0,indexBytesPerElement:void 0};function Pt(s){let u=new Float64Array(s),n=0;E.indexBytesPerElement=u[n++],E.min=u[n++],E.max=u[n++],o.unpack(u,n,kt),n+=o.packedLength,j.unpack(u,n,Bt),n+=j.packedLength,z.unpack(u,n,Nt)}function Tt(s){let u=s.length,n=0;for(let y=0;y<u;++y)n+=R.packedLength+3+s[y].batchIds.length;return n}function Ct(s,u,n){let y=u.length,O=2+y*M.packedLength+1+Tt(n),c=new Float64Array(O),i=0;c[i++]=s,c[i++]=y;for(let x=0;x<y;++x)M.pack(u[x],c,i),i+=M.packedLength;let V=n.length;c[i++]=V;for(let x=0;x<V;++x){let B=n[x];R.pack(B.color,c,i),i+=R.packedLength,c[i++]=B.offset,c[i++]=B.count;let P=B.batchIds,w=P.length;c[i++]=w;for(let h=0;h<w;++h)c[i++]=P[h]}return c}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(s,u){Pt(s.packedBuffer);let n;E.indexBytesPerElement===2?n=new Uint16Array(s.indices):n=new Uint32Array(s.indices);let O=new Uint16Array(s.positions),c=new Uint32Array(s.counts),i=new Uint32Array(s.indexCounts),V=new Uint32Array(s.batchIds),x=new Uint32Array(s.batchTableColors),B=new Array(c.length),P=kt,w=Bt,h=Nt,ot=E.min,st=E.max,T=s.minimumHeights,C=s.maximumHeights;A(T)&&A(C)&&(T=new Float32Array(T),C=new Float32Array(C));let t,f,l,N=O.length/2,ct=O.subarray(0,N),it=O.subarray(N,2*N);bt.zigZagDeltaDecode(ct,it);let rt=new Float64Array(N*3);for(t=0;t<N;++t){let e=ct[t],p=it[t],L=et.lerp(h.west,h.east,e/yt),k=et.lerp(h.south,h.north,p/yt),b=nt.fromRadians(L,k,0,Lt),Y=w.cartographicToCartesian(b,wt);o.pack(Y,rt,t*3)}let H=c.length,at=new Array(H),Z=new Array(H),ft=0,lt=0;for(t=0;t<H;++t)at[t]=ft,Z[t]=lt,ft+=c[t],lt+=i[t];let S=new Float32Array(N*3*2),_=new Uint16Array(N*2),D=new Uint32Array(Z.length),G=new Uint32Array(i.length),r=[],g={};for(t=0;t<H;++t)l=x[t],A(g[l])?(g[l].positionLength+=c[t],g[l].indexLength+=i[t],g[l].batchIds.push(t)):g[l]={positionLength:c[t],indexLength:i[t],offset:0,indexOffset:0,batchIds:[t]};let a,dt=0,ht=0;for(l in g)if(g.hasOwnProperty(l)){a=g[l],a.offset=dt,a.indexOffset=ht;let e=a.positionLength*2,p=a.indexLength*2+a.positionLength*6;dt+=e,ht+=p,a.indexLength=p}let U=[];for(l in g)g.hasOwnProperty(l)&&(a=g[l],U.push({color:R.fromRgba(parseInt(l)),offset:a.indexOffset,count:a.indexLength,batchIds:a.batchIds}));for(t=0;t<H;++t){l=x[t],a=g[l];let e=a.offset,p=e*3,L=e,k=at[t],b=c[t],Y=V[t],mt=ot,gt=st;A(T)&&A(C)&&(mt=T[t],gt=C[t]);let q=Number.POSITIVE_INFINITY,J=Number.NEGATIVE_INFINITY,K=Number.POSITIVE_INFINITY,Q=Number.NEGATIVE_INFINITY;for(f=0;f<b;++f){let m=o.unpack(rt,k*3+f*3,wt);w.scaleToGeodeticSurface(m,m);let I=w.cartesianToCartographic(m,Lt),F=I.latitude,pt=I.longitude;q=Math.min(F,q),J=Math.max(F,J),K=Math.min(pt,K),Q=Math.max(pt,Q);let xt=w.geodeticSurfaceNormal(m,Ht),v=o.multiplyByScalar(xt,mt,St),$=o.add(m,v,Ut);v=o.multiplyByScalar(xt,gt,v);let tt=o.add(m,v,Ft);o.subtract(tt,P,tt),o.subtract($,P,$),o.pack(tt,S,p),o.pack($,S,p+3),_[L]=Y,_[L+1]=Y,p+=6,L+=2}h=Mt,h.west=K,h.east=Q,h.south=q,h.north=J,B[t]=M.fromRectangle(h,ot,st,w);let d=a.indexOffset,X=Z[t],Ot=i[t];for(D[t]=d,f=0;f<Ot;f+=3){let m=n[X+f]-k,I=n[X+f+1]-k,F=n[X+f+2]-k;r[d++]=m*2+e,r[d++]=I*2+e,r[d++]=F*2+e,r[d++]=F*2+1+e,r[d++]=I*2+1+e,r[d++]=m*2+1+e}for(f=0;f<b;++f){let m=f,I=(f+1)%b;r[d++]=m*2+1+e,r[d++]=I*2+e,r[d++]=m*2+e,r[d++]=m*2+1+e,r[d++]=I*2+1+e,r[d++]=I*2+e}a.offset+=b*2,a.indexOffset=d,G[t]=d-D[t]}r=W.createTypedArray(S.length/3,r);let At=U.length;for(let e=0;e<At;++e){let p=U[e].batchIds,L=0,k=p.length;for(let b=0;b<k;++b)L+=G[p[b]];U[e].count=L}let Et=r.BYTES_PER_ELEMENT===2?W.UNSIGNED_SHORT:W.UNSIGNED_INT,ut=Ct(Et,B,U);return u.push(S.buffer,r.buffer,D.buffer,G.buffer,_.buffer,ut.buffer),{positions:S.buffer,indices:r.buffer,indexOffsets:D.buffer,indexCounts:G.buffer,batchIds:_.buffer,packedBuffer:ut.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.135.0
|
|
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,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.135.0
|
|
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
|
+
*/
|
|
25
|
+
|
|
26
|
+
import{a as K}from"./chunk-D2NFCOGE.js";import{a as G}from"./chunk-VHZAK4GN.js";import{a as S}from"./chunk-T6Q6HX5J.js";import{d as B,i as R}from"./chunk-UTYWXSQT.js";import"./chunk-RCHWDG3R.js";import"./chunk-4WJUWBRK.js";import"./chunk-5G23AKP3.js";import{a as t,b as _,d as L}from"./chunk-KWAHJ72S.js";import{a as F}from"./chunk-MKDADUG3.js";import"./chunk-NOIUI5SY.js";import"./chunk-XRRBRTKL.js";var O=32767,ct=new _,rt=new t;function it(n,o,p,m,s){let d=n.length/3,U=n.subarray(0,d),v=n.subarray(d,2*d),P=n.subarray(2*d,3*d);G.zigZagDeltaDecode(U,v,P);let D=new Float64Array(n.length);for(let u=0;u<d;++u){let e=U[u],A=v[u],l=P[u],k=F.lerp(o.west,o.east,e/O),I=F.lerp(o.south,o.north,A/O),E=F.lerp(p,m,l/O),g=_.fromRadians(k,I,E,ct),C=s.cartographicToCartesian(g,rt);t.pack(C,D,u*3)}return D}var Y=it;var X=new R,$=new L,j=new t,H={min:void 0,max:void 0};function at(n){n=new Float64Array(n);let o=0;H.min=n[o++],H.max=n[o++],R.unpack(n,o,X),o+=R.packedLength,L.unpack(n,o,$),o+=L.packedLength,t.unpack(n,o,j)}function ft(n){let o=n.length,p=new Uint32Array(o+1),m=0;for(let s=0;s<o;++s)p[s]=m,m+=n[s];return p[o]=m,p}var Z=new t,q=new t,J=new t,dt=new t,Q=new t;function ut(n,o){let p=new Uint16Array(n.positions),m=new Uint16Array(n.widths),s=new Uint32Array(n.counts),d=new Uint16Array(n.batchIds);at(n.packedBuffer);let U=X,v=$,P=j,D=H.min,u=H.max,e=Y(p,U,D,u,v),A=e.length/3,l=A*4-4,k=new Float32Array(l*3),I=new Float32Array(l*3),E=new Float32Array(l*3),g=new Float32Array(l*2),C=new Uint16Array(l),N=0,z=0,tt=0,r,h=0,M=s.length;for(r=0;r<M;++r){let a=s[r],nt=m[r],ot=d[r];for(let f=0;f<a;++f){let w;if(f===0){let c=t.unpack(e,h*3,Z),T=t.unpack(e,(h+1)*3,q);w=t.subtract(c,T,J),t.add(c,w,w)}else w=t.unpack(e,(h+f-1)*3,J);let W=t.unpack(e,(h+f)*3,dt),x;if(f===a-1){let c=t.unpack(e,(h+a-1)*3,Z),T=t.unpack(e,(h+a-2)*3,q);x=t.subtract(c,T,Q),t.add(c,x,x)}else x=t.unpack(e,(h+f+1)*3,Q);t.subtract(w,P,w),t.subtract(W,P,W),t.subtract(x,P,x);let et=f===0?2:0,st=f===a-1?2:4;for(let c=et;c<st;++c){t.pack(W,k,N),t.pack(w,I,N),t.pack(x,E,N),N+=3;let T=c-2<0?-1:1;g[z++]=2*(c%2)-1,g[z++]=T*nt,C[tt++]=ot}}h+=a}let i=S.createTypedArray(l,A*6-6),b=0,y=0;for(M=A-1,r=0;r<M;++r)i[y++]=b,i[y++]=b+2,i[y++]=b+1,i[y++]=b+1,i[y++]=b+2,i[y++]=b+3,b+=4;o.push(k.buffer,I.buffer,E.buffer),o.push(g.buffer,C.buffer,i.buffer);let V={indexDatatype:i.BYTES_PER_ELEMENT===2?S.UNSIGNED_SHORT:S.UNSIGNED_INT,currentPositions:k.buffer,previousPositions:I.buffer,nextPositions:E.buffer,expandAndWidth:g.buffer,batchIds:C.buffer,indices:i.buffer};if(n.keepDecodedPositions){let a=ft(s);o.push(e.buffer,a.buffer),V=B(V,{decodedPositions:e.buffer,decodedPositionOffsets:a.buffer})}return V}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.135.0
|
|
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,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.135.0
|
|
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
|
+
*/
|
|
25
|
+
|
|
26
|
+
import{a as u}from"./chunk-LPJEXZWM.js";import"./chunk-YY6GMQGO.js";import"./chunk-BJAB7QAF.js";import{a as f}from"./chunk-D2NFCOGE.js";import"./chunk-XBWRWNYZ.js";import"./chunk-SCO7TMKT.js";import"./chunk-VHZAK4GN.js";import"./chunk-ET7KY3BS.js";import"./chunk-CUP6SILZ.js";import"./chunk-HSJ6GSLC.js";import"./chunk-SXKYZMEL.js";import"./chunk-T6Q6HX5J.js";import"./chunk-XQIJGAVD.js";import"./chunk-UTYWXSQT.js";import"./chunk-RCHWDG3R.js";import"./chunk-4WJUWBRK.js";import"./chunk-5G23AKP3.js";import"./chunk-KWAHJ72S.js";import"./chunk-MKDADUG3.js";import"./chunk-NOIUI5SY.js";import"./chunk-XRRBRTKL.js";function a(c,d){return u.createMesh(c).then(function(e){let t=e.vertices.buffer,r=e.indices.buffer,s=e.westIndicesSouthToNorth.buffer,o=e.southIndicesEastToWest.buffer,i=e.eastIndicesNorthToSouth.buffer,n=e.northIndicesWestToEast.buffer;return d.push(t,r,s,o,i,n),{verticesBuffer:t,indicesBuffer:r,vertexCountWithoutSkirts:e.vertexCountWithoutSkirts,indexCountWithoutSkirts:e.indexCountWithoutSkirts,encoding:e.encoding,westIndicesBuffer:s,southIndicesBuffer:o,eastIndicesBuffer:i,northIndicesBuffer:n}})}var T=f(a);export{T as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.135.0
|
|
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,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.135.0
|
|
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
|
+
*/
|
|
25
|
+
|
|
26
|
+
import{a as Dt,b as Gt}from"./chunk-BJAB7QAF.js";import{a as Lt}from"./chunk-D2NFCOGE.js";import{a as lt}from"./chunk-XBWRWNYZ.js";import{a as qt}from"./chunk-SCO7TMKT.js";import"./chunk-VHZAK4GN.js";import"./chunk-ET7KY3BS.js";import{a as kt}from"./chunk-CUP6SILZ.js";import"./chunk-HSJ6GSLC.js";import"./chunk-SXKYZMEL.js";import{d as zt}from"./chunk-XQIJGAVD.js";import{b as $,h as Ot,i as Vt}from"./chunk-UTYWXSQT.js";import"./chunk-RCHWDG3R.js";import"./chunk-4WJUWBRK.js";import{a as Ht}from"./chunk-5G23AKP3.js";import{a as P,b as N,c as wt,d as Ut}from"./chunk-KWAHJ72S.js";import{a as r}from"./chunk-MKDADUG3.js";import"./chunk-NOIUI5SY.js";import{e as ht}from"./chunk-XRRBRTKL.js";var $t=Uint16Array.BYTES_PER_ELEMENT,mt=Int32Array.BYTES_PER_ELEMENT,Pt=Uint32Array.BYTES_PER_ELEMENT,te=Float32Array.BYTES_PER_ELEMENT,H=Float64Array.BYTES_PER_ELEMENT;function tt(n,l,e){e=e??r;let i=n.length;for(let c=0;c<i;++c)if(e.equalsEpsilon(n[c],l,r.EPSILON12))return c;return-1}function ee(n,l){n.ellipsoid=Ut.clone(n.ellipsoid),n.rectangle=Vt.clone(n.rectangle);let e=re(n.buffer,n.relativeToCenter,n.ellipsoid,n.rectangle,n.nativeRectangle,n.exaggeration,n.exaggerationRelativeHeight,n.skirtHeight,n.includeWebMercatorT,n.negativeAltitudeExponentBias,n.negativeElevationThreshold),i=e.vertices;l.push(i.buffer);let c=e.indices;return l.push(c.buffer),{vertices:i.buffer,indices:c.buffer,numberOfAttributes:e.encoding.stride,minimumHeight:e.minimumHeight,maximumHeight:e.maximumHeight,boundingSphere3D:e.boundingSphere3D,orientedBoundingBox:e.orientedBoundingBox,occludeePointInScaledSpace:e.occludeePointInScaledSpace,encoding:e.encoding,vertexCountWithoutSkirts:e.vertexCountWithoutSkirts,indexCountWithoutSkirts:e.indexCountWithoutSkirts,westIndicesSouthToNorth:e.westIndicesSouthToNorth,southIndicesEastToWest:e.southIndicesEastToWest,eastIndicesNorthToSouth:e.eastIndicesNorthToSouth,northIndicesWestToEast:e.northIndicesWestToEast}}var u=new N,G=new P,oe=new P,ne=new P,ie=new $;function re(n,l,e,i,c,et,m,ot,T,nt,it){let I,h,E,f,x,p;ht(i)?(I=i.west,h=i.south,E=i.east,f=i.north,x=i.width,p=i.height):(I=r.toRadians(c.west),h=r.toRadians(c.south),E=r.toRadians(c.east),f=r.toRadians(c.north),x=r.toRadians(i.width),p=r.toRadians(i.height));let X=[h,f],A=[I,E],O=Ot.eastNorthUpToFixedFrame(l,e),j=$.inverseTransformation(O,ie),V,Q;T&&(V=lt.geodeticLatitudeToMercatorAngle(h),Q=1/(lt.geodeticLatitudeToMercatorAngle(f)-V));let y=et!==1,a=new DataView(n),z=Number.POSITIVE_INFINITY,J=Number.NEGATIVE_INFINITY,b=oe;b.x=Number.POSITIVE_INFINITY,b.y=Number.POSITIVE_INFINITY,b.z=Number.POSITIVE_INFINITY;let M=ne;M.x=Number.NEGATIVE_INFINITY,M.y=Number.NEGATIVE_INFINITY,M.z=Number.NEGATIVE_INFINITY;let o=0,S=0,At=0,rt,L;for(L=0;L<4;++L){let t=o;rt=a.getUint32(t,!0),t+=Pt;let d=r.toRadians(a.getFloat64(t,!0)*180);t+=H,tt(A,d)===-1&&A.push(d);let Y=r.toRadians(a.getFloat64(t,!0)*180);t+=H,tt(X,Y)===-1&&X.push(Y),t+=2*H;let B=a.getInt32(t,!0);t+=mt,S+=B,B=a.getInt32(t,!0),At+=B*3,o+=rt+Pt}let yt=[],bt=[],g=new Array(S),R=new Array(S),_=new Array(S),C=T?new Array(S):[],F=y?new Array(S):[],v=new Array(At),k=[],st=[],ct=[],W=[],s=0,pt=0;for(o=0,L=0;L<4;++L){rt=a.getUint32(o,!0),o+=Pt;let t=o,d=r.toRadians(a.getFloat64(o,!0)*180);o+=H;let Y=r.toRadians(a.getFloat64(o,!0)*180);o+=H;let B=r.toRadians(a.getFloat64(o,!0)*180),Ft=B*.5;o+=H;let vt=r.toRadians(a.getFloat64(o,!0)*180),Wt=vt*.5;o+=H;let Yt=a.getInt32(o,!0);o+=mt;let Kt=a.getInt32(o,!0);o+=mt,o+=mt;let St=new Array(Yt);for(let U=0;U<Yt;++U){let Z=d+a.getUint8(o++)*B;u.longitude=Z;let D=Y+a.getUint8(o++)*vt;u.latitude=D;let w=a.getFloat32(o,!0);if(o+=te,w!==0&&w<it&&(w*=-Math.pow(2,nt)),w*=6371010,u.height=w,tt(A,Z)!==-1||tt(X,D)!==-1){let dt=tt(yt,u,N);if(dt===-1)yt.push(N.clone(u)),bt.push(s);else{St[U]=bt[dt];continue}}St[U]=s,Math.abs(Z-I)<Ft?k.push({index:s,cartographic:N.clone(u)}):Math.abs(Z-E)<Ft?ct.push({index:s,cartographic:N.clone(u)}):Math.abs(D-h)<Wt?st.push({index:s,cartographic:N.clone(u)}):Math.abs(D-f)<Wt&&W.push({index:s,cartographic:N.clone(u)}),z=Math.min(w,z),J=Math.max(w,J),_[s]=w;let Nt=e.cartographicToCartesian(u);if(g[s]=Nt,T&&(C[s]=(lt.geodeticLatitudeToMercatorAngle(D)-V)*Q),y){let dt=e.geodeticSurfaceNormal(Nt);F[s]=dt}$.multiplyByPoint(j,Nt,G),P.minimumByComponent(G,b,b),P.maximumByComponent(G,M,M);let Tt=(Z-I)/(E-I);Tt=r.clamp(Tt,0,1);let Bt=(D-h)/(f-h);Bt=r.clamp(Bt,0,1),R[s]=new wt(Tt,Bt),++s}let Zt=Kt*3;for(let U=0;U<Zt;++U,++pt)v[pt]=St[a.getUint16(o,!0)],o+=$t;if(rt!==o-t)throw new Ht("Invalid terrain tile.")}g.length=s,R.length=s,_.length=s,T&&(C.length=s),y&&(F.length=s);let Mt=s,Xt=pt,K={hMin:z,lastBorderPoint:void 0,skirtHeight:ot,toENU:j,ellipsoid:e,minimum:b,maximum:M};k.sort(function(t,d){return d.cartographic.latitude-t.cartographic.latitude}),st.sort(function(t,d){return t.cartographic.longitude-d.cartographic.longitude}),ct.sort(function(t,d){return t.cartographic.latitude-d.cartographic.latitude}),W.sort(function(t,d){return d.cartographic.longitude-t.cartographic.longitude});let q=1e-5;if(gt(g,_,R,C,F,v,K,k,-q*x,!0,-q*p),gt(g,_,R,C,F,v,K,st,-q*p,!1),gt(g,_,R,C,F,v,K,ct,q*x,!0,q*p),gt(g,_,R,C,F,v,K,W,q*p,!1),k.length>0&&W.length>0){let t=k[0].index,d=Mt,Y=W[W.length-1].index,B=g.length-1;v.push(Y,B,d,d,t,Y)}S=g.length;let jt=zt.fromPoints(g),Rt;ht(i)&&(Rt=qt.fromRectangle(i,z,J,e));let Qt=new Dt(e).computeHorizonCullingPointPossiblyUnderEllipsoid(l,g,z),Jt=new kt(b,M,l),It=new Gt(l,Jt,K.hMin,J,O,!1,T,y,et,m),_t=new Float32Array(S*It.stride),Ct=0;for(let t=0;t<S;++t)Ct=It.encode(_t,Ct,g[t],R[t],_[t],void 0,C[t],F[t]);let at=k.map(function(t){return t.index}).reverse(),Et=st.map(function(t){return t.index}).reverse(),ut=ct.map(function(t){return t.index}).reverse(),xt=W.map(function(t){return t.index}).reverse();return Et.unshift(ut[ut.length-1]),Et.push(at[0]),xt.unshift(at[at.length-1]),xt.push(ut[0]),{vertices:_t,indices:new Uint16Array(v),maximumHeight:J,minimumHeight:z,encoding:It,boundingSphere3D:jt,orientedBoundingBox:Rt,occludeePointInScaledSpace:Qt,vertexCountWithoutSkirts:Mt,indexCountWithoutSkirts:Xt,westIndicesSouthToNorth:at,southIndicesEastToWest:Et,eastIndicesNorthToSouth:ut,northIndicesWestToEast:xt}}function gt(n,l,e,i,c,et,m,ot,T,nt,it){let I=ot.length;for(let h=0;h<I;++h){let E=ot[h],f=E.cartographic,x=E.index,p=n.length,X=f.longitude,A=f.latitude;A=r.clamp(A,-r.PI_OVER_TWO,r.PI_OVER_TWO);let O=f.height-m.skirtHeight;m.hMin=Math.min(m.hMin,O),N.fromRadians(X,A,O,u),nt&&(u.longitude+=T),nt?h===I-1?u.latitude+=it:h===0&&(u.latitude-=it):u.latitude+=T;let j=m.ellipsoid.cartographicToCartesian(u);n.push(j),l.push(O),e.push(wt.clone(e[x])),i.length>0&&i.push(i[x]),c.length>0&&c.push(c[x]),$.multiplyByPoint(m.toENU,j,G);let V=m.minimum,Q=m.maximum;P.minimumByComponent(G,V,V),P.maximumByComponent(G,Q,Q);let ft=m.lastBorderPoint;if(ht(ft)){let y=ft.index;et.push(y,p-1,p,p,x,y)}m.lastBorderPoint=E}}var we=Lt(ee);export{we as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.135.0
|
|
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,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.135.0
|
|
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
|
+
*/
|
|
25
|
+
|
|
26
|
+
import{a as ar,b as sr}from"./chunk-BJAB7QAF.js";import{a as ir}from"./chunk-D2NFCOGE.js";import{a as xe}from"./chunk-XBWRWNYZ.js";import{a as nr}from"./chunk-SCO7TMKT.js";import"./chunk-VHZAK4GN.js";import"./chunk-ET7KY3BS.js";import{a as tr}from"./chunk-CUP6SILZ.js";import"./chunk-HSJ6GSLC.js";import"./chunk-SXKYZMEL.js";import{d as rr}from"./chunk-XQIJGAVD.js";import{b as Ie,h as er,i as ne}from"./chunk-UTYWXSQT.js";import"./chunk-RCHWDG3R.js";import"./chunk-4WJUWBRK.js";import{a as Re}from"./chunk-5G23AKP3.js";import{a as re,c as Pe,d as pe}from"./chunk-KWAHJ72S.js";import{a as he}from"./chunk-MKDADUG3.js";import{a as me}from"./chunk-NOIUI5SY.js";import{c as pr,d as Ir,e as W}from"./chunk-XRRBRTKL.js";var lr=pr((Zr,Ue)=>{/* 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 */(function(){var D=(function(){var A={};A.defaultNoDataValue=-34027999387901484e22,A.decode=function(r,a){a=a||{};var t=a.encodedMaskData||a.encodedMaskData===null,i=n(r,a.inputOffset||0,t),o=a.noDataValue!==null?a.noDataValue:A.defaultNoDataValue,s=V(i,a.pixelType||Float32Array,a.encodedMaskData,o,a.returnMask),u={width:i.width,height:i.height,pixelData:s.resultPixels,minValue:s.minValue,maxValue:i.pixels.maxValue,noDataValue:o};return s.resultMask&&(u.maskData=s.resultMask),a.returnEncodedMask&&i.mask&&(u.encodedMaskData=i.mask.bitset?i.mask.bitset:null),a.returnFileInfo&&(u.fileInfo=b(i),a.computeUsedBitDepths&&(u.fileInfo.bitDepths=Y(i))),u};var V=function(r,a,t,i,o){var s=0,u=r.pixels.numBlocksX,m=r.pixels.numBlocksY,l=Math.floor(r.width/u),f=Math.floor(r.height/m),h=2*r.maxZError,c=Number.MAX_VALUE,g;t=t||(r.mask?r.mask.bitset:null);var v,U;v=new a(r.width*r.height),o&&t&&(U=new Uint8Array(r.width*r.height));for(var M=new Float32Array(l*f),S,I,k=0;k<=m;k++){var w=k!==m?f:r.height%m;if(w!==0)for(var d=0;d<=u;d++){var x=d!==u?l:r.width%u;if(x!==0){var T=k*r.width*f+d*l,y=r.width-x,p=r.pixels.blocks[s],L,B,E;p.encoding<2?(p.encoding===0?L=p.rawData:(e(p.stuffedData,p.bitsPerPixel,p.numValidPixels,p.offset,h,M,r.pixels.maxValue),L=M),B=0):p.encoding===2?E=0:E=p.offset;var O;if(t)for(I=0;I<w;I++){for(T&7&&(O=t[T>>3],O<<=T&7),S=0;S<x;S++)T&7||(O=t[T>>3]),O&128?(U&&(U[T]=1),g=p.encoding<2?L[B++]:E,c=c>g?g:c,v[T++]=g):(U&&(U[T]=0),v[T++]=i),O<<=1;T+=y}else if(p.encoding<2)for(I=0;I<w;I++){for(S=0;S<x;S++)g=L[B++],c=c>g?g:c,v[T++]=g;T+=y}else for(c=c>E?E:c,I=0;I<w;I++){for(S=0;S<x;S++)v[T++]=E;T+=y}if(p.encoding===1&&B!==p.numValidPixels)throw"Block and Mask do not match";s++}}}return{resultPixels:v,resultMask:U,minValue:c}},b=function(r){return{fileIdentifierString:r.fileIdentifierString,fileVersion:r.fileVersion,imageType:r.imageType,height:r.height,width:r.width,maxZError:r.maxZError,eofOffset:r.eofOffset,mask:r.mask?{numBlocksX:r.mask.numBlocksX,numBlocksY:r.mask.numBlocksY,numBytes:r.mask.numBytes,maxValue:r.mask.maxValue}:null,pixels:{numBlocksX:r.pixels.numBlocksX,numBlocksY:r.pixels.numBlocksY,numBytes:r.pixels.numBytes,maxValue:r.pixels.maxValue,noDataValue:r.noDataValue}}},Y=function(r){for(var a=r.pixels.numBlocksX*r.pixels.numBlocksY,t={},i=0;i<a;i++){var o=r.pixels.blocks[i];o.encoding===0?t.float32=!0:o.encoding===1?t[o.bitsPerPixel]=!0:t[0]=!0}return Object.keys(t)},n=function(r,a,t){var i={},o=new Uint8Array(r,a,10);if(i.fileIdentifierString=String.fromCharCode.apply(null,o),i.fileIdentifierString.trim()!=="CntZImage")throw"Unexpected file identifier string: "+i.fileIdentifierString;a+=10;var s=new DataView(r,a,24);if(i.fileVersion=s.getInt32(0,!0),i.imageType=s.getInt32(4,!0),i.height=s.getUint32(8,!0),i.width=s.getUint32(12,!0),i.maxZError=s.getFloat64(16,!0),a+=24,!t)if(s=new DataView(r,a,16),i.mask={},i.mask.numBlocksY=s.getUint32(0,!0),i.mask.numBlocksX=s.getUint32(4,!0),i.mask.numBytes=s.getUint32(8,!0),i.mask.maxValue=s.getFloat32(12,!0),a+=16,i.mask.numBytes>0){var u=new Uint8Array(Math.ceil(i.width*i.height/8));s=new DataView(r,a,i.mask.numBytes);var m=s.getInt16(0,!0),l=2,f=0;do{if(m>0)for(;m--;)u[f++]=s.getUint8(l++);else{var h=s.getUint8(l++);for(m=-m;m--;)u[f++]=h}m=s.getInt16(l,!0),l+=2}while(l<i.mask.numBytes);if(m!==-32768||f<u.length)throw"Unexpected end of mask RLE encoding";i.mask.bitset=u,a+=i.mask.numBytes}else(i.mask.numBytes|i.mask.numBlocksY|i.mask.maxValue)===0&&(i.mask.bitset=new Uint8Array(Math.ceil(i.width*i.height/8)));s=new DataView(r,a,16),i.pixels={},i.pixels.numBlocksY=s.getUint32(0,!0),i.pixels.numBlocksX=s.getUint32(4,!0),i.pixels.numBytes=s.getUint32(8,!0),i.pixels.maxValue=s.getFloat32(12,!0),a+=16;var c=i.pixels.numBlocksX,g=i.pixels.numBlocksY,v=c+(i.width%c>0?1:0),U=g+(i.height%g>0?1:0);i.pixels.blocks=new Array(v*U);for(var M=0,S=0;S<U;S++)for(var I=0;I<v;I++){var k=0,w=r.byteLength-a;s=new DataView(r,a,Math.min(10,w));var d={};i.pixels.blocks[M++]=d;var x=s.getUint8(0);if(k++,d.encoding=x&63,d.encoding>3)throw"Invalid block encoding ("+d.encoding+")";if(d.encoding===2){a++;continue}if(x!==0&&x!==2){if(x>>=6,d.offsetType=x,x===2)d.offset=s.getInt8(1),k++;else if(x===1)d.offset=s.getInt16(1,!0),k+=2;else if(x===0)d.offset=s.getFloat32(1,!0),k+=4;else throw"Invalid block offset type";if(d.encoding===1)if(x=s.getUint8(k),k++,d.bitsPerPixel=x&63,x>>=6,d.numValidPixelsType=x,x===2)d.numValidPixels=s.getUint8(k),k++;else if(x===1)d.numValidPixels=s.getUint16(k,!0),k+=2;else if(x===0)d.numValidPixels=s.getUint32(k,!0),k+=4;else throw"Invalid valid pixel count type"}if(a+=k,d.encoding!==3){var T,y;if(d.encoding===0){var p=(i.pixels.numBytes-1)/4;if(p!==Math.floor(p))throw"uncompressed block has invalid length";T=new ArrayBuffer(p*4),y=new Uint8Array(T),y.set(new Uint8Array(r,a,p*4));var L=new Float32Array(T);d.rawData=L,a+=p*4}else if(d.encoding===1){var B=Math.ceil(d.numValidPixels*d.bitsPerPixel/8),E=Math.ceil(B/4);T=new ArrayBuffer(E*4),y=new Uint8Array(T),y.set(new Uint8Array(r,a,B)),d.stuffedData=new Uint32Array(T),a+=B}}}return i.eofOffset=a,i},e=function(r,a,t,i,o,s,u){var m=(1<<a)-1,l=0,f,h=0,c,g,v=Math.ceil((u-i)/o),U=r.length*4-Math.ceil(a*t/8);for(r[r.length-1]<<=8*U,f=0;f<t;f++){if(h===0&&(g=r[l++],h=32),h>=a)c=g>>>h-a&m,h-=a;else{var M=a-h;c=(g&m)<<M&m,g=r[l++],h=32-M,c+=g>>>h}s[f]=c<v?i+c*o:u}return s};return A})(),ae=(function(){"use strict";var A={unstuff:function(n,e,r,a,t,i,o,s){var u=(1<<r)-1,m=0,l,f=0,h,c,g,v,U=n.length*4-Math.ceil(r*a/8);if(n[n.length-1]<<=8*U,t)for(l=0;l<a;l++)f===0&&(c=n[m++],f=32),f>=r?(h=c>>>f-r&u,f-=r):(g=r-f,h=(c&u)<<g&u,c=n[m++],f=32-g,h+=c>>>f),e[l]=t[h];else for(v=Math.ceil((s-i)/o),l=0;l<a;l++)f===0&&(c=n[m++],f=32),f>=r?(h=c>>>f-r&u,f-=r):(g=r-f,h=(c&u)<<g&u,c=n[m++],f=32-g,h+=c>>>f),e[l]=h<v?i+h*o:s},unstuffLUT:function(n,e,r,a,t,i){var o=(1<<e)-1,s=0,u=0,m=0,l=0,f=0,h,c=[],g=n.length*4-Math.ceil(e*r/8);n[n.length-1]<<=8*g;var v=Math.ceil((i-a)/t);for(u=0;u<r;u++)l===0&&(h=n[s++],l=32),l>=e?(f=h>>>l-e&o,l-=e):(m=e-l,f=(h&o)<<m&o,h=n[s++],l=32-m,f+=h>>>l),c[u]=f<v?a+f*t:i;return c.unshift(a),c},unstuff2:function(n,e,r,a,t,i,o,s){var u=(1<<r)-1,m=0,l,f=0,h=0,c,g,v;if(t)for(l=0;l<a;l++)f===0&&(g=n[m++],f=32,h=0),f>=r?(c=g>>>h&u,f-=r,h+=r):(v=r-f,c=g>>>h&u,g=n[m++],f=32-v,c|=(g&(1<<v)-1)<<r-v,h=v),e[l]=t[c];else{var U=Math.ceil((s-i)/o);for(l=0;l<a;l++)f===0&&(g=n[m++],f=32,h=0),f>=r?(c=g>>>h&u,f-=r,h+=r):(v=r-f,c=g>>>h&u,g=n[m++],f=32-v,c|=(g&(1<<v)-1)<<r-v,h=v),e[l]=c<U?i+c*o:s}return e},unstuffLUT2:function(n,e,r,a,t,i){var o=(1<<e)-1,s=0,u=0,m=0,l=0,f=0,h=0,c,g=[],v=Math.ceil((i-a)/t);for(u=0;u<r;u++)l===0&&(c=n[s++],l=32,h=0),l>=e?(f=c>>>h&o,l-=e,h+=e):(m=e-l,f=c>>>h&o,c=n[s++],l=32-m,f|=(c&(1<<m)-1)<<e-m,h=m),g[u]=f<v?a+f*t:i;return g.unshift(a),g},originalUnstuff:function(n,e,r,a){var t=(1<<r)-1,i=0,o,s=0,u,m,l,f=n.length*4-Math.ceil(r*a/8);for(n[n.length-1]<<=8*f,o=0;o<a;o++)s===0&&(m=n[i++],s=32),s>=r?(u=m>>>s-r&t,s-=r):(l=r-s,u=(m&t)<<l&t,m=n[i++],s=32-l,u+=m>>>s),e[o]=u;return e},originalUnstuff2:function(n,e,r,a){var t=(1<<r)-1,i=0,o,s=0,u=0,m,l,f;for(o=0;o<a;o++)s===0&&(l=n[i++],s=32,u=0),s>=r?(m=l>>>u&t,s-=r,u+=r):(f=r-s,m=l>>>u&t,l=n[i++],s=32-f,m|=(l&(1<<f)-1)<<r-f,u=f),e[o]=m;return e}},V={HUFFMAN_LUT_BITS_MAX:12,computeChecksumFletcher32:function(n){for(var e=65535,r=65535,a=n.length,t=Math.floor(a/2),i=0;t;){var o=t>=359?359:t;t-=o;do e+=n[i++]<<8,r+=e+=n[i++];while(--o);e=(e&65535)+(e>>>16),r=(r&65535)+(r>>>16)}return a&1&&(r+=e+=n[i]<<8),e=(e&65535)+(e>>>16),r=(r&65535)+(r>>>16),(r<<16|e)>>>0},readHeaderInfo:function(n,e){var r=e.ptr,a=new Uint8Array(n,r,6),t={};if(t.fileIdentifierString=String.fromCharCode.apply(null,a),t.fileIdentifierString.lastIndexOf("Lerc2",0)!==0)throw"Unexpected file identifier string (expect Lerc2 ): "+t.fileIdentifierString;r+=6;var i=new DataView(n,r,8),o=i.getInt32(0,!0);t.fileVersion=o,r+=4,o>=3&&(t.checksum=i.getUint32(4,!0),r+=4),i=new DataView(n,r,12),t.height=i.getUint32(0,!0),t.width=i.getUint32(4,!0),r+=8,o>=4?(t.numDims=i.getUint32(8,!0),r+=4):t.numDims=1,i=new DataView(n,r,40),t.numValidPixel=i.getUint32(0,!0),t.microBlockSize=i.getInt32(4,!0),t.blobSize=i.getInt32(8,!0),t.imageType=i.getInt32(12,!0),t.maxZError=i.getFloat64(16,!0),t.zMin=i.getFloat64(24,!0),t.zMax=i.getFloat64(32,!0),r+=40,e.headerInfo=t,e.ptr=r;var s,u;if(o>=3&&(u=o>=4?52:48,s=this.computeChecksumFletcher32(new Uint8Array(n,r-u,t.blobSize-14)),s!==t.checksum))throw"Checksum failed.";return!0},checkMinMaxRanges:function(n,e){var r=e.headerInfo,a=this.getDataTypeArray(r.imageType),t=r.numDims*this.getDataTypeSize(r.imageType),i=this.readSubArray(n,e.ptr,a,t),o=this.readSubArray(n,e.ptr+t,a,t);e.ptr+=2*t;var s,u=!0;for(s=0;s<r.numDims;s++)if(i[s]!==o[s]){u=!1;break}return r.minValues=i,r.maxValues=o,u},readSubArray:function(n,e,r,a){var t;if(r===Uint8Array)t=new Uint8Array(n,e,a);else{var i=new ArrayBuffer(a),o=new Uint8Array(i);o.set(new Uint8Array(n,e,a)),t=new r(i)}return t},readMask:function(n,e){var r=e.ptr,a=e.headerInfo,t=a.width*a.height,i=a.numValidPixel,o=new DataView(n,r,4),s={};if(s.numBytes=o.getUint32(0,!0),r+=4,(i===0||t===i)&&s.numBytes!==0)throw"invalid mask";var u,m;if(i===0)u=new Uint8Array(Math.ceil(t/8)),s.bitset=u,m=new Uint8Array(t),e.pixels.resultMask=m,r+=s.numBytes;else if(s.numBytes>0){u=new Uint8Array(Math.ceil(t/8)),o=new DataView(n,r,s.numBytes);var l=o.getInt16(0,!0),f=2,h=0,c=0;do{if(l>0)for(;l--;)u[h++]=o.getUint8(f++);else for(c=o.getUint8(f++),l=-l;l--;)u[h++]=c;l=o.getInt16(f,!0),f+=2}while(f<s.numBytes);if(l!==-32768||h<u.length)throw"Unexpected end of mask RLE encoding";m=new Uint8Array(t);var g=0,v=0;for(v=0;v<t;v++)v&7?(g=u[v>>3],g<<=v&7):g=u[v>>3],g&128&&(m[v]=1);e.pixels.resultMask=m,s.bitset=u,r+=s.numBytes}return e.ptr=r,e.mask=s,!0},readDataOneSweep:function(n,e,r){var a=e.ptr,t=e.headerInfo,i=t.numDims,o=t.width*t.height,s=t.imageType,u=t.numValidPixel*V.getDataTypeSize(s)*i,m,l=e.pixels.resultMask;if(r===Uint8Array)m=new Uint8Array(n,a,u);else{var f=new ArrayBuffer(u),h=new Uint8Array(f);h.set(new Uint8Array(n,a,u)),m=new r(f)}if(m.length===o*i)e.pixels.resultPixels=m;else{e.pixels.resultPixels=new r(o*i);var c=0,g=0,v=0,U=0;if(i>1)for(v=0;v<i;v++)for(U=v*o,g=0;g<o;g++)l[g]&&(e.pixels.resultPixels[U+g]=m[c++]);else for(g=0;g<o;g++)l[g]&&(e.pixels.resultPixels[g]=m[c++])}return a+=u,e.ptr=a,!0},readHuffmanTree:function(n,e){var r=this.HUFFMAN_LUT_BITS_MAX,a=new DataView(n,e.ptr,16);e.ptr+=16;var t=a.getInt32(0,!0);if(t<2)throw"unsupported Huffman version";var i=a.getInt32(4,!0),o=a.getInt32(8,!0),s=a.getInt32(12,!0);if(o>=s)return!1;var u=new Uint32Array(s-o);V.decodeBits(n,e,u);var m=[],l,f,h,c;for(l=o;l<s;l++)f=l-(l<i?0:i),m[f]={first:u[l-o],second:null};var g=n.byteLength-e.ptr,v=Math.ceil(g/4),U=new ArrayBuffer(v*4),M=new Uint8Array(U);M.set(new Uint8Array(n,e.ptr,g));var S=new Uint32Array(U),I=0,k,w=0;for(k=S[0],l=o;l<s;l++)f=l-(l<i?0:i),c=m[f].first,c>0&&(m[f].second=k<<I>>>32-c,32-I>=c?(I+=c,I===32&&(I=0,w++,k=S[w])):(I+=c-32,w++,k=S[w],m[f].second|=k>>>32-I));var d=0,x=0,T=new b;for(l=0;l<m.length;l++)m[l]!==void 0&&(d=Math.max(d,m[l].first));d>=r?x=r:x=d,d>=30&&console.log("WARning, large NUM LUT BITS IS "+d);var y=[],p,L,B,E,O,F;for(l=o;l<s;l++)if(f=l-(l<i?0:i),c=m[f].first,c>0)if(p=[c,f],c<=x)for(L=m[f].second<<x-c,B=1<<x-c,h=0;h<B;h++)y[L|h]=p;else for(L=m[f].second,F=T,E=c-1;E>=0;E--)O=L>>>E&1,O?(F.right||(F.right=new b),F=F.right):(F.left||(F.left=new b),F=F.left),E===0&&!F.val&&(F.val=p[1]);return{decodeLut:y,numBitsLUTQick:x,numBitsLUT:d,tree:T,stuffedData:S,srcPtr:w,bitPos:I}},readHuffman:function(n,e,r){var a=e.headerInfo,t=a.numDims,i=e.headerInfo.height,o=e.headerInfo.width,s=o*i,u=this.readHuffmanTree(n,e),m=u.decodeLut,l=u.tree,f=u.stuffedData,h=u.srcPtr,c=u.bitPos,g=u.numBitsLUTQick,v=u.numBitsLUT,U=e.headerInfo.imageType===0?128:0,M,S,I,k=e.pixels.resultMask,w,d,x,T,y,p,L,B=0;c>0&&(h++,c=0);var E=f[h],O=e.encodeMode===1,F=new r(s*t),N=F,_;for(_=0;_<a.numDims;_++){if(t>1&&(N=new r(F.buffer,s*_,s),B=0),e.headerInfo.numValidPixel===o*i)for(p=0,T=0;T<i;T++)for(y=0;y<o;y++,p++){if(S=0,w=E<<c>>>32-g,d=w,32-c<g&&(w|=f[h+1]>>>64-c-g,d=w),m[d])S=m[d][1],c+=m[d][0];else for(w=E<<c>>>32-v,d=w,32-c<v&&(w|=f[h+1]>>>64-c-v,d=w),M=l,L=0;L<v;L++)if(x=w>>>v-L-1&1,M=x?M.right:M.left,!(M.left||M.right)){S=M.val,c=c+L+1;break}c>=32&&(c-=32,h++,E=f[h]),I=S-U,O?(y>0?I+=B:T>0?I+=N[p-o]:I+=B,I&=255,N[p]=I,B=I):N[p]=I}else for(p=0,T=0;T<i;T++)for(y=0;y<o;y++,p++)if(k[p]){if(S=0,w=E<<c>>>32-g,d=w,32-c<g&&(w|=f[h+1]>>>64-c-g,d=w),m[d])S=m[d][1],c+=m[d][0];else for(w=E<<c>>>32-v,d=w,32-c<v&&(w|=f[h+1]>>>64-c-v,d=w),M=l,L=0;L<v;L++)if(x=w>>>v-L-1&1,M=x?M.right:M.left,!(M.left||M.right)){S=M.val,c=c+L+1;break}c>=32&&(c-=32,h++,E=f[h]),I=S-U,O?(y>0&&k[p-1]?I+=B:T>0&&k[p-o]?I+=N[p-o]:I+=B,I&=255,N[p]=I,B=I):N[p]=I}e.ptr=e.ptr+(h+1)*4+(c>0?4:0)}e.pixels.resultPixels=F},decodeBits:function(n,e,r,a,t){{var i=e.headerInfo,o=i.fileVersion,s=0,u=new DataView(n,e.ptr,5),m=u.getUint8(0);s++;var l=m>>6,f=l===0?4:3-l,h=(m&32)>0,c=m&31,g=0;if(f===1)g=u.getUint8(s),s++;else if(f===2)g=u.getUint16(s,!0),s+=2;else if(f===4)g=u.getUint32(s,!0),s+=4;else throw"Invalid valid pixel count type";var v=2*i.maxZError,U,M,S,I,k,w,d,x,T,y,p=i.numDims>1?i.maxValues[t]:i.zMax;if(h){for(e.counter.lut++,x=u.getUint8(s),T=c,s++,I=Math.ceil((x-1)*c/8),k=Math.ceil(I/4),M=new ArrayBuffer(k*4),S=new Uint8Array(M),e.ptr+=s,S.set(new Uint8Array(n,e.ptr,I)),d=new Uint32Array(M),e.ptr+=I,y=0;x-1>>>y;)y++;I=Math.ceil(g*y/8),k=Math.ceil(I/4),M=new ArrayBuffer(k*4),S=new Uint8Array(M),S.set(new Uint8Array(n,e.ptr,I)),U=new Uint32Array(M),e.ptr+=I,o>=3?w=A.unstuffLUT2(d,c,x-1,a,v,p):w=A.unstuffLUT(d,c,x-1,a,v,p),o>=3?A.unstuff2(U,r,y,g,w):A.unstuff(U,r,y,g,w)}else e.counter.bitstuffer++,y=c,e.ptr+=s,y>0&&(I=Math.ceil(g*y/8),k=Math.ceil(I/4),M=new ArrayBuffer(k*4),S=new Uint8Array(M),S.set(new Uint8Array(n,e.ptr,I)),U=new Uint32Array(M),e.ptr+=I,o>=3?a==null?A.originalUnstuff2(U,r,y,g):A.unstuff2(U,r,y,g,!1,a,v,p):a==null?A.originalUnstuff(U,r,y,g):A.unstuff(U,r,y,g,!1,a,v,p))}},readTiles:function(n,e,r){var a=e.headerInfo,t=a.width,i=a.height,o=a.microBlockSize,s=a.imageType,u=V.getDataTypeSize(s),m=Math.ceil(t/o),l=Math.ceil(i/o);e.pixels.numBlocksY=l,e.pixels.numBlocksX=m,e.pixels.ptr=0;var f=0,h=0,c=0,g=0,v=0,U=0,M=0,S=0,I=0,k=0,w=0,d=0,x=0,T=0,y=0,p=0,L,B,E,O,F,N,_=new r(o*o),Te=i%o||o,ke=t%o||o,Q,z,le=a.numDims,ie,Z=e.pixels.resultMask,j=e.pixels.resultPixels;for(c=0;c<l;c++)for(v=c!==l-1?o:Te,g=0;g<m;g++)for(U=g!==m-1?o:ke,w=c*t*o+g*o,d=t-U,ie=0;ie<le;ie++){if(le>1&&(j=new r(e.pixels.resultPixels.buffer,t*i*ie*u,t*i)),M=n.byteLength-e.ptr,L=new DataView(n,e.ptr,Math.min(10,M)),B={},p=0,S=L.getUint8(0),p++,I=S>>6&255,k=S>>2&15,k!==(g*o>>3&15))throw"integrity issue";if(N=S&3,N>3)throw e.ptr+=p,"Invalid block encoding ("+N+")";if(N===2){e.counter.constant++,e.ptr+=p;continue}else if(N===0){if(e.counter.uncompressed++,e.ptr+=p,x=v*U*u,T=n.byteLength-e.ptr,x=x<T?x:T,E=new ArrayBuffer(x%u===0?x:x+u-x%u),O=new Uint8Array(E),O.set(new Uint8Array(n,e.ptr,x)),F=new r(E),y=0,Z)for(f=0;f<v;f++){for(h=0;h<U;h++)Z[w]&&(j[w]=F[y++]),w++;w+=d}else for(f=0;f<v;f++){for(h=0;h<U;h++)j[w++]=F[y++];w+=d}e.ptr+=y*u}else if(Q=V.getDataTypeUsed(s,I),z=V.getOnePixel(B,p,Q,L),p+=V.getDataTypeSize(Q),N===3)if(e.ptr+=p,e.counter.constantoffset++,Z)for(f=0;f<v;f++){for(h=0;h<U;h++)Z[w]&&(j[w]=z),w++;w+=d}else for(f=0;f<v;f++){for(h=0;h<U;h++)j[w++]=z;w+=d}else if(e.ptr+=p,V.decodeBits(n,e,_,z,ie),p=0,Z)for(f=0;f<v;f++){for(h=0;h<U;h++)Z[w]&&(j[w]=_[p++]),w++;w+=d}else for(f=0;f<v;f++){for(h=0;h<U;h++)j[w++]=_[p++];w+=d}}},formatFileInfo:function(n){return{fileIdentifierString:n.headerInfo.fileIdentifierString,fileVersion:n.headerInfo.fileVersion,imageType:n.headerInfo.imageType,height:n.headerInfo.height,width:n.headerInfo.width,numValidPixel:n.headerInfo.numValidPixel,microBlockSize:n.headerInfo.microBlockSize,blobSize:n.headerInfo.blobSize,maxZError:n.headerInfo.maxZError,pixelType:V.getPixelType(n.headerInfo.imageType),eofOffset:n.eofOffset,mask:n.mask?{numBytes:n.mask.numBytes}:null,pixels:{numBlocksX:n.pixels.numBlocksX,numBlocksY:n.pixels.numBlocksY,maxValue:n.headerInfo.zMax,minValue:n.headerInfo.zMin,noDataValue:n.noDataValue}}},constructConstantSurface:function(n){var e=n.headerInfo.zMax,r=n.headerInfo.numDims,a=n.headerInfo.height*n.headerInfo.width,t=a*r,i=0,o=0,s=0,u=n.pixels.resultMask;if(u)if(r>1)for(i=0;i<r;i++)for(s=i*a,o=0;o<a;o++)u[o]&&(n.pixels.resultPixels[s+o]=e);else for(o=0;o<a;o++)u[o]&&(n.pixels.resultPixels[o]=e);else if(n.pixels.resultPixels.fill)n.pixels.resultPixels.fill(e);else for(o=0;o<t;o++)n.pixels.resultPixels[o]=e},getDataTypeArray:function(n){var e;switch(n){case 0:e=Int8Array;break;case 1:e=Uint8Array;break;case 2:e=Int16Array;break;case 3:e=Uint16Array;break;case 4:e=Int32Array;break;case 5:e=Uint32Array;break;case 6:e=Float32Array;break;case 7:e=Float64Array;break;default:e=Float32Array}return e},getPixelType:function(n){var e;switch(n){case 0:e="S8";break;case 1:e="U8";break;case 2:e="S16";break;case 3:e="U16";break;case 4:e="S32";break;case 5:e="U32";break;case 6:e="F32";break;case 7:e="F64";break;default:e="F32"}return e},isValidPixelValue:function(n,e){if(e==null)return!1;var r;switch(n){case 0:r=e>=-128&&e<=127;break;case 1:r=e>=0&&e<=255;break;case 2:r=e>=-32768&&e<=32767;break;case 3:r=e>=0&&e<=65536;break;case 4:r=e>=-2147483648&&e<=2147483647;break;case 5:r=e>=0&&e<=4294967296;break;case 6:r=e>=-34027999387901484e22&&e<=34027999387901484e22;break;case 7:r=e>=5e-324&&e<=17976931348623157e292;break;default:r=!1}return r},getDataTypeSize:function(n){var e=0;switch(n){case 0:case 1:e=1;break;case 2:case 3:e=2;break;case 4:case 5:case 6:e=4;break;case 7:e=8;break;default:e=n}return e},getDataTypeUsed:function(n,e){var r=n;switch(n){case 2:case 4:r=n-e;break;case 3:case 5:r=n-2*e;break;case 6:e===0?r=n:e===1?r=2:r=1;break;case 7:e===0?r=n:r=n-2*e+1;break;default:r=n;break}return r},getOnePixel:function(n,e,r,a){var t=0;switch(r){case 0:t=a.getInt8(e);break;case 1:t=a.getUint8(e);break;case 2:t=a.getInt16(e,!0);break;case 3:t=a.getUint16(e,!0);break;case 4:t=a.getInt32(e,!0);break;case 5:t=a.getUInt32(e,!0);break;case 6:t=a.getFloat32(e,!0);break;case 7:t=a.getFloat64(e,!0);break;default:throw"the decoder does not understand this pixel type"}return t}},b=function(n,e,r){this.val=n,this.left=e,this.right=r},Y={decode:function(n,e){e=e||{};var r=e.noDataValue,a=0,t={};if(t.ptr=e.inputOffset||0,t.pixels={},!!V.readHeaderInfo(n,t)){var i=t.headerInfo,o=i.fileVersion,s=V.getDataTypeArray(i.imageType);V.readMask(n,t),i.numValidPixel!==i.width*i.height&&!t.pixels.resultMask&&(t.pixels.resultMask=e.maskData);var u=i.width*i.height;if(t.pixels.resultPixels=new s(u*i.numDims),t.counter={onesweep:0,uncompressed:0,lut:0,bitstuffer:0,constant:0,constantoffset:0},i.numValidPixel!==0)if(i.zMax===i.zMin)V.constructConstantSurface(t);else if(o>=4&&V.checkMinMaxRanges(n,t))V.constructConstantSurface(t);else{var m=new DataView(n,t.ptr,2),l=m.getUint8(0);if(t.ptr++,l)V.readDataOneSweep(n,t,s);else if(o>1&&i.imageType<=1&&Math.abs(i.maxZError-.5)<1e-5){var f=m.getUint8(1);if(t.ptr++,t.encodeMode=f,f>2||o<4&&f>1)throw"Invalid Huffman flag "+f;f?V.readHuffman(n,t,s):V.readTiles(n,t,s)}else V.readTiles(n,t,s)}t.eofOffset=t.ptr;var h;e.inputOffset?(h=t.headerInfo.blobSize+e.inputOffset-t.ptr,Math.abs(h)>=1&&(t.eofOffset=e.inputOffset+t.headerInfo.blobSize)):(h=t.headerInfo.blobSize-t.ptr,Math.abs(h)>=1&&(t.eofOffset=t.headerInfo.blobSize));var c={width:i.width,height:i.height,pixelData:t.pixels.resultPixels,minValue:i.zMin,maxValue:i.zMax,validPixelCount:i.numValidPixel,dimCount:i.numDims,dimStats:{minValues:i.minValues,maxValues:i.maxValues},maskData:t.pixels.resultMask};if(t.pixels.resultMask&&V.isValidPixelValue(i.imageType,r)){var g=t.pixels.resultMask;for(a=0;a<u;a++)g[a]||(c.pixelData[a]=r);c.noDataValue=r}return t.noDataValue=r,e.returnFileInfo&&(c.fileInfo=V.formatFileInfo(t)),c}},getBandCount:function(n){var e=0,r=0,a={};for(a.ptr=0,a.pixels={};r<n.byteLength-58;)V.readHeaderInfo(n,a),r+=a.headerInfo.blobSize,e++,a.ptr=r;return e}};return Y})(),C=(function(){var A=new ArrayBuffer(4),V=new Uint8Array(A),b=new Uint32Array(A);return b[0]=1,V[0]===1})(),ee={decode:function(A,V){if(!C)throw"Big endian system is not supported.";V=V||{};var b=V.inputOffset||0,Y=new Uint8Array(A,b,10),n=String.fromCharCode.apply(null,Y),e,r;if(n.trim()==="CntZImage")e=D,r=1;else if(n.substring(0,5)==="Lerc2")e=ae,r=2;else throw"Unexpected file identifier string: "+n;for(var a=0,t=A.byteLength-10,i,o=[],s,u,m={width:0,height:0,pixels:[],pixelType:V.pixelType,mask:null,statistics:[]};b<t;){var l=e.decode(A,{inputOffset:b,encodedMaskData:i,maskData:u,returnMask:a===0,returnEncodedMask:a===0,returnFileInfo:!0,pixelType:V.pixelType||null,noDataValue:V.noDataValue||null});b=l.fileInfo.eofOffset,a===0&&(i=l.encodedMaskData,u=l.maskData,m.width=l.width,m.height=l.height,m.dimCount=l.dimCount||1,m.pixelType=l.pixelType||l.fileInfo.pixelType,m.mask=l.maskData),r>1&&l.fileInfo.mask&&l.fileInfo.mask.numBytes>0&&o.push(l.maskData),a++,m.pixels.push(l.pixelData),m.statistics.push({minValue:l.minValue,maxValue:l.maxValue,noDataValue:l.noDataValue,dimStats:l.dimStats})}var f,h,c;if(r>1&&o.length>1){for(c=m.width*m.height,m.bandMasks=o,u=new Uint8Array(c),u.set(o[0]),f=1;f<o.length;f++)for(s=o[f],h=0;h<c;h++)u[h]=u[h]&s[h];m.maskData=u}return m}};typeof define=="function"&&define.amd?define([],function(){return ee}):typeof Ue<"u"&&Ue.exports?Ue.exports=ee:this.Lerc=ee})()});var xr={NONE:0,LERC:1},fr=Object.freeze(xr);var G={};G.DEFAULT_STRUCTURE=Object.freeze({heightScale:1,heightOffset:0,elementsPerHeight:1,stride:1,elementMultiplier:256,isBigEndian:!1});var He=new re,Ur=new Ie,Tr=new re,kr=new re;G.computeVertices=function(D){if(!W(D)||!W(D.heightmap))throw new me("options.heightmap is required.");if(!W(D.width)||!W(D.height))throw new me("options.width and options.height are required.");if(!W(D.nativeRectangle))throw new me("options.nativeRectangle is required.");if(!W(D.skirtHeight))throw new me("options.skirtHeight is required.");let ae=Math.cos,C=Math.sin,ee=Math.sqrt,A=Math.atan,V=Math.exp,b=he.PI_OVER_TWO,Y=he.toRadians,n=D.heightmap,e=D.width,r=D.height,a=D.skirtHeight,t=a>0,i=D.isGeographic??!0,o=D.ellipsoid??pe.default,s=1/o.maximumRadius,u=ne.clone(D.nativeRectangle),m=ne.clone(D.rectangle),l,f,h,c;W(m)?(l=m.west,f=m.south,h=m.east,c=m.north):i?(l=Y(u.west),f=Y(u.south),h=Y(u.east),c=Y(u.north)):(l=u.west*s,f=b-2*A(V(-u.south*s)),h=u.east*s,c=b-2*A(V(-u.north*s)));let g=D.relativeToCenter,v=W(g);g=v?g:re.ZERO;let U=D.includeWebMercatorT??!1,M=D.exaggeration??1,S=D.exaggerationRelativeHeight??0,k=M!==1,w=D.structure??G.DEFAULT_STRUCTURE,d=w.heightScale??G.DEFAULT_STRUCTURE.heightScale,x=w.heightOffset??G.DEFAULT_STRUCTURE.heightOffset,T=w.elementsPerHeight??G.DEFAULT_STRUCTURE.elementsPerHeight,y=w.stride??G.DEFAULT_STRUCTURE.stride,p=w.elementMultiplier??G.DEFAULT_STRUCTURE.elementMultiplier,L=w.isBigEndian??G.DEFAULT_STRUCTURE.isBigEndian,B=ne.computeWidth(u),E=ne.computeHeight(u),O=B/(e-1),F=E/(r-1);i||(B*=s,E*=s);let N=o.radiiSquared,_=N.x,Te=N.y,ke=N.z,Q=65536,z=-65536,le=er.eastNorthUpToFixedFrame(g,o),ie=Ie.inverseTransformation(le,Ur),Z,j;U&&(Z=xe.geodeticLatitudeToMercatorAngle(f),j=1/(xe.geodeticLatitudeToMercatorAngle(c)-Z));let se=Tr;se.x=Number.POSITIVE_INFINITY,se.y=Number.POSITIVE_INFINITY,se.z=Number.POSITIVE_INFINITY;let fe=kr;fe.x=Number.NEGATIVE_INFINITY,fe.y=Number.NEGATIVE_INFINITY,fe.z=Number.NEGATIVE_INFINITY;let ye=Number.POSITIVE_INFINITY,ue=e*r,cr=a>0?e*2+r*2:0,te=ue+cr,ge=new Array(te),Ye=new Array(te),Xe=new Array(te),_e=U?new Array(te):[],ze=k?new Array(te):[],Me=0,Se=r,Ve=0,De=e;t&&(--Me,++Se,--Ve,++De);let ve=1e-5;for(let H=Me;H<Se;++H){let J=H;J<0&&(J=0),J>=r&&(J=r-1);let q=u.north-F*J;i?q=Y(q):q=b-2*A(V(-q*s));let Ee=(q-f)/(c-f);Ee=he.clamp(Ee,0,1);let de=H===Me,we=H===Se-1;a>0&&(de?q+=ve*E:we&&(q-=ve*E));let Ge=ae(q),Le=C(q),Qe=ke*Le,Je;U&&(Je=(xe.geodeticLatitudeToMercatorAngle(q)-Z)*j);for(let ce=Ve;ce<De;++ce){let K=ce;K<0&&(K=0),K>=e&&(K=e-1);let Be=J*(e*y)+K*y,R;if(T===1)R=n[Be];else{R=0;let X;if(L)for(X=0;X<T;++X)R=R*p+n[Be+X];else for(X=T-1;X>=0;--X)R=R*p+n[Be+X]}R=R*d+x,z=Math.max(z,R),Q=Math.min(Q,R);let $=u.west+O*K;i?$=Y($):$=$*s;let Fe=($-l)/(h-l);Fe=he.clamp(Fe,0,1);let P=J*e+K;if(a>0){let X=ce===Ve,Oe=ce===De-1,wr=de||we||X||Oe;if((de||we)&&(X||Oe))continue;wr&&(R-=a,X?(P=ue+(r-J-1),$-=ve*B):we?P=ue+r+(e-K-1):Oe?(P=ue+r+e+J,$+=ve*B):de&&(P=ue+r+e+r+K))}let be=Ge*ae($),Ne=Ge*C($),Ke=_*be,$e=Te*Ne,Ce=1/ee(Ke*be+$e*Ne+Qe*Le),gr=Ke*Ce,vr=$e*Ce,dr=Qe*Ce,oe=new re;oe.x=gr+be*R,oe.y=vr+Ne*R,oe.z=dr+Le*R,Ie.multiplyByPoint(ie,oe,He),re.minimumByComponent(He,se,se),re.maximumByComponent(He,fe,fe),ye=Math.min(ye,R),ge[P]=oe,Xe[P]=new Pe(Fe,Ee),Ye[P]=R,U&&(_e[P]=Je),k&&(ze[P]=o.geodeticSurfaceNormal(oe))}}let mr=rr.fromPoints(ge),Ze;W(m)&&(Ze=nr.fromRectangle(m,Q,z,o));let je;v&&(je=new ar(o).computeHorizonCullingPointPossiblyUnderEllipsoid(g,ge,Q));let hr=new tr(se,fe,g),Ae=new sr(g,hr,ye,z,le,!1,U,k,M,S),qe=new Float32Array(te*Ae.stride),We=0;for(let H=0;H<te;++H)We=Ae.encode(qe,We,ge[H],Xe[H],Ye[H],void 0,_e[H],ze[H]);return{vertices:qe,maximumHeight:z,minimumHeight:Q,encoding:Ae,boundingSphere3D:mr,orientedBoundingBox:Ze,occludeePointInScaledSpace:je}};var or=G;var ur=Ir(lr(),1);function yr(D,ae){if(D.encoding===fr.LERC){let A;try{A=ur.default.decode(D.heightmap)}catch(b){throw new Re(b)}if(A.statistics[0].minValue===Number.MAX_VALUE)throw new Re("Invalid tile data");D.heightmap=A.pixels[0],D.width=A.width,D.height=A.height}D.ellipsoid=pe.clone(D.ellipsoid),D.rectangle=ne.clone(D.rectangle);let C=or.computeVertices(D),ee=C.vertices;return ae.push(ee.buffer),{vertices:ee.buffer,numberOfAttributes:C.encoding.stride,minimumHeight:C.minimumHeight,maximumHeight:C.maximumHeight,gridWidth:D.width,gridHeight:D.height,boundingSphere3D:C.boundingSphere3D,orientedBoundingBox:C.orientedBoundingBox,occludeePointInScaledSpace:C.occludeePointInScaledSpace,encoding:C.encoding,westIndicesSouthToNorth:C.westIndicesSouthToNorth,southIndicesEastToWest:C.southIndicesEastToWest,eastIndicesNorthToSouth:C.eastIndicesNorthToSouth,northIndicesWestToEast:C.northIndicesWestToEast}}var Kr=ir(yr);export{Kr 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.135.0
|
|
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,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.135.0
|
|
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
|
+
*/
|
|
25
|
+
|
|
26
|
+
import{a as At}from"./chunk-YY6GMQGO.js";import{a as Ot,b as pt}from"./chunk-BJAB7QAF.js";import{a as Et}from"./chunk-D2NFCOGE.js";import{a as z}from"./chunk-XBWRWNYZ.js";import"./chunk-VHZAK4GN.js";import{a as bt}from"./chunk-CUP6SILZ.js";import{a as Mt}from"./chunk-T6Q6HX5J.js";import"./chunk-XQIJGAVD.js";import{b as Y,h as wt,i as yt}from"./chunk-UTYWXSQT.js";import"./chunk-RCHWDG3R.js";import"./chunk-4WJUWBRK.js";import"./chunk-5G23AKP3.js";import{a as O,b as xt,c as rt,d as St}from"./chunk-KWAHJ72S.js";import{a as T}from"./chunk-MKDADUG3.js";import"./chunk-NOIUI5SY.js";import{e as D}from"./chunk-XRRBRTKL.js";var ut=32767,G=new O,Gt=new O,Ut=new O,n=new xt,F=new rt;function qt(t,M){let c=t.quantizedVertices,o=c.length/3,u=t.octEncodedNormals,p=t.westIndices.length+t.eastIndices.length+t.southIndices.length+t.northIndices.length,l=t.includeWebMercatorT,E=t.exaggeration,N=t.exaggerationRelativeHeight,A=E!==1,r=yt.clone(t.rectangle),H=r.west,P=r.south,_=r.east,b=r.north,s=St.clone(t.ellipsoid),a=t.minimumHeight,x=t.maximumHeight,h=t.relativeToCenter,B=wt.eastNorthUpToFixedFrame(h,s),S=Y.inverseTransformation(B,new Y),w,f;l&&(w=z.geodeticLatitudeToMercatorAngle(P),f=1/(z.geodeticLatitudeToMercatorAngle(b)-w));let U=c.subarray(0,o),q=c.subarray(o,2*o),R=c.subarray(o*2,3*o),W=D(u),i=new Array(o),g=new Array(o),X=new Array(o),ht=l?new Array(o):[],dt=A?new Array(o):[],I=Gt;I.x=Number.POSITIVE_INFINITY,I.y=Number.POSITIVE_INFINITY,I.z=Number.POSITIVE_INFINITY;let m=Ut;m.x=Number.NEGATIVE_INFINITY,m.y=Number.NEGATIVE_INFINITY,m.z=Number.NEGATIVE_INFINITY;let Z=Number.POSITIVE_INFINITY,$=Number.NEGATIVE_INFINITY,tt=Number.POSITIVE_INFINITY,et=Number.NEGATIVE_INFINITY;for(let e=0;e<o;++e){let d=U[e],zt=q[e],mt=d/ut,Tt=zt/ut,Nt=T.lerp(a,x,R[e]/ut);n.longitude=T.lerp(H,_,mt),n.latitude=T.lerp(P,b,Tt),n.height=Nt,Z=Math.min(n.longitude,Z),$=Math.max(n.longitude,$),tt=Math.min(n.latitude,tt),et=Math.max(n.latitude,et);let st=s.cartographicToCartesian(n);i[e]=new rt(mt,Tt),g[e]=Nt,X[e]=st,l&&(ht[e]=(z.geodeticLatitudeToMercatorAngle(n.latitude)-w)*f),A&&(dt[e]=s.geodeticSurfaceNormal(st)),Y.multiplyByPoint(S,st,G),O.minimumByComponent(G,I,I),O.maximumByComponent(G,m,m)}let ot=K(t.westIndices,function(e,d){return i[e].y-i[d].y}),nt=K(t.eastIndices,function(e,d){return i[d].y-i[e].y}),it=K(t.southIndices,function(e,d){return i[d].x-i[e].x}),ct=K(t.northIndices,function(e,d){return i[e].x-i[d].x}),at;a<0&&(at=new Ot(s).computeHorizonCullingPointPossiblyUnderEllipsoid(h,X,a));let y=a;y=Math.min(y,Q(t.westIndices,t.westSkirtHeight,g,i,r,s,S,I,m)),y=Math.min(y,Q(t.southIndices,t.southSkirtHeight,g,i,r,s,S,I,m)),y=Math.min(y,Q(t.eastIndices,t.eastSkirtHeight,g,i,r,s,S,I,m)),y=Math.min(y,Q(t.northIndices,t.northSkirtHeight,g,i,r,s,S,I,m));let Ht=new bt(I,m,h),V=new pt(h,Ht,y,x,B,W,l,A,E,N),C=V.stride,Pt=o*C+p*C,L=new Float32Array(Pt),lt=0;for(let e=0;e<o;++e){if(W){let d=e*2;F.x=u[d],F.y=u[d+1]}lt=V.encode(L,lt,X[e],i[e],g[e],F,ht[e],dt[e])}let Vt=Math.max(0,(p-4)*2),Ct=t.indices.length+Vt*3,j=Mt.createTypedArray(o+p,Ct);j.set(t.indices,0);let ft=1e-4,gt=($-Z)*ft,It=(et-tt)*ft,Lt=-gt,kt=0,vt=gt,Bt=0,Ft=0,_t=It,Wt=0,Yt=-It,k=o*C;return J(L,k,ot,V,g,i,u,s,r,t.westSkirtHeight,w,f,Lt,kt),k+=t.westIndices.length*C,J(L,k,it,V,g,i,u,s,r,t.southSkirtHeight,w,f,Wt,Yt),k+=t.southIndices.length*C,J(L,k,nt,V,g,i,u,s,r,t.eastSkirtHeight,w,f,vt,Bt),k+=t.eastIndices.length*C,J(L,k,ct,V,g,i,u,s,r,t.northSkirtHeight,w,f,Ft,_t),At.addSkirtIndices(ot,it,nt,ct,o,j,t.indices.length),M.push(L.buffer,j.buffer),{vertices:L.buffer,indices:j.buffer,westIndicesSouthToNorth:ot,southIndicesEastToWest:it,eastIndicesNorthToSouth:nt,northIndicesWestToEast:ct,vertexStride:C,center:h,minimumHeight:a,maximumHeight:x,occludeePointInScaledSpace:at,encoding:V,indexCountWithoutSkirts:t.indices.length}}function Q(t,M,c,o,u,p,l,E,N){let v=Number.POSITIVE_INFINITY,A=u.north,r=u.south,H=u.east,P=u.west;H<P&&(H+=T.TWO_PI);let _=t.length;for(let b=0;b<_;++b){let s=t[b],a=c[s],x=o[s];n.longitude=T.lerp(P,H,x.x),n.latitude=T.lerp(r,A,x.y),n.height=a-M;let h=p.cartographicToCartesian(n,G);Y.multiplyByPoint(l,h,h),O.minimumByComponent(h,E,E),O.maximumByComponent(h,N,N),v=Math.min(v,n.height)}return v}function J(t,M,c,o,u,p,l,E,N,v,A,r,H,P){let _=D(l),b=N.north,s=N.south,a=N.east,x=N.west;a<x&&(a+=T.TWO_PI);let h=c.length;for(let B=0;B<h;++B){let S=c[B],w=u[S],f=p[S];n.longitude=T.lerp(x,a,f.x)+H,n.latitude=T.lerp(s,b,f.y)+P,n.height=w-v;let U=E.cartographicToCartesian(n,G);if(_){let W=S*2;F.x=l[W],F.y=l[W+1]}let q;o.hasWebMercatorT&&(q=(z.geodeticLatitudeToMercatorAngle(n.latitude)-A)*r);let R;o.hasGeodeticSurfaceNormals&&(R=E.geodeticSurfaceNormal(U)),M=o.encode(t,M,U,f,n.height,F,q,R)}}function K(t,M){let c;return typeof t.slice=="function"&&(c=t.slice(),typeof c.sort!="function"&&(c=void 0)),D(c)||(c=Array.prototype.slice.call(t)),c.sort(M),c}var re=Et(qt);export{re as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.135.0
|
|
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,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.135.0
|
|
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
|
+
*/
|
|
25
|
+
|
|
26
|
+
import{a as nt}from"./chunk-VTK7G5BX.js";import"./chunk-QORMFUM4.js";import"./chunk-FWF3VNA2.js";import{a as w}from"./chunk-APG2S62J.js";import"./chunk-AZLP5742.js";import"./chunk-5HPISDSZ.js";import"./chunk-HSJ6GSLC.js";import"./chunk-SXKYZMEL.js";import{a as ot}from"./chunk-T6Q6HX5J.js";import{a as it}from"./chunk-4MJDNHOT.js";import{b as tt,c as et,d as R}from"./chunk-EDF5FKWJ.js";import{d as I}from"./chunk-XQIJGAVD.js";import"./chunk-UTYWXSQT.js";import{a as N}from"./chunk-RCHWDG3R.js";import"./chunk-4WJUWBRK.js";import"./chunk-5G23AKP3.js";import{a as s,d as l,f as K}from"./chunk-KWAHJ72S.js";import{a as V}from"./chunk-MKDADUG3.js";import{a as y}from"./chunk-NOIUI5SY.js";import{e as r}from"./chunk-XRRBRTKL.js";var Q=new s,J=new s,lt=new s,st=new s,pt=new s,ut=new s,ft=new s;function E(t){t=t??K.EMPTY_OBJECT;let e=t.positions,o=t.maximumHeights,n=t.minimumHeights;if(!r(e))throw new y("options.positions is required.");if(r(o)&&o.length!==e.length)throw new y("options.positions and options.maximumHeights must have the same length.");if(r(n)&&n.length!==e.length)throw new y("options.positions and options.minimumHeights must have the same length.");let i=t.vertexFormat??w.DEFAULT,c=t.granularity??V.RADIANS_PER_DEGREE,a=t.ellipsoid??l.default;this._positions=e,this._minimumHeights=n,this._maximumHeights=o,this._vertexFormat=w.clone(i),this._granularity=c,this._ellipsoid=l.clone(a),this._workerName="createWallGeometry";let m=1+e.length*s.packedLength+2;r(n)&&(m+=n.length),r(o)&&(m+=o.length),this.packedLength=m+l.packedLength+w.packedLength+1}E.pack=function(t,e,o){if(!r(t))throw new y("value is required");if(!r(e))throw new y("array is required");o=o??0;let n,i=t._positions,c=i.length;for(e[o++]=c,n=0;n<c;++n,o+=s.packedLength)s.pack(i[n],e,o);let a=t._minimumHeights;if(c=r(a)?a.length:0,e[o++]=c,r(a))for(n=0;n<c;++n)e[o++]=a[n];let m=t._maximumHeights;if(c=r(m)?m.length:0,e[o++]=c,r(m))for(n=0;n<c;++n)e[o++]=m[n];return l.pack(t._ellipsoid,e,o),o+=l.packedLength,w.pack(t._vertexFormat,e,o),o+=w.packedLength,e[o]=t._granularity,e};var mt=l.clone(l.UNIT_SPHERE),rt=new w,U={positions:void 0,minimumHeights:void 0,maximumHeights:void 0,ellipsoid:mt,vertexFormat:rt,granularity:void 0};E.unpack=function(t,e,o){if(!r(t))throw new y("array is required");e=e??0;let n,i=t[e++],c=new Array(i);for(n=0;n<i;++n,e+=s.packedLength)c[n]=s.unpack(t,e);i=t[e++];let a;if(i>0)for(a=new Array(i),n=0;n<i;++n)a[n]=t[e++];i=t[e++];let m;if(i>0)for(m=new Array(i),n=0;n<i;++n)m[n]=t[e++];let S=l.unpack(t,e,mt);e+=l.packedLength;let _=w.unpack(t,e,rt);e+=w.packedLength;let f=t[e];return r(o)?(o._positions=c,o._minimumHeights=a,o._maximumHeights=m,o._ellipsoid=l.clone(S,o._ellipsoid),o._vertexFormat=w.clone(_,o._vertexFormat),o._granularity=f,o):(U.positions=c,U.minimumHeights=a,U.maximumHeights=m,U.granularity=f,new E(U))};E.fromConstantHeights=function(t){t=t??K.EMPTY_OBJECT;let e=t.positions;if(!r(e))throw new y("options.positions is required.");let o,n,i=t.minimumHeight,c=t.maximumHeight,a=r(i),m=r(c);if(a||m){let _=e.length;o=a?new Array(_):void 0,n=m?new Array(_):void 0;for(let f=0;f<_;++f)a&&(o[f]=i),m&&(n[f]=c)}let S={positions:e,maximumHeights:n,minimumHeights:o,ellipsoid:t.ellipsoid,vertexFormat:t.vertexFormat};return new E(S)};E.createGeometry=function(t){let e=t._positions,o=t._minimumHeights,n=t._maximumHeights,i=t._vertexFormat,c=t._granularity,a=t._ellipsoid,m=nt.computePositions(a,e,n,o,c,!0);if(!r(m))return;let S=m.bottomPositions,_=m.topPositions,f=m.numCorners,q=_.length,A=q*2,h=i.position?new Float64Array(A):void 0,P=i.normal?new Float32Array(A):void 0,b=i.tangent?new Float32Array(A):void 0,x=i.bitangent?new Float32Array(A):void 0,B=i.st?new Float32Array(A/3*2):void 0,k=0,v=0,T=0,C=0,W=0,g=ft,d=ut,H=pt,Y=!0;q/=3;let p,Z=0,ct=1/(q-f-1);for(p=0;p<q;++p){let L=p*3,u=s.fromArray(_,L,Q),M=s.fromArray(S,L,J);if(i.position&&(h[k++]=M.x,h[k++]=M.y,h[k++]=M.z,h[k++]=u.x,h[k++]=u.y,h[k++]=u.z),i.st&&(B[W++]=Z,B[W++]=0,B[W++]=Z,B[W++]=1),i.normal||i.tangent||i.bitangent){let O=s.clone(s.ZERO,st),j=s.subtract(u,a.geodeticSurfaceNormal(u,J),J);if(p+1<q&&(O=s.fromArray(_,L+3,st)),Y){let G=s.subtract(O,u,lt),at=s.subtract(j,u,Q);g=s.normalize(s.cross(at,G,g),g),Y=!1}s.equalsEpsilon(u,O,V.EPSILON10)?Y=!0:(Z+=ct,i.tangent&&(d=s.normalize(s.subtract(O,u,d),d)),i.bitangent&&(H=s.normalize(s.cross(g,d,H),H))),i.normal&&(P[v++]=g.x,P[v++]=g.y,P[v++]=g.z,P[v++]=g.x,P[v++]=g.y,P[v++]=g.z),i.tangent&&(b[C++]=d.x,b[C++]=d.y,b[C++]=d.z,b[C++]=d.x,b[C++]=d.y,b[C++]=d.z),i.bitangent&&(x[T++]=H.x,x[T++]=H.y,x[T++]=H.z,x[T++]=H.x,x[T++]=H.y,x[T++]=H.z)}}let z=new it;i.position&&(z.position=new R({componentDatatype:N.DOUBLE,componentsPerAttribute:3,values:h})),i.normal&&(z.normal=new R({componentDatatype:N.FLOAT,componentsPerAttribute:3,values:P})),i.tangent&&(z.tangent=new R({componentDatatype:N.FLOAT,componentsPerAttribute:3,values:b})),i.bitangent&&(z.bitangent=new R({componentDatatype:N.FLOAT,componentsPerAttribute:3,values:x})),i.st&&(z.st=new R({componentDatatype:N.FLOAT,componentsPerAttribute:2,values:B}));let $=A/3;A-=6*(f+1);let F=ot.createTypedArray($,A),D=0;for(p=0;p<$-2;p+=2){let L=p,u=p+2,M=s.fromArray(h,L*3,Q),O=s.fromArray(h,u*3,J);if(s.equalsEpsilon(M,O,V.EPSILON10))continue;let j=p+1,G=p+3;F[D++]=j,F[D++]=L,F[D++]=G,F[D++]=G,F[D++]=L,F[D++]=u}return new et({attributes:z,indices:F,primitiveType:tt.TRIANGLES,boundingSphere:new I.fromVertices(h)})};var X=E;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.135.0
|
|
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,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.135.0
|
|
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
|
+
*/
|
|
25
|
+
|
|
26
|
+
import{a as z}from"./chunk-VTK7G5BX.js";import"./chunk-QORMFUM4.js";import"./chunk-FWF3VNA2.js";import"./chunk-AZLP5742.js";import"./chunk-5HPISDSZ.js";import"./chunk-HSJ6GSLC.js";import"./chunk-SXKYZMEL.js";import{a as W}from"./chunk-T6Q6HX5J.js";import{a as N}from"./chunk-4MJDNHOT.js";import{b as R,c as S,d as M}from"./chunk-EDF5FKWJ.js";import{d as D}from"./chunk-XQIJGAVD.js";import"./chunk-UTYWXSQT.js";import{a as q}from"./chunk-RCHWDG3R.js";import"./chunk-4WJUWBRK.js";import"./chunk-5G23AKP3.js";import{a as p,d as l,f as O}from"./chunk-KWAHJ72S.js";import{a as b}from"./chunk-MKDADUG3.js";import{a as H}from"./chunk-NOIUI5SY.js";import{e as m}from"./chunk-XRRBRTKL.js";var B=new p,U=new p;function _(i){i=i??O.EMPTY_OBJECT;let t=i.positions,e=i.maximumHeights,o=i.minimumHeights;if(!m(t))throw new H("options.positions is required.");if(m(e)&&e.length!==t.length)throw new H("options.positions and options.maximumHeights must have the same length.");if(m(o)&&o.length!==t.length)throw new H("options.positions and options.minimumHeights must have the same length.");let s=i.granularity??b.RADIANS_PER_DEGREE,r=i.ellipsoid??l.default;this._positions=t,this._minimumHeights=o,this._maximumHeights=e,this._granularity=s,this._ellipsoid=l.clone(r),this._workerName="createWallOutlineGeometry";let n=1+t.length*p.packedLength+2;m(o)&&(n+=o.length),m(e)&&(n+=e.length),this.packedLength=n+l.packedLength+1}_.pack=function(i,t,e){if(!m(i))throw new H("value is required");if(!m(t))throw new H("array is required");e=e??0;let o,s=i._positions,r=s.length;for(t[e++]=r,o=0;o<r;++o,e+=p.packedLength)p.pack(s[o],t,e);let n=i._minimumHeights;if(r=m(n)?n.length:0,t[e++]=r,m(n))for(o=0;o<r;++o)t[e++]=n[o];let c=i._maximumHeights;if(r=m(c)?c.length:0,t[e++]=r,m(c))for(o=0;o<r;++o)t[e++]=c[o];return l.pack(i._ellipsoid,t,e),e+=l.packedLength,t[e]=i._granularity,t};var G=l.clone(l.UNIT_SPHERE),L={positions:void 0,minimumHeights:void 0,maximumHeights:void 0,ellipsoid:G,granularity:void 0};_.unpack=function(i,t,e){if(!m(i))throw new H("array is required");t=t??0;let o,s=i[t++],r=new Array(s);for(o=0;o<s;++o,t+=p.packedLength)r[o]=p.unpack(i,t);s=i[t++];let n;if(s>0)for(n=new Array(s),o=0;o<s;++o)n[o]=i[t++];s=i[t++];let c;if(s>0)for(c=new Array(s),o=0;o<s;++o)c[o]=i[t++];let w=l.unpack(i,t,G);t+=l.packedLength;let u=i[t];return m(e)?(e._positions=r,e._minimumHeights=n,e._maximumHeights=c,e._ellipsoid=l.clone(w,e._ellipsoid),e._granularity=u,e):(L.positions=r,L.minimumHeights=n,L.maximumHeights=c,L.granularity=u,new _(L))};_.fromConstantHeights=function(i){i=i??O.EMPTY_OBJECT;let t=i.positions;if(!m(t))throw new H("options.positions is required.");let e,o,s=i.minimumHeight,r=i.maximumHeight,n=m(s),c=m(r);if(n||c){let u=t.length;e=n?new Array(u):void 0,o=c?new Array(u):void 0;for(let g=0;g<u;++g)n&&(e[g]=s),c&&(o[g]=r)}let w={positions:t,maximumHeights:o,minimumHeights:e,ellipsoid:i.ellipsoid};return new _(w)};_.createGeometry=function(i){let t=i._positions,e=i._minimumHeights,o=i._maximumHeights,s=i._granularity,r=i._ellipsoid,n=z.computePositions(r,t,o,e,s,!1);if(!m(n))return;let c=n.bottomPositions,w=n.topPositions,u=w.length,g=u*2,f=new Float64Array(g),E=0;u/=3;let h;for(h=0;h<u;++h){let y=h*3,A=p.fromArray(w,y,B),k=p.fromArray(c,y,U);f[E++]=k.x,f[E++]=k.y,f[E++]=k.z,f[E++]=A.x,f[E++]=A.y,f[E++]=A.z}let v=new N({position:new M({componentDatatype:q.DOUBLE,componentsPerAttribute:3,values:f})}),P=g/3;g=2*P-4+P;let a=W.createTypedArray(P,g),d=0;for(h=0;h<P-2;h+=2){let y=h,A=h+2,k=p.fromArray(f,y*3,B),x=p.fromArray(f,A*3,U);if(p.equalsEpsilon(k,x,b.EPSILON10))continue;let T=h+1,F=h+3;a[d++]=T,a[d++]=y,a[d++]=T,a[d++]=F,a[d++]=y,a[d++]=A}return a[d++]=P-2,a[d++]=P-1,new S({attributes:v,indices:a,primitiveType:R.LINES,boundingSphere:new D.fromVertices(f)})};var C=_;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.135.0
|
|
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
|
+
*/
|