iflow-engine-base 3.9.203 → 3.9.205
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 +30 -31
- package/dist/bim-engine-sdk.umd.js +534 -534
- package/dist/chunks/{engine-2d-D5sGoz-x.js → engine-2d-DAiE1uAy.js} +35 -36
- package/dist/chunks/{engine-3d-5kLY2eW_.js → engine-3d-CdsLfd0i.js} +3 -3
- package/dist/chunks/{engine-720-qJI7_vie.js → engine-720-K9uF9wMA.js} +2 -2
- package/dist/chunks/{engine-gaussian-Br2SKMfT.js → engine-gaussian-x3jsCp15.js} +2 -2
- package/dist/chunks/{engine-gis-pfHvTy4d.js → engine-gis-BStgPU0Q.js} +6131 -6132
- package/dist/chunks/{sdk-assets-F7qFhuao.js → sdk-assets-1SXx8Tbf.js} +1 -1
- package/dist/chunks/{sdk-runtime-Cp8Q8aEa.js → sdk-runtime-cY1Wn7o-.js} +909 -910
- package/dist2d/dwg-preview.es.js +2 -2
- package/dist2d/dwg-preview.umd.js +2 -2
- package/distGaussian/gaussian.es.js +1 -1
- package/distGaussian/gaussian.umd.js +1 -1
- package/package.json +1 -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 -18008
- 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-35LM35A5.js +0 -26
- package/dist/Cesium/Workers/chunk-3R3BCVRR.js +0 -26
- package/dist/Cesium/Workers/chunk-44VKZ44M.js +0 -26
- package/dist/Cesium/Workers/chunk-4LOVZYQ2.js +0 -26
- package/dist/Cesium/Workers/chunk-55KTRCCC.js +0 -29
- package/dist/Cesium/Workers/chunk-5AJUPXGZ.js +0 -26
- package/dist/Cesium/Workers/chunk-5EEMCPIO.js +0 -26
- package/dist/Cesium/Workers/chunk-5HZ2G332.js +0 -26
- package/dist/Cesium/Workers/chunk-6K4BWAPV.js +0 -26
- package/dist/Cesium/Workers/chunk-6LZUEMFX.js +0 -26
- package/dist/Cesium/Workers/chunk-6NPJZ3PS.js +0 -26
- package/dist/Cesium/Workers/chunk-A3K5FM7E.js +0 -26
- package/dist/Cesium/Workers/chunk-AP7AMWJA.js +0 -26
- package/dist/Cesium/Workers/chunk-AZCCS55A.js +0 -63
- package/dist/Cesium/Workers/chunk-BXPFAIYZ.js +0 -26
- package/dist/Cesium/Workers/chunk-C4NHPSO2.js +0 -26
- package/dist/Cesium/Workers/chunk-CJGWLCOV.js +0 -26
- package/dist/Cesium/Workers/chunk-E4MSZ45D.js +0 -26
- package/dist/Cesium/Workers/chunk-FCRW2AGG.js +0 -28
- package/dist/Cesium/Workers/chunk-FMWRN5G2.js +0 -26
- package/dist/Cesium/Workers/chunk-FXWI4VL7.js +0 -26
- package/dist/Cesium/Workers/chunk-FYQCPFNB.js +0 -26
- package/dist/Cesium/Workers/chunk-G46AR6KP.js +0 -26
- package/dist/Cesium/Workers/chunk-GS4ZGDWD.js +0 -26
- package/dist/Cesium/Workers/chunk-GZABERXA.js +0 -26
- package/dist/Cesium/Workers/chunk-H6AHPUMX.js +0 -26
- package/dist/Cesium/Workers/chunk-IPQQ2USK.js +0 -26
- package/dist/Cesium/Workers/chunk-ITSDUOWL.js +0 -26
- package/dist/Cesium/Workers/chunk-J6WO2HA5.js +0 -26
- package/dist/Cesium/Workers/chunk-K3YIAZU7.js +0 -26
- package/dist/Cesium/Workers/chunk-K72DPWBT.js +0 -26
- package/dist/Cesium/Workers/chunk-LKQXJXNV.js +0 -26
- package/dist/Cesium/Workers/chunk-LTHJTGXC.js +0 -26
- package/dist/Cesium/Workers/chunk-LUECBOIT.js +0 -26
- package/dist/Cesium/Workers/chunk-MUI5QV7K.js +0 -26
- package/dist/Cesium/Workers/chunk-OS2CBN2U.js +0 -26
- package/dist/Cesium/Workers/chunk-R5DFAOJG.js +0 -26
- package/dist/Cesium/Workers/chunk-R7QNYLFY.js +0 -26
- package/dist/Cesium/Workers/chunk-RH3WVPDR.js +0 -26
- package/dist/Cesium/Workers/chunk-RI3TXBVT.js +0 -26
- package/dist/Cesium/Workers/chunk-RU2T2U4O.js +0 -26
- package/dist/Cesium/Workers/chunk-SSYRCXAV.js +0 -26
- package/dist/Cesium/Workers/chunk-U4VWQPTS.js +0 -28
- package/dist/Cesium/Workers/chunk-UHTXIDKA.js +0 -26
- package/dist/Cesium/Workers/chunk-V74K6IQF.js +0 -29
- package/dist/Cesium/Workers/chunk-VELRZYUL.js +0 -26
- package/dist/Cesium/Workers/chunk-VXS2FTO4.js +0 -27
- package/dist/Cesium/Workers/chunk-VZ4ER5HI.js +0 -26
- package/dist/Cesium/Workers/chunk-WC7WZIXH.js +0 -26
- package/dist/Cesium/Workers/chunk-WM6AKY6B.js +0 -27
- package/dist/Cesium/Workers/chunk-WTIPXHS3.js +0 -26
- package/dist/Cesium/Workers/chunk-WZYIA4NB.js +0 -26
- package/dist/Cesium/Workers/chunk-XEBZTQHW.js +0 -26
- package/dist/Cesium/Workers/chunk-XFWEZBPW.js +0 -26
- package/dist/Cesium/Workers/chunk-YLWWFMFQ.js +0 -26
- package/dist/Cesium/Workers/chunk-YNBY2HFD.js +0 -26
- package/dist/Cesium/Workers/chunk-ZQTDDQLY.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 -18008
- package/dist/Cesium/index.js +0 -18008
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.142.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-ZQTDDQLY.js";import{a as p}from"./chunk-U4VWQPTS.js";import{a}from"./chunk-GZABERXA.js";import{a as I,b as g}from"./chunk-WM6AKY6B.js";import{f as l}from"./chunk-6K4BWAPV.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.142.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 _}from"./chunk-AP7AMWJA.js";import{a as te}from"./chunk-C4NHPSO2.js";import{h as Z,i as fe}from"./chunk-AZCCS55A.js";import{a as ie,b as j}from"./chunk-V74K6IQF.js";import{a as se,b as ee}from"./chunk-ZQTDDQLY.js";import{a as e,b as O}from"./chunk-U4VWQPTS.js";import{a as Q}from"./chunk-GZABERXA.js";import{a as le}from"./chunk-WM6AKY6B.js";import{f as $}from"./chunk-6K4BWAPV.js";var me={ROUNDED:0,MITERED:1,BEVELED:2};Object.freeze(me);var G=me;var ue={};function P(r,n){if(!$(r))throw new le("identifier is required.");$(ue[r])||(ue[r]=!0,console.warn(n??r))}P.geometryOutlines="Entity geometry outlines are unsupported on terrain. Outlines will be disabled. To enable outlines, disable geometry terrain clamping by explicitly setting height to 0.";P.geometryZIndex="Entity geometry with zIndex are unsupported when height or extrudedHeight are defined. zIndex will be ignored";P.geometryHeightReference="Entity corridor, ellipse, polygon or rectangle with heightReference must also have a defined height. heightReference will be ignored";P.geometryExtrudedHeightReference="Entity corridor, ellipse, polygon or rectangle with extrudedHeightReference must also have a defined extrudedHeight. extrudedHeightReference will be ignored";var he=P;var w=[new e,new e],Se=new e,Te=new e,Be=new e,Ce=new e,ze=new e,Ae=new e,be=new e,Oe=new e,ve=new e,I=new e,W=new e,R={},re=new se;function De(r,n){let a=new Array(r.length);for(let o=0;o<r.length;o++){let t=r[o];re=n.cartesianToCartographic(t,re),a[o]=re.height,r[o]=n.scaleToGeodeticSurface(t,t)}return a}function ne(r,n,a,o){let t=r[0],c=r[1],f=e.angleBetween(t,c),l=Math.ceil(f/o),m=new Array(l),s;if(n===a){for(s=0;s<l;s++)m[s]=n;return m.push(a),m}let d=(a-n)/l;for(s=1;s<l;s++){let x=n+s*d;m[s]=x}return m[0]=n,m.push(a),m}var X=new e,Y=new e;function je(r,n,a,o){let t=new te(a,o),c=t.projectPointOntoPlane(e.add(a,r,X),X),f=t.projectPointOntoPlane(e.add(a,n,Y),Y),l=ee.angleBetween(c,f);return f.x*c.y-f.y*c.x>=0?-l:l}var He=new e(-1,0,0),H=new j,Me=new j,oe=new O,Ne=O.IDENTITY.clone(),Ve=new e,Fe=new ie,de=new e;function v(r,n,a,o,t,c,f,l){let m=Ve,s=Fe;H=fe.eastNorthUpToFixedFrame(r,t,H),m=j.multiplyByPointAsVector(H,He,m),m=e.normalize(m,m);let S=je(m,n,r,t);oe=O.fromRotationZ(S,oe),de.z=c,H=j.multiplyTransformation(H,j.fromRotationTranslation(oe,de,Me),H);let d=Ne;d[0]=f;for(let x=0;x<l;x++)for(let i=0;i<a.length;i+=3)s=e.fromArray(a,i,s),s=O.multiplyByVector(d,s,s),s=j.multiplyByPoint(H,s,s),o.push(s.x,s.y,s.z);return o}var Ge=new e;function ce(r,n,a,o,t,c,f){for(let l=0;l<r.length;l+=3){let m=e.fromArray(r,l,Ge);o=v(m,n,a,o,t,c[l/3],f,1)}return o}function Ie(r,n){let a=r.length,o=new Array(a*6),t=0,c=n.x+n.width/2,f=n.y+n.height/2,l=r[0];o[t++]=l.x-c,o[t++]=0,o[t++]=l.y-f;for(let m=1;m<a;m++){l=r[m];let s=l.x-c,S=l.y-f;o[t++]=s,o[t++]=0,o[t++]=S,o[t++]=s,o[t++]=0,o[t++]=S}return l=r[0],o[t++]=l.x-c,o[t++]=0,o[t++]=l.y-f,o}function ge(r,n){let a=r.length,o=new Array(a*3),t=0,c=n.x+n.width/2,f=n.y+n.height/2;for(let l=0;l<a;l++)o[t++]=r[l].x-c,o[t++]=0,o[t++]=r[l].y-f;return o}var ye=new Z,we=new e,pe=new O;function xe(r,n,a,o,t,c,f,l,m,s){let S=e.angleBetween(e.subtract(n,r,I),e.subtract(a,r,W)),d=o===G.BEVELED?0:Math.ceil(S/Q.toRadians(5)),x;t?x=O.fromQuaternion(Z.fromAxisAngle(e.negate(r,I),S/(d+1),ye),pe):x=O.fromQuaternion(Z.fromAxisAngle(r,S/(d+1),ye),pe);let i,g;if(n=e.clone(n,we),d>0){let D=s?2:1;for(let y=0;y<d;y++)n=O.multiplyByVector(x,n,n),i=e.subtract(n,r,I),i=e.normalize(i,i),t||(i=e.negate(i,i)),g=c.scaleToGeodeticSurface(n,W),f=v(g,i,l,f,c,m,1,D)}else i=e.subtract(n,r,I),i=e.normalize(i,i),t||(i=e.negate(i,i)),g=c.scaleToGeodeticSurface(n,W),f=v(g,i,l,f,c,m,1,1),a=e.clone(a,we),i=e.subtract(a,r,I),i=e.normalize(i,i),t||(i=e.negate(i,i)),g=c.scaleToGeodeticSurface(a,W),f=v(g,i,l,f,c,m,1,1);return f}R.removeDuplicatesFromShape=function(r){let n=r.length,a=[];for(let o=n-1,t=0;t<n;o=t++){let c=r[o],f=r[t];ee.equals(c,f)||a.push(f)}return a};R.angleIsGreaterThanPi=function(r,n,a,o){let t=new te(a,o),c=t.projectPointOntoPlane(e.add(a,r,X),X),f=t.projectPointOntoPlane(e.add(a,n,Y),Y);return f.x*c.y-f.y*c.x>=0};var Le=new e,qe=new e;R.computePositions=function(r,n,a,o,t){let c=o._ellipsoid,f=De(r,c),l=o._granularity,m=o._cornerType,s=t?Ie(n,a):ge(n,a),S=t?ge(n,a):void 0,d=a.height/2,x=a.width/2,i=r.length,g=[],D=t?[]:void 0,y=Se,b=Te,h=Be,E=Ce,B=ze,C=Ae,z=be,u=Oe,T=ve,p=r[0],M=r[1];E=c.geodeticSurfaceNormal(p,E),y=e.subtract(M,p,y),y=e.normalize(y,y),u=e.cross(E,y,u),u=e.normalize(u,u);let N=f[0],A=f[1];t&&(D=v(p,u,S,D,c,N+d,1,1)),T=e.clone(p,T),p=M,b=e.negate(y,b);let V,F;for(let U=1;U<i-1;U++){let ae=t?2:1;if(M=r[U+1],p.equals(M)){he("Positions are too close and are considered equivalent with rounding error.");continue}y=e.subtract(M,p,y),y=e.normalize(y,y),E=c.geodeticSurfaceNormal(p,E);let L=e.multiplyByScalar(E,e.dot(y,E),Le);e.subtract(y,L,L),e.normalize(L,L);let q=e.multiplyByScalar(E,e.dot(b,E),qe);if(e.subtract(b,q,q),e.normalize(q,q),!Q.equalsEpsilon(Math.abs(e.dot(L,q)),1,Q.EPSILON7)){h=e.add(y,b,h),h=e.normalize(h,h),h=e.cross(h,E,h),h=e.cross(E,h,h),h=e.normalize(h,h);let k=1/Math.max(.25,e.magnitude(e.cross(h,b,I))),K=R.angleIsGreaterThanPi(y,b,p,c);K?(B=e.add(p,e.multiplyByScalar(h,k*x,h),B),C=e.add(B,e.multiplyByScalar(u,x,C),C),w[0]=e.clone(T,w[0]),w[1]=e.clone(C,w[1]),V=ne(w,N+d,A+d,l),F=_.generateArc({positions:w,granularity:l,ellipsoid:c}),g=ce(F,u,s,g,c,V,1),u=e.cross(E,y,u),u=e.normalize(u,u),z=e.add(B,e.multiplyByScalar(u,x,z),z),m===G.ROUNDED||m===G.BEVELED?xe(B,C,z,m,K,c,g,s,A+d,t):(h=e.negate(h,h),g=v(p,h,s,g,c,A+d,k,ae)),T=e.clone(z,T)):(B=e.add(p,e.multiplyByScalar(h,k*x,h),B),C=e.add(B,e.multiplyByScalar(u,-x,C),C),w[0]=e.clone(T,w[0]),w[1]=e.clone(C,w[1]),V=ne(w,N+d,A+d,l),F=_.generateArc({positions:w,granularity:l,ellipsoid:c}),g=ce(F,u,s,g,c,V,1),u=e.cross(E,y,u),u=e.normalize(u,u),z=e.add(B,e.multiplyByScalar(u,-x,z),z),m===G.ROUNDED||m===G.BEVELED?xe(B,C,z,m,K,c,g,s,A+d,t):g=v(p,h,s,g,c,A+d,k,ae),T=e.clone(z,T)),b=e.negate(y,b)}else g=v(T,u,s,g,c,N+d,1,1),T=p;N=A,A=f[U+1],p=M}w[0]=e.clone(T,w[0]),w[1]=e.clone(p,w[1]),V=ne(w,N+d,A+d,l),F=_.generateArc({positions:w,granularity:l,ellipsoid:c}),g=ce(F,u,s,g,c,V,1),t&&(D=v(p,u,S,D,c,A+d,1,1)),i=g.length;let Ee=t?i+D.length:i,J=new Float64Array(Ee);return J.set(g),t&&J.set(D,i),J};var ct=R;export{G as a,he as b,ct as c};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.142.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 y}from"./chunk-FYQCPFNB.js";import{c as W}from"./chunk-XEBZTQHW.js";import{j as k}from"./chunk-AZCCS55A.js";import{b as h}from"./chunk-V74K6IQF.js";import{a as A}from"./chunk-5HZ2G332.js";import{a as F,b as T,c as w}from"./chunk-ZQTDDQLY.js";import{a as s}from"./chunk-U4VWQPTS.js";import{a as _}from"./chunk-GZABERXA.js";import{a as I,b as r}from"./chunk-WM6AKY6B.js";import{f as l}from"./chunk-6K4BWAPV.js";function b(e,t){r.typeOf.object("ellipsoid",e),this._ellipsoid=e,this._cameraPosition=new s,this._cameraPositionInScaledSpace=new s,this._distanceToLimbInScaledSpaceSquared=0,l(t)&&(this.cameraPosition=t)}Object.defineProperties(b.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},cameraPosition:{get:function(){return this._cameraPosition},set:function(e){let o=this._ellipsoid.transformPositionToScaledSpace(e,this._cameraPositionInScaledSpace),n=s.magnitudeSquared(o)-1;s.clone(e,this._cameraPosition),this._cameraPositionInScaledSpace=o,this._distanceToLimbInScaledSpaceSquared=n}}});var L=new s;b.prototype.isPointVisible=function(e){let o=this._ellipsoid.transformPositionToScaledSpace(e,L);return D(o,this._cameraPositionInScaledSpace,this._distanceToLimbInScaledSpaceSquared)};b.prototype.isScaledSpacePointVisible=function(e){return D(e,this._cameraPositionInScaledSpace,this._distanceToLimbInScaledSpaceSquared)};var et=new s;b.prototype.isScaledSpacePointVisiblePossiblyUnderEllipsoid=function(e,t){let o=this._ellipsoid,n,i;return l(t)&&t<0&&o.minimumRadius>-t?(i=et,i.x=this._cameraPosition.x/(o.radii.x+t),i.y=this._cameraPosition.y/(o.radii.y+t),i.z=this._cameraPosition.z/(o.radii.z+t),n=i.x*i.x+i.y*i.y+i.z*i.z-1):(i=this._cameraPositionInScaledSpace,n=this._distanceToLimbInScaledSpaceSquared),D(e,i,n)};b.prototype.computeHorizonCullingPoint=function(e,t,o){return Q(this._ellipsoid,e,t,o)};var U=w.clone(w.UNIT_SPHERE);b.prototype.computeHorizonCullingPointPossiblyUnderEllipsoid=function(e,t,o,n){let i=v(this._ellipsoid,o,U);return Q(i,e,t,n)};b.prototype.computeHorizonCullingPointFromVertices=function(e,t,o,n,i){return Z(this._ellipsoid,e,t,o,n,i)};b.prototype.computeHorizonCullingPointFromVerticesPossiblyUnderEllipsoid=function(e,t,o,n,i,c){let a=v(this._ellipsoid,i,U);return Z(a,e,t,o,n,c)};var ot=[];b.prototype.computeHorizonCullingPointFromRectangle=function(e,t,o){r.typeOf.object("rectangle",e);let n=k.subsample(e,t,0,ot),i=W.fromPoints(n);if(!(s.magnitude(i.center)<.1*t.minimumRadius))return this.computeHorizonCullingPoint(i.center,n,o)};var it=new s;function v(e,t,o){if(l(t)&&t<0&&e.minimumRadius>-t){let n=s.fromElements(e.radii.x+t,e.radii.y+t,e.radii.z+t,it);e=w.fromCartesian3(n,o)}return e}function Q(e,t,o,n){r.typeOf.object("directionToPoint",t),r.defined("positions",o),l(n)||(n=new s);let i=K(e,t),c=0;for(let a=0,m=o.length;a<m;++a){let d=o[a],u=B(e,d,i);if(u<0)return;c=Math.max(c,u)}return J(i,c,n)}var q=new s;function Z(e,t,o,n,i,c){r.typeOf.object("directionToPoint",t),r.defined("vertices",o),r.typeOf.number("stride",n),l(c)||(c=new s),n=n??3,i=i??s.ZERO;let a=K(e,t),m=0;for(let d=0,u=o.length;d<u;d+=n){q.x=o[d]+i.x,q.y=o[d+1]+i.y,q.z=o[d+2]+i.z;let f=B(e,q,a);if(f<0)return;m=Math.max(m,f)}return J(a,m,c)}function D(e,t,o){let n=t,i=o,c=s.subtract(e,n,L),a=-s.dot(c,n);return!(i<0?a>0:a>i&&a*a/s.magnitudeSquared(c)>i)}var nt=new s,at=new s;function B(e,t,o){let n=e.transformPositionToScaledSpace(t,nt),i=s.magnitudeSquared(n),c=Math.sqrt(i),a=s.divideByScalar(n,c,at);i=Math.max(1,i),c=Math.max(1,c);let m=s.dot(a,o),d=s.magnitude(s.cross(a,o,a)),u=1/c,f=Math.sqrt(i-1)*u;return 1/(m*u-d*f)}function J(e,t,o){if(!(t<=0||t===1/0||t!==t))return s.multiplyByScalar(e,t,o)}var R=new s;function K(e,t){return s.equals(t,s.ZERO)?t:(e.transformPositionToScaledSpace(t,R),s.normalize(R,R))}var Nt=b;var j={};j.getHeight=function(e,t,o){if(!Number.isFinite(t))throw new I("scale must be a finite number.");if(!Number.isFinite(o))throw new I("relativeHeight must be a finite number.");return(e-o)*t+o};var st=new F;j.getPosition=function(e,t,o,n,i){let c=t.cartesianToCartographic(e,st);if(!l(c))return s.clone(e,i);let a=j.getHeight(c.height,o,n);return s.fromRadians(c.longitude,c.latitude,a,t,i)};var X=j;var Y={NONE:0,BITS12:1};Object.freeze(Y);var g=Y;var C=new s,ct=new s,N=new T,rt=new h,mt=new h,dt=Math.pow(2,12);function p(e,t,o,n,i,c,a,m,d,u){let f=g.NONE,O,S;if(l(t)&&l(o)&&l(n)&&l(i)){let z=t.minimum,G=t.maximum,x=s.subtract(G,z,ct),tt=n-o;Math.max(s.maximumComponent(x),tt)<dt-1?f=g.BITS12:f=g.NONE;let P=h.fromScale(x,rt);P=h.setTranslation(P,z,P);let E=h.fromScale(s.fromElements(1/x.x,1/x.y,1/x.z,C),mt);E=h.multiplyByTranslation(E,s.negate(z,C),E),S=h.clone(i,new h);let H=h.getTranslation(i,C);H=s.subtract(H,e,C),S=h.setTranslation(S,H,S),S=h.multiply(S,P,S),O=h.inverseTransformation(i,new h),O=h.multiply(E,O,O),i=h.multiply(i,P,new h)}this.quantization=f,this.minimumHeight=o,this.maximumHeight=n,this.center=s.clone(e),this.toScaledENU=O,this.fromScaledENU=i,this.matrix=S,this.hasVertexNormals=c??!1,this.hasWebMercatorT=a??!1,this.hasGeodeticSurfaceNormals=m??!1,this.exaggeration=d??1,this.exaggerationRelativeHeight=u??0,this.stride=0,this._offsetGeodeticSurfaceNormal=0,this._offsetVertexNormal=0,this._calculateStrideAndOffsets()}p.prototype.encode=function(e,t,o,n,i,c,a,m){r.typeOf.object("vertexBuffer",e),r.typeOf.number("bufferIndex",t),r.typeOf.object("position",o),r.typeOf.object("uv",n),r.typeOf.number("height",i);let d=n.x,u=n.y;if(this.quantization===g.BITS12){o=h.multiplyByPoint(this.toScaledENU,o,C),o.x=_.clamp(o.x,0,1),o.y=_.clamp(o.y,0,1),o.z=_.clamp(o.z,0,1);let f=this.maximumHeight-this.minimumHeight,O=_.clamp((i-this.minimumHeight)/f,0,1);T.fromElements(o.x,o.y,N);let S=y.compressTextureCoordinates(N);T.fromElements(o.z,O,N);let z=y.compressTextureCoordinates(N);T.fromElements(d,u,N);let G=y.compressTextureCoordinates(N);if(e[t++]=S,e[t++]=z,e[t++]=G,this.hasWebMercatorT){T.fromElements(a,0,N);let x=y.compressTextureCoordinates(N);e[t++]=x}}else e[t++]=o.x-this.center.x,e[t++]=o.y-this.center.y,e[t++]=o.z-this.center.z,e[t++]=i,e[t++]=d,e[t++]=u,this.hasWebMercatorT&&(e[t++]=a);return this.hasVertexNormals&&(e[t++]=y.octPackFloat(c)),this.hasGeodeticSurfaceNormals&&(e[t++]=m.x,e[t++]=m.y,e[t++]=m.z),t};var ht=new s,$=new s;p.prototype.addGeodeticSurfaceNormals=function(e,t,o){if(r.typeOf.object("oldBuffer",e),r.typeOf.object("newBuffer",t),r.typeOf.object("ellipsoid",o),this.hasGeodeticSurfaceNormals)return;let n=this.stride,i=e.length/n;this.hasGeodeticSurfaceNormals=!0,this._calculateStrideAndOffsets();let c=this.stride;for(let a=0;a<i;a++){for(let f=0;f<n;f++){let O=a*n+f,S=a*c+f;t[S]=e[O]}let m=this.decodePosition(t,a,ht),d=o.geodeticSurfaceNormal(m,$),u=a*c+this._offsetGeodeticSurfaceNormal;t[u]=d.x,t[u+1]=d.y,t[u+2]=d.z}};p.prototype.removeGeodeticSurfaceNormals=function(e,t){if(r.typeOf.object("oldBuffer",e),r.typeOf.object("newBuffer",t),!this.hasGeodeticSurfaceNormals)return;let o=this.stride,n=e.length/o;this.hasGeodeticSurfaceNormals=!1,this._calculateStrideAndOffsets();let i=this.stride;for(let c=0;c<n;c++)for(let a=0;a<i;a++){let m=c*o+a,d=c*i+a;t[d]=e[m]}};p.prototype.decodePosition=function(e,t,o){if(r.typeOf.object("buffer",e),r.typeOf.number("index",t),l(o)||(o=new s),t*=this.stride,this.quantization===g.BITS12){let n=y.decompressTextureCoordinates(e[t],N);o.x=n.x,o.y=n.y;let i=y.decompressTextureCoordinates(e[t+1],N);return o.z=i.x,h.multiplyByPoint(this.fromScaledENU,o,o)}return o.x=e[t],o.y=e[t+1],o.z=e[t+2],s.add(o,this.center,o)};p.prototype.getExaggeratedPosition=function(e,t,o){o=this.decodePosition(e,t,o);let n=this.exaggeration,i=this.exaggerationRelativeHeight;if(n!==1&&this.hasGeodeticSurfaceNormals){let a=this.decodeGeodeticSurfaceNormal(e,t,$),m=this.decodeHeight(e,t),d=X.getHeight(m,n,i)-m;o.x+=a.x*d,o.y+=a.y*d,o.z+=a.z*d}return o};p.prototype.decodeTextureCoordinates=function(e,t,o){return r.typeOf.object("buffer",e),r.typeOf.number("index",t),l(o)||(o=new T),t*=this.stride,this.quantization===g.BITS12?y.decompressTextureCoordinates(e[t+2],o):T.fromElements(e[t+4],e[t+5],o)};p.prototype.decodeHeight=function(e,t){return r.typeOf.object("buffer",e),r.typeOf.number("index",t),t*=this.stride,this.quantization===g.BITS12?y.decompressTextureCoordinates(e[t+1],N).y*(this.maximumHeight-this.minimumHeight)+this.minimumHeight:e[t+3]};p.prototype.decodeWebMercatorT=function(e,t){return r.typeOf.object("buffer",e),r.typeOf.number("index",t),t*=this.stride,this.quantization===g.BITS12?y.decompressTextureCoordinates(e[t+3],N).x:e[t+6]};p.prototype.getOctEncodedNormal=function(e,t,o){r.typeOf.object("buffer",e),r.typeOf.number("index",t),t=t*this.stride+this._offsetVertexNormal;let n=e[t]/256,i=Math.floor(n),c=(n-i)*256;return T.fromElements(i,c,o)};p.prototype.decodeNormal=function(e,t,o){r.typeOf.object("buffer",e),r.typeOf.number("index",t),r.typeOf.object("result",o);let n=t=t*this.stride+this._offsetVertexNormal;return y.octDecodeFloat(e[n],o)};p.prototype.decodeGeodeticSurfaceNormal=function(e,t,o){return r.typeOf.object("buffer",e),r.typeOf.number("index",t),r.typeOf.object("result",o),t=t*this.stride+this._offsetGeodeticSurfaceNormal,o.x=e[t],o.y=e[t+1],o.z=e[t+2],o};p.prototype._calculateStrideAndOffsets=function(){let e=0;this.quantization===g.BITS12?e+=3:e+=6,this.hasWebMercatorT&&(e+=1),this.hasVertexNormals&&(this._offsetVertexNormal=e,e+=1),this.hasGeodeticSurfaceNormals&&(this._offsetGeodeticSurfaceNormal=e,e+=3),this.stride=e};var M={position3DAndHeight:0,textureCoordAndEncodedNormals:1,geodeticSurfaceNormal:2},V={compressed0:0,compressed1:1,geodeticSurfaceNormal:2};p.prototype.getAttributes=function(e){r.typeOf.object("buffer",e);let t=A.FLOAT,o=A.getSizeInBytes(t),n=this.stride*o,i=0,c=[];function a(m,d){c.push({index:m,vertexBuffer:e,componentDatatype:t,componentsPerAttribute:d,offsetInBytes:i,strideInBytes:n}),i+=d*o}if(this.quantization===g.NONE){a(M.position3DAndHeight,4);let m=2;m+=this.hasWebMercatorT?1:0,m+=this.hasVertexNormals?1:0,a(M.textureCoordAndEncodedNormals,m),this.hasGeodeticSurfaceNormals&&a(M.geodeticSurfaceNormal,3)}else{let m=this.hasWebMercatorT||this.hasVertexNormals,d=this.hasWebMercatorT&&this.hasVertexNormals;a(V.compressed0,m?4:3),d&&a(V.compressed1,1),this.hasGeodeticSurfaceNormals&&a(V.geodeticSurfaceNormal,3)}return c};p.prototype.getAttributeLocations=function(){return this.quantization===g.NONE?M:V};p.clone=function(e,t){if(l(e))return l(t)||(t=new p),t.quantization=e.quantization,t.minimumHeight=e.minimumHeight,t.maximumHeight=e.maximumHeight,t.center=s.clone(e.center),t.toScaledENU=h.clone(e.toScaledENU),t.fromScaledENU=h.clone(e.fromScaledENU),t.matrix=h.clone(e.matrix),t.hasVertexNormals=e.hasVertexNormals,t.hasWebMercatorT=e.hasWebMercatorT,t.hasGeodeticSurfaceNormals=e.hasGeodeticSurfaceNormals,t.exaggeration=e.exaggeration,t.exaggerationRelativeHeight=e.exaggerationRelativeHeight,t._calculateStrideAndOffsets(),t};var At=p;export{Nt as a,X as b,At as c};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.142.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 N}from"./chunk-K72DPWBT.js";import{a as Q}from"./chunk-FMWRN5G2.js";import{a as ae}from"./chunk-VZ4ER5HI.js";import{b as oe,c as re,d as J}from"./chunk-LTHJTGXC.js";import{c as ie}from"./chunk-XEBZTQHW.js";import{a as E}from"./chunk-6LZUEMFX.js";import{h as D}from"./chunk-AZCCS55A.js";import{a as C,b as F}from"./chunk-V74K6IQF.js";import{a as H}from"./chunk-5HZ2G332.js";import{a as r,b as G,c as A}from"./chunk-U4VWQPTS.js";import{a as O}from"./chunk-GZABERXA.js";import{a as w,b}from"./chunk-WM6AKY6B.js";import{f as a}from"./chunk-6K4BWAPV.js";function R(e){this.planes=e??[]}var X=[new r,new r,new r];r.clone(r.UNIT_X,X[0]);r.clone(r.UNIT_Y,X[1]);r.clone(r.UNIT_Z,X[2]);var j=new r,de=new r,fe=new Q(new r(1,0,0),0);R.fromBoundingSphere=function(e,t){if(!a(e))throw new w("boundingSphere is required.");a(t)||(t=new R);let n=X.length,f=t.planes;f.length=2*n;let s=e.center,_=e.radius,p=0;for(let m=0;m<n;++m){let i=X[m],c=f[p],d=f[p+1];a(c)||(c=f[p]=new C),a(d)||(d=f[p+1]=new C),r.multiplyByScalar(i,-_,j),r.add(s,j,j),c.x=i.x,c.y=i.y,c.z=i.z,c.w=-r.dot(i,j),r.multiplyByScalar(i,_,j),r.add(s,j,j),d.x=-i.x,d.y=-i.y,d.z=-i.z,d.w=-r.dot(r.negate(i,de),j),p+=2}return t};R.prototype.computeVisibility=function(e){if(!a(e))throw new w("boundingVolume is required.");let t=this.planes,n=!1;for(let f=0,s=t.length;f<s;++f){let _=e.intersectPlane(Q.fromCartesian4(t[f],fe));if(_===E.OUTSIDE)return E.OUTSIDE;_===E.INTERSECTING&&(n=!0)}return n?E.INTERSECTING:E.INSIDE};R.prototype.computeVisibilityWithPlaneMask=function(e,t){if(!a(e))throw new w("boundingVolume is required.");if(!a(t))throw new w("parentPlaneMask is required.");if(t===R.MASK_OUTSIDE||t===R.MASK_INSIDE)return t;let n=R.MASK_INSIDE,f=this.planes;for(let s=0,_=f.length;s<_;++s){let p=s<31?1<<s:0;if(s<31&&(t&p)===0)continue;let m=e.intersectPlane(Q.fromCartesian4(f[s],fe));if(m===E.OUTSIDE)return R.MASK_OUTSIDE;m===E.INTERSECTING&&(n|=p)}return n};R.MASK_OUTSIDE=4294967295;R.MASK_INSIDE=0;R.MASK_INDETERMINATE=2147483647;var $=R;function M(e){e=e??A.EMPTY_OBJECT,this.left=e.left,this._left=void 0,this.right=e.right,this._right=void 0,this.top=e.top,this._top=void 0,this.bottom=e.bottom,this._bottom=void 0,this.near=e.near??1,this._near=this.near,this.far=e.far??5e8,this._far=this.far,this._cullingVolume=new $,this._orthographicMatrix=new F}function ce(e){if(!a(e.right)||!a(e.left)||!a(e.top)||!a(e.bottom)||!a(e.near)||!a(e.far))throw new w("right, left, top, bottom, near, or far parameters are not set.");if(e.top!==e._top||e.bottom!==e._bottom||e.left!==e._left||e.right!==e._right||e.near!==e._near||e.far!==e._far){if(e.left>e.right)throw new w("right must be greater than left.");if(e.bottom>e.top)throw new w("top must be greater than bottom.");if(e.near<=0||e.near>e.far)throw new w("near must be greater than zero and less than far.");e._left=e.left,e._right=e.right,e._top=e.top,e._bottom=e.bottom,e._near=e.near,e._far=e.far,e._orthographicMatrix=F.computeOrthographicOffCenter(e.left,e.right,e.bottom,e.top,e.near,e.far,e._orthographicMatrix)}}Object.defineProperties(M.prototype,{projectionMatrix:{get:function(){return ce(this),this._orthographicMatrix}}});var me=new r,ye=new r,ge=new r,ee=new r;M.prototype.computeCullingVolume=function(e,t,n){if(!a(e))throw new w("position is required.");if(!a(t))throw new w("direction is required.");if(!a(n))throw new w("up is required.");let f=this._cullingVolume.planes,s=this.top,_=this.bottom,p=this.right,m=this.left,i=this.near,c=this.far,d=r.cross(t,n,me);r.normalize(d,d);let y=ye;r.multiplyByScalar(t,i,y),r.add(e,y,y);let l=ge;r.multiplyByScalar(d,m,l),r.add(y,l,l);let o=f[0];return a(o)||(o=f[0]=new C),o.x=d.x,o.y=d.y,o.z=d.z,o.w=-r.dot(d,l),r.multiplyByScalar(d,p,l),r.add(y,l,l),o=f[1],a(o)||(o=f[1]=new C),o.x=-d.x,o.y=-d.y,o.z=-d.z,o.w=-r.dot(r.negate(d,ee),l),r.multiplyByScalar(n,_,l),r.add(y,l,l),o=f[2],a(o)||(o=f[2]=new C),o.x=n.x,o.y=n.y,o.z=n.z,o.w=-r.dot(n,l),r.multiplyByScalar(n,s,l),r.add(y,l,l),o=f[3],a(o)||(o=f[3]=new C),o.x=-n.x,o.y=-n.y,o.z=-n.z,o.w=-r.dot(r.negate(n,ee),l),o=f[4],a(o)||(o=f[4]=new C),o.x=t.x,o.y=t.y,o.z=t.z,o.w=-r.dot(t,y),r.multiplyByScalar(t,c,l),r.add(e,l,l),o=f[5],a(o)||(o=f[5]=new C),o.x=-t.x,o.y=-t.y,o.z=-t.z,o.w=-r.dot(r.negate(t,ee),l),this._cullingVolume};M.prototype.getPixelDimensions=function(e,t,n,f,s){if(ce(this),!a(e)||!a(t))throw new w("Both drawingBufferWidth and drawingBufferHeight are required.");if(e<=0)throw new w("drawingBufferWidth must be greater than zero.");if(t<=0)throw new w("drawingBufferHeight must be greater than zero.");if(!a(n))throw new w("distance is required.");if(!a(f))throw new w("pixelRatio is required.");if(f<=0)throw new w("pixelRatio must be greater than zero.");if(!a(s))throw new w("A result object is required.");let _=this.right-this.left,p=this.top-this.bottom,m=f*_/e,i=f*p/t;return s.x=m,s.y=i,s};M.prototype.clone=function(e){return a(e)||(e=new M),e.left=this.left,e.right=this.right,e.top=this.top,e.bottom=this.bottom,e.near=this.near,e.far=this.far,e._left=void 0,e._right=void 0,e._top=void 0,e._bottom=void 0,e._near=void 0,e._far=void 0,e};M.prototype.equals=function(e){return a(e)&&e instanceof M&&this.right===e.right&&this.left===e.left&&this.top===e.top&&this.bottom===e.bottom&&this.near===e.near&&this.far===e.far};M.prototype.equalsEpsilon=function(e,t,n){return e===this||a(e)&&e instanceof M&&O.equalsEpsilon(this.right,e.right,t,n)&&O.equalsEpsilon(this.left,e.left,t,n)&&O.equalsEpsilon(this.top,e.top,t,n)&&O.equalsEpsilon(this.bottom,e.bottom,t,n)&&O.equalsEpsilon(this.near,e.near,t,n)&&O.equalsEpsilon(this.far,e.far,t,n)};var he=M;function x(e){e=e??A.EMPTY_OBJECT,this._offCenterFrustum=new he,this.width=e.width,this._width=void 0,this.aspectRatio=e.aspectRatio,this._aspectRatio=void 0,this.near=e.near??1,this._near=this.near,this.far=e.far??5e8,this._far=this.far}x.packedLength=4;x.pack=function(e,t,n){return b.typeOf.object("value",e),b.defined("array",t),n=n??0,t[n++]=e.width,t[n++]=e.aspectRatio,t[n++]=e.near,t[n]=e.far,t};x.unpack=function(e,t,n){return b.defined("array",e),t=t??0,a(n)||(n=new x),n.width=e[t++],n.aspectRatio=e[t++],n.near=e[t++],n.far=e[t],n};function B(e){if(!a(e.width)||!a(e.aspectRatio)||!a(e.near)||!a(e.far))throw new w("width, aspectRatio, near, or far parameters are not set.");let t=e._offCenterFrustum;if(e.width!==e._width||e.aspectRatio!==e._aspectRatio||e.near!==e._near||e.far!==e._far){if(e.aspectRatio<0)throw new w("aspectRatio must be positive.");if(e.near<0||e.near>e.far)throw new w("near must be greater than zero and less than far.");e._aspectRatio=e.aspectRatio,e._width=e.width,e._near=e.near,e._far=e.far;let n=1/e.aspectRatio;t.right=e.width*.5,t.left=-t.right,t.top=n*t.right,t.bottom=-t.top,t.near=e.near,t.far=e.far}}Object.defineProperties(x.prototype,{projectionMatrix:{get:function(){return B(this),this._offCenterFrustum.projectionMatrix}},offCenterFrustum:{get:function(){return B(this),this._offCenterFrustum}}});x.prototype.computeCullingVolume=function(e,t,n){return B(this),this._offCenterFrustum.computeCullingVolume(e,t,n)};x.prototype.getPixelDimensions=function(e,t,n,f,s){return B(this),this._offCenterFrustum.getPixelDimensions(e,t,n,f,s)};x.prototype.clone=function(e){return a(e)||(e=new x),e.aspectRatio=this.aspectRatio,e.width=this.width,e.near=this.near,e.far=this.far,e._aspectRatio=void 0,e._width=void 0,e._near=void 0,e._far=void 0,this._offCenterFrustum.clone(e._offCenterFrustum),e};x.prototype.equals=function(e){return!a(e)||!(e instanceof x)?!1:(B(this),B(e),this.width===e.width&&this.aspectRatio===e.aspectRatio&&this._offCenterFrustum.equals(e._offCenterFrustum))};x.prototype.equalsEpsilon=function(e,t,n){return!a(e)||!(e instanceof x)?!1:(B(this),B(e),O.equalsEpsilon(this.width,e.width,t,n)&&O.equalsEpsilon(this.aspectRatio,e.aspectRatio,t,n)&&this._offCenterFrustum.equalsEpsilon(e._offCenterFrustum,t,n))};var V=x;function k(e){e=e??A.EMPTY_OBJECT,this.left=e.left,this._left=void 0,this.right=e.right,this._right=void 0,this.top=e.top,this._top=void 0,this.bottom=e.bottom,this._bottom=void 0,this.near=e.near??1,this._near=this.near,this.far=e.far??5e8,this._far=this.far,this._cullingVolume=new $,this._perspectiveMatrix=new F,this._infinitePerspective=new F}function te(e){if(!a(e.right)||!a(e.left)||!a(e.top)||!a(e.bottom)||!a(e.near)||!a(e.far))throw new w("right, left, top, bottom, near, or far parameters are not set.");let{top:t,bottom:n,right:f,left:s,near:_,far:p}=e;if(t!==e._top||n!==e._bottom||s!==e._left||f!==e._right||_!==e._near||p!==e._far){if(e.near<=0||e.near>e.far)throw new w("near must be greater than zero and less than far.");e._left=s,e._right=f,e._top=t,e._bottom=n,e._near=_,e._far=p,e._perspectiveMatrix=F.computePerspectiveOffCenter(s,f,n,t,_,p,e._perspectiveMatrix),e._infinitePerspective=F.computeInfinitePerspectiveOffCenter(s,f,n,t,_,e._infinitePerspective)}}Object.defineProperties(k.prototype,{projectionMatrix:{get:function(){return te(this),this._perspectiveMatrix}},infiniteProjectionMatrix:{get:function(){return te(this),this._infinitePerspective}}});var Ce=new r,be=new r,Oe=new r,Fe=new r;k.prototype.computeCullingVolume=function(e,t,n){if(!a(e))throw new w("position is required.");if(!a(t))throw new w("direction is required.");if(!a(n))throw new w("up is required.");let f=this._cullingVolume.planes,s=this.top,_=this.bottom,p=this.right,m=this.left,i=this.near,c=this.far,d=r.cross(t,n,Ce),y=be;r.multiplyByScalar(t,i,y),r.add(e,y,y);let l=Oe;r.multiplyByScalar(t,c,l),r.add(e,l,l);let o=Fe;r.multiplyByScalar(d,m,o),r.add(y,o,o),r.subtract(o,e,o),r.normalize(o,o),r.cross(o,n,o),r.normalize(o,o);let h=f[0];return a(h)||(h=f[0]=new C),h.x=o.x,h.y=o.y,h.z=o.z,h.w=-r.dot(o,e),r.multiplyByScalar(d,p,o),r.add(y,o,o),r.subtract(o,e,o),r.cross(n,o,o),r.normalize(o,o),h=f[1],a(h)||(h=f[1]=new C),h.x=o.x,h.y=o.y,h.z=o.z,h.w=-r.dot(o,e),r.multiplyByScalar(n,_,o),r.add(y,o,o),r.subtract(o,e,o),r.cross(d,o,o),r.normalize(o,o),h=f[2],a(h)||(h=f[2]=new C),h.x=o.x,h.y=o.y,h.z=o.z,h.w=-r.dot(o,e),r.multiplyByScalar(n,s,o),r.add(y,o,o),r.subtract(o,e,o),r.cross(o,d,o),r.normalize(o,o),h=f[3],a(h)||(h=f[3]=new C),h.x=o.x,h.y=o.y,h.z=o.z,h.w=-r.dot(o,e),h=f[4],a(h)||(h=f[4]=new C),h.x=t.x,h.y=t.y,h.z=t.z,h.w=-r.dot(t,y),r.negate(t,o),h=f[5],a(h)||(h=f[5]=new C),h.x=o.x,h.y=o.y,h.z=o.z,h.w=-r.dot(o,l),this._cullingVolume};k.prototype.getPixelDimensions=function(e,t,n,f,s){if(te(this),!a(e)||!a(t))throw new w("Both drawingBufferWidth and drawingBufferHeight are required.");if(e<=0)throw new w("drawingBufferWidth must be greater than zero.");if(t<=0)throw new w("drawingBufferHeight must be greater than zero.");if(!a(n))throw new w("distance is required.");if(!a(f))throw new w("pixelRatio is required");if(f<=0)throw new w("pixelRatio must be greater than zero.");if(!a(s))throw new w("A result object is required.");let _=1/this.near,p=this.top*_,m=2*f*n*p/t;p=this.right*_;let i=2*f*n*p/e;return s.x=i,s.y=m,s};k.prototype.clone=function(e){return a(e)||(e=new k),e.right=this.right,e.left=this.left,e.top=this.top,e.bottom=this.bottom,e.near=this.near,e.far=this.far,e._left=void 0,e._right=void 0,e._top=void 0,e._bottom=void 0,e._near=void 0,e._far=void 0,e};k.prototype.equals=function(e){return a(e)&&e instanceof k&&this.right===e.right&&this.left===e.left&&this.top===e.top&&this.bottom===e.bottom&&this.near===e.near&&this.far===e.far};k.prototype.equalsEpsilon=function(e,t,n){return e===this||a(e)&&e instanceof k&&O.equalsEpsilon(this.right,e.right,t,n)&&O.equalsEpsilon(this.left,e.left,t,n)&&O.equalsEpsilon(this.top,e.top,t,n)&&O.equalsEpsilon(this.bottom,e.bottom,t,n)&&O.equalsEpsilon(this.near,e.near,t,n)&&O.equalsEpsilon(this.far,e.far,t,n)};var se=k;function v(e){e=e??A.EMPTY_OBJECT,this._offCenterFrustum=new se,this.fov=e.fov,this._fov=void 0,this._fovy=void 0,this._sseDenominator=void 0,this.aspectRatio=e.aspectRatio,this._aspectRatio=void 0,this.near=e.near??1,this._near=this.near,this.far=e.far??5e8,this._far=this.far,this.xOffset=e.xOffset??0,this._xOffset=this.xOffset,this.yOffset=e.yOffset??0,this._yOffset=this.yOffset}v.packedLength=6;v.pack=function(e,t,n){return b.typeOf.object("value",e),b.defined("array",t),n=n??0,t[n++]=e.fov,t[n++]=e.aspectRatio,t[n++]=e.near,t[n++]=e.far,t[n++]=e.xOffset,t[n]=e.yOffset,t};v.unpack=function(e,t,n){return b.defined("array",e),t=t??0,a(n)||(n=new v),n.fov=e[t++],n.aspectRatio=e[t++],n.near=e[t++],n.far=e[t++],n.xOffset=e[t++],n.yOffset=e[t],n};function T(e){if(!a(e.fov)||!a(e.aspectRatio)||!a(e.near)||!a(e.far))throw new w("fov, aspectRatio, near, or far parameters are not set.");if(!(e.fov!==e._fov||e.aspectRatio!==e._aspectRatio||e.near!==e._near||e.far!==e._far||e.xOffset!==e._xOffset||e.yOffset!==e._yOffset))return;if(b.typeOf.number.greaterThanOrEquals("fov",e.fov,0),b.typeOf.number.lessThan("fov",e.fov,Math.PI),b.typeOf.number.greaterThanOrEquals("aspectRatio",e.aspectRatio,0),b.typeOf.number.greaterThanOrEquals("near",e.near,0),e.near>e.far)throw new w("near must be less than far.");e._aspectRatio=e.aspectRatio,e._fov=e.fov,e._fovy=e.aspectRatio<=1?e.fov:Math.atan(Math.tan(e.fov*.5)/e.aspectRatio)*2,e._near=e.near,e._far=e.far,e._sseDenominator=2*Math.tan(.5*e._fovy),e._xOffset=e.xOffset,e._yOffset=e.yOffset;let n=e._offCenterFrustum;n.top=e.near*Math.tan(.5*e._fovy),n.bottom=-n.top,n.right=e.aspectRatio*n.top,n.left=-n.right,n.near=e.near,n.far=e.far,n.right+=e.xOffset,n.left+=e.xOffset,n.top+=e.yOffset,n.bottom+=e.yOffset}Object.defineProperties(v.prototype,{projectionMatrix:{get:function(){return T(this),this._offCenterFrustum.projectionMatrix}},infiniteProjectionMatrix:{get:function(){return T(this),this._offCenterFrustum.infiniteProjectionMatrix}},fovy:{get:function(){return T(this),this._fovy}},sseDenominator:{get:function(){return T(this),this._sseDenominator}},offCenterFrustum:{get:function(){return T(this),this._offCenterFrustum}}});v.prototype.computeCullingVolume=function(e,t,n){return T(this),this._offCenterFrustum.computeCullingVolume(e,t,n)};v.prototype.getPixelDimensions=function(e,t,n,f,s){return T(this),this._offCenterFrustum.getPixelDimensions(e,t,n,f,s)};v.prototype.clone=function(e){return a(e)||(e=new v),e.aspectRatio=this.aspectRatio,e.fov=this.fov,e.near=this.near,e.far=this.far,e._aspectRatio=void 0,e._fov=void 0,e._near=void 0,e._far=void 0,this._offCenterFrustum.clone(e._offCenterFrustum),e};v.prototype.equals=function(e){return!a(e)||!(e instanceof v)?!1:(T(this),T(e),this.fov===e.fov&&this.aspectRatio===e.aspectRatio&&this._offCenterFrustum.equals(e._offCenterFrustum))};v.prototype.equalsEpsilon=function(e,t,n){return!a(e)||!(e instanceof v)?!1:(T(this),T(e),O.equalsEpsilon(this.fov,e.fov,t,n)&&O.equalsEpsilon(this.aspectRatio,e.aspectRatio,t,n)&&this._offCenterFrustum.equalsEpsilon(e._offCenterFrustum,t,n))};var L=v;var I=0,Pe=1;function u(e){b.typeOf.object("options",e),b.typeOf.object("options.frustum",e.frustum),b.typeOf.object("options.origin",e.origin),b.typeOf.object("options.orientation",e.orientation);let t=e.frustum,n=e.orientation,f=e.origin,s=e.vertexFormat??N.DEFAULT,_=e._drawNearPlane??!0,p,m;t instanceof L?(p=I,m=L.packedLength):t instanceof V&&(p=Pe,m=V.packedLength),this._frustumType=p,this._frustum=t.clone(),this._origin=r.clone(f),this._orientation=D.clone(n),this._drawNearPlane=_,this._vertexFormat=s,this._workerName="createFrustumGeometry",this.packedLength=2+m+r.packedLength+D.packedLength+N.packedLength}u.pack=function(e,t,n){b.typeOf.object("value",e),b.defined("array",t),n=n??0;let f=e._frustumType,s=e._frustum;return t[n++]=f,f===I?(L.pack(s,t,n),n+=L.packedLength):(V.pack(s,t,n),n+=V.packedLength),r.pack(e._origin,t,n),n+=r.packedLength,D.pack(e._orientation,t,n),n+=D.packedLength,N.pack(e._vertexFormat,t,n),n+=N.packedLength,t[n]=e._drawNearPlane?1:0,t};var ze=new L,xe=new V,ve=new D,Re=new r,Te=new N;u.unpack=function(e,t,n){b.defined("array",e),t=t??0;let f=e[t++],s;f===I?(s=L.unpack(e,t,ze),t+=L.packedLength):(s=V.unpack(e,t,xe),t+=V.packedLength);let _=r.unpack(e,t,Re);t+=r.packedLength;let p=D.unpack(e,t,ve);t+=D.packedLength;let m=N.unpack(e,t,Te);t+=N.packedLength;let i=e[t]===1;if(!a(n))return new u({frustum:s,origin:_,orientation:p,vertexFormat:m,_drawNearPlane:i});let c=f===n._frustumType?n._frustum:void 0;return n._frustum=s.clone(c),n._frustumType=f,n._origin=r.clone(_,n._origin),n._orientation=D.clone(p,n._orientation),n._vertexFormat=N.clone(m,n._vertexFormat),n._drawNearPlane=i,n};function W(e,t,n,f,s,_,p,m){let i=e/3*2;for(let c=0;c<4;++c)a(t)&&(t[e]=_.x,t[e+1]=_.y,t[e+2]=_.z),a(n)&&(n[e]=p.x,n[e+1]=p.y,n[e+2]=p.z),a(f)&&(f[e]=m.x,f[e+1]=m.y,f[e+2]=m.z),e+=3;s[i]=0,s[i+1]=0,s[i+2]=1,s[i+3]=0,s[i+4]=1,s[i+5]=1,s[i+6]=0,s[i+7]=1}var qe=new G,Me=new F,ne=new F,pe=new r,le=new r,we=new r,ke=new r,Se=new r,De=new r,U=new Array(3),Z=new Array(4);Z[0]=new C(-1,-1,1,1);Z[1]=new C(1,-1,1,1);Z[2]=new C(1,1,1,1);Z[3]=new C(-1,1,1,1);var _e=new Array(4);for(let e=0;e<4;++e)_e[e]=new C;u._computeNearFarPlanes=function(e,t,n,f,s,_,p,m){let i=G.fromQuaternion(t,qe),c=_??pe,d=p??le,y=m??we;c=G.getColumn(i,0,c),d=G.getColumn(i,1,d),y=G.getColumn(i,2,y),r.normalize(c,c),r.normalize(d,d),r.normalize(y,y),r.negate(c,c);let l=F.computeView(e,y,d,c,Me),o,h,q=f.projectionMatrix;if(n===I){let P=F.multiply(q,l,ne);h=F.inverse(P,ne)}else o=F.inverseTransformation(l,ne);a(h)?(U[0]=f.near,U[1]=f.far):(U[0]=0,U[1]=f.near,U[2]=f.far);for(let P=0;P<2;++P)for(let z=0;z<4;++z){let g=C.clone(Z[z],_e[z]);if(a(h)){g=F.multiplyByVector(h,g,g);let S=1/g.w;r.multiplyByScalar(g,S,g),r.subtract(g,e,g),r.normalize(g,g);let Y=r.dot(y,g);r.multiplyByScalar(g,U[P]/Y,g),r.add(g,e,g)}else{let S=f.offCenterFrustum;a(S)&&(f=S);let Y=U[P],K=U[P+1];g.x=(g.x*(f.right-f.left)+f.left+f.right)*.5,g.y=(g.y*(f.top-f.bottom)+f.bottom+f.top)*.5,g.z=(g.z*(Y-K)-Y-K)*.5,g.w=1,F.multiplyByVector(o,g,g)}s[12*P+z*3]=g.x,s[12*P+z*3+1]=g.y,s[12*P+z*3+2]=g.z}};u.createGeometry=function(e){let t=e._frustumType,n=e._frustum,f=e._origin,s=e._orientation,_=e._drawNearPlane,p=e._vertexFormat,m=_?6:5,i=new Float64Array(72);u._computeNearFarPlanes(f,s,t,n,i);let c=24;i[c]=i[12],i[c+1]=i[13],i[c+2]=i[14],i[c+3]=i[0],i[c+4]=i[1],i[c+5]=i[2],i[c+6]=i[9],i[c+7]=i[10],i[c+8]=i[11],i[c+9]=i[21],i[c+10]=i[22],i[c+11]=i[23],c+=12,i[c]=i[15],i[c+1]=i[16],i[c+2]=i[17],i[c+3]=i[3],i[c+4]=i[4],i[c+5]=i[5],i[c+6]=i[0],i[c+7]=i[1],i[c+8]=i[2],i[c+9]=i[12],i[c+10]=i[13],i[c+11]=i[14],c+=12,i[c]=i[3],i[c+1]=i[4],i[c+2]=i[5],i[c+3]=i[15],i[c+4]=i[16],i[c+5]=i[17],i[c+6]=i[18],i[c+7]=i[19],i[c+8]=i[20],i[c+9]=i[6],i[c+10]=i[7],i[c+11]=i[8],c+=12,i[c]=i[6],i[c+1]=i[7],i[c+2]=i[8],i[c+3]=i[18],i[c+4]=i[19],i[c+5]=i[20],i[c+6]=i[21],i[c+7]=i[22],i[c+8]=i[23],i[c+9]=i[9],i[c+10]=i[10],i[c+11]=i[11],_||(i=i.subarray(12));let d=new ae({position:new J({componentDatatype:H.DOUBLE,componentsPerAttribute:3,values:i})});if(a(p.normal)||a(p.tangent)||a(p.bitangent)||a(p.st)){let l=a(p.normal)?new Float32Array(12*m):void 0,o=a(p.tangent)?new Float32Array(12*m):void 0,h=a(p.bitangent)?new Float32Array(12*m):void 0,q=a(p.st)?new Float32Array(8*m):void 0,P=pe,z=le,g=we,S=r.negate(P,ke),Y=r.negate(z,Se),K=r.negate(g,De);c=0,_&&(W(c,l,o,h,q,K,P,z),c+=12),W(c,l,o,h,q,g,S,z),c+=12,W(c,l,o,h,q,S,K,z),c+=12,W(c,l,o,h,q,Y,K,S),c+=12,W(c,l,o,h,q,P,g,z),c+=12,W(c,l,o,h,q,z,g,S),a(l)&&(d.normal=new J({componentDatatype:H.FLOAT,componentsPerAttribute:3,values:l})),a(o)&&(d.tangent=new J({componentDatatype:H.FLOAT,componentsPerAttribute:3,values:o})),a(h)&&(d.bitangent=new J({componentDatatype:H.FLOAT,componentsPerAttribute:3,values:h})),a(q)&&(d.st=new J({componentDatatype:H.FLOAT,componentsPerAttribute:2,values:q}))}let y=new Uint16Array(6*m);for(let l=0;l<m;++l){let o=l*6,h=l*4;y[o]=h,y[o+1]=h+1,y[o+2]=h+2,y[o+3]=h,y[o+4]=h+2,y[o+5]=h+3}return new re({attributes:d,indices:y,primitiveType:oe.TRIANGLES,boundingSphere:ie.fromVertices(i)})};var Et=u;export{V as a,L as b,Et as c};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.142.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}from"./chunk-GZABERXA.js";import{b as g}from"./chunk-WM6AKY6B.js";import{f}from"./chunk-6K4BWAPV.js";var d=C.EPSILON10;function x(e,r,h,n){if(g.defined("equalsEpsilon",r),!f(e))return;h=h??!1;let c=f(n),l=e.length;if(l<2)return e;let i,s=e[0],o,t,p=0,m=-1;for(i=1;i<l;++i)o=e[i],r(s,o,d)?(f(t)||(t=e.slice(0,i),p=i-1,m=0),c&&n.push(i)):(f(t)&&(t.push(o),p=i,c&&(m=n.length)),s=o);return h&&r(e[0],e[l-1],d)&&(c&&(f(t)?n.splice(m,0,p):n.push(l-1)),f(t)?t.length-=1:t=e.slice(0,-1)),f(t)?t:e}var k=x;export{k as a};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.142.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-ZQTDDQLY.js";import{a as h}from"./chunk-U4VWQPTS.js";import{a as u}from"./chunk-GZABERXA.js";import{a as d}from"./chunk-WM6AKY6B.js";import{f as n}from"./chunk-6K4BWAPV.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};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.142.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 N}from"./chunk-LKQXJXNV.js";import{a}from"./chunk-GZABERXA.js";import{a as t}from"./chunk-WM6AKY6B.js";import{f as i}from"./chunk-6K4BWAPV.js";var r={UNSIGNED_BYTE:N.UNSIGNED_BYTE,UNSIGNED_SHORT:N.UNSIGNED_SHORT,UNSIGNED_INT:N.UNSIGNED_INT};r.getSizeInBytes=function(e){switch(e){case r.UNSIGNED_BYTE:return Uint8Array.BYTES_PER_ELEMENT;case r.UNSIGNED_SHORT:return Uint16Array.BYTES_PER_ELEMENT;case r.UNSIGNED_INT:return Uint32Array.BYTES_PER_ELEMENT}throw new t("indexDatatype is required and must be a valid IndexDatatype constant.")};r.fromSizeInBytes=function(e){switch(e){case 2:return r.UNSIGNED_SHORT;case 4:return r.UNSIGNED_INT;case 1:return r.UNSIGNED_BYTE;default:throw new t("Size in bytes cannot be mapped to an IndexDatatype")}};r.validate=function(e){return i(e)&&(e===r.UNSIGNED_BYTE||e===r.UNSIGNED_SHORT||e===r.UNSIGNED_INT)};r.createTypedArray=function(e,n){if(!i(e))throw new t("numberOfVertices is required.");return e>=a.SIXTY_FOUR_KILOBYTES?new Uint32Array(n):new Uint16Array(n)};r.createTypedArrayFromArrayBuffer=function(e,n,E,o){if(!i(e))throw new t("numberOfVertices is required.");if(!i(n))throw new t("sourceArray is required.");if(!i(E))throw new t("byteOffset is required.");return e>=a.SIXTY_FOUR_KILOBYTES?new Uint32Array(n,E,o):new Uint16Array(n,E,o)};r.fromTypedArray=function(e){if(e instanceof Uint8Array)return r.UNSIGNED_BYTE;if(e instanceof Uint16Array)return r.UNSIGNED_SHORT;if(e instanceof Uint32Array)return r.UNSIGNED_INT;throw new t("array must be a Uint8Array, Uint16Array, or Uint32Array.")};Object.freeze(r);var u=r;export{u as a};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.142.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 b}from"./chunk-YNBY2HFD.js";import{a as u}from"./chunk-K72DPWBT.js";import{a as O}from"./chunk-VZ4ER5HI.js";import{b as w,c as h,d as y}from"./chunk-LTHJTGXC.js";import{c as l}from"./chunk-XEBZTQHW.js";import{a as p}from"./chunk-5HZ2G332.js";import{a as i,c as A}from"./chunk-U4VWQPTS.js";import{a as d,b as c}from"./chunk-WM6AKY6B.js";import{f as x}from"./chunk-6K4BWAPV.js";var D=new i;function f(r){r=r??A.EMPTY_OBJECT;let o=r.minimum,m=r.maximum;if(c.typeOf.object("min",o),c.typeOf.object("max",m),x(r.offsetAttribute)&&r.offsetAttribute===b.TOP)throw new d("GeometryOffsetAttribute.TOP is not a supported options.offsetAttribute for this geometry.");let a=r.vertexFormat??u.DEFAULT;this._minimum=i.clone(o),this._maximum=i.clone(m),this._vertexFormat=a,this._offsetAttribute=r.offsetAttribute,this._workerName="createBoxGeometry"}f.fromDimensions=function(r){r=r??A.EMPTY_OBJECT;let o=r.dimensions;c.typeOf.object("dimensions",o),c.typeOf.number.greaterThanOrEquals("dimensions.x",o.x,0),c.typeOf.number.greaterThanOrEquals("dimensions.y",o.y,0),c.typeOf.number.greaterThanOrEquals("dimensions.z",o.z,0);let m=i.multiplyByScalar(o,.5,new i);return new f({minimum:i.negate(m,new i),maximum:m,vertexFormat:r.vertexFormat,offsetAttribute:r.offsetAttribute})};f.fromAxisAlignedBoundingBox=function(r){return c.typeOf.object("boundingBox",r),new f({minimum:r.minimum,maximum:r.maximum})};f.packedLength=2*i.packedLength+u.packedLength+1;f.pack=function(r,o,m){return c.typeOf.object("value",r),c.defined("array",o),m=m??0,i.pack(r._minimum,o,m),i.pack(r._maximum,o,m+i.packedLength),u.pack(r._vertexFormat,o,m+2*i.packedLength),o[m+2*i.packedLength+u.packedLength]=r._offsetAttribute??-1,o};var _=new i,g=new i,k=new u,F={minimum:_,maximum:g,vertexFormat:k,offsetAttribute:void 0};f.unpack=function(r,o,m){c.defined("array",r),o=o??0;let a=i.unpack(r,o,_),s=i.unpack(r,o+i.packedLength,g),n=u.unpack(r,o+2*i.packedLength,k),e=r[o+2*i.packedLength+u.packedLength];return x(m)?(m._minimum=i.clone(a,m._minimum),m._maximum=i.clone(s,m._maximum),m._vertexFormat=u.clone(n,m._vertexFormat),m._offsetAttribute=e===-1?void 0:e,m):(F.offsetAttribute=e===-1?void 0:e,new f(F))};f.createGeometry=function(r){let o=r._minimum,m=r._maximum,a=r._vertexFormat;if(i.equals(o,m))return;let s=new O,n,e;if(a.position&&(a.st||a.normal||a.tangent||a.bitangent)){if(a.position&&(e=new Float64Array(72),e[0]=o.x,e[1]=o.y,e[2]=m.z,e[3]=m.x,e[4]=o.y,e[5]=m.z,e[6]=m.x,e[7]=m.y,e[8]=m.z,e[9]=o.x,e[10]=m.y,e[11]=m.z,e[12]=o.x,e[13]=o.y,e[14]=o.z,e[15]=m.x,e[16]=o.y,e[17]=o.z,e[18]=m.x,e[19]=m.y,e[20]=o.z,e[21]=o.x,e[22]=m.y,e[23]=o.z,e[24]=m.x,e[25]=o.y,e[26]=o.z,e[27]=m.x,e[28]=m.y,e[29]=o.z,e[30]=m.x,e[31]=m.y,e[32]=m.z,e[33]=m.x,e[34]=o.y,e[35]=m.z,e[36]=o.x,e[37]=o.y,e[38]=o.z,e[39]=o.x,e[40]=m.y,e[41]=o.z,e[42]=o.x,e[43]=m.y,e[44]=m.z,e[45]=o.x,e[46]=o.y,e[47]=m.z,e[48]=o.x,e[49]=m.y,e[50]=o.z,e[51]=m.x,e[52]=m.y,e[53]=o.z,e[54]=m.x,e[55]=m.y,e[56]=m.z,e[57]=o.x,e[58]=m.y,e[59]=m.z,e[60]=o.x,e[61]=o.y,e[62]=o.z,e[63]=m.x,e[64]=o.y,e[65]=o.z,e[66]=m.x,e[67]=o.y,e[68]=m.z,e[69]=o.x,e[70]=o.y,e[71]=m.z,s.position=new y({componentDatatype:p.DOUBLE,componentsPerAttribute:3,values:e})),a.normal){let t=new Float32Array(72);t[0]=0,t[1]=0,t[2]=1,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=1,t[9]=0,t[10]=0,t[11]=1,t[12]=0,t[13]=0,t[14]=-1,t[15]=0,t[16]=0,t[17]=-1,t[18]=0,t[19]=0,t[20]=-1,t[21]=0,t[22]=0,t[23]=-1,t[24]=1,t[25]=0,t[26]=0,t[27]=1,t[28]=0,t[29]=0,t[30]=1,t[31]=0,t[32]=0,t[33]=1,t[34]=0,t[35]=0,t[36]=-1,t[37]=0,t[38]=0,t[39]=-1,t[40]=0,t[41]=0,t[42]=-1,t[43]=0,t[44]=0,t[45]=-1,t[46]=0,t[47]=0,t[48]=0,t[49]=1,t[50]=0,t[51]=0,t[52]=1,t[53]=0,t[54]=0,t[55]=1,t[56]=0,t[57]=0,t[58]=1,t[59]=0,t[60]=0,t[61]=-1,t[62]=0,t[63]=0,t[64]=-1,t[65]=0,t[66]=0,t[67]=-1,t[68]=0,t[69]=0,t[70]=-1,t[71]=0,s.normal=new y({componentDatatype:p.FLOAT,componentsPerAttribute:3,values:t})}if(a.st){let t=new Float32Array(48);t[0]=0,t[1]=0,t[2]=1,t[3]=0,t[4]=1,t[5]=1,t[6]=0,t[7]=1,t[8]=1,t[9]=0,t[10]=0,t[11]=0,t[12]=0,t[13]=1,t[14]=1,t[15]=1,t[16]=0,t[17]=0,t[18]=1,t[19]=0,t[20]=1,t[21]=1,t[22]=0,t[23]=1,t[24]=1,t[25]=0,t[26]=0,t[27]=0,t[28]=0,t[29]=1,t[30]=1,t[31]=1,t[32]=1,t[33]=0,t[34]=0,t[35]=0,t[36]=0,t[37]=1,t[38]=1,t[39]=1,t[40]=0,t[41]=0,t[42]=1,t[43]=0,t[44]=1,t[45]=1,t[46]=0,t[47]=1,s.st=new y({componentDatatype:p.FLOAT,componentsPerAttribute:2,values:t})}if(a.tangent){let t=new Float32Array(72);t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t[6]=1,t[7]=0,t[8]=0,t[9]=1,t[10]=0,t[11]=0,t[12]=-1,t[13]=0,t[14]=0,t[15]=-1,t[16]=0,t[17]=0,t[18]=-1,t[19]=0,t[20]=0,t[21]=-1,t[22]=0,t[23]=0,t[24]=0,t[25]=1,t[26]=0,t[27]=0,t[28]=1,t[29]=0,t[30]=0,t[31]=1,t[32]=0,t[33]=0,t[34]=1,t[35]=0,t[36]=0,t[37]=-1,t[38]=0,t[39]=0,t[40]=-1,t[41]=0,t[42]=0,t[43]=-1,t[44]=0,t[45]=0,t[46]=-1,t[47]=0,t[48]=-1,t[49]=0,t[50]=0,t[51]=-1,t[52]=0,t[53]=0,t[54]=-1,t[55]=0,t[56]=0,t[57]=-1,t[58]=0,t[59]=0,t[60]=1,t[61]=0,t[62]=0,t[63]=1,t[64]=0,t[65]=0,t[66]=1,t[67]=0,t[68]=0,t[69]=1,t[70]=0,t[71]=0,s.tangent=new y({componentDatatype:p.FLOAT,componentsPerAttribute:3,values:t})}if(a.bitangent){let t=new Float32Array(72);t[0]=0,t[1]=1,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=1,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=1,t[14]=0,t[15]=0,t[16]=1,t[17]=0,t[18]=0,t[19]=1,t[20]=0,t[21]=0,t[22]=1,t[23]=0,t[24]=0,t[25]=0,t[26]=1,t[27]=0,t[28]=0,t[29]=1,t[30]=0,t[31]=0,t[32]=1,t[33]=0,t[34]=0,t[35]=1,t[36]=0,t[37]=0,t[38]=1,t[39]=0,t[40]=0,t[41]=1,t[42]=0,t[43]=0,t[44]=1,t[45]=0,t[46]=0,t[47]=1,t[48]=0,t[49]=0,t[50]=1,t[51]=0,t[52]=0,t[53]=1,t[54]=0,t[55]=0,t[56]=1,t[57]=0,t[58]=0,t[59]=1,t[60]=0,t[61]=0,t[62]=1,t[63]=0,t[64]=0,t[65]=1,t[66]=0,t[67]=0,t[68]=1,t[69]=0,t[70]=0,t[71]=1,s.bitangent=new y({componentDatatype:p.FLOAT,componentsPerAttribute:3,values:t})}n=new Uint16Array(36),n[0]=0,n[1]=1,n[2]=2,n[3]=0,n[4]=2,n[5]=3,n[6]=6,n[7]=5,n[8]=4,n[9]=7,n[10]=6,n[11]=4,n[12]=8,n[13]=9,n[14]=10,n[15]=8,n[16]=10,n[17]=11,n[18]=14,n[19]=13,n[20]=12,n[21]=15,n[22]=14,n[23]=12,n[24]=18,n[25]=17,n[26]=16,n[27]=19,n[28]=18,n[29]=16,n[30]=20,n[31]=21,n[32]=22,n[33]=20,n[34]=22,n[35]=23}else e=new Float64Array(24),e[0]=o.x,e[1]=o.y,e[2]=o.z,e[3]=m.x,e[4]=o.y,e[5]=o.z,e[6]=m.x,e[7]=m.y,e[8]=o.z,e[9]=o.x,e[10]=m.y,e[11]=o.z,e[12]=o.x,e[13]=o.y,e[14]=m.z,e[15]=m.x,e[16]=o.y,e[17]=m.z,e[18]=m.x,e[19]=m.y,e[20]=m.z,e[21]=o.x,e[22]=m.y,e[23]=m.z,s.position=new y({componentDatatype:p.DOUBLE,componentsPerAttribute:3,values:e}),n=new Uint16Array(36),n[0]=4,n[1]=5,n[2]=6,n[3]=4,n[4]=6,n[5]=7,n[6]=1,n[7]=0,n[8]=3,n[9]=1,n[10]=3,n[11]=2,n[12]=1,n[13]=6,n[14]=5,n[15]=1,n[16]=2,n[17]=6,n[18]=2,n[19]=3,n[20]=7,n[21]=2,n[22]=7,n[23]=6,n[24]=3,n[25]=0,n[26]=4,n[27]=3,n[28]=4,n[29]=7,n[30]=0,n[31]=1,n[32]=5,n[33]=0,n[34]=5,n[35]=4;let v=i.subtract(m,o,D),L=i.magnitude(v)*.5;if(x(r._offsetAttribute)){let t=e.length,T=r._offsetAttribute===b.NONE?0:1,E=new Uint8Array(t/3).fill(T);s.applyOffset=new y({componentDatatype:p.UNSIGNED_BYTE,componentsPerAttribute:1,values:E})}return new h({attributes:s,indices:n,primitiveType:w.TRIANGLES,boundingSphere:new l(i.ZERO,L),offsetAttribute:r._offsetAttribute})};var z;f.getUnitBox=function(){return x(z)||(z=f.createGeometry(f.fromDimensions({dimensions:new i(1,1,1),vertexFormat:u.POSITION_ONLY}))),z};var R=f;export{R as a};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.142.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 E}from"./chunk-GZABERXA.js";import{a as S,b as e}from"./chunk-WM6AKY6B.js";import{f as z}from"./chunk-6K4BWAPV.js";var m=class p{constructor(n,o,c){this.x=n??0,this.y=o??0,this.z=c??0}static fromSpherical(n,o){e.typeOf.object("spherical",n),z(o)||(o=new p);let c=n.clock,t=n.cone,y=n.magnitude??1,O=y*Math.sin(t);return o.x=O*Math.cos(c),o.y=O*Math.sin(c),o.z=y*Math.cos(t),o}static fromElements(n,o,c,t){return z(t)?(t.x=n,t.y=o,t.z=c,t):new p(n,o,c)}static clone(n,o){if(z(n))return z(o)?(o.x=n.x,o.y=n.y,o.z=n.z,o):new p(n.x,n.y,n.z)}static pack(n,o,c){return e.typeOf.object("value",n),e.defined("array",o),c=c??0,o[c++]=n.x,o[c++]=n.y,o[c]=n.z,o}static unpack(n,o,c){return e.defined("array",n),o=o??0,z(c)||(c=new p),c.x=n[o++],c.y=n[o++],c.z=n[o],c}static packArray(n,o){e.defined("array",n);let c=n.length,t=c*3;if(!z(o))o=new Array(t);else{if(!Array.isArray(o)&&o.length!==t)throw new S("If result is a typed array, it must have exactly array.length * 3 elements");o.length!==t&&(o.length=t)}for(let y=0;y<c;++y)p.pack(n[y],o,y*3);return o}static unpackArray(n,o){if(e.defined("array",n),e.typeOf.number.greaterThanOrEquals("array.length",n.length,3),n.length%3!==0)throw new S("array length must be a multiple of 3.");let c=n.length;z(o)?o.length=c/3:o=new Array(c/3);for(let t=0;t<c;t+=3){let y=t/3;o[y]=p.unpack(n,t,o[y])}return o}static maximumComponent(n){return e.typeOf.object("cartesian",n),Math.max(n.x,n.y,n.z)}static minimumComponent(n){return e.typeOf.object("cartesian",n),Math.min(n.x,n.y,n.z)}static minimumByComponent(n,o,c){return e.typeOf.object("first",n),e.typeOf.object("second",o),e.typeOf.object("result",c),c.x=Math.min(n.x,o.x),c.y=Math.min(n.y,o.y),c.z=Math.min(n.z,o.z),c}static maximumByComponent(n,o,c){return e.typeOf.object("first",n),e.typeOf.object("second",o),e.typeOf.object("result",c),c.x=Math.max(n.x,o.x),c.y=Math.max(n.y,o.y),c.z=Math.max(n.z,o.z),c}static clamp(n,o,c,t){e.typeOf.object("value",n),e.typeOf.object("min",o),e.typeOf.object("max",c),e.typeOf.object("result",t);let y=E.clamp(n.x,o.x,c.x),O=E.clamp(n.y,o.y,c.y),b=E.clamp(n.z,o.z,c.z);return t.x=y,t.y=O,t.z=b,t}static magnitudeSquared(n){return e.typeOf.object("cartesian",n),n.x*n.x+n.y*n.y+n.z*n.z}static magnitude(n){return Math.sqrt(p.magnitudeSquared(n))}static distance(n,o){return e.typeOf.object("left",n),e.typeOf.object("right",o),p.subtract(n,o,k),p.magnitude(k)}static distanceSquared(n,o){return e.typeOf.object("left",n),e.typeOf.object("right",o),p.subtract(n,o,k),p.magnitudeSquared(k)}static normalize(n,o){e.typeOf.object("cartesian",n),e.typeOf.object("result",o);let c=p.magnitude(n);if(o.x=n.x/c,o.y=n.y/c,o.z=n.z/c,isNaN(o.x)||isNaN(o.y)||isNaN(o.z))throw new S("normalized result is not a number");return o}static dot(n,o){return e.typeOf.object("left",n),e.typeOf.object("right",o),n.x*o.x+n.y*o.y+n.z*o.z}static multiplyComponents(n,o,c){return e.typeOf.object("left",n),e.typeOf.object("right",o),e.typeOf.object("result",c),c.x=n.x*o.x,c.y=n.y*o.y,c.z=n.z*o.z,c}static divideComponents(n,o,c){return e.typeOf.object("left",n),e.typeOf.object("right",o),e.typeOf.object("result",c),c.x=n.x/o.x,c.y=n.y/o.y,c.z=n.z/o.z,c}static add(n,o,c){return e.typeOf.object("left",n),e.typeOf.object("right",o),e.typeOf.object("result",c),c.x=n.x+o.x,c.y=n.y+o.y,c.z=n.z+o.z,c}static subtract(n,o,c){return e.typeOf.object("left",n),e.typeOf.object("right",o),e.typeOf.object("result",c),c.x=n.x-o.x,c.y=n.y-o.y,c.z=n.z-o.z,c}static multiplyByScalar(n,o,c){return e.typeOf.object("cartesian",n),e.typeOf.number("scalar",o),e.typeOf.object("result",c),c.x=n.x*o,c.y=n.y*o,c.z=n.z*o,c}static divideByScalar(n,o,c){return e.typeOf.object("cartesian",n),e.typeOf.number("scalar",o),e.typeOf.object("result",c),c.x=n.x/o,c.y=n.y/o,c.z=n.z/o,c}static negate(n,o){return e.typeOf.object("cartesian",n),e.typeOf.object("result",o),o.x=-n.x,o.y=-n.y,o.z=-n.z,o}static abs(n,o){return e.typeOf.object("cartesian",n),e.typeOf.object("result",o),o.x=Math.abs(n.x),o.y=Math.abs(n.y),o.z=Math.abs(n.z),o}static lerp(n,o,c,t){return e.typeOf.object("start",n),e.typeOf.object("end",o),e.typeOf.number("t",c),e.typeOf.object("result",t),p.multiplyByScalar(o,c,V),t=p.multiplyByScalar(n,1-c,t),p.add(V,t,t)}static angleBetween(n,o){e.typeOf.object("left",n),e.typeOf.object("right",o),p.normalize(n,U),p.normalize(o,L);let c=p.dot(U,L),t=p.magnitude(p.cross(U,L,U));return Math.atan2(t,c)}static mostOrthogonalAxis(n,o){e.typeOf.object("cartesian",n),e.typeOf.object("result",o);let c=p.normalize(n,I);return p.abs(c,c),c.x<=c.y?c.x<=c.z?o=p.clone(p.UNIT_X,o):o=p.clone(p.UNIT_Z,o):c.y<=c.z?o=p.clone(p.UNIT_Y,o):o=p.clone(p.UNIT_Z,o),o}static projectVector(n,o,c){e.defined("a",n),e.defined("b",o),e.defined("result",c);let t=p.dot(n,o)/p.dot(o,o);return p.multiplyByScalar(o,t,c)}static equals(n,o){return n===o||z(n)&&z(o)&&n.x===o.x&&n.y===o.y&&n.z===o.z}static equalsArray(n,o,c){return n.x===o[c]&&n.y===o[c+1]&&n.z===o[c+2]}static equalsEpsilon(n,o,c,t){return n===o||z(n)&&z(o)&&E.equalsEpsilon(n.x,o.x,c,t)&&E.equalsEpsilon(n.y,o.y,c,t)&&E.equalsEpsilon(n.z,o.z,c,t)}static cross(n,o,c){e.typeOf.object("left",n),e.typeOf.object("right",o),e.typeOf.object("result",c);let t=n.x,y=n.y,O=n.z,b=o.x,f=o.y,j=o.z,w=y*j-O*f,M=O*b-t*j,d=t*f-y*b;return c.x=w,c.y=M,c.z=d,c}static midpoint(n,o,c){return e.typeOf.object("left",n),e.typeOf.object("right",o),e.typeOf.object("result",c),c.x=(n.x+o.x)*.5,c.y=(n.y+o.y)*.5,c.z=(n.z+o.z)*.5,c}static fromDegrees(n,o,c,t,y){return e.typeOf.number("longitude",n),e.typeOf.number("latitude",o),n=E.toRadians(n),o=E.toRadians(o),p.fromRadians(n,o,c,t,y)}static fromRadians(n,o,c,t,y){e.typeOf.number("longitude",n),e.typeOf.number("latitude",o),c=c??0;let O=z(t)?t.radiiSquared:p._ellipsoidRadiiSquared,b=Math.cos(o);A.x=b*Math.cos(n),A.y=b*Math.sin(n),A.z=Math.sin(o),A=p.normalize(A,A),p.multiplyComponents(O,A,T);let f=Math.sqrt(p.dot(A,T));return T=p.divideByScalar(T,f,T),A=p.multiplyByScalar(A,c,A),z(y)||(y=new p),p.add(T,A,y)}static fromDegreesArray(n,o,c){if(e.defined("coordinates",n),n.length<2||n.length%2!==0)throw new S("the number of coordinates must be a multiple of 2 and at least 2");let t=n.length;z(c)?c.length=t/2:c=new Array(t/2);for(let y=0;y<t;y+=2){let O=n[y],b=n[y+1],f=y/2;c[f]=p.fromDegrees(O,b,0,o,c[f])}return c}static fromRadiansArray(n,o,c){if(e.defined("coordinates",n),n.length<2||n.length%2!==0)throw new S("the number of coordinates must be a multiple of 2 and at least 2");let t=n.length;z(c)?c.length=t/2:c=new Array(t/2);for(let y=0;y<t;y+=2){let O=n[y],b=n[y+1],f=y/2;c[f]=p.fromRadians(O,b,0,o,c[f])}return c}static fromDegreesArrayHeights(n,o,c){if(e.defined("coordinates",n),n.length<3||n.length%3!==0)throw new S("the number of coordinates must be a multiple of 3 and at least 3");let t=n.length;z(c)?c.length=t/3:c=new Array(t/3);for(let y=0;y<t;y+=3){let O=n[y],b=n[y+1],f=n[y+2],j=y/3;c[j]=p.fromDegrees(O,b,f,o,c[j])}return c}static fromRadiansArrayHeights(n,o,c){if(e.defined("coordinates",n),n.length<3||n.length%3!==0)throw new S("the number of coordinates must be a multiple of 3 and at least 3");let t=n.length;z(c)?c.length=t/3:c=new Array(t/3);for(let y=0;y<t;y+=3){let O=n[y],b=n[y+1],f=n[y+2],j=y/3;c[j]=p.fromRadians(O,b,f,o,c[j])}return c}clone(n){return p.clone(this,n)}equals(n){return p.equals(this,n)}equalsEpsilon(n,o,c){return p.equalsEpsilon(this,n,o,c)}toString(){return`(${this.x}, ${this.y}, ${this.z})`}};m.fromCartesian4=m.clone;m.packedLength=3;m.fromArray=m.unpack;var k=new m,V=new m,U=new m,L=new m,I=new m,A=new m,T=new m;m._ellipsoidRadiiSquared=new m(6378137*6378137,6378137*6378137,6356752314245179e-9*6356752314245179e-9);m.ZERO=Object.freeze(new m(0,0,0));m.ONE=Object.freeze(new m(1,1,1));m.UNIT_X=Object.freeze(new m(1,0,0));m.UNIT_Y=Object.freeze(new m(0,1,0));m.UNIT_Z=Object.freeze(new m(0,0,1));var R=m;var h=class p{constructor(n,o,c,t,y,O,b,f,j){this[0]=n??0,this[1]=t??0,this[2]=b??0,this[3]=o??0,this[4]=y??0,this[5]=f??0,this[6]=c??0,this[7]=O??0,this[8]=j??0}static pack(n,o,c){return e.typeOf.object("value",n),e.defined("array",o),c=c??0,o[c++]=n[0],o[c++]=n[1],o[c++]=n[2],o[c++]=n[3],o[c++]=n[4],o[c++]=n[5],o[c++]=n[6],o[c++]=n[7],o[c++]=n[8],o}static unpack(n,o,c){return e.defined("array",n),o=o??0,z(c)||(c=new p),c[0]=n[o++],c[1]=n[o++],c[2]=n[o++],c[3]=n[o++],c[4]=n[o++],c[5]=n[o++],c[6]=n[o++],c[7]=n[o++],c[8]=n[o++],c}static packArray(n,o){e.defined("array",n);let c=n.length,t=c*9;if(!z(o))o=new Array(t);else{if(!Array.isArray(o)&&o.length!==t)throw new S("If result is a typed array, it must have exactly array.length * 9 elements");o.length!==t&&(o.length=t)}for(let y=0;y<c;++y)p.pack(n[y],o,y*9);return o}static unpackArray(n,o){if(e.defined("array",n),e.typeOf.number.greaterThanOrEquals("array.length",n.length,9),n.length%9!==0)throw new S("array length must be a multiple of 9.");let c=n.length;z(o)?o.length=c/9:o=new Array(c/9);for(let t=0;t<c;t+=9){let y=t/9;o[y]=p.unpack(n,t,o[y])}return o}static clone(n,o){if(z(n))return z(o)?(o[0]=n[0],o[1]=n[1],o[2]=n[2],o[3]=n[3],o[4]=n[4],o[5]=n[5],o[6]=n[6],o[7]=n[7],o[8]=n[8],o):new p(n[0],n[3],n[6],n[1],n[4],n[7],n[2],n[5],n[8])}static fromColumnMajorArray(n,o){return e.defined("values",n),p.clone(n,o)}static fromRowMajorArray(n,o){return e.defined("values",n),z(o)?(o[0]=n[0],o[1]=n[3],o[2]=n[6],o[3]=n[1],o[4]=n[4],o[5]=n[7],o[6]=n[2],o[7]=n[5],o[8]=n[8],o):new p(n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7],n[8])}static fromQuaternion(n,o){e.typeOf.object("quaternion",n);let c=n.x*n.x,t=n.x*n.y,y=n.x*n.z,O=n.x*n.w,b=n.y*n.y,f=n.y*n.z,j=n.y*n.w,w=n.z*n.z,M=n.z*n.w,d=n.w*n.w,a=c-b-w+d,N=2*(t-M),q=2*(y+j),C=2*(t+M),i=-c+b-w+d,Z=2*(f-O),W=2*(y-j),X=2*(f+O),P=-c-b+w+d;return z(o)?(o[0]=a,o[1]=C,o[2]=W,o[3]=N,o[4]=i,o[5]=X,o[6]=q,o[7]=Z,o[8]=P,o):new p(a,N,q,C,i,Z,W,X,P)}static fromHeadingPitchRoll(n,o){e.typeOf.object("headingPitchRoll",n);let c=Math.cos(-n.pitch),t=Math.cos(-n.heading),y=Math.cos(n.roll),O=Math.sin(-n.pitch),b=Math.sin(-n.heading),f=Math.sin(n.roll),j=c*t,w=-y*b+f*O*t,M=f*b+y*O*t,d=c*b,a=y*t+f*O*b,N=-f*t+y*O*b,q=-O,C=f*c,i=y*c;return z(o)?(o[0]=j,o[1]=d,o[2]=q,o[3]=w,o[4]=a,o[5]=C,o[6]=M,o[7]=N,o[8]=i,o):new p(j,w,M,d,a,N,q,C,i)}static fromScale(n,o){return e.typeOf.object("scale",n),z(o)?(o[0]=n.x,o[1]=0,o[2]=0,o[3]=0,o[4]=n.y,o[5]=0,o[6]=0,o[7]=0,o[8]=n.z,o):new p(n.x,0,0,0,n.y,0,0,0,n.z)}static fromUniformScale(n,o){return e.typeOf.number("scale",n),z(o)?(o[0]=n,o[1]=0,o[2]=0,o[3]=0,o[4]=n,o[5]=0,o[6]=0,o[7]=0,o[8]=n,o):new p(n,0,0,0,n,0,0,0,n)}static fromCrossProduct(n,o){return e.typeOf.object("vector",n),z(o)?(o[0]=0,o[1]=n.z,o[2]=-n.y,o[3]=-n.z,o[4]=0,o[5]=n.x,o[6]=n.y,o[7]=-n.x,o[8]=0,o):new p(0,-n.z,n.y,n.z,0,-n.x,-n.y,n.x,0)}static fromRotationX(n,o){e.typeOf.number("angle",n);let c=Math.cos(n),t=Math.sin(n);return z(o)?(o[0]=1,o[1]=0,o[2]=0,o[3]=0,o[4]=c,o[5]=t,o[6]=0,o[7]=-t,o[8]=c,o):new p(1,0,0,0,c,-t,0,t,c)}static fromRotationY(n,o){e.typeOf.number("angle",n);let c=Math.cos(n),t=Math.sin(n);return z(o)?(o[0]=c,o[1]=0,o[2]=-t,o[3]=0,o[4]=1,o[5]=0,o[6]=t,o[7]=0,o[8]=c,o):new p(c,0,t,0,1,0,-t,0,c)}static fromRotationZ(n,o){e.typeOf.number("angle",n);let c=Math.cos(n),t=Math.sin(n);return z(o)?(o[0]=c,o[1]=t,o[2]=0,o[3]=-t,o[4]=c,o[5]=0,o[6]=0,o[7]=0,o[8]=1,o):new p(c,-t,0,t,c,0,0,0,1)}static toArray(n,o){return e.typeOf.object("matrix",n),z(o)?(o[0]=n[0],o[1]=n[1],o[2]=n[2],o[3]=n[3],o[4]=n[4],o[5]=n[5],o[6]=n[6],o[7]=n[7],o[8]=n[8],o):[n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7],n[8]]}static getElementIndex(n,o){return e.typeOf.number.greaterThanOrEquals("row",o,0),e.typeOf.number.lessThanOrEquals("row",o,2),e.typeOf.number.greaterThanOrEquals("column",n,0),e.typeOf.number.lessThanOrEquals("column",n,2),n*3+o}static getColumn(n,o,c){e.typeOf.object("matrix",n),e.typeOf.number.greaterThanOrEquals("index",o,0),e.typeOf.number.lessThanOrEquals("index",o,2),e.typeOf.object("result",c);let t=o*3,y=n[t],O=n[t+1],b=n[t+2];return c.x=y,c.y=O,c.z=b,c}static setColumn(n,o,c,t){e.typeOf.object("matrix",n),e.typeOf.number.greaterThanOrEquals("index",o,0),e.typeOf.number.lessThanOrEquals("index",o,2),e.typeOf.object("cartesian",c),e.typeOf.object("result",t),t=p.clone(n,t);let y=o*3;return t[y]=c.x,t[y+1]=c.y,t[y+2]=c.z,t}static getRow(n,o,c){e.typeOf.object("matrix",n),e.typeOf.number.greaterThanOrEquals("index",o,0),e.typeOf.number.lessThanOrEquals("index",o,2),e.typeOf.object("result",c);let t=n[o],y=n[o+3],O=n[o+6];return c.x=t,c.y=y,c.z=O,c}static setRow(n,o,c,t){return e.typeOf.object("matrix",n),e.typeOf.number.greaterThanOrEquals("index",o,0),e.typeOf.number.lessThanOrEquals("index",o,2),e.typeOf.object("cartesian",c),e.typeOf.object("result",t),t=p.clone(n,t),t[o]=c.x,t[o+3]=c.y,t[o+6]=c.z,t}static setScale(n,o,c){e.typeOf.object("matrix",n),e.typeOf.object("scale",o),e.typeOf.object("result",c);let t=p.getScale(n,J),y=o.x/t.x,O=o.y/t.y,b=o.z/t.z;return c[0]=n[0]*y,c[1]=n[1]*y,c[2]=n[2]*y,c[3]=n[3]*O,c[4]=n[4]*O,c[5]=n[5]*O,c[6]=n[6]*b,c[7]=n[7]*b,c[8]=n[8]*b,c}static setUniformScale(n,o,c){e.typeOf.object("matrix",n),e.typeOf.number("scale",o),e.typeOf.object("result",c);let t=p.getScale(n,K),y=o/t.x,O=o/t.y,b=o/t.z;return c[0]=n[0]*y,c[1]=n[1]*y,c[2]=n[2]*y,c[3]=n[3]*O,c[4]=n[4]*O,c[5]=n[5]*O,c[6]=n[6]*b,c[7]=n[7]*b,c[8]=n[8]*b,c}static getScale(n,o){return e.typeOf.object("matrix",n),e.typeOf.object("result",o),o.x=R.magnitude(R.fromElements(n[0],n[1],n[2],D)),o.y=R.magnitude(R.fromElements(n[3],n[4],n[5],D)),o.z=R.magnitude(R.fromElements(n[6],n[7],n[8],D)),o}static getMaximumScale(n){return p.getScale(n,F),R.maximumComponent(F)}static setRotation(n,o,c){e.typeOf.object("matrix",n),e.typeOf.object("result",c);let t=p.getScale(n,Q);return c[0]=o[0]*t.x,c[1]=o[1]*t.x,c[2]=o[2]*t.x,c[3]=o[3]*t.y,c[4]=o[4]*t.y,c[5]=o[5]*t.y,c[6]=o[6]*t.z,c[7]=o[7]*t.z,c[8]=o[8]*t.z,c}static getRotation(n,o){e.typeOf.object("matrix",n),e.typeOf.object("result",o);let c=p.getScale(n,G);return o[0]=n[0]/c.x,o[1]=n[1]/c.x,o[2]=n[2]/c.x,o[3]=n[3]/c.y,o[4]=n[4]/c.y,o[5]=n[5]/c.y,o[6]=n[6]/c.z,o[7]=n[7]/c.z,o[8]=n[8]/c.z,o}static multiply(n,o,c){e.typeOf.object("left",n),e.typeOf.object("right",o),e.typeOf.object("result",c);let t=n[0]*o[0]+n[3]*o[1]+n[6]*o[2],y=n[1]*o[0]+n[4]*o[1]+n[7]*o[2],O=n[2]*o[0]+n[5]*o[1]+n[8]*o[2],b=n[0]*o[3]+n[3]*o[4]+n[6]*o[5],f=n[1]*o[3]+n[4]*o[4]+n[7]*o[5],j=n[2]*o[3]+n[5]*o[4]+n[8]*o[5],w=n[0]*o[6]+n[3]*o[7]+n[6]*o[8],M=n[1]*o[6]+n[4]*o[7]+n[7]*o[8],d=n[2]*o[6]+n[5]*o[7]+n[8]*o[8];return c[0]=t,c[1]=y,c[2]=O,c[3]=b,c[4]=f,c[5]=j,c[6]=w,c[7]=M,c[8]=d,c}static add(n,o,c){return e.typeOf.object("left",n),e.typeOf.object("right",o),e.typeOf.object("result",c),c[0]=n[0]+o[0],c[1]=n[1]+o[1],c[2]=n[2]+o[2],c[3]=n[3]+o[3],c[4]=n[4]+o[4],c[5]=n[5]+o[5],c[6]=n[6]+o[6],c[7]=n[7]+o[7],c[8]=n[8]+o[8],c}static subtract(n,o,c){return e.typeOf.object("left",n),e.typeOf.object("right",o),e.typeOf.object("result",c),c[0]=n[0]-o[0],c[1]=n[1]-o[1],c[2]=n[2]-o[2],c[3]=n[3]-o[3],c[4]=n[4]-o[4],c[5]=n[5]-o[5],c[6]=n[6]-o[6],c[7]=n[7]-o[7],c[8]=n[8]-o[8],c}static multiplyByVector(n,o,c){e.typeOf.object("matrix",n),e.typeOf.object("cartesian",o),e.typeOf.object("result",c);let t=o.x,y=o.y,O=o.z,b=n[0]*t+n[3]*y+n[6]*O,f=n[1]*t+n[4]*y+n[7]*O,j=n[2]*t+n[5]*y+n[8]*O;return c.x=b,c.y=f,c.z=j,c}static multiplyByScalar(n,o,c){return e.typeOf.object("matrix",n),e.typeOf.number("scalar",o),e.typeOf.object("result",c),c[0]=n[0]*o,c[1]=n[1]*o,c[2]=n[2]*o,c[3]=n[3]*o,c[4]=n[4]*o,c[5]=n[5]*o,c[6]=n[6]*o,c[7]=n[7]*o,c[8]=n[8]*o,c}static multiplyByScale(n,o,c){return e.typeOf.object("matrix",n),e.typeOf.object("scale",o),e.typeOf.object("result",c),c[0]=n[0]*o.x,c[1]=n[1]*o.x,c[2]=n[2]*o.x,c[3]=n[3]*o.y,c[4]=n[4]*o.y,c[5]=n[5]*o.y,c[6]=n[6]*o.z,c[7]=n[7]*o.z,c[8]=n[8]*o.z,c}static multiplyByUniformScale(n,o,c){return e.typeOf.object("matrix",n),e.typeOf.number("scale",o),e.typeOf.object("result",c),c[0]=n[0]*o,c[1]=n[1]*o,c[2]=n[2]*o,c[3]=n[3]*o,c[4]=n[4]*o,c[5]=n[5]*o,c[6]=n[6]*o,c[7]=n[7]*o,c[8]=n[8]*o,c}static negate(n,o){return e.typeOf.object("matrix",n),e.typeOf.object("result",o),o[0]=-n[0],o[1]=-n[1],o[2]=-n[2],o[3]=-n[3],o[4]=-n[4],o[5]=-n[5],o[6]=-n[6],o[7]=-n[7],o[8]=-n[8],o}static transpose(n,o){e.typeOf.object("matrix",n),e.typeOf.object("result",o);let c=n[0],t=n[3],y=n[6],O=n[1],b=n[4],f=n[7],j=n[2],w=n[5],M=n[8];return o[0]=c,o[1]=t,o[2]=y,o[3]=O,o[4]=b,o[5]=f,o[6]=j,o[7]=w,o[8]=M,o}static computeEigenDecomposition(n,o){e.typeOf.object("matrix",n);let c=E.EPSILON20,t=10,y=0,O=0;z(o)||(o={});let b=o.unitary=p.clone(p.IDENTITY,o.unitary),f=o.diagonal=p.clone(n,o.diagonal),j=c*v(f);for(;O<t&&x(f)>j;)_(f,B),p.transpose(B,H),p.multiply(f,B,f),p.multiply(H,f,f),p.multiply(b,B,b),++y>2&&(++O,y=0);return o}static abs(n,o){return e.typeOf.object("matrix",n),e.typeOf.object("result",o),o[0]=Math.abs(n[0]),o[1]=Math.abs(n[1]),o[2]=Math.abs(n[2]),o[3]=Math.abs(n[3]),o[4]=Math.abs(n[4]),o[5]=Math.abs(n[5]),o[6]=Math.abs(n[6]),o[7]=Math.abs(n[7]),o[8]=Math.abs(n[8]),o}static determinant(n){e.typeOf.object("matrix",n);let o=n[0],c=n[3],t=n[6],y=n[1],O=n[4],b=n[7],f=n[2],j=n[5],w=n[8];return o*(O*w-j*b)+y*(j*t-c*w)+f*(c*b-O*t)}static inverse(n,o){e.typeOf.object("matrix",n),e.typeOf.object("result",o);let c=n[0],t=n[1],y=n[2],O=n[3],b=n[4],f=n[5],j=n[6],w=n[7],M=n[8],d=p.determinant(n);if(Math.abs(d)<=E.EPSILON15)throw new S("matrix is not invertible");o[0]=b*M-w*f,o[1]=w*y-t*M,o[2]=t*f-b*y,o[3]=j*f-O*M,o[4]=c*M-j*y,o[5]=O*y-c*f,o[6]=O*w-j*b,o[7]=j*t-c*w,o[8]=c*b-O*t;let a=1/d;return p.multiplyByScalar(o,a,o)}static inverseTranspose(n,o){return e.typeOf.object("matrix",n),e.typeOf.object("result",o),p.inverse(p.transpose(n,s),o)}static equals(n,o){return n===o||z(n)&&z(o)&&n[0]===o[0]&&n[1]===o[1]&&n[2]===o[2]&&n[3]===o[3]&&n[4]===o[4]&&n[5]===o[5]&&n[6]===o[6]&&n[7]===o[7]&&n[8]===o[8]}static equalsEpsilon(n,o,c){return c=c??0,n===o||z(n)&&z(o)&&Math.abs(n[0]-o[0])<=c&&Math.abs(n[1]-o[1])<=c&&Math.abs(n[2]-o[2])<=c&&Math.abs(n[3]-o[3])<=c&&Math.abs(n[4]-o[4])<=c&&Math.abs(n[5]-o[5])<=c&&Math.abs(n[6]-o[6])<=c&&Math.abs(n[7]-o[7])<=c&&Math.abs(n[8]-o[8])<=c}get length(){return p.packedLength}clone(n){return p.clone(this,n)}equals(n){return p.equals(this,n)}static equalsArray(n,o,c){return n[0]===o[c]&&n[1]===o[c+1]&&n[2]===o[c+2]&&n[3]===o[c+3]&&n[4]===o[c+4]&&n[5]===o[c+5]&&n[6]===o[c+6]&&n[7]===o[c+7]&&n[8]===o[c+8]}equalsEpsilon(n,o){return p.equalsEpsilon(this,n,o)}toString(){return`(${this[0]}, ${this[3]}, ${this[6]})
|
|
27
|
-
(${this[1]}, ${this[4]}, ${this[7]})
|
|
28
|
-
(${this[2]}, ${this[5]}, ${this[8]})`}};h.packedLength=9;h.fromArray=h.unpack;h.IDENTITY=Object.freeze(new h(1,0,0,0,1,0,0,0,1));h.ZERO=Object.freeze(new h(0,0,0,0,0,0,0,0,0));h.COLUMN0ROW0=0;h.COLUMN0ROW1=1;h.COLUMN0ROW2=2;h.COLUMN1ROW0=3;h.COLUMN1ROW1=4;h.COLUMN1ROW2=5;h.COLUMN2ROW0=6;h.COLUMN2ROW1=7;h.COLUMN2ROW2=8;var J=new R,K=new R,D=new R,F=new R,Q=new R,G=new R,B=new h,H=new h,s=new h;function v(p){let n=0;for(let o=0;o<9;++o){let c=p[o];n+=c*c}return Math.sqrt(n)}var Y=[1,0,0],g=[2,2,1];function x(p){let n=0;for(let o=0;o<3;++o){let c=p[h.getElementIndex(g[o],Y[o])];n+=2*c*c}return Math.sqrt(n)}function _(p,n){let o=E.EPSILON15,c=0,t=1;for(let j=0;j<3;++j){let w=Math.abs(p[h.getElementIndex(g[j],Y[j])]);w>c&&(t=j,c=w)}let y=1,O=0,b=Y[t],f=g[t];if(Math.abs(p[h.getElementIndex(f,b)])>o){let j=p[h.getElementIndex(f,f)],w=p[h.getElementIndex(b,b)],M=p[h.getElementIndex(f,b)],d=(j-w)/2/M,a;d<0?a=-1/(-d+Math.sqrt(1+d*d)):a=1/(d+Math.sqrt(1+d*d)),y=1/Math.sqrt(1+a*a),O=a*y}return n=h.clone(h.IDENTITY,n),n[h.getElementIndex(b,b)]=n[h.getElementIndex(f,f)]=y,n[h.getElementIndex(f,b)]=O,n[h.getElementIndex(b,f)]=-O,n}var On=h;var $={};$.EMPTY_OBJECT=Object.freeze({});$.EMPTY_ARRAY=Object.freeze([]);var fn=$;export{R as a,On as b,fn as c};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.142.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 g}from"./chunk-XEBZTQHW.js";import{a as d}from"./chunk-6LZUEMFX.js";import{j as x}from"./chunk-AZCCS55A.js";import{a as p,b as M,c as O}from"./chunk-ZQTDDQLY.js";import{b as m}from"./chunk-WM6AKY6B.js";import{f}from"./chunk-6K4BWAPV.js";function n(i,h,o,t){this.x=i??0,this.y=h??0,this.width=o??0,this.height=t??0}n.packedLength=4;n.pack=function(i,h,o){return m.typeOf.object("value",i),m.defined("array",h),o=o??0,h[o++]=i.x,h[o++]=i.y,h[o++]=i.width,h[o]=i.height,h};n.unpack=function(i,h,o){return m.defined("array",i),h=h??0,f(o)||(o=new n),o.x=i[h++],o.y=i[h++],o.width=i[h++],o.height=i[h],o};n.fromPoints=function(i,h){if(f(h)||(h=new n),!f(i)||i.length===0)return h.x=0,h.y=0,h.width=0,h.height=0,h;let o=i.length,t=i[0].x,c=i[0].y,e=i[0].x,w=i[0].y;for(let y=1;y<o;y++){let R=i[y],b=R.x,j=R.y;t=Math.min(b,t),e=Math.max(b,e),c=Math.min(j,c),w=Math.max(j,w)}return h.x=t,h.y=c,h.width=e-t,h.height=w-c,h};var L=new g,X=new p,Y=new p;n.fromRectangle=function(i,h,o){if(f(o)||(o=new n),!f(i))return o.x=0,o.y=0,o.width=0,o.height=0,o;L._ellipsoid=O.default,h=h??L;let t=h.project(x.southwest(i,X)),c=h.project(x.northeast(i,Y));return M.subtract(c,t,c),o.x=t.x,o.y=t.y,o.width=c.x,o.height=c.y,o};n.clone=function(i,h){if(f(i))return f(h)?(h.x=i.x,h.y=i.y,h.width=i.width,h.height=i.height,h):new n(i.x,i.y,i.width,i.height)};n.union=function(i,h,o){m.typeOf.object("left",i),m.typeOf.object("right",h),f(o)||(o=new n);let t=Math.min(i.x,h.x),c=Math.min(i.y,h.y),e=Math.max(i.x+i.width,h.x+h.width),w=Math.max(i.y+i.height,h.y+h.height);return o.x=t,o.y=c,o.width=e-t,o.height=w-c,o};n.expand=function(i,h,o){m.typeOf.object("rectangle",i),m.typeOf.object("point",h),o=n.clone(i,o);let t=h.x-o.x,c=h.y-o.y;return t>o.width?o.width=t:t<0&&(o.width-=t,o.x=h.x),c>o.height?o.height=c:c<0&&(o.height-=c,o.y=h.y),o};n.intersect=function(i,h){m.typeOf.object("left",i),m.typeOf.object("right",h);let o=i.x,t=i.y,c=h.x,e=h.y;return o>c+h.width||o+i.width<c||t+i.height<e||t>e+h.height?d.OUTSIDE:d.INTERSECTING};n.equals=function(i,h){return i===h||f(i)&&f(h)&&i.x===h.x&&i.y===h.y&&i.width===h.width&&i.height===h.height};n.prototype.clone=function(i){return n.clone(this,i)};n.prototype.intersect=function(i){return n.intersect(this,i)};n.prototype.equals=function(i){return n.equals(this,i)};var S=n;export{S as a};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.142.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 h1}from"./chunk-VXS2FTO4.js";import{a as W,b as u,c as z1}from"./chunk-U4VWQPTS.js";import{a as G}from"./chunk-GZABERXA.js";import{a as m,b as p}from"./chunk-WM6AKY6B.js";import{f as U}from"./chunk-6K4BWAPV.js";var V=class f{constructor(c,o,n,y){this.x=c??0,this.y=o??0,this.z=n??0,this.w=y??0}static fromElements(c,o,n,y,O){return U(O)?(O.x=c,O.y=o,O.z=n,O.w=y,O):new f(c,o,n,y)}static fromColor(c,o){return p.typeOf.object("color",c),U(o)?(o.x=c.red,o.y=c.green,o.z=c.blue,o.w=c.alpha,o):new f(c.red,c.green,c.blue,c.alpha)}static clone(c,o){if(U(c))return U(o)?(o.x=c.x,o.y=c.y,o.z=c.z,o.w=c.w,o):new f(c.x,c.y,c.z,c.w)}static pack(c,o,n){return p.typeOf.object("value",c),p.defined("array",o),n=n??0,o[n++]=c.x,o[n++]=c.y,o[n++]=c.z,o[n]=c.w,o}static unpack(c,o,n){return p.defined("array",c),o=o??0,U(n)||(n=new f),n.x=c[o++],n.y=c[o++],n.z=c[o++],n.w=c[o],n}static packArray(c,o){p.defined("array",c);let n=c.length,y=n*4;if(!U(o))o=new Array(y);else{if(!Array.isArray(o)&&o.length!==y)throw new m("If result is a typed array, it must have exactly array.length * 4 elements");o.length!==y&&(o.length=y)}for(let O=0;O<n;++O)f.pack(c[O],o,O*4);return o}static unpackArray(c,o){if(p.defined("array",c),p.typeOf.number.greaterThanOrEquals("array.length",c.length,4),c.length%4!==0)throw new m("array length must be a multiple of 4.");let n=c.length;U(o)?o.length=n/4:o=new Array(n/4);for(let y=0;y<n;y+=4){let O=y/4;o[O]=f.unpack(c,y,o[O])}return o}static maximumComponent(c){return p.typeOf.object("cartesian",c),Math.max(c.x,c.y,c.z,c.w)}static minimumComponent(c){return p.typeOf.object("cartesian",c),Math.min(c.x,c.y,c.z,c.w)}static minimumByComponent(c,o,n){return p.typeOf.object("first",c),p.typeOf.object("second",o),p.typeOf.object("result",n),n.x=Math.min(c.x,o.x),n.y=Math.min(c.y,o.y),n.z=Math.min(c.z,o.z),n.w=Math.min(c.w,o.w),n}static maximumByComponent(c,o,n){return p.typeOf.object("first",c),p.typeOf.object("second",o),p.typeOf.object("result",n),n.x=Math.max(c.x,o.x),n.y=Math.max(c.y,o.y),n.z=Math.max(c.z,o.z),n.w=Math.max(c.w,o.w),n}static clamp(c,o,n,y){p.typeOf.object("value",c),p.typeOf.object("min",o),p.typeOf.object("max",n),p.typeOf.object("result",y);let O=G.clamp(c.x,o.x,n.x),w=G.clamp(c.y,o.y,n.y),b=G.clamp(c.z,o.z,n.z),j=G.clamp(c.w,o.w,n.w);return y.x=O,y.y=w,y.z=b,y.w=j,y}static magnitudeSquared(c){return p.typeOf.object("cartesian",c),c.x*c.x+c.y*c.y+c.z*c.z+c.w*c.w}static magnitude(c){return Math.sqrt(f.magnitudeSquared(c))}static distance(c,o){return p.typeOf.object("left",c),p.typeOf.object("right",o),f.subtract(c,o,r),f.magnitude(r)}static distanceSquared(c,o){return p.typeOf.object("left",c),p.typeOf.object("right",o),f.subtract(c,o,r),f.magnitudeSquared(r)}static normalize(c,o){p.typeOf.object("cartesian",c),p.typeOf.object("result",o);let n=f.magnitude(c);if(o.x=c.x/n,o.y=c.y/n,o.z=c.z/n,o.w=c.w/n,isNaN(o.x)||isNaN(o.y)||isNaN(o.z)||isNaN(o.w))throw new m("normalized result is not a number");return o}static dot(c,o){return p.typeOf.object("left",c),p.typeOf.object("right",o),c.x*o.x+c.y*o.y+c.z*o.z+c.w*o.w}static multiplyComponents(c,o,n){return p.typeOf.object("left",c),p.typeOf.object("right",o),p.typeOf.object("result",n),n.x=c.x*o.x,n.y=c.y*o.y,n.z=c.z*o.z,n.w=c.w*o.w,n}static divideComponents(c,o,n){return p.typeOf.object("left",c),p.typeOf.object("right",o),p.typeOf.object("result",n),n.x=c.x/o.x,n.y=c.y/o.y,n.z=c.z/o.z,n.w=c.w/o.w,n}static add(c,o,n){return p.typeOf.object("left",c),p.typeOf.object("right",o),p.typeOf.object("result",n),n.x=c.x+o.x,n.y=c.y+o.y,n.z=c.z+o.z,n.w=c.w+o.w,n}static subtract(c,o,n){return p.typeOf.object("left",c),p.typeOf.object("right",o),p.typeOf.object("result",n),n.x=c.x-o.x,n.y=c.y-o.y,n.z=c.z-o.z,n.w=c.w-o.w,n}static multiplyByScalar(c,o,n){return p.typeOf.object("cartesian",c),p.typeOf.number("scalar",o),p.typeOf.object("result",n),n.x=c.x*o,n.y=c.y*o,n.z=c.z*o,n.w=c.w*o,n}static divideByScalar(c,o,n){return p.typeOf.object("cartesian",c),p.typeOf.number("scalar",o),p.typeOf.object("result",n),n.x=c.x/o,n.y=c.y/o,n.z=c.z/o,n.w=c.w/o,n}static negate(c,o){return p.typeOf.object("cartesian",c),p.typeOf.object("result",o),o.x=-c.x,o.y=-c.y,o.z=-c.z,o.w=-c.w,o}static abs(c,o){return p.typeOf.object("cartesian",c),p.typeOf.object("result",o),o.x=Math.abs(c.x),o.y=Math.abs(c.y),o.z=Math.abs(c.z),o.w=Math.abs(c.w),o}static lerp(c,o,n,y){return p.typeOf.object("start",c),p.typeOf.object("end",o),p.typeOf.number("t",n),p.typeOf.object("result",y),f.multiplyByScalar(o,n,R1),y=f.multiplyByScalar(c,1-n,y),f.add(R1,y,y)}static mostOrthogonalAxis(c,o){p.typeOf.object("cartesian",c),p.typeOf.object("result",o);let n=f.normalize(c,U1);return f.abs(n,n),n.x<=n.y?n.x<=n.z?n.x<=n.w?o=f.clone(f.UNIT_X,o):o=f.clone(f.UNIT_W,o):n.z<=n.w?o=f.clone(f.UNIT_Z,o):o=f.clone(f.UNIT_W,o):n.y<=n.z?n.y<=n.w?o=f.clone(f.UNIT_Y,o):o=f.clone(f.UNIT_W,o):n.z<=n.w?o=f.clone(f.UNIT_Z,o):o=f.clone(f.UNIT_W,o),o}static equals(c,o){return c===o||U(c)&&U(o)&&c.x===o.x&&c.y===o.y&&c.z===o.z&&c.w===o.w}static equalsArray(c,o,n){return c.x===o[n]&&c.y===o[n+1]&&c.z===o[n+2]&&c.w===o[n+3]}static equalsEpsilon(c,o,n,y){return c===o||U(c)&&U(o)&&G.equalsEpsilon(c.x,o.x,n,y)&&G.equalsEpsilon(c.y,o.y,n,y)&&G.equalsEpsilon(c.z,o.z,n,y)&&G.equalsEpsilon(c.w,o.w,n,y)}clone(c){return f.clone(this,c)}equals(c){return f.equals(this,c)}equalsEpsilon(c,o,n){return f.equalsEpsilon(this,c,o,n)}toString(){return`(${this.x}, ${this.y}, ${this.z}, ${this.w})`}static packFloat(c,o){return p.typeOf.number("value",c),U(o)||(o=new f),f1[0]=c,M1?(o.x=F[0],o.y=F[1],o.z=F[2],o.w=F[3]):(o.x=F[3],o.y=F[2],o.z=F[1],o.w=F[0]),o}static unpackFloat(c){return p.typeOf.object("packedFloat",c),M1?(F[0]=c.x,F[1]=c.y,F[2]=c.z,F[3]=c.w):(F[0]=c.w,F[1]=c.z,F[2]=c.y,F[3]=c.x),f1[0]}};V.packedLength=4;V.fromArray=V.unpack;var r=new V,R1=new V,U1=new V;V.ZERO=Object.freeze(new V(0,0,0,0));V.ONE=Object.freeze(new V(1,1,1,1));V.UNIT_X=Object.freeze(new V(1,0,0,0));V.UNIT_Y=Object.freeze(new V(0,1,0,0));V.UNIT_Z=Object.freeze(new V(0,0,1,0));V.UNIT_W=Object.freeze(new V(0,0,0,1));var f1=new Float32Array(1),F=new Uint8Array(f1.buffer),S1=new Uint32Array([287454020]),d1=new Uint8Array(S1.buffer),M1=d1[0]===68,c1=V;var L=class f{constructor(c,o,n,y,O,w,b,j,z,h,R,M,T,C,q,N){this[0]=c??0,this[1]=O??0,this[2]=z??0,this[3]=T??0,this[4]=o??0,this[5]=w??0,this[6]=h??0,this[7]=C??0,this[8]=n??0,this[9]=b??0,this[10]=R??0,this[11]=q??0,this[12]=y??0,this[13]=j??0,this[14]=M??0,this[15]=N??0}static pack(c,o,n){return p.typeOf.object("value",c),p.defined("array",o),n=n??0,o[n++]=c[0],o[n++]=c[1],o[n++]=c[2],o[n++]=c[3],o[n++]=c[4],o[n++]=c[5],o[n++]=c[6],o[n++]=c[7],o[n++]=c[8],o[n++]=c[9],o[n++]=c[10],o[n++]=c[11],o[n++]=c[12],o[n++]=c[13],o[n++]=c[14],o[n]=c[15],o}static unpack(c,o,n){return p.defined("array",c),o=o??0,U(n)||(n=new f),n[0]=c[o++],n[1]=c[o++],n[2]=c[o++],n[3]=c[o++],n[4]=c[o++],n[5]=c[o++],n[6]=c[o++],n[7]=c[o++],n[8]=c[o++],n[9]=c[o++],n[10]=c[o++],n[11]=c[o++],n[12]=c[o++],n[13]=c[o++],n[14]=c[o++],n[15]=c[o],n}static packArray(c,o){p.defined("array",c);let n=c.length,y=n*16;if(!U(o))o=new Array(y);else{if(!Array.isArray(o)&&o.length!==y)throw new m("If result is a typed array, it must have exactly array.length * 16 elements");o.length!==y&&(o.length=y)}for(let O=0;O<n;++O)f.pack(c[O],o,O*16);return o}static unpackArray(c,o){if(p.defined("array",c),p.typeOf.number.greaterThanOrEquals("array.length",c.length,16),c.length%16!==0)throw new m("array length must be a multiple of 16.");let n=c.length;U(o)?o.length=n/16:o=new Array(n/16);for(let y=0;y<n;y+=16){let O=y/16;o[O]=f.unpack(c,y,o[O])}return o}static clone(c,o){if(U(c))return U(o)?(o[0]=c[0],o[1]=c[1],o[2]=c[2],o[3]=c[3],o[4]=c[4],o[5]=c[5],o[6]=c[6],o[7]=c[7],o[8]=c[8],o[9]=c[9],o[10]=c[10],o[11]=c[11],o[12]=c[12],o[13]=c[13],o[14]=c[14],o[15]=c[15],o):new f(c[0],c[4],c[8],c[12],c[1],c[5],c[9],c[13],c[2],c[6],c[10],c[14],c[3],c[7],c[11],c[15])}static fromColumnMajorArray(c,o){return p.defined("values",c),f.clone(c,o)}static fromRowMajorArray(c,o){return p.defined("values",c),U(o)?(o[0]=c[0],o[1]=c[4],o[2]=c[8],o[3]=c[12],o[4]=c[1],o[5]=c[5],o[6]=c[9],o[7]=c[13],o[8]=c[2],o[9]=c[6],o[10]=c[10],o[11]=c[14],o[12]=c[3],o[13]=c[7],o[14]=c[11],o[15]=c[15],o):new f(c[0],c[1],c[2],c[3],c[4],c[5],c[6],c[7],c[8],c[9],c[10],c[11],c[12],c[13],c[14],c[15])}static fromRotationTranslation(c,o,n){return p.typeOf.object("rotation",c),o=o??W.ZERO,U(n)?(n[0]=c[0],n[1]=c[1],n[2]=c[2],n[3]=0,n[4]=c[3],n[5]=c[4],n[6]=c[5],n[7]=0,n[8]=c[6],n[9]=c[7],n[10]=c[8],n[11]=0,n[12]=o.x,n[13]=o.y,n[14]=o.z,n[15]=1,n):new f(c[0],c[3],c[6],o.x,c[1],c[4],c[7],o.y,c[2],c[5],c[8],o.z,0,0,0,1)}static fromTranslationQuaternionRotationScale(c,o,n,y){p.typeOf.object("translation",c),p.typeOf.object("rotation",o),p.typeOf.object("scale",n),U(y)||(y=new f);let O=n.x,w=n.y,b=n.z,j=o.x*o.x,z=o.x*o.y,h=o.x*o.z,R=o.x*o.w,M=o.y*o.y,T=o.y*o.z,C=o.y*o.w,q=o.z*o.z,N=o.z*o.w,E=o.w*o.w,S=j-M-q+E,d=2*(z-N),A=2*(h+C),$=2*(z+N),Z=-j+M-q+E,B=2*(T-R),Y=2*(h-C),k=2*(T+R),X=-j-M+q+E;return y[0]=S*O,y[1]=$*O,y[2]=Y*O,y[3]=0,y[4]=d*w,y[5]=Z*w,y[6]=k*w,y[7]=0,y[8]=A*b,y[9]=B*b,y[10]=X*b,y[11]=0,y[12]=c.x,y[13]=c.y,y[14]=c.z,y[15]=1,y}static fromTranslationRotationScale(c,o){return p.typeOf.object("translationRotationScale",c),f.fromTranslationQuaternionRotationScale(c.translation,c.rotation,c.scale,o)}static fromTranslation(c,o){return p.typeOf.object("translation",c),f.fromRotationTranslation(u.IDENTITY,c,o)}static fromScale(c,o){return p.typeOf.object("scale",c),U(o)?(o[0]=c.x,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=c.y,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=c.z,o[11]=0,o[12]=0,o[13]=0,o[14]=0,o[15]=1,o):new f(c.x,0,0,0,0,c.y,0,0,0,0,c.z,0,0,0,0,1)}static fromUniformScale(c,o){return p.typeOf.number("scale",c),U(o)?(o[0]=c,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=c,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=c,o[11]=0,o[12]=0,o[13]=0,o[14]=0,o[15]=1,o):new f(c,0,0,0,0,c,0,0,0,0,c,0,0,0,0,1)}static fromRotation(c,o){return p.typeOf.object("rotation",c),U(o)||(o=new f),o[0]=c[0],o[1]=c[1],o[2]=c[2],o[3]=0,o[4]=c[3],o[5]=c[4],o[6]=c[5],o[7]=0,o[8]=c[6],o[9]=c[7],o[10]=c[8],o[11]=0,o[12]=0,o[13]=0,o[14]=0,o[15]=1,o}static fromCamera(c,o){p.typeOf.object("camera",c);let n=c.position,y=c.direction,O=c.up;p.typeOf.object("camera.position",n),p.typeOf.object("camera.direction",y),p.typeOf.object("camera.up",O),W.normalize(y,e),W.normalize(W.cross(e,O,t),t),W.normalize(W.cross(t,e,l),l);let w=t.x,b=t.y,j=t.z,z=e.x,h=e.y,R=e.z,M=l.x,T=l.y,C=l.z,q=n.x,N=n.y,E=n.z,S=w*-q+b*-N+j*-E,d=M*-q+T*-N+C*-E,A=z*q+h*N+R*E;return U(o)?(o[0]=w,o[1]=M,o[2]=-z,o[3]=0,o[4]=b,o[5]=T,o[6]=-h,o[7]=0,o[8]=j,o[9]=C,o[10]=-R,o[11]=0,o[12]=S,o[13]=d,o[14]=A,o[15]=1,o):new f(w,b,j,S,M,T,C,d,-z,-h,-R,A,0,0,0,1)}static computePerspectiveFieldOfView(c,o,n,y,O){p.typeOf.number.greaterThan("fovY",c,0),p.typeOf.number.lessThan("fovY",c,Math.PI),p.typeOf.number.greaterThan("near",n,0),p.typeOf.number.greaterThan("far",y,0),p.typeOf.object("result",O);let b=1/Math.tan(c*.5),j=b/o,z=(y+n)/(n-y),h=2*y*n/(n-y);return O[0]=j,O[1]=0,O[2]=0,O[3]=0,O[4]=0,O[5]=b,O[6]=0,O[7]=0,O[8]=0,O[9]=0,O[10]=z,O[11]=-1,O[12]=0,O[13]=0,O[14]=h,O[15]=0,O}static computeOrthographicOffCenter(c,o,n,y,O,w,b){p.typeOf.number("left",c),p.typeOf.number("right",o),p.typeOf.number("bottom",n),p.typeOf.number("top",y),p.typeOf.number("near",O),p.typeOf.number("far",w),p.typeOf.object("result",b);let j=1/(o-c),z=1/(y-n),h=1/(w-O),R=-(o+c)*j,M=-(y+n)*z,T=-(w+O)*h;return j*=2,z*=2,h*=-2,b[0]=j,b[1]=0,b[2]=0,b[3]=0,b[4]=0,b[5]=z,b[6]=0,b[7]=0,b[8]=0,b[9]=0,b[10]=h,b[11]=0,b[12]=R,b[13]=M,b[14]=T,b[15]=1,b}static computePerspectiveOffCenter(c,o,n,y,O,w,b){p.typeOf.number("left",c),p.typeOf.number("right",o),p.typeOf.number("bottom",n),p.typeOf.number("top",y),p.typeOf.number("near",O),p.typeOf.number("far",w),p.typeOf.object("result",b);let j=2*O/(o-c),z=2*O/(y-n),h=(o+c)/(o-c),R=(y+n)/(y-n),M=-(w+O)/(w-O),T=-1,C=-2*w*O/(w-O);return b[0]=j,b[1]=0,b[2]=0,b[3]=0,b[4]=0,b[5]=z,b[6]=0,b[7]=0,b[8]=h,b[9]=R,b[10]=M,b[11]=T,b[12]=0,b[13]=0,b[14]=C,b[15]=0,b}static computeInfinitePerspectiveOffCenter(c,o,n,y,O,w){p.typeOf.number("left",c),p.typeOf.number("right",o),p.typeOf.number("bottom",n),p.typeOf.number("top",y),p.typeOf.number("near",O),p.typeOf.object("result",w);let b=2*O/(o-c),j=2*O/(y-n),z=(o+c)/(o-c),h=(y+n)/(y-n),R=-1,M=-1,T=-2*O;return w[0]=b,w[1]=0,w[2]=0,w[3]=0,w[4]=0,w[5]=j,w[6]=0,w[7]=0,w[8]=z,w[9]=h,w[10]=R,w[11]=M,w[12]=0,w[13]=0,w[14]=T,w[15]=0,w}static computeViewportTransformation(c,o,n,y){U(y)||(y=new f),c=c??z1.EMPTY_OBJECT;let O=c.x??0,w=c.y??0,b=c.width??0,j=c.height??0;o=o??0,n=n??1;let z=b*.5,h=j*.5,R=(n-o)*.5,M=z,T=h,C=R,q=O+z,N=w+h,E=o+R,S=1;return y[0]=M,y[1]=0,y[2]=0,y[3]=0,y[4]=0,y[5]=T,y[6]=0,y[7]=0,y[8]=0,y[9]=0,y[10]=C,y[11]=0,y[12]=q,y[13]=N,y[14]=E,y[15]=S,y}static computeView(c,o,n,y,O){return p.typeOf.object("position",c),p.typeOf.object("direction",o),p.typeOf.object("up",n),p.typeOf.object("right",y),p.typeOf.object("result",O),O[0]=y.x,O[1]=n.x,O[2]=-o.x,O[3]=0,O[4]=y.y,O[5]=n.y,O[6]=-o.y,O[7]=0,O[8]=y.z,O[9]=n.z,O[10]=-o.z,O[11]=0,O[12]=-W.dot(y,c),O[13]=-W.dot(n,c),O[14]=W.dot(o,c),O[15]=1,O}static toArray(c,o){return p.typeOf.object("matrix",c),U(o)?(o[0]=c[0],o[1]=c[1],o[2]=c[2],o[3]=c[3],o[4]=c[4],o[5]=c[5],o[6]=c[6],o[7]=c[7],o[8]=c[8],o[9]=c[9],o[10]=c[10],o[11]=c[11],o[12]=c[12],o[13]=c[13],o[14]=c[14],o[15]=c[15],o):[c[0],c[1],c[2],c[3],c[4],c[5],c[6],c[7],c[8],c[9],c[10],c[11],c[12],c[13],c[14],c[15]]}static getElementIndex(c,o){return p.typeOf.number.greaterThanOrEquals("row",o,0),p.typeOf.number.lessThanOrEquals("row",o,3),p.typeOf.number.greaterThanOrEquals("column",c,0),p.typeOf.number.lessThanOrEquals("column",c,3),c*4+o}static getColumn(c,o,n){p.typeOf.object("matrix",c),p.typeOf.number.greaterThanOrEquals("index",o,0),p.typeOf.number.lessThanOrEquals("index",o,3),p.typeOf.object("result",n);let y=o*4,O=c[y],w=c[y+1],b=c[y+2],j=c[y+3];return n.x=O,n.y=w,n.z=b,n.w=j,n}static setColumn(c,o,n,y){p.typeOf.object("matrix",c),p.typeOf.number.greaterThanOrEquals("index",o,0),p.typeOf.number.lessThanOrEquals("index",o,3),p.typeOf.object("cartesian",n),p.typeOf.object("result",y),y=f.clone(c,y);let O=o*4;return y[O]=n.x,y[O+1]=n.y,y[O+2]=n.z,y[O+3]=n.w,y}static getRow(c,o,n){p.typeOf.object("matrix",c),p.typeOf.number.greaterThanOrEquals("index",o,0),p.typeOf.number.lessThanOrEquals("index",o,3),p.typeOf.object("result",n);let y=c[o],O=c[o+4],w=c[o+8],b=c[o+12];return n.x=y,n.y=O,n.z=w,n.w=b,n}static setRow(c,o,n,y){return p.typeOf.object("matrix",c),p.typeOf.number.greaterThanOrEquals("index",o,0),p.typeOf.number.lessThanOrEquals("index",o,3),p.typeOf.object("cartesian",n),p.typeOf.object("result",y),y=f.clone(c,y),y[o]=n.x,y[o+4]=n.y,y[o+8]=n.z,y[o+12]=n.w,y}static setTranslation(c,o,n){return p.typeOf.object("matrix",c),p.typeOf.object("translation",o),p.typeOf.object("result",n),n[0]=c[0],n[1]=c[1],n[2]=c[2],n[3]=c[3],n[4]=c[4],n[5]=c[5],n[6]=c[6],n[7]=c[7],n[8]=c[8],n[9]=c[9],n[10]=c[10],n[11]=c[11],n[12]=o.x,n[13]=o.y,n[14]=o.z,n[15]=c[15],n}static setScale(c,o,n){p.typeOf.object("matrix",c),p.typeOf.object("scale",o),p.typeOf.object("result",n);let y=f.getScale(c,A1),O=o.x/y.x,w=o.y/y.y,b=o.z/y.z;return n[0]=c[0]*O,n[1]=c[1]*O,n[2]=c[2]*O,n[3]=c[3],n[4]=c[4]*w,n[5]=c[5]*w,n[6]=c[6]*w,n[7]=c[7],n[8]=c[8]*b,n[9]=c[9]*b,n[10]=c[10]*b,n[11]=c[11],n[12]=c[12],n[13]=c[13],n[14]=c[14],n[15]=c[15],n}static setUniformScale(c,o,n){p.typeOf.object("matrix",c),p.typeOf.number("scale",o),p.typeOf.object("result",n);let y=f.getScale(c,L1),O=o/y.x,w=o/y.y,b=o/y.z;return n[0]=c[0]*O,n[1]=c[1]*O,n[2]=c[2]*O,n[3]=c[3],n[4]=c[4]*w,n[5]=c[5]*w,n[6]=c[6]*w,n[7]=c[7],n[8]=c[8]*b,n[9]=c[9]*b,n[10]=c[10]*b,n[11]=c[11],n[12]=c[12],n[13]=c[13],n[14]=c[14],n[15]=c[15],n}static getScale(c,o){return p.typeOf.object("matrix",c),p.typeOf.object("result",o),o.x=W.magnitude(W.fromElements(c[0],c[1],c[2],j1)),o.y=W.magnitude(W.fromElements(c[4],c[5],c[6],j1)),o.z=W.magnitude(W.fromElements(c[8],c[9],c[10],j1)),o}static getMaximumScale(c){return f.getScale(c,T1),W.maximumComponent(T1)}static setRotation(c,o,n){p.typeOf.object("matrix",c),p.typeOf.object("result",n);let y=f.getScale(c,W1);return n[0]=o[0]*y.x,n[1]=o[1]*y.x,n[2]=o[2]*y.x,n[3]=c[3],n[4]=o[3]*y.y,n[5]=o[4]*y.y,n[6]=o[5]*y.y,n[7]=c[7],n[8]=o[6]*y.z,n[9]=o[7]*y.z,n[10]=o[8]*y.z,n[11]=c[11],n[12]=c[12],n[13]=c[13],n[14]=c[14],n[15]=c[15],n}static getRotation(c,o){p.typeOf.object("matrix",c),p.typeOf.object("result",o);let n=f.getScale(c,$1);return o[0]=c[0]/n.x,o[1]=c[1]/n.x,o[2]=c[2]/n.x,o[3]=c[4]/n.y,o[4]=c[5]/n.y,o[5]=c[6]/n.y,o[6]=c[8]/n.z,o[7]=c[9]/n.z,o[8]=c[10]/n.z,o}static multiply(c,o,n){p.typeOf.object("left",c),p.typeOf.object("right",o),p.typeOf.object("result",n);let y=c[0],O=c[1],w=c[2],b=c[3],j=c[4],z=c[5],h=c[6],R=c[7],M=c[8],T=c[9],C=c[10],q=c[11],N=c[12],E=c[13],S=c[14],d=c[15],A=o[0],$=o[1],Z=o[2],B=o[3],Y=o[4],k=o[5],X=o[6],Q=o[7],H=o[8],J=o[9],D=o[10],K=o[11],I=o[12],v=o[13],g=o[14],_=o[15],x=y*A+j*$+M*Z+N*B,s=O*A+z*$+T*Z+E*B,i=w*A+h*$+C*Z+S*B,a=b*A+R*$+q*Z+d*B,o1=y*Y+j*k+M*X+N*Q,n1=O*Y+z*k+T*X+E*Q,y1=w*Y+h*k+C*X+S*Q,p1=b*Y+R*k+q*X+d*Q,O1=y*H+j*J+M*D+N*K,b1=O*H+z*J+T*D+E*K,w1=w*H+h*J+C*D+S*K,P=b*H+R*J+q*D+d*K,C1=y*I+j*v+M*g+N*_,N1=O*I+z*v+T*g+E*_,q1=w*I+h*v+C*g+S*_,E1=b*I+R*v+q*g+d*_;return n[0]=x,n[1]=s,n[2]=i,n[3]=a,n[4]=o1,n[5]=n1,n[6]=y1,n[7]=p1,n[8]=O1,n[9]=b1,n[10]=w1,n[11]=P,n[12]=C1,n[13]=N1,n[14]=q1,n[15]=E1,n}static add(c,o,n){return p.typeOf.object("left",c),p.typeOf.object("right",o),p.typeOf.object("result",n),n[0]=c[0]+o[0],n[1]=c[1]+o[1],n[2]=c[2]+o[2],n[3]=c[3]+o[3],n[4]=c[4]+o[4],n[5]=c[5]+o[5],n[6]=c[6]+o[6],n[7]=c[7]+o[7],n[8]=c[8]+o[8],n[9]=c[9]+o[9],n[10]=c[10]+o[10],n[11]=c[11]+o[11],n[12]=c[12]+o[12],n[13]=c[13]+o[13],n[14]=c[14]+o[14],n[15]=c[15]+o[15],n}static subtract(c,o,n){return p.typeOf.object("left",c),p.typeOf.object("right",o),p.typeOf.object("result",n),n[0]=c[0]-o[0],n[1]=c[1]-o[1],n[2]=c[2]-o[2],n[3]=c[3]-o[3],n[4]=c[4]-o[4],n[5]=c[5]-o[5],n[6]=c[6]-o[6],n[7]=c[7]-o[7],n[8]=c[8]-o[8],n[9]=c[9]-o[9],n[10]=c[10]-o[10],n[11]=c[11]-o[11],n[12]=c[12]-o[12],n[13]=c[13]-o[13],n[14]=c[14]-o[14],n[15]=c[15]-o[15],n}static multiplyTransformation(c,o,n){p.typeOf.object("left",c),p.typeOf.object("right",o),p.typeOf.object("result",n);let y=c[0],O=c[1],w=c[2],b=c[4],j=c[5],z=c[6],h=c[8],R=c[9],M=c[10],T=c[12],C=c[13],q=c[14],N=o[0],E=o[1],S=o[2],d=o[4],A=o[5],$=o[6],Z=o[8],B=o[9],Y=o[10],k=o[12],X=o[13],Q=o[14],H=y*N+b*E+h*S,J=O*N+j*E+R*S,D=w*N+z*E+M*S,K=y*d+b*A+h*$,I=O*d+j*A+R*$,v=w*d+z*A+M*$,g=y*Z+b*B+h*Y,_=O*Z+j*B+R*Y,x=w*Z+z*B+M*Y,s=y*k+b*X+h*Q+T,i=O*k+j*X+R*Q+C,a=w*k+z*X+M*Q+q;return n[0]=H,n[1]=J,n[2]=D,n[3]=0,n[4]=K,n[5]=I,n[6]=v,n[7]=0,n[8]=g,n[9]=_,n[10]=x,n[11]=0,n[12]=s,n[13]=i,n[14]=a,n[15]=1,n}static multiplyByMatrix3(c,o,n){p.typeOf.object("matrix",c),p.typeOf.object("rotation",o),p.typeOf.object("result",n);let y=c[0],O=c[1],w=c[2],b=c[4],j=c[5],z=c[6],h=c[8],R=c[9],M=c[10],T=o[0],C=o[1],q=o[2],N=o[3],E=o[4],S=o[5],d=o[6],A=o[7],$=o[8],Z=y*T+b*C+h*q,B=O*T+j*C+R*q,Y=w*T+z*C+M*q,k=y*N+b*E+h*S,X=O*N+j*E+R*S,Q=w*N+z*E+M*S,H=y*d+b*A+h*$,J=O*d+j*A+R*$,D=w*d+z*A+M*$;return n[0]=Z,n[1]=B,n[2]=Y,n[3]=0,n[4]=k,n[5]=X,n[6]=Q,n[7]=0,n[8]=H,n[9]=J,n[10]=D,n[11]=0,n[12]=c[12],n[13]=c[13],n[14]=c[14],n[15]=c[15],n}static multiplyByTranslation(c,o,n){p.typeOf.object("matrix",c),p.typeOf.object("translation",o),p.typeOf.object("result",n);let y=o.x,O=o.y,w=o.z,b=y*c[0]+O*c[4]+w*c[8]+c[12],j=y*c[1]+O*c[5]+w*c[9]+c[13],z=y*c[2]+O*c[6]+w*c[10]+c[14];return n[0]=c[0],n[1]=c[1],n[2]=c[2],n[3]=c[3],n[4]=c[4],n[5]=c[5],n[6]=c[6],n[7]=c[7],n[8]=c[8],n[9]=c[9],n[10]=c[10],n[11]=c[11],n[12]=b,n[13]=j,n[14]=z,n[15]=c[15],n}static multiplyByScale(c,o,n){p.typeOf.object("matrix",c),p.typeOf.object("scale",o),p.typeOf.object("result",n);let y=o.x,O=o.y,w=o.z;return y===1&&O===1&&w===1?f.clone(c,n):(n[0]=y*c[0],n[1]=y*c[1],n[2]=y*c[2],n[3]=c[3],n[4]=O*c[4],n[5]=O*c[5],n[6]=O*c[6],n[7]=c[7],n[8]=w*c[8],n[9]=w*c[9],n[10]=w*c[10],n[11]=c[11],n[12]=c[12],n[13]=c[13],n[14]=c[14],n[15]=c[15],n)}static multiplyByUniformScale(c,o,n){return p.typeOf.object("matrix",c),p.typeOf.number("scale",o),p.typeOf.object("result",n),n[0]=c[0]*o,n[1]=c[1]*o,n[2]=c[2]*o,n[3]=c[3],n[4]=c[4]*o,n[5]=c[5]*o,n[6]=c[6]*o,n[7]=c[7],n[8]=c[8]*o,n[9]=c[9]*o,n[10]=c[10]*o,n[11]=c[11],n[12]=c[12],n[13]=c[13],n[14]=c[14],n[15]=c[15],n}static multiplyByVector(c,o,n){p.typeOf.object("matrix",c),p.typeOf.object("cartesian",o),p.typeOf.object("result",n);let y=o.x,O=o.y,w=o.z,b=o.w,j=c[0]*y+c[4]*O+c[8]*w+c[12]*b,z=c[1]*y+c[5]*O+c[9]*w+c[13]*b,h=c[2]*y+c[6]*O+c[10]*w+c[14]*b,R=c[3]*y+c[7]*O+c[11]*w+c[15]*b;return n.x=j,n.y=z,n.z=h,n.w=R,n}static multiplyByPointAsVector(c,o,n){p.typeOf.object("matrix",c),p.typeOf.object("cartesian",o),p.typeOf.object("result",n);let y=o.x,O=o.y,w=o.z,b=c[0]*y+c[4]*O+c[8]*w,j=c[1]*y+c[5]*O+c[9]*w,z=c[2]*y+c[6]*O+c[10]*w;return n.x=b,n.y=j,n.z=z,n}static multiplyByPoint(c,o,n){p.typeOf.object("matrix",c),p.typeOf.object("cartesian",o),p.typeOf.object("result",n);let y=o.x,O=o.y,w=o.z,b=c[0]*y+c[4]*O+c[8]*w+c[12],j=c[1]*y+c[5]*O+c[9]*w+c[13],z=c[2]*y+c[6]*O+c[10]*w+c[14];return n.x=b,n.y=j,n.z=z,n}static multiplyByScalar(c,o,n){return p.typeOf.object("matrix",c),p.typeOf.number("scalar",o),p.typeOf.object("result",n),n[0]=c[0]*o,n[1]=c[1]*o,n[2]=c[2]*o,n[3]=c[3]*o,n[4]=c[4]*o,n[5]=c[5]*o,n[6]=c[6]*o,n[7]=c[7]*o,n[8]=c[8]*o,n[9]=c[9]*o,n[10]=c[10]*o,n[11]=c[11]*o,n[12]=c[12]*o,n[13]=c[13]*o,n[14]=c[14]*o,n[15]=c[15]*o,n}static negate(c,o){return p.typeOf.object("matrix",c),p.typeOf.object("result",o),o[0]=-c[0],o[1]=-c[1],o[2]=-c[2],o[3]=-c[3],o[4]=-c[4],o[5]=-c[5],o[6]=-c[6],o[7]=-c[7],o[8]=-c[8],o[9]=-c[9],o[10]=-c[10],o[11]=-c[11],o[12]=-c[12],o[13]=-c[13],o[14]=-c[14],o[15]=-c[15],o}static transpose(c,o){p.typeOf.object("matrix",c),p.typeOf.object("result",o);let n=c[1],y=c[2],O=c[3],w=c[6],b=c[7],j=c[11];return o[0]=c[0],o[1]=c[4],o[2]=c[8],o[3]=c[12],o[4]=n,o[5]=c[5],o[6]=c[9],o[7]=c[13],o[8]=y,o[9]=w,o[10]=c[10],o[11]=c[14],o[12]=O,o[13]=b,o[14]=j,o[15]=c[15],o}static abs(c,o){return p.typeOf.object("matrix",c),p.typeOf.object("result",o),o[0]=Math.abs(c[0]),o[1]=Math.abs(c[1]),o[2]=Math.abs(c[2]),o[3]=Math.abs(c[3]),o[4]=Math.abs(c[4]),o[5]=Math.abs(c[5]),o[6]=Math.abs(c[6]),o[7]=Math.abs(c[7]),o[8]=Math.abs(c[8]),o[9]=Math.abs(c[9]),o[10]=Math.abs(c[10]),o[11]=Math.abs(c[11]),o[12]=Math.abs(c[12]),o[13]=Math.abs(c[13]),o[14]=Math.abs(c[14]),o[15]=Math.abs(c[15]),o}static equals(c,o){return c===o||U(c)&&U(o)&&c[12]===o[12]&&c[13]===o[13]&&c[14]===o[14]&&c[0]===o[0]&&c[1]===o[1]&&c[2]===o[2]&&c[4]===o[4]&&c[5]===o[5]&&c[6]===o[6]&&c[8]===o[8]&&c[9]===o[9]&&c[10]===o[10]&&c[3]===o[3]&&c[7]===o[7]&&c[11]===o[11]&&c[15]===o[15]}static equalsEpsilon(c,o,n){return n=n??0,c===o||U(c)&&U(o)&&Math.abs(c[0]-o[0])<=n&&Math.abs(c[1]-o[1])<=n&&Math.abs(c[2]-o[2])<=n&&Math.abs(c[3]-o[3])<=n&&Math.abs(c[4]-o[4])<=n&&Math.abs(c[5]-o[5])<=n&&Math.abs(c[6]-o[6])<=n&&Math.abs(c[7]-o[7])<=n&&Math.abs(c[8]-o[8])<=n&&Math.abs(c[9]-o[9])<=n&&Math.abs(c[10]-o[10])<=n&&Math.abs(c[11]-o[11])<=n&&Math.abs(c[12]-o[12])<=n&&Math.abs(c[13]-o[13])<=n&&Math.abs(c[14]-o[14])<=n&&Math.abs(c[15]-o[15])<=n}static getTranslation(c,o){return p.typeOf.object("matrix",c),p.typeOf.object("result",o),o.x=c[12],o.y=c[13],o.z=c[14],o}static getMatrix3(c,o){return p.typeOf.object("matrix",c),p.typeOf.object("result",o),o[0]=c[0],o[1]=c[1],o[2]=c[2],o[3]=c[4],o[4]=c[5],o[5]=c[6],o[6]=c[8],o[7]=c[9],o[8]=c[10],o}static inverse(c,o){p.typeOf.object("matrix",c),p.typeOf.object("result",o);let n=c[0],y=c[4],O=c[8],w=c[12],b=c[1],j=c[5],z=c[9],h=c[13],R=c[2],M=c[6],T=c[10],C=c[14],q=c[3],N=c[7],E=c[11],S=c[15],d=T*S,A=C*E,$=M*S,Z=C*N,B=M*E,Y=T*N,k=R*S,X=C*q,Q=R*E,H=T*q,J=R*N,D=M*q,K=d*j+Z*z+B*h-(A*j+$*z+Y*h),I=A*b+k*z+H*h-(d*b+X*z+Q*h),v=$*b+X*j+J*h-(Z*b+k*j+D*h),g=Y*b+Q*j+D*z-(B*b+H*j+J*z),_=A*y+$*O+Y*w-(d*y+Z*O+B*w),x=d*n+X*O+Q*w-(A*n+k*O+H*w),s=Z*n+k*y+D*w-($*n+X*y+J*w),i=B*n+H*y+J*O-(Y*n+Q*y+D*O);d=O*h,A=w*z,$=y*h,Z=w*j,B=y*z,Y=O*j,k=n*h,X=w*b,Q=n*z,H=O*b,J=n*j,D=y*b;let a=d*N+Z*E+B*S-(A*N+$*E+Y*S),o1=A*q+k*E+H*S-(d*q+X*E+Q*S),n1=$*q+X*N+J*S-(Z*q+k*N+D*S),y1=Y*q+Q*N+D*E-(B*q+H*N+J*E),p1=$*T+Y*C+A*M-(B*C+d*M+Z*T),O1=Q*C+d*R+X*T-(k*T+H*C+A*R),b1=k*M+D*C+Z*R-(J*C+$*R+X*M),w1=J*T+B*R+H*M-(Q*M+D*T+Y*R),P=n*K+y*I+O*v+w*g;if(Math.abs(P)<G.EPSILON21){if(u.equalsEpsilon(f.getMatrix3(c,Z1),B1,G.EPSILON7)&&c1.equals(f.getRow(c,3,Y1),k1))return o[0]=0,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=0,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=0,o[11]=0,o[12]=-c[12],o[13]=-c[13],o[14]=-c[14],o[15]=1,o;throw new h1("matrix is not invertible because its determinate is zero.")}return P=1/P,o[0]=K*P,o[1]=I*P,o[2]=v*P,o[3]=g*P,o[4]=_*P,o[5]=x*P,o[6]=s*P,o[7]=i*P,o[8]=a*P,o[9]=o1*P,o[10]=n1*P,o[11]=y1*P,o[12]=p1*P,o[13]=O1*P,o[14]=b1*P,o[15]=w1*P,o}static inverseTransformation(c,o){p.typeOf.object("matrix",c),p.typeOf.object("result",o);let n=c[0],y=c[1],O=c[2],w=c[4],b=c[5],j=c[6],z=c[8],h=c[9],R=c[10],M=c[12],T=c[13],C=c[14],q=-n*M-y*T-O*C,N=-w*M-b*T-j*C,E=-z*M-h*T-R*C;return o[0]=n,o[1]=w,o[2]=z,o[3]=0,o[4]=y,o[5]=b,o[6]=h,o[7]=0,o[8]=O,o[9]=j,o[10]=R,o[11]=0,o[12]=q,o[13]=N,o[14]=E,o[15]=1,o}static inverseTranspose(c,o){return p.typeOf.object("matrix",c),p.typeOf.object("result",o),f.inverse(f.transpose(c,X1),o)}get length(){return f.packedLength}clone(c){return f.clone(this,c)}equals(c){return f.equals(this,c)}static equalsArray(c,o,n){return c[0]===o[n]&&c[1]===o[n+1]&&c[2]===o[n+2]&&c[3]===o[n+3]&&c[4]===o[n+4]&&c[5]===o[n+5]&&c[6]===o[n+6]&&c[7]===o[n+7]&&c[8]===o[n+8]&&c[9]===o[n+9]&&c[10]===o[n+10]&&c[11]===o[n+11]&&c[12]===o[n+12]&&c[13]===o[n+13]&&c[14]===o[n+14]&&c[15]===o[n+15]}equalsEpsilon(c,o){return f.equalsEpsilon(this,c,o)}toString(){return`(${this[0]}, ${this[4]}, ${this[8]}, ${this[12]})
|
|
27
|
-
(${this[1]}, ${this[5]}, ${this[9]}, ${this[13]})
|
|
28
|
-
(${this[2]}, ${this[6]}, ${this[10]}, ${this[14]})
|
|
29
|
-
(${this[3]}, ${this[7]}, ${this[11]}, ${this[15]})`}};L.packedLength=16;L.fromArray=L.unpack;L.IDENTITY=Object.freeze(new L(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1));L.ZERO=Object.freeze(new L(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0));L.COLUMN0ROW0=0;L.COLUMN0ROW1=1;L.COLUMN0ROW2=2;L.COLUMN0ROW3=3;L.COLUMN1ROW0=4;L.COLUMN1ROW1=5;L.COLUMN1ROW2=6;L.COLUMN1ROW3=7;L.COLUMN2ROW0=8;L.COLUMN2ROW1=9;L.COLUMN2ROW2=10;L.COLUMN2ROW3=11;L.COLUMN3ROW0=12;L.COLUMN3ROW1=13;L.COLUMN3ROW2=14;L.COLUMN3ROW3=15;var e=new W,t=new W,l=new W,A1=new W,L1=new W,j1=new W,T1=new W,W1=new W,$1=new W,Z1=new u,B1=new u,Y1=new c1,k1=new c1(0,0,0,1),X1=new L,e1=L;export{c1 as a,e1 as b};
|