iflow-engine-base-3d 3.11.3 → 3.11.5
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/bim-engine-sdk.es.js +9 -50
- package/dist/bim-engine-sdk.umd.js +291 -18724
- package/dist/chunks/{engine-3d-Cq9w_B8R.js → engine-3d-DBM6PtHG.js} +1056 -819
- package/dist/chunks/{sdk-assets-DseBGYv8.js → sdk-assets-BbXNfc5u.js} +11 -11
- package/dist/chunks/sdk-runtime-B5mYNige.js +1174 -0
- package/dist/chunks/sdk-vendor-DYgn7sFs.js +22392 -0
- package/dist/chunks/{three-vendor-M4ZIGmaO.js → three-vendor-ox3_iXFc.js} +6604 -7305
- package/dist/iflow-engine-base.css +1 -1
- package/dist/index.d.ts +6 -7314
- package/package.json +2 -1
- package/dist/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_0.json +0 -1
- package/dist/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_1.json +0 -1
- package/dist/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_10.json +0 -1
- package/dist/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_11.json +0 -1
- package/dist/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_12.json +0 -1
- package/dist/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_13.json +0 -1
- package/dist/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_14.json +0 -1
- package/dist/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_15.json +0 -1
- package/dist/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_16.json +0 -1
- package/dist/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_17.json +0 -1
- package/dist/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_18.json +0 -1
- package/dist/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_19.json +0 -1
- package/dist/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_2.json +0 -1
- package/dist/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_20.json +0 -1
- package/dist/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_21.json +0 -1
- package/dist/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_22.json +0 -1
- package/dist/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_23.json +0 -1
- package/dist/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_24.json +0 -1
- package/dist/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_25.json +0 -1
- package/dist/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_26.json +0 -1
- package/dist/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_27.json +0 -1
- package/dist/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_3.json +0 -1
- package/dist/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_4.json +0 -1
- package/dist/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_5.json +0 -1
- package/dist/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_6.json +0 -1
- package/dist/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_7.json +0 -1
- package/dist/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_8.json +0 -1
- package/dist/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_9.json +0 -1
- package/dist/Cesium/Assets/Images/bing_maps_credit.png +0 -0
- package/dist/Cesium/Assets/Images/cesium_credit.png +0 -0
- package/dist/Cesium/Assets/Images/google_earth_credit.png +0 -0
- package/dist/Cesium/Assets/Images/ion-credit.png +0 -0
- package/dist/Cesium/Assets/Textures/LensFlare/DirtMask.jpg +0 -0
- package/dist/Cesium/Assets/Textures/LensFlare/StarBurst.jpg +0 -0
- package/dist/Cesium/Assets/Textures/NaturalEarthII/0/0/0.jpg +0 -0
- package/dist/Cesium/Assets/Textures/NaturalEarthII/0/1/0.jpg +0 -0
- package/dist/Cesium/Assets/Textures/NaturalEarthII/1/0/0.jpg +0 -0
- package/dist/Cesium/Assets/Textures/NaturalEarthII/1/0/1.jpg +0 -0
- package/dist/Cesium/Assets/Textures/NaturalEarthII/1/1/0.jpg +0 -0
- package/dist/Cesium/Assets/Textures/NaturalEarthII/1/1/1.jpg +0 -0
- package/dist/Cesium/Assets/Textures/NaturalEarthII/1/2/0.jpg +0 -0
- package/dist/Cesium/Assets/Textures/NaturalEarthII/1/2/1.jpg +0 -0
- package/dist/Cesium/Assets/Textures/NaturalEarthII/1/3/0.jpg +0 -0
- package/dist/Cesium/Assets/Textures/NaturalEarthII/1/3/1.jpg +0 -0
- package/dist/Cesium/Assets/Textures/NaturalEarthII/2/0/0.jpg +0 -0
- package/dist/Cesium/Assets/Textures/NaturalEarthII/2/0/1.jpg +0 -0
- package/dist/Cesium/Assets/Textures/NaturalEarthII/2/0/2.jpg +0 -0
- package/dist/Cesium/Assets/Textures/NaturalEarthII/2/0/3.jpg +0 -0
- package/dist/Cesium/Assets/Textures/NaturalEarthII/2/1/0.jpg +0 -0
- package/dist/Cesium/Assets/Textures/NaturalEarthII/2/1/1.jpg +0 -0
- package/dist/Cesium/Assets/Textures/NaturalEarthII/2/1/2.jpg +0 -0
- package/dist/Cesium/Assets/Textures/NaturalEarthII/2/1/3.jpg +0 -0
- package/dist/Cesium/Assets/Textures/NaturalEarthII/2/2/0.jpg +0 -0
- package/dist/Cesium/Assets/Textures/NaturalEarthII/2/2/1.jpg +0 -0
- package/dist/Cesium/Assets/Textures/NaturalEarthII/2/2/2.jpg +0 -0
- package/dist/Cesium/Assets/Textures/NaturalEarthII/2/2/3.jpg +0 -0
- package/dist/Cesium/Assets/Textures/NaturalEarthII/2/3/0.jpg +0 -0
- package/dist/Cesium/Assets/Textures/NaturalEarthII/2/3/1.jpg +0 -0
- package/dist/Cesium/Assets/Textures/NaturalEarthII/2/3/2.jpg +0 -0
- package/dist/Cesium/Assets/Textures/NaturalEarthII/2/3/3.jpg +0 -0
- package/dist/Cesium/Assets/Textures/NaturalEarthII/2/4/0.jpg +0 -0
- package/dist/Cesium/Assets/Textures/NaturalEarthII/2/4/1.jpg +0 -0
- package/dist/Cesium/Assets/Textures/NaturalEarthII/2/4/2.jpg +0 -0
- package/dist/Cesium/Assets/Textures/NaturalEarthII/2/4/3.jpg +0 -0
- package/dist/Cesium/Assets/Textures/NaturalEarthII/2/5/0.jpg +0 -0
- package/dist/Cesium/Assets/Textures/NaturalEarthII/2/5/1.jpg +0 -0
- package/dist/Cesium/Assets/Textures/NaturalEarthII/2/5/2.jpg +0 -0
- package/dist/Cesium/Assets/Textures/NaturalEarthII/2/5/3.jpg +0 -0
- package/dist/Cesium/Assets/Textures/NaturalEarthII/2/6/0.jpg +0 -0
- package/dist/Cesium/Assets/Textures/NaturalEarthII/2/6/1.jpg +0 -0
- package/dist/Cesium/Assets/Textures/NaturalEarthII/2/6/2.jpg +0 -0
- package/dist/Cesium/Assets/Textures/NaturalEarthII/2/6/3.jpg +0 -0
- package/dist/Cesium/Assets/Textures/NaturalEarthII/2/7/0.jpg +0 -0
- package/dist/Cesium/Assets/Textures/NaturalEarthII/2/7/1.jpg +0 -0
- package/dist/Cesium/Assets/Textures/NaturalEarthII/2/7/2.jpg +0 -0
- package/dist/Cesium/Assets/Textures/NaturalEarthII/2/7/3.jpg +0 -0
- package/dist/Cesium/Assets/Textures/NaturalEarthII/tilemapresource.xml +0 -14
- package/dist/Cesium/Assets/Textures/SkyBox/tycho2t3_80_mx.jpg +0 -0
- package/dist/Cesium/Assets/Textures/SkyBox/tycho2t3_80_my.jpg +0 -0
- package/dist/Cesium/Assets/Textures/SkyBox/tycho2t3_80_mz.jpg +0 -0
- package/dist/Cesium/Assets/Textures/SkyBox/tycho2t3_80_px.jpg +0 -0
- package/dist/Cesium/Assets/Textures/SkyBox/tycho2t3_80_py.jpg +0 -0
- package/dist/Cesium/Assets/Textures/SkyBox/tycho2t3_80_pz.jpg +0 -0
- package/dist/Cesium/Assets/Textures/maki/airfield.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/airport.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/alcohol-shop.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/america-football.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/art-gallery.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/bakery.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/bank.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/bar.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/baseball.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/basketball.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/beer.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/bicycle.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/building.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/bus.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/cafe.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/camera.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/campsite.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/car.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/cemetery.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/cesium.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/chemist.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/cinema.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/circle-stroked.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/circle.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/city.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/clothing-store.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/college.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/commercial.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/cricket.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/cross.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/dam.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/danger.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/disability.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/dog-park.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/embassy.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/emergency-telephone.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/entrance.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/farm.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/fast-food.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/ferry.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/fire-station.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/fuel.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/garden.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/gift.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/golf.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/grocery.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/hairdresser.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/harbor.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/heart.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/heliport.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/hospital.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/ice-cream.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/industrial.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/land-use.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/laundry.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/library.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/lighthouse.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/lodging.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/logging.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/london-underground.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/marker-stroked.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/marker.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/minefield.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/mobilephone.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/monument.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/museum.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/music.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/oil-well.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/park.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/park2.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/parking-garage.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/parking.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/pharmacy.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/pitch.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/place-of-worship.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/playground.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/police.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/polling-place.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/post.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/prison.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/rail-above.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/rail-light.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/rail-metro.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/rail-underground.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/rail.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/religious-christian.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/religious-jewish.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/religious-muslim.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/restaurant.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/roadblock.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/rocket.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/school.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/scooter.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/shop.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/skiing.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/slaughterhouse.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/soccer.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/square-stroked.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/square.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/star-stroked.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/star.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/suitcase.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/swimming.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/telephone.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/tennis.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/theatre.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/toilets.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/town-hall.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/town.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/triangle-stroked.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/triangle.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/village.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/warehouse.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/waste-basket.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/water.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/wetland.png +0 -0
- package/dist/Cesium/Assets/Textures/maki/zoo.png +0 -0
- package/dist/Cesium/Assets/Textures/moonSmall.jpg +0 -0
- package/dist/Cesium/Assets/Textures/pin.svg +0 -1
- package/dist/Cesium/Assets/Textures/waterNormals.jpg +0 -0
- package/dist/Cesium/Assets/Textures/waterNormalsSmall.jpg +0 -0
- package/dist/Cesium/Assets/approximateTerrainHeights.json +0 -1
- package/dist/Cesium/Cesium.js +0 -17946
- package/dist/Cesium/ThirdParty/Workers/package.json +0 -1
- package/dist/Cesium/ThirdParty/Workers/zip-web-worker.js +0 -1
- package/dist/Cesium/ThirdParty/basis_transcoder.wasm +0 -0
- package/dist/Cesium/ThirdParty/draco_decoder.wasm +0 -0
- package/dist/Cesium/ThirdParty/google-earth-dbroot-parser.js +0 -1
- package/dist/Cesium/ThirdParty/wasm_splats_bg.wasm +0 -0
- package/dist/Cesium/ThirdParty/zip-module.wasm +0 -0
- package/dist/Cesium/Widgets/Animation/Animation.css +0 -127
- package/dist/Cesium/Widgets/Animation/lighter.css +0 -70
- package/dist/Cesium/Widgets/BaseLayerPicker/BaseLayerPicker.css +0 -108
- package/dist/Cesium/Widgets/BaseLayerPicker/lighter.css +0 -22
- package/dist/Cesium/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css +0 -102
- package/dist/Cesium/Widgets/CesiumInspector/CesiumInspector.css +0 -113
- package/dist/Cesium/Widgets/CesiumWidget/CesiumWidget.css +0 -119
- package/dist/Cesium/Widgets/CesiumWidget/lighter.css +0 -14
- package/dist/Cesium/Widgets/FullscreenButton/FullscreenButton.css +0 -8
- package/dist/Cesium/Widgets/Geocoder/Geocoder.css +0 -70
- package/dist/Cesium/Widgets/Geocoder/lighter.css +0 -17
- package/dist/Cesium/Widgets/I3SBuildingSceneLayerExplorer/I3SBuildingSceneLayerExplorer.css +0 -27
- package/dist/Cesium/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldHillshade.png +0 -0
- package/dist/Cesium/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldImagery.png +0 -0
- package/dist/Cesium/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldOcean.png +0 -0
- package/dist/Cesium/Widgets/Images/ImageryProviders/azureAerial.png +0 -0
- package/dist/Cesium/Widgets/Images/ImageryProviders/azureRoads.png +0 -0
- package/dist/Cesium/Widgets/Images/ImageryProviders/bingAerial.png +0 -0
- package/dist/Cesium/Widgets/Images/ImageryProviders/bingAerialLabels.png +0 -0
- package/dist/Cesium/Widgets/Images/ImageryProviders/bingRoads.png +0 -0
- package/dist/Cesium/Widgets/Images/ImageryProviders/blueMarble.png +0 -0
- package/dist/Cesium/Widgets/Images/ImageryProviders/earthAtNight.png +0 -0
- package/dist/Cesium/Widgets/Images/ImageryProviders/googleContour.png +0 -0
- package/dist/Cesium/Widgets/Images/ImageryProviders/googleRoadmap.png +0 -0
- package/dist/Cesium/Widgets/Images/ImageryProviders/googleSatellite.png +0 -0
- package/dist/Cesium/Widgets/Images/ImageryProviders/googleSatelliteLabels.png +0 -0
- package/dist/Cesium/Widgets/Images/ImageryProviders/mapQuestOpenStreetMap.png +0 -0
- package/dist/Cesium/Widgets/Images/ImageryProviders/mapboxSatellite.png +0 -0
- package/dist/Cesium/Widgets/Images/ImageryProviders/mapboxStreets.png +0 -0
- package/dist/Cesium/Widgets/Images/ImageryProviders/mapboxTerrain.png +0 -0
- package/dist/Cesium/Widgets/Images/ImageryProviders/naturalEarthII.png +0 -0
- package/dist/Cesium/Widgets/Images/ImageryProviders/openStreetMap.png +0 -0
- package/dist/Cesium/Widgets/Images/ImageryProviders/sentinel-2.png +0 -0
- package/dist/Cesium/Widgets/Images/ImageryProviders/stadiaAlidadeSmooth.png +0 -0
- package/dist/Cesium/Widgets/Images/ImageryProviders/stadiaAlidadeSmoothDark.png +0 -0
- package/dist/Cesium/Widgets/Images/ImageryProviders/stamenToner.png +0 -0
- package/dist/Cesium/Widgets/Images/ImageryProviders/stamenWatercolor.png +0 -0
- package/dist/Cesium/Widgets/Images/NavigationHelp/Mouse.svg +0 -84
- package/dist/Cesium/Widgets/Images/NavigationHelp/MouseLeft.svg +0 -76
- package/dist/Cesium/Widgets/Images/NavigationHelp/MouseMiddle.svg +0 -76
- package/dist/Cesium/Widgets/Images/NavigationHelp/MouseRight.svg +0 -76
- package/dist/Cesium/Widgets/Images/NavigationHelp/Touch.svg +0 -120
- package/dist/Cesium/Widgets/Images/NavigationHelp/TouchDrag.svg +0 -129
- package/dist/Cesium/Widgets/Images/NavigationHelp/TouchRotate.svg +0 -76
- package/dist/Cesium/Widgets/Images/NavigationHelp/TouchTilt.svg +0 -135
- package/dist/Cesium/Widgets/Images/NavigationHelp/TouchZoom.svg +0 -74
- package/dist/Cesium/Widgets/Images/TerrainProviders/CesiumWorldTerrain.png +0 -0
- package/dist/Cesium/Widgets/Images/TerrainProviders/Ellipsoid.png +0 -0
- package/dist/Cesium/Widgets/Images/TimelineIcons.png +0 -0
- package/dist/Cesium/Widgets/Images/info-loading.gif +0 -0
- package/dist/Cesium/Widgets/InfoBox/InfoBox.css +0 -92
- package/dist/Cesium/Widgets/InfoBox/InfoBoxDescription.css +0 -178
- package/dist/Cesium/Widgets/NavigationHelpButton/NavigationHelpButton.css +0 -93
- package/dist/Cesium/Widgets/NavigationHelpButton/lighter.css +0 -38
- package/dist/Cesium/Widgets/PerformanceWatchdog/PerformanceWatchdog.css +0 -15
- package/dist/Cesium/Widgets/ProjectionPicker/ProjectionPicker.css +0 -38
- package/dist/Cesium/Widgets/SceneModePicker/SceneModePicker.css +0 -56
- package/dist/Cesium/Widgets/SelectionIndicator/SelectionIndicator.css +0 -20
- package/dist/Cesium/Widgets/Timeline/Timeline.css +0 -103
- package/dist/Cesium/Widgets/Timeline/lighter.css +0 -23
- package/dist/Cesium/Widgets/VRButton/VRButton.css +0 -8
- package/dist/Cesium/Widgets/Viewer/Viewer.css +0 -107
- package/dist/Cesium/Widgets/VoxelInspector/VoxelInspector.css +0 -16
- package/dist/Cesium/Widgets/lighter.css +0 -237
- package/dist/Cesium/Widgets/lighterShared.css +0 -46
- package/dist/Cesium/Widgets/shared.css +0 -103
- package/dist/Cesium/Widgets/widgets.css +0 -1342
- package/dist/Cesium/Workers/chunk-236YIEYT.js +0 -26
- package/dist/Cesium/Workers/chunk-2ZYB3DYT.js +0 -26
- package/dist/Cesium/Workers/chunk-4M56RRIL.js +0 -26
- package/dist/Cesium/Workers/chunk-5BC2Q3QW.js +0 -26
- package/dist/Cesium/Workers/chunk-5XHUDY37.js +0 -26
- package/dist/Cesium/Workers/chunk-6WMLAJJP.js +0 -26
- package/dist/Cesium/Workers/chunk-72KUXMWU.js +0 -26
- package/dist/Cesium/Workers/chunk-7NQYTTAU.js +0 -26
- package/dist/Cesium/Workers/chunk-A35GG5WJ.js +0 -26
- package/dist/Cesium/Workers/chunk-AXNBHUAG.js +0 -26
- package/dist/Cesium/Workers/chunk-DC3K7YTH.js +0 -26
- package/dist/Cesium/Workers/chunk-DRBPXGI7.js +0 -26
- package/dist/Cesium/Workers/chunk-EARRZPMO.js +0 -26
- package/dist/Cesium/Workers/chunk-EHC3BDVP.js +0 -26
- package/dist/Cesium/Workers/chunk-EYZUSGKM.js +0 -26
- package/dist/Cesium/Workers/chunk-EZSKHVA2.js +0 -26
- package/dist/Cesium/Workers/chunk-F3WJIFOO.js +0 -26
- package/dist/Cesium/Workers/chunk-FB7UV5BI.js +0 -26
- package/dist/Cesium/Workers/chunk-FC6IYMYF.js +0 -26
- package/dist/Cesium/Workers/chunk-GF67PEXE.js +0 -27
- package/dist/Cesium/Workers/chunk-GXEQRH2R.js +0 -26
- package/dist/Cesium/Workers/chunk-I5NKQIWE.js +0 -26
- package/dist/Cesium/Workers/chunk-IH7GXIUB.js +0 -26
- package/dist/Cesium/Workers/chunk-IPP3UFGH.js +0 -26
- package/dist/Cesium/Workers/chunk-IYRGNBSH.js +0 -26
- package/dist/Cesium/Workers/chunk-J6BM74AD.js +0 -26
- package/dist/Cesium/Workers/chunk-KG2GJUJT.js +0 -26
- package/dist/Cesium/Workers/chunk-L7UE5MMF.js +0 -26
- package/dist/Cesium/Workers/chunk-LBZ34MHQ.js +0 -26
- package/dist/Cesium/Workers/chunk-LOQDTQMX.js +0 -26
- package/dist/Cesium/Workers/chunk-LYLRYC4L.js +0 -29
- package/dist/Cesium/Workers/chunk-MGPRMLLW.js +0 -26
- package/dist/Cesium/Workers/chunk-NP26LKQA.js +0 -26
- package/dist/Cesium/Workers/chunk-OMUAZ3NM.js +0 -26
- package/dist/Cesium/Workers/chunk-PPFUDJN4.js +0 -26
- package/dist/Cesium/Workers/chunk-PQ3V63XF.js +0 -27
- package/dist/Cesium/Workers/chunk-PWBQN4GK.js +0 -26
- package/dist/Cesium/Workers/chunk-QOTMLO2T.js +0 -26
- package/dist/Cesium/Workers/chunk-SP35IT73.js +0 -26
- package/dist/Cesium/Workers/chunk-T3ZGSZKA.js +0 -26
- package/dist/Cesium/Workers/chunk-TM6SYYHO.js +0 -28
- package/dist/Cesium/Workers/chunk-TSGIJVWH.js +0 -26
- package/dist/Cesium/Workers/chunk-U3YGOX3C.js +0 -63
- package/dist/Cesium/Workers/chunk-VBYOXOSM.js +0 -26
- package/dist/Cesium/Workers/chunk-VCOHJNKB.js +0 -26
- package/dist/Cesium/Workers/chunk-VXAZXMUX.js +0 -26
- package/dist/Cesium/Workers/chunk-VXCJOT4W.js +0 -26
- package/dist/Cesium/Workers/chunk-WPD3MB6X.js +0 -26
- package/dist/Cesium/Workers/chunk-X4D5KUN5.js +0 -26
- package/dist/Cesium/Workers/chunk-XEC656IT.js +0 -26
- package/dist/Cesium/Workers/chunk-XR53QRQS.js +0 -26
- package/dist/Cesium/Workers/chunk-XR7MN4PJ.js +0 -28
- package/dist/Cesium/Workers/chunk-XU6O4MRS.js +0 -26
- package/dist/Cesium/Workers/chunk-XZBHEBLF.js +0 -29
- package/dist/Cesium/Workers/chunk-Z2M4BF4E.js +0 -26
- package/dist/Cesium/Workers/chunk-Z4ERBZFB.js +0 -26
- package/dist/Cesium/Workers/chunk-ZY2KCIWI.js +0 -26
- package/dist/Cesium/Workers/combineGeometry.js +0 -26
- package/dist/Cesium/Workers/createBoxGeometry.js +0 -26
- package/dist/Cesium/Workers/createBoxOutlineGeometry.js +0 -26
- package/dist/Cesium/Workers/createCircleGeometry.js +0 -26
- package/dist/Cesium/Workers/createCircleOutlineGeometry.js +0 -26
- package/dist/Cesium/Workers/createCoplanarPolygonGeometry.js +0 -26
- package/dist/Cesium/Workers/createCoplanarPolygonOutlineGeometry.js +0 -26
- package/dist/Cesium/Workers/createCorridorGeometry.js +0 -26
- package/dist/Cesium/Workers/createCorridorOutlineGeometry.js +0 -26
- package/dist/Cesium/Workers/createCylinderGeometry.js +0 -26
- package/dist/Cesium/Workers/createCylinderOutlineGeometry.js +0 -26
- package/dist/Cesium/Workers/createEllipseGeometry.js +0 -26
- package/dist/Cesium/Workers/createEllipseOutlineGeometry.js +0 -26
- package/dist/Cesium/Workers/createEllipsoidGeometry.js +0 -26
- package/dist/Cesium/Workers/createEllipsoidOutlineGeometry.js +0 -26
- package/dist/Cesium/Workers/createFrustumGeometry.js +0 -26
- package/dist/Cesium/Workers/createFrustumOutlineGeometry.js +0 -26
- package/dist/Cesium/Workers/createGeometry.js +0 -26
- package/dist/Cesium/Workers/createGroundPolylineGeometry.js +0 -26
- package/dist/Cesium/Workers/createPlaneGeometry.js +0 -26
- package/dist/Cesium/Workers/createPlaneOutlineGeometry.js +0 -26
- package/dist/Cesium/Workers/createPolygonGeometry.js +0 -26
- package/dist/Cesium/Workers/createPolygonOutlineGeometry.js +0 -26
- package/dist/Cesium/Workers/createPolylineGeometry.js +0 -26
- package/dist/Cesium/Workers/createPolylineVolumeGeometry.js +0 -26
- package/dist/Cesium/Workers/createPolylineVolumeOutlineGeometry.js +0 -26
- package/dist/Cesium/Workers/createRectangleGeometry.js +0 -26
- package/dist/Cesium/Workers/createRectangleOutlineGeometry.js +0 -26
- package/dist/Cesium/Workers/createSimplePolylineGeometry.js +0 -26
- package/dist/Cesium/Workers/createSphereGeometry.js +0 -26
- package/dist/Cesium/Workers/createSphereOutlineGeometry.js +0 -26
- package/dist/Cesium/Workers/createTaskProcessorWorker.js +0 -26
- package/dist/Cesium/Workers/createVectorTileClampedPolylines.js +0 -26
- package/dist/Cesium/Workers/createVectorTileGeometries.js +0 -26
- package/dist/Cesium/Workers/createVectorTilePoints.js +0 -26
- package/dist/Cesium/Workers/createVectorTilePolygons.js +0 -26
- package/dist/Cesium/Workers/createVectorTilePolylines.js +0 -26
- package/dist/Cesium/Workers/createVerticesFromCesium3DTilesTerrain.js +0 -26
- package/dist/Cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +0 -26
- package/dist/Cesium/Workers/createVerticesFromHeightmap.js +0 -26
- package/dist/Cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +0 -26
- package/dist/Cesium/Workers/createWallGeometry.js +0 -26
- package/dist/Cesium/Workers/createWallOutlineGeometry.js +0 -26
- package/dist/Cesium/Workers/decodeDraco.js +0 -26
- package/dist/Cesium/Workers/decodeGoogleEarthEnterprisePacket.js +0 -26
- package/dist/Cesium/Workers/decodeI3S.js +0 -26
- package/dist/Cesium/Workers/gaussianSplatSorter.js +0 -26
- package/dist/Cesium/Workers/gaussianSplatTextureGenerator.js +0 -26
- package/dist/Cesium/Workers/incrementallyBuildTerrainPicker.js +0 -26
- package/dist/Cesium/Workers/transcodeKTX2.js +0 -56
- package/dist/Cesium/Workers/transferTypedArrayTest.js +0 -26
- package/dist/Cesium/Workers/upsampleQuantizedTerrainMesh.js +0 -26
- package/dist/Cesium/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +0 -26
- package/dist/Cesium/index.cjs +0 -17946
- package/dist/Cesium/index.js +0 -17946
- package/dist/chunks/sdk-runtime--Vql9ddn.js +0 -1408
- package/dist/chunks/sdk-vendor-DUEcGYjb.js +0 -36171
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.141.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 P,c as T}from"./chunk-EHC3BDVP.js";import{a as p}from"./chunk-TM6SYYHO.js";import{a}from"./chunk-VXAZXMUX.js";import{a as I,b as g}from"./chunk-GF67PEXE.js";import{f as l}from"./chunk-5XHUDY37.js";function w(n,i,o){if(n===0)return i*o;let t=n*n,e=t*t,c=e*t,r=c*t,h=r*t,s=h*t,d=o,u=Math.sin(2*d),f=Math.sin(4*d),M=Math.sin(6*d),_=Math.sin(8*d),E=Math.sin(10*d),S=Math.sin(12*d);return i*((1-t/4-3*e/64-5*c/256-175*r/16384-441*h/65536-4851*s/1048576)*d-(3*t/8+3*e/32+45*c/1024+105*r/4096+2205*h/131072+6237*s/524288)*u+(15*e/256+45*c/1024+525*r/16384+1575*h/65536+155925*s/8388608)*f-(35*c/3072+175*r/12288+3675*h/262144+13475*s/1048576)*M+(315*r/131072+2205*h/524288+43659*s/8388608)*_-(693*h/1310720+6237*s/5242880)*E+1001*s/8388608*S)}function H(n,i,o){let t=n/o;if(i===0)return t;let e=t*t,c=e*t,r=c*t,h=i,s=h*h,d=s*s,u=d*s,f=u*s,M=f*s,_=M*s,E=Math.sin(2*t),S=Math.cos(2*t),v=Math.sin(4*t),W=Math.cos(4*t),V=Math.sin(6*t),C=Math.cos(6*t),N=Math.sin(8*t),R=Math.cos(8*t),b=Math.sin(10*t),x=Math.cos(10*t),U=Math.sin(12*t);return t+t*s/4+7*t*d/64+15*t*u/256+579*t*f/16384+1515*t*M/65536+16837*t*_/1048576+(3*t*d/16+45*t*u/256-t*(32*e-561)*f/4096-t*(232*e-1677)*M/16384+t*(399985-90560*e+512*r)*_/5242880)*S+(21*t*u/256+483*t*f/4096-t*(224*e-1969)*M/16384-t*(33152*e-112599)*_/1048576)*W+(151*t*f/4096+4681*t*M/65536+1479*t*_/16384-453*c*_/32768)*C+(1097*t*M/65536+42783*t*_/1048576)*R+8011*t*_/1048576*x+(3*s/8+3*d/16+213*u/2048-3*e*u/64+255*f/4096-33*e*f/512+20861*M/524288-33*e*M/512+r*M/1024+28273*_/1048576-471*e*_/8192+9*r*_/4096)*E+(21*d/256+21*u/256+533*f/8192-21*e*f/512+197*M/4096-315*e*M/4096+584039*_/16777216-12517*e*_/131072+7*r*_/2048)*v+(151*u/6144+151*f/4096+5019*M/131072-453*e*M/16384+26965*_/786432-8607*e*_/131072)*V+(1097*f/131072+1097*M/65536+225797*_/10485760-1097*e*_/65536)*N+(8011*M/2621440+8011*_/1048576)*b+293393*_/251658240*U}function O(n,i){if(n===0)return Math.log(Math.tan(.5*(a.PI_OVER_TWO+i)));let o=n*Math.sin(i);return Math.log(Math.tan(.5*(a.PI_OVER_TWO+i)))-n/2*Math.log((1+o)/(1-o))}function z(n,i,o,t,e){let c=O(n._ellipticity,o),r=O(n._ellipticity,e);return Math.atan2(a.negativePiToPi(t-i),r-c)}function k(n,i,o,t,e,c,r){let h=n._heading,s=c-t,d=0;if(a.equalsEpsilon(Math.abs(h),a.PI_OVER_TWO,a.EPSILON8))if(i===o)d=i*Math.cos(e)*a.negativePiToPi(s);else{let u=Math.sin(e);d=i*Math.cos(e)*a.negativePiToPi(s)/Math.sqrt(1-n._ellipticitySquared*u*u)}else{let u=w(n._ellipticity,i,e);d=(w(n._ellipticity,i,r)-u)/Math.cos(h)}return Math.abs(d)}var A=new p,q=new p;function y(n,i,o,t){let e=p.normalize(t.cartographicToCartesian(i,q),A),c=p.normalize(t.cartographicToCartesian(o,q),q);g.typeOf.number.greaterThanOrEquals("value",Math.abs(Math.abs(p.angleBetween(e,c))-Math.PI),.0125);let r=t.maximumRadius,h=t.minimumRadius,s=r*r,d=h*h;n._ellipticitySquared=(s-d)/s,n._ellipticity=Math.sqrt(n._ellipticitySquared),n._start=P.clone(i,n._start),n._start.height=0,n._end=P.clone(o,n._end),n._end.height=0,n._heading=z(n,i.longitude,i.latitude,o.longitude,o.latitude),n._distance=k(n,t.maximumRadius,t.minimumRadius,i.longitude,i.latitude,o.longitude,o.latitude)}function D(n,i,o,t,e,c){if(o===0)return P.clone(n,c);let r=e*e,h,s,d;if(Math.abs(a.PI_OVER_TWO-Math.abs(i))>a.EPSILON8){let u=w(e,t,n.latitude),f=o*Math.cos(i),M=u+f;if(s=H(M,e,t),Math.abs(i)<a.EPSILON10)h=a.negativePiToPi(n.longitude);else{let _=O(e,n.latitude),E=O(e,s);d=Math.tan(i)*(E-_),h=a.negativePiToPi(n.longitude+d)}}else{s=n.latitude;let u;if(e===0)u=t*Math.cos(n.latitude);else{let f=Math.sin(n.latitude);u=t*Math.cos(n.latitude)/Math.sqrt(1-r*f*f)}d=o/u,i>0?h=a.negativePiToPi(n.longitude+d):h=a.negativePiToPi(n.longitude-d)}return l(c)?(c.longitude=h,c.latitude=s,c.height=0,c):new P(h,s,0)}function m(n,i,o){let t=o??T.default;this._ellipsoid=t,this._start=new P,this._end=new P,this._heading=void 0,this._distance=void 0,this._ellipticity=void 0,this._ellipticitySquared=void 0,l(n)&&l(i)&&y(this,n,i,t)}Object.defineProperties(m.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},surfaceDistance:{get:function(){return g.defined("distance",this._distance),this._distance}},start:{get:function(){return this._start}},end:{get:function(){return this._end}},heading:{get:function(){return g.defined("distance",this._distance),this._heading}}});m.fromStartHeadingDistance=function(n,i,o,t,e){g.defined("start",n),g.defined("heading",i),g.defined("distance",o),g.typeOf.number.greaterThan("distance",o,0);let c=t??T.default,r=c.maximumRadius,h=c.minimumRadius,s=r*r,d=h*h,u=Math.sqrt((s-d)/s);i=a.negativePiToPi(i);let f=D(n,i,o,c.maximumRadius,u);return!l(e)||l(t)&&!t.equals(e.ellipsoid)?new m(n,f,c):(e.setEndPoints(n,f),e)};m.prototype.setEndPoints=function(n,i){g.defined("start",n),g.defined("end",i),y(this,n,i,this._ellipsoid)};m.prototype.interpolateUsingFraction=function(n,i){return this.interpolateUsingSurfaceDistance(n*this._distance,i)};m.prototype.interpolateUsingSurfaceDistance=function(n,i){if(g.typeOf.number("distance",n),!l(this._distance)||this._distance===0)throw new I("EllipsoidRhumbLine must have distinct start and end set.");return D(this._start,this._heading,n,this._ellipsoid.maximumRadius,this._ellipticity,i)};m.prototype.findIntersectionWithLongitude=function(n,i){if(g.typeOf.number("intersectionLongitude",n),!l(this._distance)||this._distance===0)throw new I("EllipsoidRhumbLine must have distinct start and end set.");let o=this._ellipticity,t=this._heading,e=Math.abs(t),c=this._start;if(n=a.negativePiToPi(n),a.equalsEpsilon(Math.abs(n),Math.PI,a.EPSILON14)&&(n=a.sign(c.longitude)*Math.PI),l(i)||(i=new P),Math.abs(a.PI_OVER_TWO-e)<=a.EPSILON8)return i.longitude=n,i.latitude=c.latitude,i.height=0,i;if(a.equalsEpsilon(Math.abs(a.PI_OVER_TWO-e),a.PI_OVER_TWO,a.EPSILON8))return a.equalsEpsilon(n,c.longitude,a.EPSILON12)?void 0:(i.longitude=n,i.latitude=a.PI_OVER_TWO*a.sign(a.PI_OVER_TWO-t),i.height=0,i);let r=c.latitude,h=o*Math.sin(r),s=Math.tan(.5*(a.PI_OVER_TWO+r))*Math.exp((n-c.longitude)/Math.tan(t)),d=(1+h)/(1-h),u=c.latitude,f;do{f=u;let M=o*Math.sin(f),_=(1+M)/(1-M);u=2*Math.atan(s*Math.pow(_/d,o/2))-a.PI_OVER_TWO}while(!a.equalsEpsilon(u,f,a.EPSILON12));return i.longitude=n,i.latitude=u,i.height=0,i};m.prototype.findIntersectionWithLatitude=function(n,i){if(g.typeOf.number("intersectionLatitude",n),!l(this._distance)||this._distance===0)throw new I("EllipsoidRhumbLine must have distinct start and end set.");let o=this._ellipticity,t=this._heading,e=this._start;if(a.equalsEpsilon(Math.abs(t),a.PI_OVER_TWO,a.EPSILON8))return;let c=O(o,e.latitude),r=O(o,n),h=Math.tan(t)*(r-c),s=a.negativePiToPi(e.longitude+h);return l(i)?(i.longitude=s,i.latitude=n,i.height=0,i):new P(s,n,0)};var Y=m;export{Y as a};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.141.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 l,b as d}from"./chunk-XZBHEBLF.js";import{a as t}from"./chunk-TM6SYYHO.js";import{a as s}from"./chunk-VXAZXMUX.js";import{a as f,b as r}from"./chunk-GF67PEXE.js";import{f as m}from"./chunk-5XHUDY37.js";function o(e,n){if(r.typeOf.object("normal",e),!s.equalsEpsilon(t.magnitude(e),1,s.EPSILON6))throw new f("normal must be normalized.");r.typeOf.number("distance",n),this.normal=t.clone(e),this.distance=n}o.fromPointNormal=function(e,n,a){if(r.typeOf.object("point",e),r.typeOf.object("normal",n),!s.equalsEpsilon(t.magnitude(n),1,s.EPSILON6))throw new f("normal must be normalized.");let c=-t.dot(n,e);return m(a)?(t.clone(n,a.normal),a.distance=c,a):new o(n,c)};var b=new t;o.fromCartesian4=function(e,n){r.typeOf.object("coefficients",e);let a=t.fromCartesian4(e,b),c=e.w;if(!s.equalsEpsilon(t.magnitude(a),1,s.EPSILON6))throw new f("normal must be normalized.");return m(n)?(t.clone(a,n.normal),n.distance=c,n):new o(a,c)};o.getPointDistance=function(e,n){return r.typeOf.object("plane",e),r.typeOf.object("point",n),t.dot(e.normal,n)+e.distance};var y=new t;o.projectPointOntoPlane=function(e,n,a){r.typeOf.object("plane",e),r.typeOf.object("point",n),m(a)||(a=new t);let c=o.getPointDistance(e,n),p=t.multiplyByScalar(e.normal,c,y);return t.subtract(n,p,a)};var w=new d,j=new l,N=new t;o.transform=function(e,n,a){r.typeOf.object("plane",e),r.typeOf.object("transform",n);let c=e.normal,p=e.distance,u=d.inverseTranspose(n,w),i=l.fromElements(c.x,c.y,c.z,p,j);i=d.multiplyByVector(u,i,i);let O=t.fromCartesian4(i,N);return i=l.divideByScalar(i,t.magnitude(O),i),o.fromCartesian4(i,a)};o.clone=function(e,n){return r.typeOf.object("plane",e),m(n)?(t.clone(e.normal,n.normal),n.distance=e.distance,n):new o(e.normal,e.distance)};o.equals=function(e,n){return r.typeOf.object("left",e),r.typeOf.object("right",n),e.distance===n.distance&&t.equals(e.normal,n.normal)};o.ORIGIN_XY_PLANE=Object.freeze(new o(t.UNIT_Z,0));o.ORIGIN_YZ_PLANE=Object.freeze(new o(t.UNIT_X,0));o.ORIGIN_ZX_PLANE=Object.freeze(new o(t.UNIT_Y,0));var T=o;export{T as a};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.141.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{b as r}from"./chunk-XZBHEBLF.js";import{c as m}from"./chunk-TM6SYYHO.js";import{a as i}from"./chunk-GF67PEXE.js";import{f as t}from"./chunk-5XHUDY37.js";function d(e){if(e=e??m.EMPTY_OBJECT,!t(e.geometry))throw new i("options.geometry is required.");this.geometry=e.geometry,this.modelMatrix=r.clone(e.modelMatrix??r.IDENTITY),this.id=e.id,this.pickPrimitive=e.pickPrimitive,this.attributes=e.attributes??{},this.westHemisphereGeometry=void 0,this.eastHemisphereGeometry=void 0}var a=d;export{a};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.141.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-A35GG5WJ.js";import{j as I,k as b}from"./chunk-U3YGOX3C.js";import{a as O,c as L}from"./chunk-EHC3BDVP.js";import{a as W}from"./chunk-TM6SYYHO.js";import{a as m}from"./chunk-VXAZXMUX.js";import{a as v}from"./chunk-GF67PEXE.js";import{f as k}from"./chunk-5XHUDY37.js";var Z=Math.cos,B=Math.sin,p=Math.sqrt,N={};N.computePosition=function(t,M,g,u,G,h,a){let e=M.radiiSquared,i=t.nwCorner,r=t.boundingRectangle,n=i.latitude-t.granYCos*u+G*t.granXSin,d=Z(n),X=B(n),Y=e.z*X,s=i.longitude+u*t.granYSin+G*t.granXCos,S=d*Z(s),f=d*B(s),w=e.x*S,R=e.y*f,_=p(w*S+R*f+Y*X);if(h.x=w/_,h.y=R/_,h.z=Y/_,g){let o=t.stNwCorner;k(o)?(n=o.latitude-t.stGranYCos*u+G*t.stGranXSin,s=o.longitude+u*t.stGranYSin+G*t.stGranXCos,a.x=(s-t.stWest)*t.lonScalar,a.y=(n-t.stSouth)*t.latScalar):(a.x=(s-r.west)*t.lonScalar,a.y=(n-r.south)*t.latScalar)}};var A=new b,l=new W,F=new O,j=new W,y=new z;function D(t,M,g,u,G,h,a){let e=Math.cos(M),i=u*e,r=g*e,n=Math.sin(M),d=u*n,X=g*n;y._ellipsoid=L.default,l=y.project(t,l),l=W.subtract(l,j,l);let Y=b.fromRotation(M,A);l=b.multiplyByVector(Y,l,l),l=W.add(l,j,l),t=y.unproject(l,t),h-=1,a-=1;let s=t.latitude,S=s+h*X,f=s-i*a,w=s-i*a+h*X,R=Math.max(s,S,f,w),_=Math.min(s,S,f,w),o=t.longitude,E=o+h*r,T=o+a*d,V=o+a*d+h*r,q=Math.max(o,E,T,V),x=Math.min(o,E,T,V);return{north:R,south:_,east:q,west:x,granYCos:i,granYSin:d,granXCos:r,granXSin:X,nwCorner:t}}N.computeOptions=function(t,M,g,u,G,h,a){let e=t.east,i=t.west,r=t.north,n=t.south,d=!1,X=!1;r===m.PI_OVER_TWO&&(d=!0),n===-m.PI_OVER_TWO&&(X=!0);let Y,s=r-n;i>e?Y=m.TWO_PI-i+e:Y=e-i;let S=Math.ceil(Y/M)+1,f=Math.ceil(s/M)+1,w=Y/(S-1),R=s/(f-1),_=I.northwest(t,h),o=I.center(t,F);(g!==0||u!==0)&&(o.longitude<_.longitude&&(o.longitude+=m.TWO_PI),y._ellipsoid=L.default,j=y.project(o,j));let E=R,T=w,V=0,q=0,x=I.clone(t,G),c={granYCos:E,granYSin:V,granXCos:T,granXSin:q,nwCorner:_,boundingRectangle:x,width:S,height:f,northCap:d,southCap:X};if(g!==0){let C=D(_,g,w,R,o,S,f);if(r=C.north,n=C.south,e=C.east,i=C.west,r<-m.PI_OVER_TWO||r>m.PI_OVER_TWO||n<-m.PI_OVER_TWO||n>m.PI_OVER_TWO)throw new v("Rotated rectangle is invalid. It crosses over either the north or south pole.");c.granYCos=C.granYCos,c.granYSin=C.granYSin,c.granXCos=C.granXCos,c.granXSin=C.granXSin,x.north=r,x.south=n,x.east=e,x.west=i}if(u!==0){g=g-u;let C=I.northwest(x,a),P=D(C,g,w,R,o,S,f);c.stGranYCos=P.granYCos,c.stGranXCos=P.granXCos,c.stGranYSin=P.granYSin,c.stGranXSin=P.granXSin,c.stNwCorner=C,c.stWest=P.west,c.stSouth=P.south}return c};var st=N;export{st as a};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.141.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
|
-
var i=Object.create;var t=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var o=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty;var p=(n,e,d)=>e in n?t(n,e,{enumerable:!0,configurable:!0,writable:!0,value:d}):n[e]=d;var b=(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(e,d)=>(typeof require<"u"?require:e)[d]}):n)(function(n){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+n+'" is not supported')}),g=n=>e=>{var d=n[e];if(d)return d();throw new Error("Module not found in bundle: "+e)};var h=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports);var x=(n,e,d,u)=>{if(e&&typeof e=="object"||typeof e=="function")for(let f of l(e))!c.call(n,f)&&f!==d&&t(n,f,{get:()=>e[f],enumerable:!(u=r(e,f))||u.enumerable});return n};var j=(n,e,d)=>(d=n!=null?i(o(n)):{},x(e||!n||!n.__esModule?t(d,"default",{value:n,enumerable:!0}):d,n));var k=(n,e,d)=>p(n,typeof e!="symbol"?e+"":e,d);function a(n){return n!=null}var q=a;export{b as a,g as b,h as c,j as d,k as e,q as f};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.141.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,c as q}from"./chunk-XEC656IT.js";import{a as U}from"./chunk-FB7UV5BI.js";import{h as I}from"./chunk-U3YGOX3C.js";import{a as e,b as C}from"./chunk-TM6SYYHO.js";import{a as O}from"./chunk-VXAZXMUX.js";import{f as j}from"./chunk-5XHUDY37.js";var G={},B=new e,J=new e,_=new e,v=new e,g=[new e,new e],K=new e,W=new e,X=new e,$=new e,ee=new e,te=new e,ne=new e,oe=new e,re=new e,se=new e,F=new I,k=new C;function V(o,s,a,c,r){let d=e.angleBetween(e.subtract(s,o,B),e.subtract(a,o,J)),y=c===z.BEVELED?1:Math.ceil(d/O.toRadians(5))+1,n=y*3,l=new Array(n);l[n-3]=a.x,l[n-2]=a.y,l[n-1]=a.z;let m;r?m=C.fromQuaternion(I.fromAxisAngle(e.negate(o,B),d/y,F),k):m=C.fromQuaternion(I.fromAxisAngle(o,d/y,F),k);let t=0;s=e.clone(s,B);for(let i=0;i<y;i++)s=C.multiplyByVector(m,s,s),l[t++]=s.x,l[t++]=s.y,l[t++]=s.z;return l}function ae(o){let s=K,a=W,c=X,r=o[1];a=e.fromArray(o[1],r.length-3,a),c=e.fromArray(o[0],0,c),s=e.midpoint(a,c,s);let d=V(s,a,c,z.ROUNDED,!1),y=o.length-1,n=o[y-1];r=o[y],a=e.fromArray(n,n.length-3,a),c=e.fromArray(r,0,c),s=e.midpoint(a,c,s);let l=V(s,a,c,z.ROUNDED,!1);return[d,l]}function H(o,s,a,c){let r=B;return c?r=e.add(o,s,r):(s=e.negate(s,s),r=e.add(o,s,r)),[r.x,r.y,r.z,a.x,a.y,a.z]}function T(o,s,a,c){let r=new Array(o.length),d=new Array(o.length),y=e.multiplyByScalar(s,a,B),n=e.negate(y,J),l=0,m=o.length-1;for(let t=0;t<o.length;t+=3){let i=e.fromArray(o,t,_),w=e.add(i,n,v);r[l++]=w.x,r[l++]=w.y,r[l++]=w.z;let f=e.add(i,y,v);d[m--]=f.z,d[m--]=f.y,d[m--]=f.x}return c.push(r,d),c}G.addAttribute=function(o,s,a,c){let r=s.x,d=s.y,y=s.z;j(a)&&(o[a]=r,o[a+1]=d,o[a+2]=y),j(c)&&(o[c]=y,o[c-1]=d,o[c-2]=r)};var le=new e,ce=new e;G.computePositions=function(o){let s=o.granularity,a=o.positions,c=o.ellipsoid,r=o.width/2,d=o.cornerType,y=o.saveAttributes,n=K,l=W,m=X,t=$,i=ee,w=te,f=ne,u=oe,p=re,x=se,E=[],S=y?[]:void 0,D=y?[]:void 0,h=a[0],N=a[1];l=e.normalize(e.subtract(N,h,l),l),n=c.geodeticSurfaceNormal(h,n),t=e.normalize(e.cross(n,l,t),t),y&&(S.push(t.x,t.y,t.z),D.push(n.x,n.y,n.z)),f=e.clone(h,f),h=N,m=e.negate(l,m);let A,P=[],M,Y=a.length;for(M=1;M<Y-1;M++){n=c.geodeticSurfaceNormal(h,n),N=a[M+1],l=e.normalize(e.subtract(N,h,l),l);let L=e.multiplyByScalar(n,e.dot(l,n),le);e.subtract(l,L,L),e.normalize(L,L);let R=e.multiplyByScalar(n,e.dot(m,n),ce);if(e.subtract(m,R,R),e.normalize(R,R),!O.equalsEpsilon(Math.abs(e.dot(L,R)),1,O.EPSILON7)){i=e.normalize(e.add(l,m,i),i),i=e.cross(i,n,i),i=e.cross(n,i,i),i=e.normalize(i,i);let Z=r/Math.max(.25,e.magnitude(e.cross(i,m,B))),b=q.angleIsGreaterThanPi(l,m,h,c);i=e.multiplyByScalar(i,Z,i),b?(u=e.add(h,i,u),x=e.add(u,e.multiplyByScalar(t,r,x),x),p=e.add(u,e.multiplyByScalar(t,r*2,p),p),g[0]=e.clone(f,g[0]),g[1]=e.clone(x,g[1]),A=U.generateArc({positions:g,granularity:s,ellipsoid:c}),E=T(A,t,r,E),y&&(S.push(t.x,t.y,t.z),D.push(n.x,n.y,n.z)),w=e.clone(p,w),t=e.normalize(e.cross(n,l,t),t),p=e.add(u,e.multiplyByScalar(t,r*2,p),p),f=e.add(u,e.multiplyByScalar(t,r,f),f),d===z.ROUNDED||d===z.BEVELED?P.push({leftPositions:V(u,w,p,d,b)}):P.push({leftPositions:H(h,e.negate(i,i),p,b)})):(p=e.add(h,i,p),x=e.add(p,e.negate(e.multiplyByScalar(t,r,x),x),x),u=e.add(p,e.negate(e.multiplyByScalar(t,r*2,u),u),u),g[0]=e.clone(f,g[0]),g[1]=e.clone(x,g[1]),A=U.generateArc({positions:g,granularity:s,ellipsoid:c}),E=T(A,t,r,E),y&&(S.push(t.x,t.y,t.z),D.push(n.x,n.y,n.z)),w=e.clone(u,w),t=e.normalize(e.cross(n,l,t),t),u=e.add(p,e.negate(e.multiplyByScalar(t,r*2,u),u),u),f=e.add(p,e.negate(e.multiplyByScalar(t,r,f),f),f),d===z.ROUNDED||d===z.BEVELED?P.push({rightPositions:V(p,w,u,d,b)}):P.push({rightPositions:H(h,i,u,b)})),m=e.negate(l,m)}h=N}n=c.geodeticSurfaceNormal(h,n),g[0]=e.clone(f,g[0]),g[1]=e.clone(h,g[1]),A=U.generateArc({positions:g,granularity:s,ellipsoid:c}),E=T(A,t,r,E),y&&(S.push(t.x,t.y,t.z),D.push(n.x,n.y,n.z));let Q;return d===z.ROUNDED&&(Q=ae(E)),{positions:E,corners:P,lefts:S,normals:D,endPositions:Q}};var we=G;export{we as a};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.141.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 ct}from"./chunk-236YIEYT.js";import{b as xt,c as ht,d as et}from"./chunk-MGPRMLLW.js";import{a as tt}from"./chunk-SP35IT73.js";import{a as ft}from"./chunk-DC3K7YTH.js";import{a as Y,b as g,c as gt}from"./chunk-EHC3BDVP.js";import{a as h}from"./chunk-TM6SYYHO.js";import{a as X}from"./chunk-VXAZXMUX.js";import{b as A}from"./chunk-GF67PEXE.js";import{f as F}from"./chunk-5XHUDY37.js";var nt={CLOCKWISE:ft.CW,COUNTER_CLOCKWISE:ft.CCW};nt.validate=function(t){return t===nt.CLOCKWISE||t===nt.COUNTER_CLOCKWISE};Object.freeze(nt);var at=nt;function mt(t,n,e=2){let o=n&&n.length,r=o?n[0]*e:t.length,s=wt(t,0,r,e,!0),i=[];if(!s||s.next===s.prev)return i;let c,x,u;if(o&&(s=It(t,n,s,e)),t.length>80*e){c=t[0],x=t[1];let p=c,y=x;for(let b=e;b<r;b+=e){let S=t[b],a=t[b+1];S<c&&(c=S),a<x&&(x=a),S>p&&(p=S),a>y&&(y=a)}u=Math.max(p-c,y-x),u=u!==0?32767/u:0}return it(s,i,e,c,x,u,0),i}function wt(t,n,e,o,r){let s;if(r===Vt(t,n,e,o)>0)for(let i=n;i<e;i+=o)s=vt(i/o|0,t[i],t[i+1],s);else for(let i=e-o;i>=n;i-=o)s=vt(i/o|0,t[i],t[i+1],s);return s&&K(s,s.next)&&(st(s),s=s.next),s}function N(t,n){if(!t)return t;n||(n=t);let e=t,o;do if(o=!1,!e.steiner&&(K(e,e.next)||w(e.prev,e,e.next)===0)){if(st(e),e=n=e.prev,e===e.next)break;o=!0}else e=e.next;while(o||e!==n);return n}function it(t,n,e,o,r,s,i){if(!t)return;!i&&s&&Nt(t,o,r,s);let c=t;for(;t.prev!==t.next;){let x=t.prev,u=t.next;if(s?Rt(t,o,r,s):Pt(t)){n.push(x.i,t.i,u.i),st(t),t=u.next,c=u.next;continue}if(t=u,t===c){i?i===1?(t=zt(N(t),n),it(t,n,e,o,r,s,2)):i===2&&Bt(t,n,e,o,r,s):it(N(t),n,e,o,r,s,1);break}}}function Pt(t){let n=t.prev,e=t,o=t.next;if(w(n,e,o)>=0)return!1;let r=n.x,s=e.x,i=o.x,c=n.y,x=e.y,u=o.y,p=Math.min(r,s,i),y=Math.min(c,x,u),b=Math.max(r,s,i),S=Math.max(c,x,u),a=o.next;for(;a!==n;){if(a.x>=p&&a.x<=b&&a.y>=y&&a.y<=S&&rt(r,c,s,x,i,u,a.x,a.y)&&w(a.prev,a,a.next)>=0)return!1;a=a.next}return!0}function Rt(t,n,e,o){let r=t.prev,s=t,i=t.next;if(w(r,s,i)>=0)return!1;let c=r.x,x=s.x,u=i.x,p=r.y,y=s.y,b=i.y,S=Math.min(c,x,u),a=Math.min(p,y,b),T=Math.max(c,x,u),L=Math.max(p,y,b),z=pt(S,a,n,e,o),D=pt(T,L,n,e,o),l=t.prevZ,f=t.nextZ;for(;l&&l.z>=z&&f&&f.z<=D;){if(l.x>=S&&l.x<=T&&l.y>=a&&l.y<=L&&l!==r&&l!==i&&rt(c,p,x,y,u,b,l.x,l.y)&&w(l.prev,l,l.next)>=0||(l=l.prevZ,f.x>=S&&f.x<=T&&f.y>=a&&f.y<=L&&f!==r&&f!==i&&rt(c,p,x,y,u,b,f.x,f.y)&&w(f.prev,f,f.next)>=0))return!1;f=f.nextZ}for(;l&&l.z>=z;){if(l.x>=S&&l.x<=T&&l.y>=a&&l.y<=L&&l!==r&&l!==i&&rt(c,p,x,y,u,b,l.x,l.y)&&w(l.prev,l,l.next)>=0)return!1;l=l.prevZ}for(;f&&f.z<=D;){if(f.x>=S&&f.x<=T&&f.y>=a&&f.y<=L&&f!==r&&f!==i&&rt(c,p,x,y,u,b,f.x,f.y)&&w(f.prev,f,f.next)>=0)return!1;f=f.nextZ}return!0}function zt(t,n){let e=t;do{let o=e.prev,r=e.next.next;!K(o,r)&&bt(o,e,e.next,r)&&ot(o,r)&&ot(r,o)&&(n.push(o.i,e.i,r.i),st(e),st(e.next),e=t=r),e=e.next}while(e!==t);return N(e)}function Bt(t,n,e,o,r,s){let i=t;do{let c=i.next.next;for(;c!==i.prev;){if(i.i!==c.i&&_t(i,c)){let x=Mt(i,c);i=N(i,i.next),x=N(x,x.next),it(i,n,e,o,r,s,0),it(x,n,e,o,r,s,0);return}c=c.next}i=i.next}while(i!==t)}function It(t,n,e,o){let r=[];for(let s=0,i=n.length;s<i;s++){let c=n[s]*o,x=s<i-1?n[s+1]*o:t.length,u=wt(t,c,x,o,!1);u===u.next&&(u.steiner=!0),r.push(Ut(u))}r.sort(Wt);for(let s=0;s<r.length;s++)e=$t(r[s],e);return e}function Wt(t,n){let e=t.x-n.x;if(e===0&&(e=t.y-n.y,e===0)){let o=(t.next.y-t.y)/(t.next.x-t.x),r=(n.next.y-n.y)/(n.next.x-n.x);e=o-r}return e}function $t(t,n){let e=Gt(t,n);if(!e)return n;let o=Mt(e,t);return N(o,o.next),N(e,e.next)}function Gt(t,n){let e=n,o=t.x,r=t.y,s=-1/0,i;if(K(t,e))return e;do{if(K(t,e.next))return e.next;if(r<=e.y&&r>=e.next.y&&e.next.y!==e.y){let y=e.x+(r-e.y)*(e.next.x-e.x)/(e.next.y-e.y);if(y<=o&&y>s&&(s=y,i=e.x<e.next.x?e:e.next,y===o))return i}e=e.next}while(e!==n);if(!i)return null;let c=i,x=i.x,u=i.y,p=1/0;e=i;do{if(o>=e.x&&e.x>=x&&o!==e.x&&St(r<u?o:s,r,x,u,r<u?s:o,r,e.x,e.y)){let y=Math.abs(r-e.y)/(o-e.x);ot(e,t)&&(y<p||y===p&&(e.x>i.x||e.x===i.x&&Ht(i,e)))&&(i=e,p=y)}e=e.next}while(e!==c);return i}function Ht(t,n){return w(t.prev,t,n.prev)<0&&w(n.next,t,t.next)<0}function Nt(t,n,e,o){let r=t;do r.z===0&&(r.z=pt(r.x,r.y,n,e,o)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next;while(r!==t);r.prevZ.nextZ=null,r.prevZ=null,kt(r)}function kt(t){let n,e=1;do{let o=t,r;t=null;let s=null;for(n=0;o;){n++;let i=o,c=0;for(let u=0;u<e&&(c++,i=i.nextZ,!!i);u++);let x=e;for(;c>0||x>0&&i;)c!==0&&(x===0||!i||o.z<=i.z)?(r=o,o=o.nextZ,c--):(r=i,i=i.nextZ,x--),s?s.nextZ=r:t=r,r.prevZ=s,s=r;o=i}s.nextZ=null,e*=2}while(n>1);return t}function pt(t,n,e,o,r){return t=(t-e)*r|0,n=(n-o)*r|0,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,n=(n|n<<8)&16711935,n=(n|n<<4)&252645135,n=(n|n<<2)&858993459,n=(n|n<<1)&1431655765,t|n<<1}function Ut(t){let n=t,e=t;do(n.x<e.x||n.x===e.x&&n.y<e.y)&&(e=n),n=n.next;while(n!==t);return e}function St(t,n,e,o,r,s,i,c){return(r-i)*(n-c)>=(t-i)*(s-c)&&(t-i)*(o-c)>=(e-i)*(n-c)&&(e-i)*(s-c)>=(r-i)*(o-c)}function rt(t,n,e,o,r,s,i,c){return!(t===i&&n===c)&&St(t,n,e,o,r,s,i,c)}function _t(t,n){return t.next.i!==n.i&&t.prev.i!==n.i&&!Kt(t,n)&&(ot(t,n)&&ot(n,t)&&jt(t,n)&&(w(t.prev,t,n.prev)||w(t,n.prev,n))||K(t,n)&&w(t.prev,t,t.next)>0&&w(n.prev,n,n.next)>0)}function w(t,n,e){return(n.y-t.y)*(e.x-n.x)-(n.x-t.x)*(e.y-n.y)}function K(t,n){return t.x===n.x&&t.y===n.y}function bt(t,n,e,o){let r=lt(w(t,n,e)),s=lt(w(t,n,o)),i=lt(w(e,o,t)),c=lt(w(e,o,n));return!!(r!==s&&i!==c||r===0&&ut(t,e,n)||s===0&&ut(t,o,n)||i===0&&ut(e,t,o)||c===0&&ut(e,n,o))}function ut(t,n,e){return n.x<=Math.max(t.x,e.x)&&n.x>=Math.min(t.x,e.x)&&n.y<=Math.max(t.y,e.y)&&n.y>=Math.min(t.y,e.y)}function lt(t){return t>0?1:t<0?-1:0}function Kt(t,n){let e=t;do{if(e.i!==t.i&&e.next.i!==t.i&&e.i!==n.i&&e.next.i!==n.i&&bt(e,e.next,t,n))return!0;e=e.next}while(e!==t);return!1}function ot(t,n){return w(t.prev,t,t.next)<0?w(t,n,t.next)>=0&&w(t,t.prev,n)>=0:w(t,n,t.prev)<0||w(t,t.next,n)<0}function jt(t,n){let e=t,o=!1,r=(t.x+n.x)/2,s=(t.y+n.y)/2;do e.y>s!=e.next.y>s&&e.next.y!==e.y&&r<(e.next.x-e.x)*(s-e.y)/(e.next.y-e.y)+e.x&&(o=!o),e=e.next;while(e!==t);return o}function Mt(t,n){let e=yt(t.i,t.x,t.y),o=yt(n.i,n.x,n.y),r=t.next,s=n.prev;return t.next=n,n.prev=t,e.next=r,r.prev=e,o.next=e,e.prev=o,s.next=o,o.prev=s,o}function vt(t,n,e,o){let r=yt(t,n,e);return o?(r.next=o.next,r.prev=o,o.next.prev=r,o.next=r):(r.prev=r,r.next=r),r}function st(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function yt(t,n,e){return{i:t,x:n,y:e,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function Vt(t,n,e,o){let r=0;for(let s=n,i=e-o;s<e;s+=o)r+=(t[i]-t[s])*(t[s+1]+t[i+1]),i=s;return r}var qt=new h,Jt=new h,B={};B.computeArea2D=function(t){A.defined("positions",t),A.typeOf.number.greaterThanOrEquals("positions.length",t.length,3);let n=t.length,e=0;for(let o=n-1,r=0;r<n;o=r++){let s=t[o],i=t[r];e+=s.x*i.y-i.x*s.y}return e*.5};B.computeWindingOrder2D=function(t){return B.computeArea2D(t)>0?at.COUNTER_CLOCKWISE:at.CLOCKWISE};B.triangulate=function(t,n){A.defined("positions",t);let e=g.packArray(t);return mt(e,n,2)};var Tt=new h,Ot=new h,Zt=new h,At=new h,Ct=new h,Et=new h,R=new h,Lt=new g,Ft=new g,Dt=new g,j=new g;B.computeSubdivision=function(t,n,e,o,r){r=r??X.RADIANS_PER_DEGREE;let s=F(o);A.typeOf.object("ellipsoid",t),A.defined("positions",n),A.defined("indices",e),A.typeOf.number.greaterThanOrEquals("indices.length",e.length,3),A.typeOf.number.equals("indices.length % 3","0",e.length%3,0),A.typeOf.number.greaterThan("granularity",r,0);let i=e.slice(0),c,x=n.length,u=new Array(x*3),p=new Array(x*2),y=0,b=0;for(c=0;c<x;c++){let l=n[c];if(u[y++]=l.x,u[y++]=l.y,u[y++]=l.z,s){let f=o[c];p[b++]=f.x,p[b++]=f.y}}let S=[],a={},T=t.maximumRadius,L=X.chordLength(r,T),z=L*L;for(;i.length>0;){let l=i.pop(),f=i.pop(),m=i.pop(),M=h.fromArray(u,m*3,Tt),C=h.fromArray(u,f*3,Ot),V=h.fromArray(u,l*3,Zt),q,J,I;s&&(q=g.fromArray(p,m*2,Lt),J=g.fromArray(p,f*2,Ft),I=g.fromArray(p,l*2,Dt));let k=h.multiplyByScalar(h.normalize(M,At),T,At),U=h.multiplyByScalar(h.normalize(C,Ct),T,Ct),W=h.multiplyByScalar(h.normalize(V,Et),T,Et),$=h.magnitudeSquared(h.subtract(k,U,R)),G=h.magnitudeSquared(h.subtract(U,W,R)),Q=h.magnitudeSquared(h.subtract(W,k,R)),H=Math.max($,G,Q),O,v,d;H>z?$===H?(O=`${Math.min(m,f)} ${Math.max(m,f)}`,c=a[O],F(c)||(v=h.add(M,C,R),h.multiplyByScalar(v,.5,v),u.push(v.x,v.y,v.z),c=u.length/3-1,a[O]=c,s&&(d=g.add(q,J,j),g.multiplyByScalar(d,.5,d),p.push(d.x,d.y))),i.push(m,c,l),i.push(c,f,l)):G===H?(O=`${Math.min(f,l)} ${Math.max(f,l)}`,c=a[O],F(c)||(v=h.add(C,V,R),h.multiplyByScalar(v,.5,v),u.push(v.x,v.y,v.z),c=u.length/3-1,a[O]=c,s&&(d=g.add(J,I,j),g.multiplyByScalar(d,.5,d),p.push(d.x,d.y))),i.push(f,c,m),i.push(c,l,m)):Q===H&&(O=`${Math.min(l,m)} ${Math.max(l,m)}`,c=a[O],F(c)||(v=h.add(V,M,R),h.multiplyByScalar(v,.5,v),u.push(v.x,v.y,v.z),c=u.length/3-1,a[O]=c,s&&(d=g.add(I,q,j),g.multiplyByScalar(d,.5,d),p.push(d.x,d.y))),i.push(l,c,f),i.push(c,m,f)):(S.push(m),S.push(f),S.push(l))}let D={attributes:{position:new et({componentDatatype:tt.DOUBLE,componentsPerAttribute:3,values:u})},indices:S,primitiveType:xt.TRIANGLES};return s&&(D.attributes.st=new et({componentDatatype:tt.FLOAT,componentsPerAttribute:2,values:p})),new ht(D)};var Qt=new Y,Xt=new Y,Yt=new Y,dt=new Y;B.computeRhumbLineSubdivision=function(t,n,e,o,r){r=r??X.RADIANS_PER_DEGREE;let s=F(o);A.typeOf.object("ellipsoid",t),A.defined("positions",n),A.defined("indices",e),A.typeOf.number.greaterThanOrEquals("indices.length",e.length,3),A.typeOf.number.equals("indices.length % 3","0",e.length%3,0),A.typeOf.number.greaterThan("granularity",r,0);let i=e.slice(0),c,x=n.length,u=new Array(x*3),p=new Array(x*2),y=0,b=0;for(c=0;c<x;c++){let m=n[c];if(u[y++]=m.x,u[y++]=m.y,u[y++]=m.z,s){let M=o[c];p[b++]=M.x,p[b++]=M.y}}let S=[],a={},T=t.maximumRadius,L=X.chordLength(r,T),z=new ct(void 0,void 0,t),D=new ct(void 0,void 0,t),l=new ct(void 0,void 0,t);for(;i.length>0;){let m=i.pop(),M=i.pop(),C=i.pop(),V=h.fromArray(u,C*3,Tt),q=h.fromArray(u,M*3,Ot),J=h.fromArray(u,m*3,Zt),I,k,U;s&&(I=g.fromArray(p,C*2,Lt),k=g.fromArray(p,M*2,Ft),U=g.fromArray(p,m*2,Dt));let W=t.cartesianToCartographic(V,Qt),$=t.cartesianToCartographic(q,Xt),G=t.cartesianToCartographic(J,Yt);z.setEndPoints(W,$);let Q=z.surfaceDistance;D.setEndPoints($,G);let H=D.surfaceDistance;l.setEndPoints(G,W);let O=l.surfaceDistance,v=Math.max(Q,H,O),d,P,_,Z,E;v>L?Q===v?(d=`${Math.min(C,M)} ${Math.max(C,M)}`,c=a[d],F(c)||(P=z.interpolateUsingFraction(.5,dt),_=(W.height+$.height)*.5,Z=h.fromRadians(P.longitude,P.latitude,_,t,R),u.push(Z.x,Z.y,Z.z),c=u.length/3-1,a[d]=c,s&&(E=g.add(I,k,j),g.multiplyByScalar(E,.5,E),p.push(E.x,E.y))),i.push(C,c,m),i.push(c,M,m)):H===v?(d=`${Math.min(M,m)} ${Math.max(M,m)}`,c=a[d],F(c)||(P=D.interpolateUsingFraction(.5,dt),_=($.height+G.height)*.5,Z=h.fromRadians(P.longitude,P.latitude,_,t,R),u.push(Z.x,Z.y,Z.z),c=u.length/3-1,a[d]=c,s&&(E=g.add(k,U,j),g.multiplyByScalar(E,.5,E),p.push(E.x,E.y))),i.push(M,c,C),i.push(c,m,C)):O===v&&(d=`${Math.min(m,C)} ${Math.max(m,C)}`,c=a[d],F(c)||(P=l.interpolateUsingFraction(.5,dt),_=(G.height+W.height)*.5,Z=h.fromRadians(P.longitude,P.latitude,_,t,R),u.push(Z.x,Z.y,Z.z),c=u.length/3-1,a[d]=c,s&&(E=g.add(U,I,j),g.multiplyByScalar(E,.5,E),p.push(E.x,E.y))),i.push(m,c,M),i.push(c,C,M)):(S.push(C),S.push(M),S.push(m))}let f={attributes:{position:new et({componentDatatype:tt.DOUBLE,componentsPerAttribute:3,values:u})},indices:S,primitiveType:xt.TRIANGLES};return s&&(f.attributes.st=new et({componentDatatype:tt.FLOAT,componentsPerAttribute:2,values:p})),new ht(f)};B.scaleToGeodeticHeight=function(t,n,e,o){e=e??gt.default;let r=qt,s=Jt;if(n=n??0,o=o??!0,F(t)){let i=t.length;for(let c=0;c<i;c+=3)h.fromArray(t,c,s),o&&(s=e.scaleToGeodeticSurface(s,s)),n!==0&&(r=e.geodeticSurfaceNormal(s,r),h.multiplyByScalar(r,n,r),h.add(s,r,s)),t[c]=s.x,t[c+1]=s.y,t[c+2]=s.z}return t};var de=B;export{at as a,de as b};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.141.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{c as O}from"./chunk-TM6SYYHO.js";import{a as f}from"./chunk-GF67PEXE.js";import{f as t}from"./chunk-5XHUDY37.js";function n(e){e=e??O.EMPTY_OBJECT,this.position=e.position??!1,this.normal=e.normal??!1,this.st=e.st??!1,this.bitangent=e.bitangent??!1,this.tangent=e.tangent??!1,this.color=e.color??!1}n.POSITION_ONLY=Object.freeze(new n({position:!0}));n.POSITION_AND_NORMAL=Object.freeze(new n({position:!0,normal:!0}));n.POSITION_NORMAL_AND_ST=Object.freeze(new n({position:!0,normal:!0,st:!0}));n.POSITION_AND_ST=Object.freeze(new n({position:!0,st:!0}));n.POSITION_AND_COLOR=Object.freeze(new n({position:!0,color:!0}));n.ALL=Object.freeze(new n({position:!0,normal:!0,st:!0,tangent:!0,bitangent:!0}));n.DEFAULT=n.POSITION_NORMAL_AND_ST;n.packedLength=6;n.pack=function(e,o,i){if(!t(e))throw new f("value is required");if(!t(o))throw new f("array is required");return i=i??0,o[i++]=e.position?1:0,o[i++]=e.normal?1:0,o[i++]=e.st?1:0,o[i++]=e.tangent?1:0,o[i++]=e.bitangent?1:0,o[i]=e.color?1:0,o};n.unpack=function(e,o,i){if(!t(e))throw new f("array is required");return o=o??0,t(i)||(i=new n),i.position=e[o++]===1,i.normal=e[o++]===1,i.st=e[o++]===1,i.tangent=e[o++]===1,i.bitangent=e[o++]===1,i.color=e[o]===1,i};n.clone=function(e,o){if(t(e))return t(o)||(o=new n),o.position=e.position,o.normal=e.normal,o.st=e.st,o.tangent=e.tangent,o.bitangent=e.bitangent,o.color=e.color,o};var _=n;export{_ as a};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.141.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 A}from"./chunk-FC6IYMYF.js";import{j as W}from"./chunk-U3YGOX3C.js";import{b as Z}from"./chunk-XZBHEBLF.js";import{a as v,c as N}from"./chunk-EHC3BDVP.js";import{a as t,b as U}from"./chunk-TM6SYYHO.js";import{a as ot}from"./chunk-VXAZXMUX.js";import{a as ct,b as h}from"./chunk-GF67PEXE.js";import{f as x}from"./chunk-5XHUDY37.js";var X=class{constructor(e){this._ellipsoid=e??N.default,this._semimajorAxis=this._ellipsoid.maximumRadius,this._oneOverSemimajorAxis=1/this._semimajorAxis}get ellipsoid(){return this._ellipsoid}project(e,n){let c=this._semimajorAxis,o=e.longitude*c,a=e.latitude*c,i=e.height;return x(n)?(n.x=o,n.y=a,n.z=i,n):new t(o,a,i)}unproject(e,n){if(!x(e))throw new ct("cartesian is required");let c=this._oneOverSemimajorAxis,o=e.x*c,a=e.y*c,i=e.z;return x(n)?(n.longitude=o,n.latitude=a,n.height=i,n):new v(o,a,i)}},F=X;function ft(m,e){this.start=m??0,this.stop=e??0}var at=ft;var k=class m{constructor(e,n){this.center=t.clone(e??t.ZERO),this.radius=n??0}static fromPoints(e,n){if(x(n)||(n=new m),!x(e)||e.length===0)return n.center=t.clone(t.ZERO,n.center),n.radius=0,n;let c=t.clone(e[0],$),o=t.clone(c,Y),a=t.clone(c,G),i=t.clone(c,I),d=t.clone(c,J),s=t.clone(c,K),f=t.clone(c,Q),S=e.length,y;for(y=1;y<S;y++){t.clone(e[y],c);let R=c.x,M=c.y,p=c.z;R<o.x&&t.clone(c,o),R>d.x&&t.clone(c,d),M<a.y&&t.clone(c,a),M>s.y&&t.clone(c,s),p<i.z&&t.clone(c,i),p>f.z&&t.clone(c,f)}let u=t.magnitudeSquared(t.subtract(d,o,j)),r=t.magnitudeSquared(t.subtract(s,a,j)),B=t.magnitudeSquared(t.subtract(f,i,j)),C=o,q=d,g=u;r>g&&(g=r,C=a,q=s),B>g&&(g=B,C=i,q=f);let z=L;z.x=(C.x+q.x)*.5,z.y=(C.y+q.y)*.5,z.z=(C.z+q.z)*.5;let w=t.magnitudeSquared(t.subtract(q,z,j)),l=Math.sqrt(w),b=H;b.x=o.x,b.y=a.y,b.z=i.z;let P=_;P.x=d.x,P.y=s.y,P.z=f.z;let D=t.midpoint(b,P,tt),E=0;for(y=0;y<S;y++){t.clone(e[y],c);let R=t.magnitude(t.subtract(c,D,j));R>E&&(E=R);let M=t.magnitudeSquared(t.subtract(c,z,j));if(M>w){let p=Math.sqrt(M);l=(l+p)*.5,w=l*l;let O=p-l;z.x=(l*z.x+O*c.x)/p,z.y=(l*z.y+O*c.y)/p,z.z=(l*z.z+O*c.z)/p}}return l<E?(t.clone(z,n.center),n.radius=l):(t.clone(D,n.center),n.radius=E),n}static fromRectangle2D(e,n,c){return m.fromRectangleWithHeights2D(e,n,0,0,c)}static fromRectangleWithHeights2D(e,n,c,o,a){if(x(a)||(a=new m),!x(e))return a.center=t.clone(t.ZERO,a.center),a.radius=0,a;rt._ellipsoid=N.default,n=n??rt,W.southwest(e,nt),nt.height=c,W.northeast(e,et),et.height=o;let i=n.project(nt,ut),d=n.project(et,xt),s=d.x-i.x,f=d.y-i.y,S=d.z-i.z;a.radius=Math.sqrt(s*s+f*f+S*S)*.5;let y=a.center;return y.x=i.x+s*.5,y.y=i.y+f*.5,y.z=i.z+S*.5,a}static fromRectangle3D(e,n,c,o){if(n=n??N.default,c=c??0,x(o)||(o=new m),!x(e))return o.center=t.clone(t.ZERO,o.center),o.radius=0,o;let a=W.subsample(e,n,c,yt);return m.fromPoints(a,o)}static fromVertices(e,n,c,o){if(x(o)||(o=new m),!x(e)||e.length===0)return o.center=t.clone(t.ZERO,o.center),o.radius=0,o;n=n??t.ZERO,c=c??3,h.typeOf.number.greaterThanOrEquals("stride",c,3);let a=$;a.x=e[0]+n.x,a.y=e[1]+n.y,a.z=e[2]+n.z;let i=t.clone(a,Y),d=t.clone(a,G),s=t.clone(a,I),f=t.clone(a,J),S=t.clone(a,K),y=t.clone(a,Q),u=e.length,r;for(r=0;r<u;r+=c){let p=e[r]+n.x,O=e[r+1]+n.y,T=e[r+2]+n.z;a.x=p,a.y=O,a.z=T,p<i.x&&t.clone(a,i),p>f.x&&t.clone(a,f),O<d.y&&t.clone(a,d),O>S.y&&t.clone(a,S),T<s.z&&t.clone(a,s),T>y.z&&t.clone(a,y)}let B=t.magnitudeSquared(t.subtract(f,i,j)),C=t.magnitudeSquared(t.subtract(S,d,j)),q=t.magnitudeSquared(t.subtract(y,s,j)),g=i,z=f,w=B;C>w&&(w=C,g=d,z=S),q>w&&(w=q,g=s,z=y);let l=L;l.x=(g.x+z.x)*.5,l.y=(g.y+z.y)*.5,l.z=(g.z+z.z)*.5;let b=t.magnitudeSquared(t.subtract(z,l,j)),P=Math.sqrt(b),D=H;D.x=i.x,D.y=d.y,D.z=s.z;let E=_;E.x=f.x,E.y=S.y,E.z=y.z;let R=t.midpoint(D,E,tt),M=0;for(r=0;r<u;r+=c){a.x=e[r]+n.x,a.y=e[r+1]+n.y,a.z=e[r+2]+n.z;let p=t.magnitude(t.subtract(a,R,j));p>M&&(M=p);let O=t.magnitudeSquared(t.subtract(a,l,j));if(O>b){let T=Math.sqrt(O);P=(P+T)*.5,b=P*P;let V=T-P;l.x=(P*l.x+V*a.x)/T,l.y=(P*l.y+V*a.y)/T,l.z=(P*l.z+V*a.z)/T}}return P<M?(t.clone(l,o.center),o.radius=P):(t.clone(R,o.center),o.radius=M),o}static fromEncodedCartesianVertices(e,n,c){if(x(c)||(c=new m),!x(e)||!x(n)||e.length!==n.length||e.length===0)return c.center=t.clone(t.ZERO,c.center),c.radius=0,c;let o=$;o.x=e[0]+n[0],o.y=e[1]+n[1],o.z=e[2]+n[2];let a=t.clone(o,Y),i=t.clone(o,G),d=t.clone(o,I),s=t.clone(o,J),f=t.clone(o,K),S=t.clone(o,Q),y=e.length,u;for(u=0;u<y;u+=3){let M=e[u]+n[u],p=e[u+1]+n[u+1],O=e[u+2]+n[u+2];o.x=M,o.y=p,o.z=O,M<a.x&&t.clone(o,a),M>s.x&&t.clone(o,s),p<i.y&&t.clone(o,i),p>f.y&&t.clone(o,f),O<d.z&&t.clone(o,d),O>S.z&&t.clone(o,S)}let r=t.magnitudeSquared(t.subtract(s,a,j)),B=t.magnitudeSquared(t.subtract(f,i,j)),C=t.magnitudeSquared(t.subtract(S,d,j)),q=a,g=s,z=r;B>z&&(z=B,q=i,g=f),C>z&&(z=C,q=d,g=S);let w=L;w.x=(q.x+g.x)*.5,w.y=(q.y+g.y)*.5,w.z=(q.z+g.z)*.5;let l=t.magnitudeSquared(t.subtract(g,w,j)),b=Math.sqrt(l),P=H;P.x=a.x,P.y=i.y,P.z=d.z;let D=_;D.x=s.x,D.y=f.y,D.z=S.z;let E=t.midpoint(P,D,tt),R=0;for(u=0;u<y;u+=3){o.x=e[u]+n[u],o.y=e[u+1]+n[u+1],o.z=e[u+2]+n[u+2];let M=t.magnitude(t.subtract(o,E,j));M>R&&(R=M);let p=t.magnitudeSquared(t.subtract(o,w,j));if(p>l){let O=Math.sqrt(p);b=(b+O)*.5,l=b*b;let T=O-b;w.x=(b*w.x+T*o.x)/O,w.y=(b*w.y+T*o.y)/O,w.z=(b*w.z+T*o.z)/O}}return b<R?(t.clone(w,c.center),c.radius=b):(t.clone(E,c.center),c.radius=R),c}static fromCornerPoints(e,n,c){h.typeOf.object("corner",e),h.typeOf.object("oppositeCorner",n),x(c)||(c=new m);let o=t.midpoint(e,n,c.center);return c.radius=t.distance(o,n),c}static fromEllipsoid(e,n){return h.typeOf.object("ellipsoid",e),x(n)||(n=new m),t.clone(t.ZERO,n.center),n.radius=e.maximumRadius,n}static fromBoundingSpheres(e,n){if(x(n)||(n=new m),!x(e)||e.length===0)return n.center=t.clone(t.ZERO,n.center),n.radius=0,n;let c=e.length;if(c===1)return m.clone(e[0],n);if(c===2)return m.union(e[0],e[1],n);let o=[],a;for(a=0;a<c;a++)o.push(e[a].center);n=m.fromPoints(o,n);let i=n.center,d=n.radius;for(a=0;a<c;a++){let s=e[a];d=Math.max(d,t.distance(i,s.center)+s.radius)}return n.radius=d,n}static fromOrientedBoundingBox(e,n){h.defined("orientedBoundingBox",e),x(n)||(n=new m);let c=e.halfAxes,o=U.getColumn(c,0,lt),a=U.getColumn(c,1,zt),i=U.getColumn(c,2,ht);return t.add(o,a,o),t.add(o,i,o),n.center=t.clone(e.center,n.center),n.radius=t.magnitude(o),n}static fromTransformation(e,n){h.typeOf.object("transformation",e),x(n)||(n=new m);let c=Z.getTranslation(e,St),o=Z.getScale(e,wt),a=.5*t.magnitude(o);return n.center=t.clone(c,n.center),n.radius=a,n}static clone(e,n){if(x(e))return x(n)?(n.center=t.clone(e.center,n.center),n.radius=e.radius,n):new m(e.center,e.radius)}static pack(e,n,c){h.typeOf.object("value",e),h.defined("array",n),c=c??0;let o=e.center;return n[c++]=o.x,n[c++]=o.y,n[c++]=o.z,n[c]=e.radius,n}static unpack(e,n,c){h.defined("array",e),n=n??0,x(c)||(c=new m);let o=c.center;return o.x=e[n++],o.y=e[n++],o.z=e[n++],c.radius=e[n],c}static union(e,n,c){h.typeOf.object("left",e),h.typeOf.object("right",n),x(c)||(c=new m);let o=e.center,a=e.radius,i=n.center,d=n.radius,s=t.subtract(i,o,pt),f=t.magnitude(s);if(a>=f+d)return e.clone(c),c;if(d>=f+a)return n.clone(c),c;let S=(a+f+d)*.5,y=t.multiplyByScalar(s,(-a+S)/f,Pt);return t.add(y,o,y),t.clone(y,c.center),c.radius=S,c}static expand(e,n,c){h.typeOf.object("sphere",e),h.typeOf.object("point",n),c=m.clone(e,c);let o=t.magnitude(t.subtract(n,c.center,Ot));return o>c.radius&&(c.radius=o),c}static intersectPlane(e,n){h.typeOf.object("sphere",e),h.typeOf.object("plane",n);let c=e.center,o=e.radius,a=n.normal,i=t.dot(a,c)+n.distance;return i<-o?A.OUTSIDE:i<o?A.INTERSECTING:A.INSIDE}static transform(e,n,c){return h.typeOf.object("sphere",e),h.typeOf.object("transform",n),x(c)||(c=new m),c.center=Z.multiplyByPoint(n,e.center,c.center),c.radius=Z.getMaximumScale(n)*e.radius,c}static distanceSquaredTo(e,n){h.typeOf.object("sphere",e),h.typeOf.object("cartesian",n);let c=t.subtract(e.center,n,gt),o=t.magnitude(c)-e.radius;return o<=0?0:o*o}static transformWithoutScale(e,n,c){return h.typeOf.object("sphere",e),h.typeOf.object("transform",n),x(c)||(c=new m),c.center=Z.multiplyByPoint(n,e.center,c.center),c.radius=e.radius,c}static computePlaneDistances(e,n,c,o){h.typeOf.object("sphere",e),h.typeOf.object("position",n),h.typeOf.object("direction",c),x(o)||(o=new at);let a=t.subtract(e.center,n,bt),i=t.dot(c,a);return o.start=i-e.radius,o.stop=i+e.radius,o}static projectTo2D(e,n,c){h.typeOf.object("sphere",e),dt._ellipsoid=N.default,n=n??dt;let o=n.ellipsoid,a=e.center,i=e.radius,d;t.equals(a,t.ZERO)?d=t.clone(t.UNIT_X,it):d=o.geodeticSurfaceNormal(a,it);let s=t.cross(t.UNIT_Z,d,jt);t.normalize(s,s);let f=t.cross(d,s,qt);t.normalize(f,f),t.multiplyByScalar(d,i,d),t.multiplyByScalar(f,i,f),t.multiplyByScalar(s,i,s);let S=t.negate(f,Ct),y=t.negate(s,Mt),u=st,r=u[0];t.add(d,f,r),t.add(r,s,r),r=u[1],t.add(d,f,r),t.add(r,y,r),r=u[2],t.add(d,S,r),t.add(r,y,r),r=u[3],t.add(d,S,r),t.add(r,s,r),t.negate(d,d),r=u[4],t.add(d,f,r),t.add(r,s,r),r=u[5],t.add(d,f,r),t.add(r,y,r),r=u[6],t.add(d,S,r),t.add(r,y,r),r=u[7],t.add(d,S,r),t.add(r,s,r);let B=u.length;for(let z=0;z<B;++z){let w=u[z];t.add(a,w,w);let l=o.cartesianToCartographic(w,Rt);n.project(l,w)}c=m.fromPoints(u,c),a=c.center;let C=a.x,q=a.y,g=a.z;return a.x=g,a.y=C,a.z=q,c}static isOccluded(e,n){return h.typeOf.object("sphere",e),h.typeOf.object("occluder",n),!n.isBoundingSphereVisible(e)}static equals(e,n){return e===n||x(e)&&x(n)&&t.equals(e.center,n.center)&&e.radius===n.radius}intersectPlane(e){return m.intersectPlane(this,e)}distanceSquaredTo(e){return m.distanceSquaredTo(this,e)}computePlaneDistances(e,n,c){return m.computePlaneDistances(this,e,n,c)}isOccluded(e){return m.isOccluded(this,e)}equals(e){return m.equals(this,e)}clone(e){return m.clone(this,e)}volume(){let e=this.radius;return mt*e*e*e}};k.packedLength=4;var Y=new t,G=new t,I=new t,J=new t,K=new t,Q=new t,$=new t,j=new t,L=new t,H=new t,_=new t,tt=new t,mt=4/3*ot.PI,rt=new F,ut=new t,xt=new t,nt=new v,et=new v,yt=[],lt=new t,zt=new t,ht=new t,St=new t,wt=new t,pt=new t,Pt=new t,Ot=new t,gt=new t,bt=new t,it=new t,jt=new t,qt=new t,Mt=new t,Ct=new t,Rt=new v,st=new Array(8);for(let m=0;m<8;++m)st[m]=new t;var dt=new F,Qt=k;export{F as a,at as b,Qt as c};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.141.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 J}from"./chunk-VXCJOT4W.js";import{a as I}from"./chunk-2ZYB3DYT.js";import{b as G,c as k}from"./chunk-A35GG5WJ.js";import{a as B}from"./chunk-FC6IYMYF.js";import{j as X}from"./chunk-U3YGOX3C.js";import{b as j}from"./chunk-XZBHEBLF.js";import{a as S,b as z,c as F}from"./chunk-EHC3BDVP.js";import{a as t,b as d}from"./chunk-TM6SYYHO.js";import{a as g}from"./chunk-VXAZXMUX.js";import{a as b,b as W}from"./chunk-GF67PEXE.js";import{f as p}from"./chunk-5XHUDY37.js";function w(n,e){this.center=t.clone(n??t.ZERO),this.halfAxes=d.clone(e??d.ZERO)}w.packedLength=t.packedLength+d.packedLength;w.pack=function(n,e,c){return W.typeOf.object("value",n),W.defined("array",e),c=c??0,t.pack(n.center,e,c),d.pack(n.halfAxes,e,c+t.packedLength),e};w.unpack=function(n,e,c){return W.defined("array",n),e=e??0,p(c)||(c=new w),t.unpack(n,e,c.center),d.unpack(n,e+t.packedLength,c.halfAxes),c};var pt=new t,Ct=new t,ut=new t,Pt=new t,xt=new t,yt=new t,At=new d,Nt={unitary:new d,diagonal:new d};w.fromPoints=function(n,e){if(p(e)||(e=new w),!p(n)||n.length===0)return e.halfAxes=d.ZERO,e.center=t.ZERO,e;let c,h=n.length,r=t.clone(n[0],pt);for(c=1;c<h;c++)t.add(r,n[c],r);let o=1/h;t.multiplyByScalar(r,o,r);let i=0,C=0,m=0,l=0,u=0,a=0,s;for(c=0;c<h;c++)s=t.subtract(n[c],r,Ct),i+=s.x*s.x,C+=s.x*s.y,m+=s.x*s.z,l+=s.y*s.y,u+=s.y*s.z,a+=s.z*s.z;i*=o,C*=o,m*=o,l*=o,u*=o,a*=o;let f=At;f[0]=i,f[1]=C,f[2]=m,f[3]=C,f[4]=l,f[5]=u,f[6]=m,f[7]=u,f[8]=a;let A=d.computeEigenDecomposition(f,Nt),M=d.clone(A.unitary,e.halfAxes),x=d.getColumn(M,0,Pt),y=d.getColumn(M,1,xt),N=d.getColumn(M,2,yt),P=-Number.MAX_VALUE,O=-Number.MAX_VALUE,L=-Number.MAX_VALUE,U=Number.MAX_VALUE,R=Number.MAX_VALUE,q=Number.MAX_VALUE;for(c=0;c<h;c++)s=n[c],P=Math.max(t.dot(x,s),P),O=Math.max(t.dot(y,s),O),L=Math.max(t.dot(N,s),L),U=Math.min(t.dot(x,s),U),R=Math.min(t.dot(y,s),R),q=Math.min(t.dot(N,s),q);x=t.multiplyByScalar(x,.5*(U+P),x),y=t.multiplyByScalar(y,.5*(R+O),y),N=t.multiplyByScalar(N,.5*(q+L),N);let T=t.add(x,y,e.center);t.add(T,N,T);let E=ut;return E.x=P-U,E.y=O-R,E.z=L-q,t.multiplyByScalar(E,.5,E),d.multiplyByScale(e.halfAxes,E,e.halfAxes),e};var et=new t,Mt=new t;function K(n,e,c,h,r,o,i,C,m,l,u){if(!p(r)||!p(o)||!p(i)||!p(C)||!p(m)||!p(l))throw new b("all extents (minimum/maximum X/Y/Z) are required.");p(u)||(u=new w);let a=u.halfAxes;d.setColumn(a,0,e,a),d.setColumn(a,1,c,a),d.setColumn(a,2,h,a);let s=et;s.x=(r+o)/2,s.y=(i+C)/2,s.z=(m+l)/2;let f=Mt;f.x=(o-r)/2,f.y=(C-i)/2,f.z=(l-m)/2;let A=u.center;return s=d.multiplyByVector(a,s,s),t.add(n,s,A),d.multiplyByScale(a,f,a),u}var Q=new S,Ot=new t,bt=new S,Tt=new S,St=new S,gt=new S,Et=new S,Rt=new t,$=new t,Wt=new t,H=new t,zt=new t,It=new z,Lt=new z,Ut=new z,qt=new z,jt=new z,Bt=new t,vt=new t,_t=new t,Vt=new t,Dt=new z,Xt=new t,kt=new t,Zt=new t,Yt=new I(t.UNIT_X,0);w.fromRectangle=function(n,e,c,h,r){if(!p(n))throw new b("rectangle is required");if(n.width<0||n.width>g.TWO_PI)throw new b("Rectangle width must be between 0 and 2 * pi");if(n.height<0||n.height>g.PI)throw new b("Rectangle height must be between 0 and pi");if(p(h)&&!g.equalsEpsilon(h.radii.x,h.radii.y,g.EPSILON15))throw new b("Ellipsoid must be an ellipsoid of revolution (radii.x == radii.y)");e=e??0,c=c??0,h=h??F.default;let o,i,C,m,l,u,a;if(n.width<=g.PI){let R=X.center(n,Q),q=h.cartographicToCartesian(R,Ot),T=new J(q,h);a=T.plane;let E=R.longitude,rt=n.south<0&&n.north>0?0:R.latitude,ot=S.fromRadians(E,n.north,c,bt),v=S.fromRadians(n.west,n.north,c,Tt),st=S.fromRadians(n.west,rt,c,St),_=S.fromRadians(n.west,n.south,c,gt),it=S.fromRadians(E,n.south,c,Et),ht=h.cartographicToCartesian(ot,Rt),V=h.cartographicToCartesian(v,$),ft=h.cartographicToCartesian(st,Wt),D=h.cartographicToCartesian(_,H),dt=h.cartographicToCartesian(it,zt),wt=T.projectPointToNearestOnPlane(ht,It),Z=T.projectPointToNearestOnPlane(V,Lt),mt=T.projectPointToNearestOnPlane(ft,Ut),Y=T.projectPointToNearestOnPlane(D,qt),lt=T.projectPointToNearestOnPlane(dt,jt);return o=Math.min(Z.x,mt.x,Y.x),i=-o,m=Math.max(Z.y,wt.y),C=Math.min(Y.y,lt.y),v.height=_.height=e,V=h.cartographicToCartesian(v,$),D=h.cartographicToCartesian(_,H),l=Math.min(I.getPointDistance(a,V),I.getPointDistance(a,D)),u=c,K(T.origin,T.xAxis,T.yAxis,T.zAxis,o,i,C,m,l,u,r)}let s=n.south>0,f=n.north<0,A=s?n.south:f?n.north:0,M=X.center(n,Q).longitude,x=t.fromRadians(M,A,c,h,Bt);x.z=0;let N=Math.abs(x.x)<g.EPSILON10&&Math.abs(x.y)<g.EPSILON10?t.UNIT_X:t.normalize(x,vt),P=t.UNIT_Z,O=t.cross(N,P,_t);a=I.fromPointNormal(x,N,Yt);let L=t.fromRadians(M+g.PI_OVER_TWO,A,c,h,Vt);i=t.dot(I.projectPointOntoPlane(a,L,Dt),O),o=-i,m=t.fromRadians(0,n.north,f?e:c,h,Xt).z,C=t.fromRadians(0,n.south,s?e:c,h,kt).z;let U=t.fromRadians(n.east,A,c,h,Zt);return l=I.getPointDistance(a,U),u=0,K(x,O,P,N,o,i,C,m,l,u,r)};w.fromTransformation=function(n,e){return W.typeOf.object("transformation",n),p(e)||(e=new w),e.center=j.getTranslation(n,e.center),e.halfAxes=j.getMatrix3(n,e.halfAxes),e.halfAxes=d.multiplyByScalar(e.halfAxes,.5,e.halfAxes),e};w.clone=function(n,e){if(p(n))return p(e)?(t.clone(n.center,e.center),d.clone(n.halfAxes,e.halfAxes),e):new w(n.center,n.halfAxes)};w.intersectPlane=function(n,e){if(!p(n))throw new b("box is required.");if(!p(e))throw new b("plane is required.");let c=n.center,h=e.normal,r=n.halfAxes,o=h.x,i=h.y,C=h.z,m=Math.abs(o*r[d.COLUMN0ROW0]+i*r[d.COLUMN0ROW1]+C*r[d.COLUMN0ROW2])+Math.abs(o*r[d.COLUMN1ROW0]+i*r[d.COLUMN1ROW1]+C*r[d.COLUMN1ROW2])+Math.abs(o*r[d.COLUMN2ROW0]+i*r[d.COLUMN2ROW1]+C*r[d.COLUMN2ROW2]),l=t.dot(h,c)+e.distance;return l<=-m?B.OUTSIDE:l>=m?B.INSIDE:B.INTERSECTING};var nt=new t,at=new t,ct=new t,Ft=new t,tt=new t,Gt=new t;w.distanceSquaredTo=function(n,e){if(!p(n))throw new b("box is required.");if(!p(e))throw new b("cartesian is required.");let c=t.subtract(e,n.center,et),h=n.halfAxes,r=d.getColumn(h,0,nt),o=d.getColumn(h,1,at),i=d.getColumn(h,2,ct),C=t.magnitude(r),m=t.magnitude(o),l=t.magnitude(i),u=!0,a=!0,s=!0;C>0?t.divideByScalar(r,C,r):u=!1,m>0?t.divideByScalar(o,m,o):a=!1,l>0?t.divideByScalar(i,l,i):s=!1;let f=!u+!a+!s,A,M,x;if(f===1){let O=r;A=o,M=i,a?s||(O=i,M=r):(O=o,A=r),x=t.cross(A,M,tt),O===r?r=x:O===o?o=x:O===i&&(i=x)}else if(f===2){A=r,a?A=o:s&&(A=i);let O=t.UNIT_Y;O.equalsEpsilon(A,g.EPSILON3)&&(O=t.UNIT_X),M=t.cross(A,O,Ft),t.normalize(M,M),x=t.cross(A,M,tt),t.normalize(x,x),A===r?(o=M,i=x):A===o?(i=M,r=x):A===i&&(r=M,o=x)}else f===3&&(r=t.UNIT_X,o=t.UNIT_Y,i=t.UNIT_Z);let y=Gt;y.x=t.dot(c,r),y.y=t.dot(c,o),y.z=t.dot(c,i);let N=0,P;return y.x<-C?(P=y.x+C,N+=P*P):y.x>C&&(P=y.x-C,N+=P*P),y.y<-m?(P=y.y+m,N+=P*P):y.y>m&&(P=y.y-m,N+=P*P),y.z<-l?(P=y.z+l,N+=P*P):y.z>l&&(P=y.z-l,N+=P*P),N};var Jt=new t,Kt=new t;w.computePlaneDistances=function(n,e,c,h){if(!p(n))throw new b("box is required.");if(!p(e))throw new b("position is required.");if(!p(c))throw new b("direction is required.");p(h)||(h=new G);let r=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY,i=n.center,C=n.halfAxes,m=d.getColumn(C,0,nt),l=d.getColumn(C,1,at),u=d.getColumn(C,2,ct),a=t.add(m,l,Jt);t.add(a,u,a),t.add(a,i,a);let s=t.subtract(a,e,Kt),f=t.dot(c,s);return r=Math.min(f,r),o=Math.max(f,o),t.add(i,m,a),t.add(a,l,a),t.subtract(a,u,a),t.subtract(a,e,s),f=t.dot(c,s),r=Math.min(f,r),o=Math.max(f,o),t.add(i,m,a),t.subtract(a,l,a),t.add(a,u,a),t.subtract(a,e,s),f=t.dot(c,s),r=Math.min(f,r),o=Math.max(f,o),t.add(i,m,a),t.subtract(a,l,a),t.subtract(a,u,a),t.subtract(a,e,s),f=t.dot(c,s),r=Math.min(f,r),o=Math.max(f,o),t.subtract(i,m,a),t.add(a,l,a),t.add(a,u,a),t.subtract(a,e,s),f=t.dot(c,s),r=Math.min(f,r),o=Math.max(f,o),t.subtract(i,m,a),t.add(a,l,a),t.subtract(a,u,a),t.subtract(a,e,s),f=t.dot(c,s),r=Math.min(f,r),o=Math.max(f,o),t.subtract(i,m,a),t.subtract(a,l,a),t.add(a,u,a),t.subtract(a,e,s),f=t.dot(c,s),r=Math.min(f,r),o=Math.max(f,o),t.subtract(i,m,a),t.subtract(a,l,a),t.subtract(a,u,a),t.subtract(a,e,s),f=t.dot(c,s),r=Math.min(f,r),o=Math.max(f,o),h.start=r,h.stop=o,h};var Qt=new t,$t=new t,Ht=new t;w.computeCorners=function(n,e){W.typeOf.object("box",n),p(e)||(e=[new t,new t,new t,new t,new t,new t,new t,new t]);let c=n.center,h=n.halfAxes,r=d.getColumn(h,0,Qt),o=d.getColumn(h,1,$t),i=d.getColumn(h,2,Ht);return t.clone(c,e[0]),t.subtract(e[0],r,e[0]),t.subtract(e[0],o,e[0]),t.subtract(e[0],i,e[0]),t.clone(c,e[1]),t.subtract(e[1],r,e[1]),t.subtract(e[1],o,e[1]),t.add(e[1],i,e[1]),t.clone(c,e[2]),t.subtract(e[2],r,e[2]),t.add(e[2],o,e[2]),t.subtract(e[2],i,e[2]),t.clone(c,e[3]),t.subtract(e[3],r,e[3]),t.add(e[3],o,e[3]),t.add(e[3],i,e[3]),t.clone(c,e[4]),t.add(e[4],r,e[4]),t.subtract(e[4],o,e[4]),t.subtract(e[4],i,e[4]),t.clone(c,e[5]),t.add(e[5],r,e[5]),t.subtract(e[5],o,e[5]),t.add(e[5],i,e[5]),t.clone(c,e[6]),t.add(e[6],r,e[6]),t.add(e[6],o,e[6]),t.subtract(e[6],i,e[6]),t.clone(c,e[7]),t.add(e[7],r,e[7]),t.add(e[7],o,e[7]),t.add(e[7],i,e[7]),e};var te=new d;w.computeTransformation=function(n,e){W.typeOf.object("box",n),p(e)||(e=new j);let c=n.center,h=d.multiplyByUniformScale(n.halfAxes,2,te);return j.fromRotationTranslation(h,c,e)};var ee=new k;w.isOccluded=function(n,e){if(!p(n))throw new b("box is required.");if(!p(e))throw new b("occluder is required.");let c=k.fromOrientedBoundingBox(n,ee);return!e.isBoundingSphereVisible(c)};w.prototype.intersectPlane=function(n){return w.intersectPlane(this,n)};w.prototype.distanceSquaredTo=function(n){return w.distanceSquaredTo(this,n)};w.prototype.computePlaneDistances=function(n,e,c){return w.computePlaneDistances(this,n,e,c)};w.prototype.computeCorners=function(n){return w.computeCorners(this,n)};w.prototype.computeTransformation=function(n){return w.computeTransformation(this,n)};w.prototype.isOccluded=function(n){return w.isOccluded(this,n)};w.equals=function(n,e){return n===e||p(n)&&p(e)&&t.equals(n.center,e.center)&&d.equals(n.halfAxes,e.halfAxes)};w.prototype.clone=function(n){return w.clone(this,n)};w.prototype.equals=function(n){return w.equals(this,n)};var Pe=w;export{Pe as a};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.141.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
|
-
var E={DEPTH_BUFFER_BIT:256,STENCIL_BUFFER_BIT:1024,COLOR_BUFFER_BIT:16384,POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,ZERO:0,ONE:1,SRC_COLOR:768,ONE_MINUS_SRC_COLOR:769,SRC_ALPHA:770,ONE_MINUS_SRC_ALPHA:771,DST_ALPHA:772,ONE_MINUS_DST_ALPHA:773,DST_COLOR:774,ONE_MINUS_DST_COLOR:775,SRC_ALPHA_SATURATE:776,FUNC_ADD:32774,BLEND_EQUATION:32777,BLEND_EQUATION_RGB:32777,BLEND_EQUATION_ALPHA:34877,FUNC_SUBTRACT:32778,FUNC_REVERSE_SUBTRACT:32779,BLEND_DST_RGB:32968,BLEND_SRC_RGB:32969,BLEND_DST_ALPHA:32970,BLEND_SRC_ALPHA:32971,CONSTANT_COLOR:32769,ONE_MINUS_CONSTANT_COLOR:32770,CONSTANT_ALPHA:32771,ONE_MINUS_CONSTANT_ALPHA:32772,BLEND_COLOR:32773,ARRAY_BUFFER:34962,ELEMENT_ARRAY_BUFFER:34963,ARRAY_BUFFER_BINDING:34964,ELEMENT_ARRAY_BUFFER_BINDING:34965,STREAM_DRAW:35040,STATIC_DRAW:35044,DYNAMIC_DRAW:35048,BUFFER_SIZE:34660,BUFFER_USAGE:34661,CURRENT_VERTEX_ATTRIB:34342,FRONT:1028,BACK:1029,FRONT_AND_BACK:1032,CULL_FACE:2884,BLEND:3042,DITHER:3024,STENCIL_TEST:2960,DEPTH_TEST:2929,SCISSOR_TEST:3089,POLYGON_OFFSET_FILL:32823,SAMPLE_ALPHA_TO_COVERAGE:32926,SAMPLE_COVERAGE:32928,NO_ERROR:0,INVALID_ENUM:1280,INVALID_VALUE:1281,INVALID_OPERATION:1282,OUT_OF_MEMORY:1285,CW:2304,CCW:2305,LINE_WIDTH:2849,ALIASED_POINT_SIZE_RANGE:33901,ALIASED_LINE_WIDTH_RANGE:33902,CULL_FACE_MODE:2885,FRONT_FACE:2886,DEPTH_RANGE:2928,DEPTH_WRITEMASK:2930,DEPTH_CLEAR_VALUE:2931,DEPTH_FUNC:2932,STENCIL_CLEAR_VALUE:2961,STENCIL_FUNC:2962,STENCIL_FAIL:2964,STENCIL_PASS_DEPTH_FAIL:2965,STENCIL_PASS_DEPTH_PASS:2966,STENCIL_REF:2967,STENCIL_VALUE_MASK:2963,STENCIL_WRITEMASK:2968,STENCIL_BACK_FUNC:34816,STENCIL_BACK_FAIL:34817,STENCIL_BACK_PASS_DEPTH_FAIL:34818,STENCIL_BACK_PASS_DEPTH_PASS:34819,STENCIL_BACK_REF:36003,STENCIL_BACK_VALUE_MASK:36004,STENCIL_BACK_WRITEMASK:36005,VIEWPORT:2978,SCISSOR_BOX:3088,COLOR_CLEAR_VALUE:3106,COLOR_WRITEMASK:3107,UNPACK_ALIGNMENT:3317,PACK_ALIGNMENT:3333,MAX_TEXTURE_SIZE:3379,MAX_VIEWPORT_DIMS:3386,SUBPIXEL_BITS:3408,RED_BITS:3410,GREEN_BITS:3411,BLUE_BITS:3412,ALPHA_BITS:3413,DEPTH_BITS:3414,STENCIL_BITS:3415,POLYGON_OFFSET_UNITS:10752,POLYGON_OFFSET_FACTOR:32824,TEXTURE_BINDING_2D:32873,SAMPLE_BUFFERS:32936,SAMPLES:32937,SAMPLE_COVERAGE_VALUE:32938,SAMPLE_COVERAGE_INVERT:32939,COMPRESSED_TEXTURE_FORMATS:34467,DONT_CARE:4352,FASTEST:4353,NICEST:4354,GENERATE_MIPMAP_HINT:33170,BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,DEPTH_COMPONENT:6402,ALPHA:6406,RGB:6407,RGBA:6408,LUMINANCE:6409,LUMINANCE_ALPHA:6410,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,FRAGMENT_SHADER:35632,VERTEX_SHADER:35633,MAX_VERTEX_ATTRIBS:34921,MAX_VERTEX_UNIFORM_VECTORS:36347,MAX_VARYING_VECTORS:36348,MAX_COMBINED_TEXTURE_IMAGE_UNITS:35661,MAX_VERTEX_TEXTURE_IMAGE_UNITS:35660,MAX_TEXTURE_IMAGE_UNITS:34930,MAX_FRAGMENT_UNIFORM_VECTORS:36349,SHADER_TYPE:35663,DELETE_STATUS:35712,LINK_STATUS:35714,VALIDATE_STATUS:35715,ATTACHED_SHADERS:35717,ACTIVE_UNIFORMS:35718,ACTIVE_ATTRIBUTES:35721,SHADING_LANGUAGE_VERSION:35724,CURRENT_PROGRAM:35725,NEVER:512,LESS:513,EQUAL:514,LEQUAL:515,GREATER:516,NOTEQUAL:517,GEQUAL:518,ALWAYS:519,KEEP:7680,REPLACE:7681,INCR:7682,DECR:7683,INVERT:5386,INCR_WRAP:34055,DECR_WRAP:34056,VENDOR:7936,RENDERER:7937,VERSION:7938,NEAREST:9728,LINEAR:9729,NEAREST_MIPMAP_NEAREST:9984,LINEAR_MIPMAP_NEAREST:9985,NEAREST_MIPMAP_LINEAR:9986,LINEAR_MIPMAP_LINEAR:9987,TEXTURE_MAG_FILTER:10240,TEXTURE_MIN_FILTER:10241,TEXTURE_WRAP_S:10242,TEXTURE_WRAP_T:10243,TEXTURE_2D:3553,TEXTURE:5890,TEXTURE_CUBE_MAP:34067,TEXTURE_BINDING_CUBE_MAP:34068,TEXTURE_CUBE_MAP_POSITIVE_X:34069,TEXTURE_CUBE_MAP_NEGATIVE_X:34070,TEXTURE_CUBE_MAP_POSITIVE_Y:34071,TEXTURE_CUBE_MAP_NEGATIVE_Y:34072,TEXTURE_CUBE_MAP_POSITIVE_Z:34073,TEXTURE_CUBE_MAP_NEGATIVE_Z:34074,MAX_CUBE_MAP_TEXTURE_SIZE:34076,TEXTURE0:33984,TEXTURE1:33985,TEXTURE2:33986,TEXTURE3:33987,TEXTURE4:33988,TEXTURE5:33989,TEXTURE6:33990,TEXTURE7:33991,TEXTURE8:33992,TEXTURE9:33993,TEXTURE10:33994,TEXTURE11:33995,TEXTURE12:33996,TEXTURE13:33997,TEXTURE14:33998,TEXTURE15:33999,TEXTURE16:34e3,TEXTURE17:34001,TEXTURE18:34002,TEXTURE19:34003,TEXTURE20:34004,TEXTURE21:34005,TEXTURE22:34006,TEXTURE23:34007,TEXTURE24:34008,TEXTURE25:34009,TEXTURE26:34010,TEXTURE27:34011,TEXTURE28:34012,TEXTURE29:34013,TEXTURE30:34014,TEXTURE31:34015,ACTIVE_TEXTURE:34016,REPEAT:10497,CLAMP_TO_EDGE:33071,MIRRORED_REPEAT:33648,FLOAT_VEC2:35664,FLOAT_VEC3:35665,FLOAT_VEC4:35666,INT_VEC2:35667,INT_VEC3:35668,INT_VEC4:35669,BOOL:35670,BOOL_VEC2:35671,BOOL_VEC3:35672,BOOL_VEC4:35673,FLOAT_MAT2:35674,FLOAT_MAT3:35675,FLOAT_MAT4:35676,SAMPLER_2D:35678,SAMPLER_CUBE:35680,VERTEX_ATTRIB_ARRAY_ENABLED:34338,VERTEX_ATTRIB_ARRAY_SIZE:34339,VERTEX_ATTRIB_ARRAY_STRIDE:34340,VERTEX_ATTRIB_ARRAY_TYPE:34341,VERTEX_ATTRIB_ARRAY_NORMALIZED:34922,VERTEX_ATTRIB_ARRAY_POINTER:34373,VERTEX_ATTRIB_ARRAY_BUFFER_BINDING:34975,IMPLEMENTATION_COLOR_READ_TYPE:35738,IMPLEMENTATION_COLOR_READ_FORMAT:35739,COMPILE_STATUS:35713,LOW_FLOAT:36336,MEDIUM_FLOAT:36337,HIGH_FLOAT:36338,LOW_INT:36339,MEDIUM_INT:36340,HIGH_INT:36341,FRAMEBUFFER:36160,RENDERBUFFER:36161,RGBA4:32854,RGB5_A1:32855,RGB565:36194,DEPTH_COMPONENT16:33189,STENCIL_INDEX:6401,STENCIL_INDEX8:36168,DEPTH_STENCIL:34041,RENDERBUFFER_WIDTH:36162,RENDERBUFFER_HEIGHT:36163,RENDERBUFFER_INTERNAL_FORMAT:36164,RENDERBUFFER_RED_SIZE:36176,RENDERBUFFER_GREEN_SIZE:36177,RENDERBUFFER_BLUE_SIZE:36178,RENDERBUFFER_ALPHA_SIZE:36179,RENDERBUFFER_DEPTH_SIZE:36180,RENDERBUFFER_STENCIL_SIZE:36181,FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE:36048,FRAMEBUFFER_ATTACHMENT_OBJECT_NAME:36049,FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL:36050,FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE:36051,COLOR_ATTACHMENT0:36064,DEPTH_ATTACHMENT:36096,STENCIL_ATTACHMENT:36128,DEPTH_STENCIL_ATTACHMENT:33306,NONE:0,FRAMEBUFFER_COMPLETE:36053,FRAMEBUFFER_INCOMPLETE_ATTACHMENT:36054,FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:36055,FRAMEBUFFER_INCOMPLETE_DIMENSIONS:36057,FRAMEBUFFER_UNSUPPORTED:36061,FRAMEBUFFER_BINDING:36006,RENDERBUFFER_BINDING:36007,MAX_RENDERBUFFER_SIZE:34024,INVALID_FRAMEBUFFER_OPERATION:1286,UNPACK_FLIP_Y_WEBGL:37440,UNPACK_PREMULTIPLY_ALPHA_WEBGL:37441,CONTEXT_LOST_WEBGL:37442,UNPACK_COLORSPACE_CONVERSION_WEBGL:37443,BROWSER_DEFAULT_WEBGL:37444,COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_RGB_PVRTC_4BPPV1_IMG:35840,COMPRESSED_RGB_PVRTC_2BPPV1_IMG:35841,COMPRESSED_RGBA_PVRTC_4BPPV1_IMG:35842,COMPRESSED_RGBA_PVRTC_2BPPV1_IMG:35843,COMPRESSED_RGBA_ASTC_4x4_WEBGL:37808,COMPRESSED_RGB_ETC1_WEBGL:36196,COMPRESSED_RGBA_BPTC_UNORM:36492,HALF_FLOAT_OES:36193,DOUBLE:5130,READ_BUFFER:3074,UNPACK_ROW_LENGTH:3314,UNPACK_SKIP_ROWS:3315,UNPACK_SKIP_PIXELS:3316,PACK_ROW_LENGTH:3330,PACK_SKIP_ROWS:3331,PACK_SKIP_PIXELS:3332,COLOR:6144,DEPTH:6145,STENCIL:6146,RED:6403,RGB8:32849,RGBA8:32856,RGB10_A2:32857,TEXTURE_BINDING_3D:32874,UNPACK_SKIP_IMAGES:32877,UNPACK_IMAGE_HEIGHT:32878,TEXTURE_3D:32879,TEXTURE_WRAP_R:32882,MAX_3D_TEXTURE_SIZE:32883,UNSIGNED_INT_2_10_10_10_REV:33640,MAX_ELEMENTS_VERTICES:33e3,MAX_ELEMENTS_INDICES:33001,TEXTURE_MIN_LOD:33082,TEXTURE_MAX_LOD:33083,TEXTURE_BASE_LEVEL:33084,TEXTURE_MAX_LEVEL:33085,MIN:32775,MAX:32776,DEPTH_COMPONENT24:33190,MAX_TEXTURE_LOD_BIAS:34045,TEXTURE_COMPARE_MODE:34892,TEXTURE_COMPARE_FUNC:34893,CURRENT_QUERY:34917,QUERY_RESULT:34918,QUERY_RESULT_AVAILABLE:34919,STREAM_READ:35041,STREAM_COPY:35042,STATIC_READ:35045,STATIC_COPY:35046,DYNAMIC_READ:35049,DYNAMIC_COPY:35050,MAX_DRAW_BUFFERS:34852,DRAW_BUFFER0:34853,DRAW_BUFFER1:34854,DRAW_BUFFER2:34855,DRAW_BUFFER3:34856,DRAW_BUFFER4:34857,DRAW_BUFFER5:34858,DRAW_BUFFER6:34859,DRAW_BUFFER7:34860,DRAW_BUFFER8:34861,DRAW_BUFFER9:34862,DRAW_BUFFER10:34863,DRAW_BUFFER11:34864,DRAW_BUFFER12:34865,DRAW_BUFFER13:34866,DRAW_BUFFER14:34867,DRAW_BUFFER15:34868,MAX_FRAGMENT_UNIFORM_COMPONENTS:35657,MAX_VERTEX_UNIFORM_COMPONENTS:35658,SAMPLER_3D:35679,SAMPLER_2D_SHADOW:35682,FRAGMENT_SHADER_DERIVATIVE_HINT:35723,PIXEL_PACK_BUFFER:35051,PIXEL_UNPACK_BUFFER:35052,PIXEL_PACK_BUFFER_BINDING:35053,PIXEL_UNPACK_BUFFER_BINDING:35055,FLOAT_MAT2x3:35685,FLOAT_MAT2x4:35686,FLOAT_MAT3x2:35687,FLOAT_MAT3x4:35688,FLOAT_MAT4x2:35689,FLOAT_MAT4x3:35690,SRGB:35904,SRGB8:35905,SRGB8_ALPHA8:35907,COMPARE_REF_TO_TEXTURE:34894,RGBA32F:34836,RGB32F:34837,RGBA16F:34842,RGB16F:34843,VERTEX_ATTRIB_ARRAY_INTEGER:35069,MAX_ARRAY_TEXTURE_LAYERS:35071,MIN_PROGRAM_TEXEL_OFFSET:35076,MAX_PROGRAM_TEXEL_OFFSET:35077,MAX_VARYING_COMPONENTS:35659,TEXTURE_2D_ARRAY:35866,TEXTURE_BINDING_2D_ARRAY:35869,R11F_G11F_B10F:35898,UNSIGNED_INT_10F_11F_11F_REV:35899,RGB9_E5:35901,UNSIGNED_INT_5_9_9_9_REV:35902,TRANSFORM_FEEDBACK_BUFFER_MODE:35967,MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS:35968,TRANSFORM_FEEDBACK_VARYINGS:35971,TRANSFORM_FEEDBACK_BUFFER_START:35972,TRANSFORM_FEEDBACK_BUFFER_SIZE:35973,TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN:35976,RASTERIZER_DISCARD:35977,MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS:35978,MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS:35979,INTERLEAVED_ATTRIBS:35980,SEPARATE_ATTRIBS:35981,TRANSFORM_FEEDBACK_BUFFER:35982,TRANSFORM_FEEDBACK_BUFFER_BINDING:35983,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,RED_INTEGER:36244,RGB_INTEGER:36248,RGBA_INTEGER:36249,SAMPLER_2D_ARRAY:36289,SAMPLER_2D_ARRAY_SHADOW:36292,SAMPLER_CUBE_SHADOW:36293,UNSIGNED_INT_VEC2:36294,UNSIGNED_INT_VEC3:36295,UNSIGNED_INT_VEC4:36296,INT_SAMPLER_2D:36298,INT_SAMPLER_3D:36299,INT_SAMPLER_CUBE:36300,INT_SAMPLER_2D_ARRAY:36303,UNSIGNED_INT_SAMPLER_2D:36306,UNSIGNED_INT_SAMPLER_3D:36307,UNSIGNED_INT_SAMPLER_CUBE:36308,UNSIGNED_INT_SAMPLER_2D_ARRAY:36311,DEPTH_COMPONENT32F:36012,DEPTH32F_STENCIL8:36013,FLOAT_32_UNSIGNED_INT_24_8_REV:36269,FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING:33296,FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE:33297,FRAMEBUFFER_ATTACHMENT_RED_SIZE:33298,FRAMEBUFFER_ATTACHMENT_GREEN_SIZE:33299,FRAMEBUFFER_ATTACHMENT_BLUE_SIZE:33300,FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE:33301,FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE:33302,FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE:33303,FRAMEBUFFER_DEFAULT:33304,UNSIGNED_INT_24_8:34042,DEPTH24_STENCIL8:35056,UNSIGNED_NORMALIZED:35863,DRAW_FRAMEBUFFER_BINDING:36006,READ_FRAMEBUFFER:36008,DRAW_FRAMEBUFFER:36009,READ_FRAMEBUFFER_BINDING:36010,RENDERBUFFER_SAMPLES:36011,FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER:36052,MAX_COLOR_ATTACHMENTS:36063,COLOR_ATTACHMENT1:36065,COLOR_ATTACHMENT2:36066,COLOR_ATTACHMENT3:36067,COLOR_ATTACHMENT4:36068,COLOR_ATTACHMENT5:36069,COLOR_ATTACHMENT6:36070,COLOR_ATTACHMENT7:36071,COLOR_ATTACHMENT8:36072,COLOR_ATTACHMENT9:36073,COLOR_ATTACHMENT10:36074,COLOR_ATTACHMENT11:36075,COLOR_ATTACHMENT12:36076,COLOR_ATTACHMENT13:36077,COLOR_ATTACHMENT14:36078,COLOR_ATTACHMENT15:36079,FRAMEBUFFER_INCOMPLETE_MULTISAMPLE:36182,MAX_SAMPLES:36183,HALF_FLOAT:5131,RG:33319,RG_INTEGER:33320,R8:33321,RG8:33323,R16F:33325,R32F:33326,RG16F:33327,RG32F:33328,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,VERTEX_ARRAY_BINDING:34229,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,SIGNED_NORMALIZED:36764,COPY_READ_BUFFER:36662,COPY_WRITE_BUFFER:36663,COPY_READ_BUFFER_BINDING:36662,COPY_WRITE_BUFFER_BINDING:36663,UNIFORM_BUFFER:35345,UNIFORM_BUFFER_BINDING:35368,UNIFORM_BUFFER_START:35369,UNIFORM_BUFFER_SIZE:35370,MAX_VERTEX_UNIFORM_BLOCKS:35371,MAX_FRAGMENT_UNIFORM_BLOCKS:35373,MAX_COMBINED_UNIFORM_BLOCKS:35374,MAX_UNIFORM_BUFFER_BINDINGS:35375,MAX_UNIFORM_BLOCK_SIZE:35376,MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS:35377,MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS:35379,UNIFORM_BUFFER_OFFSET_ALIGNMENT:35380,ACTIVE_UNIFORM_BLOCKS:35382,UNIFORM_TYPE:35383,UNIFORM_SIZE:35384,UNIFORM_BLOCK_INDEX:35386,UNIFORM_OFFSET:35387,UNIFORM_ARRAY_STRIDE:35388,UNIFORM_MATRIX_STRIDE:35389,UNIFORM_IS_ROW_MAJOR:35390,UNIFORM_BLOCK_BINDING:35391,UNIFORM_BLOCK_DATA_SIZE:35392,UNIFORM_BLOCK_ACTIVE_UNIFORMS:35394,UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES:35395,UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER:35396,UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER:35398,INVALID_INDEX:4294967295,MAX_VERTEX_OUTPUT_COMPONENTS:37154,MAX_FRAGMENT_INPUT_COMPONENTS:37157,MAX_SERVER_WAIT_TIMEOUT:37137,OBJECT_TYPE:37138,SYNC_CONDITION:37139,SYNC_STATUS:37140,SYNC_FLAGS:37141,SYNC_FENCE:37142,SYNC_GPU_COMMANDS_COMPLETE:37143,UNSIGNALED:37144,SIGNALED:37145,ALREADY_SIGNALED:37146,TIMEOUT_EXPIRED:37147,CONDITION_SATISFIED:37148,WAIT_FAILED:37149,SYNC_FLUSH_COMMANDS_BIT:1,VERTEX_ATTRIB_ARRAY_DIVISOR:35070,ANY_SAMPLES_PASSED:35887,ANY_SAMPLES_PASSED_CONSERVATIVE:36202,SAMPLER_BINDING:35097,RGB10_A2UI:36975,INT_2_10_10_10_REV:36255,TRANSFORM_FEEDBACK:36386,TRANSFORM_FEEDBACK_PAUSED:36387,TRANSFORM_FEEDBACK_ACTIVE:36388,TRANSFORM_FEEDBACK_BINDING:36389,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497,TEXTURE_IMMUTABLE_FORMAT:37167,MAX_ELEMENT_INDEX:36203,TEXTURE_IMMUTABLE_LEVELS:33503,MAX_TEXTURE_MAX_ANISOTROPY_EXT:34047};Object.freeze(E);var _=E;export{_ as a};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.141.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 Q}from"./chunk-LBZ34MHQ.js";import{a as N}from"./chunk-F3WJIFOO.js";import{a as _}from"./chunk-7NQYTTAU.js";import{a as K}from"./chunk-ZY2KCIWI.js";import{a as H}from"./chunk-PWBQN4GK.js";import{b as J,c as W,d as L}from"./chunk-MGPRMLLW.js";import{c as j}from"./chunk-A35GG5WJ.js";import{a as S}from"./chunk-SP35IT73.js";import{b as E}from"./chunk-EHC3BDVP.js";import{a as b,c as Z}from"./chunk-TM6SYYHO.js";import{a as Y}from"./chunk-VXAZXMUX.js";import{a as F}from"./chunk-GF67PEXE.js";import{f as g}from"./chunk-5XHUDY37.js";var k=new E,ot=new b,nt=new b,it=new b,rt=new b;function O(t){t=t??Z.EMPTY_OBJECT;let n=t.length,e=t.topRadius,h=t.bottomRadius,o=t.vertexFormat??_.DEFAULT,s=t.slices??128;if(!g(n))throw new F("options.length must be defined.");if(!g(e))throw new F("options.topRadius must be defined.");if(!g(h))throw new F("options.bottomRadius must be defined.");if(s<3)throw new F("options.slices must be greater than or equal to 3.");if(g(t.offsetAttribute)&&t.offsetAttribute===N.TOP)throw new F("GeometryOffsetAttribute.TOP is not a supported options.offsetAttribute for this geometry.");this._length=n,this._topRadius=e,this._bottomRadius=h,this._vertexFormat=_.clone(o),this._slices=s,this._offsetAttribute=t.offsetAttribute,this._workerName="createCylinderGeometry"}O.packedLength=_.packedLength+5;O.pack=function(t,n,e){if(!g(t))throw new F("value is required");if(!g(n))throw new F("array is required");return e=e??0,_.pack(t._vertexFormat,n,e),e+=_.packedLength,n[e++]=t._length,n[e++]=t._topRadius,n[e++]=t._bottomRadius,n[e++]=t._slices,n[e]=t._offsetAttribute??-1,n};var X=new _,D={vertexFormat:X,length:void 0,topRadius:void 0,bottomRadius:void 0,slices:void 0,offsetAttribute:void 0};O.unpack=function(t,n,e){if(!g(t))throw new F("array is required");n=n??0;let h=_.unpack(t,n,X);n+=_.packedLength;let o=t[n++],s=t[n++],p=t[n++],P=t[n++],w=t[n];return g(e)?(e._vertexFormat=_.clone(h,e._vertexFormat),e._length=o,e._topRadius=s,e._bottomRadius=p,e._slices=P,e._offsetAttribute=w===-1?void 0:w,e):(D.length=o,D.topRadius=s,D.bottomRadius=p,D.slices=P,D.offsetAttribute=w===-1?void 0:w,new O(D))};O.createGeometry=function(t){let n=t._length,e=t._topRadius,h=t._bottomRadius,o=t._vertexFormat,s=t._slices;if(n<=0||e<0||h<0||e===0&&h===0)return;let p=s+s,P=s+p,w=p+p,C=Q.computePositions(n,e,h,s,!0),z=o.st?new Float32Array(w*2):void 0,c=o.normal?new Float32Array(w*3):void 0,m=o.tangent?new Float32Array(w*3):void 0,u=o.bitangent?new Float32Array(w*3):void 0,i,G=o.normal||o.tangent||o.bitangent;if(G){let T=o.tangent||o.bitangent,f=0,d=0,l=0,q=Math.atan2(h-e,n),A=ot;A.z=Math.sin(q);let B=Math.cos(q),R=it,y=nt;for(i=0;i<s;i++){let V=i/s*Y.TWO_PI,tt=B*Math.cos(V),et=B*Math.sin(V);G&&(A.x=tt,A.y=et,T&&(R=b.normalize(b.cross(b.UNIT_Z,A,R),R)),o.normal&&(c[f++]=A.x,c[f++]=A.y,c[f++]=A.z,c[f++]=A.x,c[f++]=A.y,c[f++]=A.z),o.tangent&&(m[d++]=R.x,m[d++]=R.y,m[d++]=R.z,m[d++]=R.x,m[d++]=R.y,m[d++]=R.z),o.bitangent&&(y=b.normalize(b.cross(A,R,y),y),u[l++]=y.x,u[l++]=y.y,u[l++]=y.z,u[l++]=y.x,u[l++]=y.y,u[l++]=y.z))}for(i=0;i<s;i++)o.normal&&(c[f++]=0,c[f++]=0,c[f++]=-1),o.tangent&&(m[d++]=1,m[d++]=0,m[d++]=0),o.bitangent&&(u[l++]=0,u[l++]=-1,u[l++]=0);for(i=0;i<s;i++)o.normal&&(c[f++]=0,c[f++]=0,c[f++]=1),o.tangent&&(m[d++]=1,m[d++]=0,m[d++]=0),o.bitangent&&(u[l++]=0,u[l++]=1,u[l++]=0)}let $=12*s-12,r=K.createTypedArray(w,$),a=0,x=0;for(i=0;i<s-1;i++)r[a++]=x,r[a++]=x+2,r[a++]=x+3,r[a++]=x,r[a++]=x+3,r[a++]=x+1,x+=2;for(r[a++]=p-2,r[a++]=0,r[a++]=1,r[a++]=p-2,r[a++]=1,r[a++]=p-1,i=1;i<s-1;i++)r[a++]=p+i+1,r[a++]=p+i,r[a++]=p;for(i=1;i<s-1;i++)r[a++]=P,r[a++]=P+i,r[a++]=P+i+1;let U=0;if(o.st){let T=Math.max(e,h);for(i=0;i<w;i++){let f=b.fromArray(C,i*3,rt);z[U++]=(f.x+T)/(2*T),z[U++]=(f.y+T)/(2*T)}}let v=new H;o.position&&(v.position=new L({componentDatatype:S.DOUBLE,componentsPerAttribute:3,values:C})),o.normal&&(v.normal=new L({componentDatatype:S.FLOAT,componentsPerAttribute:3,values:c})),o.tangent&&(v.tangent=new L({componentDatatype:S.FLOAT,componentsPerAttribute:3,values:m})),o.bitangent&&(v.bitangent=new L({componentDatatype:S.FLOAT,componentsPerAttribute:3,values:u})),o.st&&(v.st=new L({componentDatatype:S.FLOAT,componentsPerAttribute:2,values:z})),k.x=n*.5,k.y=Math.max(h,e);let I=new j(b.ZERO,E.magnitude(k));if(g(t._offsetAttribute)){n=C.length;let T=t._offsetAttribute===N.NONE?0:1,f=new Uint8Array(n/3).fill(T);v.applyOffset=new L({componentDatatype:S.UNSIGNED_BYTE,componentsPerAttribute:1,values:f})}return new W({attributes:v,indices:r,primitiveType:J.TRIANGLES,boundingSphere:I,offsetAttribute:t._offsetAttribute})};var M;O.getUnitCylinder=function(){return g(M)||(M=O.createGeometry(new O({topRadius:1,bottomRadius:1,length:1,vertexFormat:_.POSITION_ONLY}))),M};var yt=O;export{yt as a};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.141.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-ZY2KCIWI.js";import{a as T}from"./chunk-VXAZXMUX.js";import{a as d}from"./chunk-GF67PEXE.js";import{f as E}from"./chunk-5XHUDY37.js";function a(){d.throwInstantiationError()}Object.defineProperties(a.prototype,{errorEvent:{get:d.throwInstantiationError},credit:{get:d.throwInstantiationError},tilingScheme:{get:d.throwInstantiationError},hasWaterMask:{get:d.throwInstantiationError},hasVertexNormals:{get:d.throwInstantiationError},availability:{get:d.throwInstantiationError}});var b=[];a.getRegularGridIndices=function(t,n){if(t*n>=T.FOUR_GIGABYTES)throw new d("The total number of vertices (width * height) must be less than 4,294,967,296.");let r=b[t];E(r)||(b[t]=r=[]);let e=r[n];return E(e)||(t*n<T.SIXTY_FOUR_KILOBYTES?e=r[n]=new Uint16Array((t-1)*(n-1)*6):e=r[n]=new Uint32Array((t-1)*(n-1)*6),v(t,n,e,0)),e};var N=[];a.getRegularGridIndicesAndEdgeIndices=function(t,n){if(t*n>=T.FOUR_GIGABYTES)throw new d("The total number of vertices (width * height) must be less than 4,294,967,296.");let r=N[t];E(r)||(N[t]=r=[]);let e=r[n];if(!E(e)){let i=a.getRegularGridIndices(t,n),s=w(t,n),o=s.westIndicesSouthToNorth,c=s.southIndicesEastToWest,I=s.eastIndicesNorthToSouth,u=s.northIndicesWestToEast;e=r[n]={indices:i,westIndicesSouthToNorth:o,southIndicesEastToWest:c,eastIndicesNorthToSouth:I,northIndicesWestToEast:u}}return e};var R=[];a.getRegularGridAndSkirtIndicesAndEdgeIndices=function(t,n){if(t*n>=T.FOUR_GIGABYTES)throw new d("The total number of vertices (width * height) must be less than 4,294,967,296.");let r=R[t];E(r)||(R[t]=r=[]);let e=r[n];if(!E(e)){let i=t*n,s=(t-1)*(n-1)*6,o=t*2+n*2,c=Math.max(0,o-4)*6,I=i+o,u=s+c,l=w(t,n),h=l.westIndicesSouthToNorth,x=l.southIndicesEastToWest,m=l.eastIndicesNorthToSouth,S=l.northIndicesWestToEast,g=k.createTypedArray(I,u);v(t,n,g,0),a.addSkirtIndices(h,x,m,S,i,g,s),e=r[n]={indices:g,westIndicesSouthToNorth:h,southIndicesEastToWest:x,eastIndicesNorthToSouth:m,northIndicesWestToEast:S,indexCountWithoutSkirts:s}}return e};a.getSkirtVertexCount=function(t,n,r,e){return t.length+n.length+r.length+e.length};a.getSkirtIndexCount=function(t){return(t-4)*2*3};a.getSkirtIndexCountWithFilledCorners=function(t){return((t-4)*2+4)*3};a.addSkirtIndices=function(t,n,r,e,i,s,o){let c=i;o=p(t,c,s,o),c+=t.length,o=p(n,c,s,o),c+=n.length,o=p(r,c,s,o),c+=r.length,p(e,c,s,o)};a.addSkirtIndicesWithFilledCorners=function(t,n,r,e,i,s,o){a.addSkirtIndices(t,n,r,e,i,s,o);let c=a.getSkirtVertexCount(t,n,r,e),I=a.getSkirtIndexCount(c),u=o+I,l=t[0],h=e[0],x=r[0],m=n[0],S=i,g=S+t.length-1,y=g+1,A=y+n.length-1,W=A+1,C=W+r.length-1,G=C+1,F=G+e.length-1;s[u+0]=l,s[u+1]=S,s[u+2]=A,s[u+3]=m,s[u+4]=y,s[u+5]=C,s[u+6]=x,s[u+7]=W,s[u+8]=F,s[u+9]=h,s[u+10]=G,s[u+11]=g};function w(t,n){let r=new Array(n),e=new Array(t),i=new Array(n),s=new Array(t),o;for(o=0;o<t;++o)s[o]=o,e[o]=t*n-1-o;for(o=0;o<n;++o)i[o]=(o+1)*t-1,r[o]=(n-o-1)*t;return{westIndicesSouthToNorth:r,southIndicesEastToWest:e,eastIndicesNorthToSouth:i,northIndicesWestToEast:s}}function v(t,n,r,e){let i=0;for(let s=0;s<n-1;++s){for(let o=0;o<t-1;++o){let c=i,I=c+t,u=I+1,l=c+1;r[e++]=c,r[e++]=I,r[e++]=l,r[e++]=l,r[e++]=I,r[e++]=u,++i}++i}}function p(t,n,r,e){let i=t[0],s=t.length;for(let o=1;o<s;++o){let c=t[o];r[e++]=i,r[e++]=c,r[e++]=n,r[e++]=n,r[e++]=c,r[e++]=n+1,i=c,++n}return e}a.heightmapTerrainQuality=.25;a.getEstimatedLevelZeroGeometricErrorForAHeightmap=function(t,n,r){return t.maximumRadius*2*Math.PI*a.heightmapTerrainQuality/(n*r)};a.prototype.requestTileGeometry=d.throwInstantiationError;a.prototype.getLevelMaximumGeometricError=d.throwInstantiationError;a.prototype.getTileDataAvailable=d.throwInstantiationError;a.prototype.loadTileDataAvailability=d.throwInstantiationError;var M=a;export{M as a};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.141.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}from"./chunk-TM6SYYHO.js";import{a as d}from"./chunk-VXAZXMUX.js";import{a as g,b as r}from"./chunk-GF67PEXE.js";import{e as W,f as u}from"./chunk-5XHUDY37.js";var ve=new a,_e=new a;function Fe(i,t,e,n,o){if(!u(i))throw new g("cartesian is required.");if(!u(t))throw new g("oneOverRadii is required.");if(!u(e))throw new g("oneOverRadiiSquared is required.");if(!u(n))throw new g("centerToleranceSquared is required.");let s=i.x,c=i.y,m=i.z,p=t.x,A=t.y,j=t.z,w=s*s*p*p,q=c*c*A*A,T=m*m*j*j,N=w+q+T,C=Math.sqrt(1/N),E=a.multiplyByScalar(i,C,ve);if(N<n)return isFinite(C)?a.clone(E,o):void 0;let H=e.x,J=e.y,K=e.z,I=_e;I.x=E.x*H*2,I.y=E.y*J*2,I.z=E.z*K*2;let B=(1-C)*a.magnitude(i)/(.5*a.magnitude(I)),fe=0,ee,le,v,_,F,te,ne,ie,me,pe,ye;do{B-=fe,v=1/(1+B*H),_=1/(1+B*J),F=1/(1+B*K),te=v*v,ne=_*_,ie=F*F,me=te*v,pe=ne*_,ye=ie*F,ee=w*te+q*ne+T*ie-1,le=w*me*H+q*pe*J+T*ye*K;let Ce=-2*le;fe=ee/Ce}while(Math.abs(ee)>d.EPSILON12);return u(o)?(o.x=s*v,o.y=c*_,o.z=m*F,o):new a(s*v,c*_,m*F)}var U=Fe;var h=class h{constructor(t,e,n){this.longitude=t??0,this.latitude=e??0,this.height=n??0}static fromRadians(t,e,n,o){return r.typeOf.number("longitude",t),r.typeOf.number("latitude",e),n=n??0,u(o)?(o.longitude=t,o.latitude=e,o.height=n,o):new h(t,e,n)}static fromDegrees(t,e,n,o){return r.typeOf.number("longitude",t),r.typeOf.number("latitude",e),t=d.toRadians(t),e=d.toRadians(e),h.fromRadians(t,e,n,o)}static fromCartesian(t,e,n){let o=u(e)?e.oneOverRadii:h._ellipsoidOneOverRadii,s=u(e)?e.oneOverRadiiSquared:h._ellipsoidOneOverRadiiSquared,c=u(e)?e._centerToleranceSquared:h._ellipsoidCenterToleranceSquared,m=U(t,o,s,c,Ne);if(!u(m))return;let p=a.multiplyComponents(m,s,Me);p=a.normalize(p,p);let A=a.subtract(t,m,ze),j=Math.atan2(p.y,p.x),w=Math.asin(p.z),q=d.sign(a.dot(A,t))*a.magnitude(A);return u(n)?(n.longitude=j,n.latitude=w,n.height=q,n):new h(j,w,q)}static toCartesian(t,e,n){return r.defined("cartographic",t),a.fromRadians(t.longitude,t.latitude,t.height,e,n)}static clone(t,e){if(u(t))return u(e)?(e.longitude=t.longitude,e.latitude=t.latitude,e.height=t.height,e):new h(t.longitude,t.latitude,t.height)}static equals(t,e){return t===e||u(t)&&u(e)&&t.longitude===e.longitude&&t.latitude===e.latitude&&t.height===e.height}static equalsEpsilon(t,e,n){return n=n??0,t===e||u(t)&&u(e)&&Math.abs(t.longitude-e.longitude)<=n&&Math.abs(t.latitude-e.latitude)<=n&&Math.abs(t.height-e.height)<=n}clone(t){return h.clone(this,t)}equals(t){return h.equals(this,t)}equalsEpsilon(t,e){return h.equalsEpsilon(this,t,e)}toString(){return`(${this.longitude}, ${this.latitude}, ${this.height})`}};W(h,"_ellipsoidOneOverRadii",new a(1/6378137,1/6378137,1/6356752314245179e-9)),W(h,"_ellipsoidOneOverRadiiSquared",new a(1/(6378137*6378137),1/(6378137*6378137),1/(6356752314245179e-9*6356752314245179e-9))),W(h,"_ellipsoidCenterToleranceSquared",d.EPSILON1);var z=h;z.ZERO=Object.freeze(new z(0,0,0));var Me=new a,Ne=new a,ze=new a,P=z;var f=class i{constructor(t,e){this.x=t??0,this.y=e??0}static fromElements(t,e,n){return u(n)?(n.x=t,n.y=e,n):new i(t,e)}static clone(t,e){if(u(t))return u(e)?(e.x=t.x,e.y=t.y,e):new i(t.x,t.y)}static pack(t,e,n){return r.typeOf.object("value",t),r.defined("array",e),n=n??0,e[n++]=t.x,e[n]=t.y,e}static unpack(t,e,n){return r.defined("array",t),e=e??0,u(n)||(n=new i),n.x=t[e++],n.y=t[e],n}static packArray(t,e){r.defined("array",t);let n=t.length,o=n*2;if(!u(e))e=new Array(o);else{if(!Array.isArray(e)&&e.length!==o)throw new g("If result is a typed array, it must have exactly array.length * 2 elements");e.length!==o&&(e.length=o)}for(let s=0;s<n;++s)i.pack(t[s],e,s*2);return e}static unpackArray(t,e){if(r.defined("array",t),r.typeOf.number.greaterThanOrEquals("array.length",t.length,2),t.length%2!==0)throw new g("array length must be a multiple of 2.");let n=t.length;u(e)?e.length=n/2:e=new Array(n/2);for(let o=0;o<n;o+=2){let s=o/2;e[s]=i.unpack(t,o,e[s])}return e}static maximumComponent(t){return r.typeOf.object("cartesian",t),Math.max(t.x,t.y)}static minimumComponent(t){return r.typeOf.object("cartesian",t),Math.min(t.x,t.y)}static minimumByComponent(t,e,n){return r.typeOf.object("first",t),r.typeOf.object("second",e),r.typeOf.object("result",n),n.x=Math.min(t.x,e.x),n.y=Math.min(t.y,e.y),n}static maximumByComponent(t,e,n){return r.typeOf.object("first",t),r.typeOf.object("second",e),r.typeOf.object("result",n),n.x=Math.max(t.x,e.x),n.y=Math.max(t.y,e.y),n}static clamp(t,e,n,o){r.typeOf.object("value",t),r.typeOf.object("min",e),r.typeOf.object("max",n),r.typeOf.object("result",o);let s=d.clamp(t.x,e.x,n.x),c=d.clamp(t.y,e.y,n.y);return o.x=s,o.y=c,o}static magnitudeSquared(t){return r.typeOf.object("cartesian",t),t.x*t.x+t.y*t.y}static magnitude(t){return Math.sqrt(i.magnitudeSquared(t))}static distance(t,e){return r.typeOf.object("left",t),r.typeOf.object("right",e),i.subtract(t,e,V),i.magnitude(V)}static distanceSquared(t,e){return r.typeOf.object("left",t),r.typeOf.object("right",e),i.subtract(t,e,V),i.magnitudeSquared(V)}static normalize(t,e){r.typeOf.object("cartesian",t),r.typeOf.object("result",e);let n=i.magnitude(t);if(e.x=t.x/n,e.y=t.y/n,isNaN(e.x)||isNaN(e.y))throw new g("normalized result is not a number");return e}static dot(t,e){return r.typeOf.object("left",t),r.typeOf.object("right",e),t.x*e.x+t.y*e.y}static cross(t,e){return r.typeOf.object("left",t),r.typeOf.object("right",e),t.x*e.y-t.y*e.x}static multiplyComponents(t,e,n){return r.typeOf.object("left",t),r.typeOf.object("right",e),r.typeOf.object("result",n),n.x=t.x*e.x,n.y=t.y*e.y,n}static divideComponents(t,e,n){return r.typeOf.object("left",t),r.typeOf.object("right",e),r.typeOf.object("result",n),n.x=t.x/e.x,n.y=t.y/e.y,n}static add(t,e,n){return r.typeOf.object("left",t),r.typeOf.object("right",e),r.typeOf.object("result",n),n.x=t.x+e.x,n.y=t.y+e.y,n}static subtract(t,e,n){return r.typeOf.object("left",t),r.typeOf.object("right",e),r.typeOf.object("result",n),n.x=t.x-e.x,n.y=t.y-e.y,n}static multiplyByScalar(t,e,n){return r.typeOf.object("cartesian",t),r.typeOf.number("scalar",e),r.typeOf.object("result",n),n.x=t.x*e,n.y=t.y*e,n}static divideByScalar(t,e,n){return r.typeOf.object("cartesian",t),r.typeOf.number("scalar",e),r.typeOf.object("result",n),n.x=t.x/e,n.y=t.y/e,n}static negate(t,e){return r.typeOf.object("cartesian",t),r.typeOf.object("result",e),e.x=-t.x,e.y=-t.y,e}static abs(t,e){return r.typeOf.object("cartesian",t),r.typeOf.object("result",e),e.x=Math.abs(t.x),e.y=Math.abs(t.y),e}static lerp(t,e,n,o){return r.typeOf.object("start",t),r.typeOf.object("end",e),r.typeOf.number("t",n),r.typeOf.object("result",o),i.multiplyByScalar(e,n,he),o=i.multiplyByScalar(t,1-n,o),i.add(he,o,o)}static angleBetween(t,e){return r.typeOf.object("left",t),r.typeOf.object("right",e),i.normalize(t,Oe),i.normalize(e,ge),d.acosClamped(i.dot(Oe,ge))}static mostOrthogonalAxis(t,e){r.typeOf.object("cartesian",t),r.typeOf.object("result",e);let n=i.normalize(t,Pe);return i.abs(n,n),n.x<=n.y?e=i.clone(i.UNIT_X,e):e=i.clone(i.UNIT_Y,e),e}static equals(t,e){return t===e||u(t)&&u(e)&&t.x===e.x&&t.y===e.y}static equalsArray(t,e,n){return t.x===e[n]&&t.y===e[n+1]}static equalsEpsilon(t,e,n,o){return t===e||u(t)&&u(e)&&d.equalsEpsilon(t.x,e.x,n,o)&&d.equalsEpsilon(t.y,e.y,n,o)}clone(t){return i.clone(this,t)}equals(t){return i.equals(this,t)}equalsEpsilon(t,e,n){return i.equalsEpsilon(this,t,e,n)}toString(){return`(${this.x}, ${this.y})`}};f.fromCartesian3=f.clone;f.fromCartesian4=f.clone;f.packedLength=2;f.fromArray=f.unpack;var V=new f,he=new f,Oe=new f,ge=new f,Pe=new f;f.ZERO=Object.freeze(new f(0,0));f.ONE=Object.freeze(new f(1,1));f.UNIT_X=Object.freeze(new f(1,0));f.UNIT_Y=Object.freeze(new f(0,1));var re=f;function be(i,t,e,n){t=t??0,e=e??0,n=n??0,r.typeOf.number.greaterThanOrEquals("x",t,0),r.typeOf.number.greaterThanOrEquals("y",e,0),r.typeOf.number.greaterThanOrEquals("z",n,0),i._radii=new a(t,e,n),i._radiiSquared=new a(t*t,e*e,n*n),i._radiiToTheFourth=new a(t*t*t*t,e*e*e*e,n*n*n*n),i._oneOverRadii=new a(t===0?0:1/t,e===0?0:1/e,n===0?0:1/n),i._oneOverRadiiSquared=new a(t===0?0:1/(t*t),e===0?0:1/(e*e),n===0?0:1/(n*n)),i._minimumRadius=Math.min(t,e,n),i._maximumRadius=Math.max(t,e,n),i._centerToleranceSquared=d.EPSILON1,i._radiiSquared.z!==0&&(i._squaredXOverSquaredZ=i._radiiSquared.x/i._radiiSquared.z)}var O=class i{constructor(t,e,n){this._radii=void 0,this._radiiSquared=void 0,this._radiiToTheFourth=void 0,this._oneOverRadii=void 0,this._oneOverRadiiSquared=void 0,this._minimumRadius=void 0,this._maximumRadius=void 0,this._centerToleranceSquared=void 0,this._squaredXOverSquaredZ=void 0,be(this,t,e,n)}get radii(){return this._radii}get radiiSquared(){return this._radiiSquared}get radiiToTheFourth(){return this._radiiToTheFourth}get oneOverRadii(){return this._oneOverRadii}get oneOverRadiiSquared(){return this._oneOverRadiiSquared}get minimumRadius(){return this._minimumRadius}get maximumRadius(){return this._maximumRadius}static clone(t,e){if(!u(t))return;let n=t._radii;return u(e)?(a.clone(n,e._radii),a.clone(t._radiiSquared,e._radiiSquared),a.clone(t._radiiToTheFourth,e._radiiToTheFourth),a.clone(t._oneOverRadii,e._oneOverRadii),a.clone(t._oneOverRadiiSquared,e._oneOverRadiiSquared),e._minimumRadius=t._minimumRadius,e._maximumRadius=t._maximumRadius,e._centerToleranceSquared=t._centerToleranceSquared,e):new i(n.x,n.y,n.z)}static fromCartesian3(t,e){return u(e)||(e=new i),u(t)&&be(e,t.x,t.y,t.z),e}static get default(){return i._default}static set default(t){r.typeOf.object("value",t),i._default=t,a._ellipsoidRadiiSquared=t.radiiSquared,P._ellipsoidOneOverRadii=t.oneOverRadii,P._ellipsoidOneOverRadiiSquared=t.oneOverRadiiSquared,P._ellipsoidCenterToleranceSquared=t._centerToleranceSquared}clone(t){return i.clone(this,t)}static pack(t,e,n){return r.typeOf.object("value",t),r.defined("array",e),n=n??0,a.pack(t._radii,e,n),e}static unpack(t,e,n){r.defined("array",t),e=e??0;let o=a.unpack(t,e);return i.fromCartesian3(o,n)}geodeticSurfaceNormalCartographic(t,e){r.typeOf.object("cartographic",t);let n=t.longitude,o=t.latitude,s=Math.cos(o),c=s*Math.cos(n),m=s*Math.sin(n),p=Math.sin(o);return u(e)||(e=new a),e.x=c,e.y=m,e.z=p,a.normalize(e,e)}geodeticSurfaceNormal(t,e){if(r.typeOf.object("cartesian",t),isNaN(t.x)||isNaN(t.y)||isNaN(t.z))throw new g("cartesian has a NaN component");if(!a.equalsEpsilon(t,a.ZERO,d.EPSILON14))return u(e)||(e=new a),e=a.multiplyComponents(t,this._oneOverRadiiSquared,e),a.normalize(e,e)}cartographicToCartesian(t,e){let n=ke,o=Ie;this.geodeticSurfaceNormalCartographic(t,n),a.multiplyComponents(this._radiiSquared,n,o);let s=Math.sqrt(a.dot(n,o));return a.divideByScalar(o,s,o),a.multiplyByScalar(n,t.height,n),u(e)||(e=new a),a.add(o,n,e)}cartographicArrayToCartesianArray(t,e){r.defined("cartographics",t);let n=t.length;u(e)?e.length=n:e=new Array(n);for(let o=0;o<n;o++)e[o]=this.cartographicToCartesian(t[o],e[o]);return e}cartesianToCartographic(t,e){let n=this.scaleToGeodeticSurface(t,We);if(!u(n))return;let o=this.geodeticSurfaceNormal(n,Be),s=a.subtract(t,n,Ue),c=Math.atan2(o.y,o.x),m=Math.asin(o.z),p=d.sign(a.dot(s,t))*a.magnitude(s);return u(e)?(e.longitude=c,e.latitude=m,e.height=p,e):new P(c,m,p)}cartesianArrayToCartographicArray(t,e){r.defined("cartesians",t);let n=t.length;u(e)?e.length=n:e=new Array(n);for(let o=0;o<n;++o)e[o]=this.cartesianToCartographic(t[o],e[o]);return e}scaleToGeodeticSurface(t,e){return U(t,this._oneOverRadii,this._oneOverRadiiSquared,this._centerToleranceSquared,e)}scaleToGeocentricSurface(t,e){r.typeOf.object("cartesian",t),u(e)||(e=new a);let n=t.x,o=t.y,s=t.z,c=this._oneOverRadiiSquared,m=1/Math.sqrt(n*n*c.x+o*o*c.y+s*s*c.z);return a.multiplyByScalar(t,m,e)}transformPositionToScaledSpace(t,e){return u(e)||(e=new a),a.multiplyComponents(t,this._oneOverRadii,e)}transformPositionFromScaledSpace(t,e){return u(e)||(e=new a),a.multiplyComponents(t,this._radii,e)}equals(t){return this===t||u(t)&&a.equals(this._radii,t._radii)}toString(){return this._radii.toString()}getSurfaceNormalIntersectionWithZAxis(t,e,n){if(r.typeOf.object("position",t),!d.equalsEpsilon(this._radii.x,this._radii.y,d.EPSILON15))throw new g("Ellipsoid must be an ellipsoid of revolution (radii.x == radii.y)");r.typeOf.number.greaterThan("Ellipsoid.radii.z",this._radii.z,0),e=e??0;let o=this._squaredXOverSquaredZ;if(u(n)||(n=new a),n.x=0,n.y=0,n.z=t.z*(1-o),!(Math.abs(n.z)>=this._radii.z-e))return n}getLocalCurvature(t,e){r.typeOf.object("surfacePosition",t),u(e)||(e=new re);let n=this.getSurfaceNormalIntersectionWithZAxis(t,0,Ve),o=a.distance(t,n),s=this.minimumRadius*o/this.maximumRadius**2,c=o*s**2;return re.fromElements(1/o,1/c,e)}surfaceArea(t){r.typeOf.object("rectangle",t);let e=t.west,n=t.east,o=t.south,s=t.north;for(;n<e;)n+=d.TWO_PI;let c=this._radiiSquared,m=c.x,p=c.y,A=c.z,j=m*p;return xe(o,s,function(w){let q=Math.cos(w),T=Math.sin(w);return Math.cos(w)*xe(e,n,function(N){let C=Math.cos(N),E=Math.sin(N);return Math.sqrt(j*T*T+A*(p*C*C+m*E*E)*q*q)})})}};O.WGS84=Object.freeze(new O(6378137,6378137,6356752314245179e-9));O.UNIT_SPHERE=Object.freeze(new O(1,1,1));O.MOON=Object.freeze(new O(d.LUNAR_RADIUS,d.LUNAR_RADIUS,d.LUNAR_RADIUS));O.MARS=Object.freeze(new O(3396190,3396190,3376200));O._default=O.WGS84;O.packedLength=a.packedLength;O.prototype.geocentricSurfaceNormal=a.normalize;var ke=new a,Ie=new a,Be=new a,We=new a,Ue=new a,Ve=new a,Le=[.14887433898163,.43339539412925,.67940956829902,.86506336668898,.97390652851717,0],$e=[.29552422471475,.26926671930999,.21908636251598,.14945134915058,.066671344308684,0];function xe(i,t,e){r.typeOf.number("a",i),r.typeOf.number("b",t),r.typeOf.func("func",e);let n=.5*(t+i),o=.5*(t-i),s=0;for(let c=0;c<5;c++){let m=o*Le[c];s+=$e[c]*(e(n+m)+e(n-m))}return s*=o,s}var At=O;var R,l={requestFullscreen:void 0,exitFullscreen:void 0,fullscreenEnabled:void 0,fullscreenElement:void 0,fullscreenchange:void 0,fullscreenerror:void 0},b={};Object.defineProperties(b,{element:{get:function(){if(b.supportsFullscreen())return document[l.fullscreenElement]}},changeEventName:{get:function(){if(b.supportsFullscreen())return l.fullscreenchange}},errorEventName:{get:function(){if(b.supportsFullscreen())return l.fullscreenerror}},enabled:{get:function(){if(b.supportsFullscreen())return document[l.fullscreenEnabled]}},fullscreen:{get:function(){if(b.supportsFullscreen())return b.element!==null}}});b.supportsFullscreen=function(){if(u(R))return R;R=!1;let i=document.body;if(typeof i.requestFullscreen=="function")return l.requestFullscreen="requestFullscreen",l.exitFullscreen="exitFullscreen",l.fullscreenEnabled="fullscreenEnabled",l.fullscreenElement="fullscreenElement",l.fullscreenchange="fullscreenchange",l.fullscreenerror="fullscreenerror",R=!0,R;let t=["webkit","moz","o","ms","khtml"],e;for(let n=0,o=t.length;n<o;++n){let s=t[n];e=`${s}RequestFullscreen`,typeof i[e]=="function"?(l.requestFullscreen=e,R=!0):(e=`${s}RequestFullScreen`,typeof i[e]=="function"&&(l.requestFullscreen=e,R=!0)),e=`${s}ExitFullscreen`,typeof document[e]=="function"?l.exitFullscreen=e:(e=`${s}CancelFullScreen`,typeof document[e]=="function"&&(l.exitFullscreen=e)),e=`${s}FullscreenEnabled`,document[e]!==void 0?l.fullscreenEnabled=e:(e=`${s}FullScreenEnabled`,document[e]!==void 0&&(l.fullscreenEnabled=e)),e=`${s}FullscreenElement`,document[e]!==void 0?l.fullscreenElement=e:(e=`${s}FullScreenElement`,document[e]!==void 0&&(l.fullscreenElement=e)),e=`${s}fullscreenchange`,document[`on${e}`]!==void 0&&(s==="ms"&&(e="MSFullscreenChange"),l.fullscreenchange=e),e=`${s}fullscreenerror`,document[`on${e}`]!==void 0&&(s==="ms"&&(e="MSFullscreenError"),l.fullscreenerror=e)}return R};b.requestFullscreen=function(i,t){b.supportsFullscreen()&&i[l.requestFullscreen]({vrDisplay:t})};b.exitFullscreen=function(){b.supportsFullscreen()&&document[l.exitFullscreen]()};b._names=l;var Se=b;var x;typeof navigator<"u"?x=navigator:x={};function k(i){let t=i.split(".");for(let e=0,n=t.length;e<n;++e)t[e]=parseInt(t[e],10);return t}var L,we;function ce(){if(!u(L)&&(L=!1,!Y())){let i=/ Chrome\/([\.0-9]+)/.exec(x.userAgent);i!==null&&(L=!0,we=k(i[1]))}return L}function De(){return ce()&&we}var $,qe;function Re(){if(!u($)&&($=!1,!ce()&&!Y()&&/ Safari\/[\.0-9]+/.test(x.userAgent))){let i=/ Version\/([\.0-9]+)/.exec(x.userAgent);i!==null&&($=!0,qe=k(i[1]))}return $}function Ze(){return Re()&&qe}var D,se;function Ae(){if(!u(D)){D=!1;let i=/ AppleWebKit\/([\.0-9]+)(\+?)/.exec(x.userAgent);i!==null&&(D=!0,se=k(i[1]),se.isNightly=!!i[2])}return D}function Ge(){return Ae()&&se}var Z,je;function Y(){if(!u(Z)){Z=!1;let i=/ Edg\/([\.0-9]+)/.exec(x.userAgent);i!==null&&(Z=!0,je=k(i[1]))}return Z}function Xe(){return Y()&&je}var G,de;function Q(){if(!u(G)){G=!1;let i=/Firefox\/([\.0-9]+)/.exec(x.userAgent);i!==null&&(G=!0,de=k(i[1]))}return G}var oe;function Ye(){return u(oe)||(oe=/Windows/i.test(x.appVersion)),oe}var ae;function Qe(){return u(ae)||(ae=navigator.platform==="iPhone"||navigator.platform==="iPod"||navigator.platform==="iPad"),ae}function He(){return Q()&&de}var ue;function Je(){return u(ue)||(ue=!Q()&&typeof PointerEvent<"u"&&(!u(x.pointerEnabled)||x.pointerEnabled)),ue}var Ee,X;function Te(){if(!u(X)){let i=document.createElement("canvas");i.setAttribute("style","image-rendering: -moz-crisp-edges;image-rendering: pixelated;");let t=i.style.imageRendering;X=u(t)&&t!=="",X&&(Ee=t)}return X}function Ke(){return Te()?Ee:void 0}function y(){if(!y.initialized)throw new g("You must call FeatureDetection.supportsWebP.initialize and wait for the promise to resolve before calling FeatureDetection.supportsWebP");return y._result}y._promise=void 0;y._result=void 0;y.initialize=function(){return u(y._promise)||(y._promise=new Promise(i=>{let t=new Image;t.onload=function(){y._result=t.width>0&&t.height>0,i(y._result)},t.onerror=function(){y._result=!1,i(y._result)},t.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA"})),y._promise};Object.defineProperties(y,{initialized:{get:function(){return u(y._result)}}});var M=[];typeof ArrayBuffer<"u"&&(M.push(Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array),typeof Uint8ClampedArray<"u"&&M.push(Uint8ClampedArray),typeof Uint8ClampedArray<"u"&&M.push(Uint8ClampedArray),typeof BigInt64Array<"u"&&M.push(BigInt64Array),typeof BigUint64Array<"u"&&M.push(BigUint64Array));var S={isChrome:ce,chromeVersion:De,isSafari:Re,safariVersion:Ze,isWebkit:Ae,webkitVersion:Ge,isEdge:Y,edgeVersion:Xe,isFirefox:Q,firefoxVersion:He,isWindows:Ye,isIPadOrIOS:Qe,hardwareConcurrency:x.hardwareConcurrency??3,supportsPointerEvents:Je,supportsImageRenderingPixelated:Te,supportsWebP:y,imageRenderingValue:Ke,typedArrayTypes:M};S.supportsBasis=function(i){return S.supportsWebAssembly()&&i.context.supportsBasis};S.supportsFullscreen=function(){return Se.supportsFullscreen()};S.supportsTypedArrays=function(){return typeof ArrayBuffer<"u"};S.supportsBigInt64Array=function(){return typeof BigInt64Array<"u"};S.supportsBigUint64Array=function(){return typeof BigUint64Array<"u"};S.supportsBigInt=function(){return typeof BigInt<"u"};S.supportsWebWorkers=function(){return typeof Worker<"u"};S.supportsWebAssembly=function(){return typeof WebAssembly<"u"};S.supportsWebgl2=function(i){return r.defined("scene",i),i.context.webgl2};S.supportsEsmWebWorkers=function(){return!Q()||parseInt(de)>=114};var Mt=S;export{P as a,re as b,At as c,Mt as d};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.141.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 c,c as x}from"./chunk-EHC3BDVP.js";import{a as h}from"./chunk-TM6SYYHO.js";import{a as u}from"./chunk-VXAZXMUX.js";import{a as d}from"./chunk-GF67PEXE.js";import{f as n}from"./chunk-5XHUDY37.js";var s=class e{constructor(i){this._ellipsoid=i??x.WGS84,this._semimajorAxis=this._ellipsoid.maximumRadius,this._oneOverSemimajorAxis=1/this._semimajorAxis}get ellipsoid(){return this._ellipsoid}static mercatorAngleToGeodeticLatitude(i){return u.PI_OVER_TWO-2*Math.atan(Math.exp(-i))}static geodeticLatitudeToMercatorAngle(i){i>e.MaximumLatitude?i=e.MaximumLatitude:i<-e.MaximumLatitude&&(i=-e.MaximumLatitude);let t=Math.sin(i);return .5*Math.log((1+t)/(1-t))}project(i,t){let o=this._semimajorAxis,r=i.longitude*o,m=e.geodeticLatitudeToMercatorAngle(i.latitude)*o,a=i.height;return n(t)?(t.x=r,t.y=m,t.z=a,t):new h(r,m,a)}unproject(i,t){if(!n(i))throw new d("cartesian is required");let o=this._oneOverSemimajorAxis,r=i.x*o,m=e.mercatorAngleToGeodeticLatitude(i.y*o),a=i.z;return n(t)?(t.longitude=r,t.latitude=m,t.height=a,t):new c(r,m,a)}};s.MaximumLatitude=s.mercatorAngleToGeodeticLatitude(Math.PI);var L=s;export{L as a};
|