vizor_view 1.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +144 -0
- package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_0.json +1 -0
- package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_1.json +1 -0
- package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_10.json +1 -0
- package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_11.json +1 -0
- package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_12.json +1 -0
- package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_13.json +1 -0
- package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_14.json +1 -0
- package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_15.json +1 -0
- package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_16.json +1 -0
- package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_17.json +1 -0
- package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_18.json +1 -0
- package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_19.json +1 -0
- package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_2.json +1 -0
- package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_20.json +1 -0
- package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_21.json +1 -0
- package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_22.json +1 -0
- package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_23.json +1 -0
- package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_24.json +1 -0
- package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_25.json +1 -0
- package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_26.json +1 -0
- package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_27.json +1 -0
- package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_3.json +1 -0
- package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_4.json +1 -0
- package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_5.json +1 -0
- package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_6.json +1 -0
- package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_7.json +1 -0
- package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_8.json +1 -0
- package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_9.json +1 -0
- package/dist/cesiumStatic/Assets/Images/bing_maps_credit.png +0 -0
- package/dist/cesiumStatic/Assets/Images/cesium_credit.png +0 -0
- package/dist/cesiumStatic/Assets/Images/google_earth_credit.png +0 -0
- package/dist/cesiumStatic/Assets/Images/ion-credit.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/LensFlare/DirtMask.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/LensFlare/StarBurst.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/0/0/0.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/0/1/0.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/1/0/0.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/1/0/1.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/1/1/0.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/1/1/1.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/1/2/0.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/1/2/1.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/1/3/0.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/1/3/1.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/0/0.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/0/1.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/0/2.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/0/3.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/1/0.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/1/1.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/1/2.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/1/3.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/2/0.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/2/1.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/2/2.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/2/3.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/3/0.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/3/1.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/3/2.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/3/3.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/4/0.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/4/1.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/4/2.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/4/3.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/5/0.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/5/1.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/5/2.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/5/3.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/6/0.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/6/1.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/6/2.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/6/3.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/7/0.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/7/1.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/7/2.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/7/3.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/tilemapresource.xml +14 -0
- package/dist/cesiumStatic/Assets/Textures/SkyBox/tycho2t3_80_mx.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/SkyBox/tycho2t3_80_my.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/SkyBox/tycho2t3_80_mz.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/SkyBox/tycho2t3_80_px.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/SkyBox/tycho2t3_80_py.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/SkyBox/tycho2t3_80_pz.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/airfield.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/airport.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/alcohol-shop.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/america-football.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/art-gallery.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/bakery.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/bank.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/bar.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/baseball.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/basketball.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/beer.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/bicycle.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/building.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/bus.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/cafe.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/camera.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/campsite.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/car.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/cemetery.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/cesium.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/chemist.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/cinema.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/circle-stroked.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/circle.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/city.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/clothing-store.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/college.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/commercial.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/cricket.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/cross.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/dam.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/danger.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/disability.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/dog-park.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/embassy.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/emergency-telephone.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/entrance.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/farm.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/fast-food.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/ferry.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/fire-station.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/fuel.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/garden.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/gift.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/golf.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/grocery.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/hairdresser.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/harbor.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/heart.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/heliport.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/hospital.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/ice-cream.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/industrial.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/land-use.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/laundry.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/library.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/lighthouse.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/lodging.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/logging.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/london-underground.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/marker-stroked.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/marker.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/minefield.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/mobilephone.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/monument.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/museum.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/music.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/oil-well.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/park.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/park2.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/parking-garage.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/parking.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/pharmacy.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/pitch.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/place-of-worship.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/playground.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/police.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/polling-place.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/post.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/prison.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/rail-above.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/rail-light.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/rail-metro.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/rail-underground.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/rail.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/religious-christian.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/religious-jewish.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/religious-muslim.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/restaurant.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/roadblock.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/rocket.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/school.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/scooter.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/shop.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/skiing.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/slaughterhouse.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/soccer.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/square-stroked.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/square.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/star-stroked.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/star.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/suitcase.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/swimming.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/telephone.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/tennis.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/theatre.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/toilets.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/town-hall.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/town.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/triangle-stroked.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/triangle.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/village.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/warehouse.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/waste-basket.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/water.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/wetland.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/maki/zoo.png +0 -0
- package/dist/cesiumStatic/Assets/Textures/moonSmall.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/pin.svg +1 -0
- package/dist/cesiumStatic/Assets/Textures/waterNormals.jpg +0 -0
- package/dist/cesiumStatic/Assets/Textures/waterNormalsSmall.jpg +0 -0
- package/dist/cesiumStatic/Assets/approximateTerrainHeights.json +1 -0
- package/dist/cesiumStatic/ThirdParty/Workers/package.json +1 -0
- package/dist/cesiumStatic/ThirdParty/Workers/pako_deflate.min.js +2 -0
- package/dist/cesiumStatic/ThirdParty/Workers/pako_deflate.min.js.LICENSE.txt +1 -0
- package/dist/cesiumStatic/ThirdParty/Workers/pako_inflate.min.js +2 -0
- package/dist/cesiumStatic/ThirdParty/Workers/pako_inflate.min.js.LICENSE.txt +1 -0
- package/dist/cesiumStatic/ThirdParty/Workers/z-worker-pako.js +1 -0
- package/dist/cesiumStatic/ThirdParty/basis_transcoder.wasm +0 -0
- package/dist/cesiumStatic/ThirdParty/draco_decoder.wasm +0 -0
- package/dist/cesiumStatic/ThirdParty/google-earth-dbroot-parser.js +1 -0
- package/dist/cesiumStatic/Widgets/Animation/Animation.css +127 -0
- package/dist/cesiumStatic/Widgets/Animation/lighter.css +70 -0
- package/dist/cesiumStatic/Widgets/BaseLayerPicker/BaseLayerPicker.css +108 -0
- package/dist/cesiumStatic/Widgets/BaseLayerPicker/lighter.css +22 -0
- package/dist/cesiumStatic/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css +102 -0
- package/dist/cesiumStatic/Widgets/CesiumInspector/CesiumInspector.css +113 -0
- package/dist/cesiumStatic/Widgets/CesiumWidget/CesiumWidget.css +119 -0
- package/dist/cesiumStatic/Widgets/CesiumWidget/lighter.css +14 -0
- package/dist/cesiumStatic/Widgets/FullscreenButton/FullscreenButton.css +8 -0
- package/dist/cesiumStatic/Widgets/Geocoder/Geocoder.css +70 -0
- package/dist/cesiumStatic/Widgets/Geocoder/lighter.css +17 -0
- package/dist/cesiumStatic/Widgets/I3SBuildingSceneLayerExplorer/I3SBuildingSceneLayerExplorer.css +27 -0
- package/dist/cesiumStatic/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldHillshade.png +0 -0
- package/dist/cesiumStatic/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldImagery.png +0 -0
- package/dist/cesiumStatic/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldOcean.png +0 -0
- package/dist/cesiumStatic/Widgets/Images/ImageryProviders/bingAerial.png +0 -0
- package/dist/cesiumStatic/Widgets/Images/ImageryProviders/bingAerialLabels.png +0 -0
- package/dist/cesiumStatic/Widgets/Images/ImageryProviders/bingRoads.png +0 -0
- package/dist/cesiumStatic/Widgets/Images/ImageryProviders/blueMarble.png +0 -0
- package/dist/cesiumStatic/Widgets/Images/ImageryProviders/earthAtNight.png +0 -0
- package/dist/cesiumStatic/Widgets/Images/ImageryProviders/mapQuestOpenStreetMap.png +0 -0
- package/dist/cesiumStatic/Widgets/Images/ImageryProviders/mapboxSatellite.png +0 -0
- package/dist/cesiumStatic/Widgets/Images/ImageryProviders/mapboxStreets.png +0 -0
- package/dist/cesiumStatic/Widgets/Images/ImageryProviders/mapboxTerrain.png +0 -0
- package/dist/cesiumStatic/Widgets/Images/ImageryProviders/naturalEarthII.png +0 -0
- package/dist/cesiumStatic/Widgets/Images/ImageryProviders/openStreetMap.png +0 -0
- package/dist/cesiumStatic/Widgets/Images/ImageryProviders/sentinel-2.png +0 -0
- package/dist/cesiumStatic/Widgets/Images/ImageryProviders/stadiaAlidadeSmooth.png +0 -0
- package/dist/cesiumStatic/Widgets/Images/ImageryProviders/stadiaAlidadeSmoothDark.png +0 -0
- package/dist/cesiumStatic/Widgets/Images/ImageryProviders/stamenToner.png +0 -0
- package/dist/cesiumStatic/Widgets/Images/ImageryProviders/stamenWatercolor.png +0 -0
- package/dist/cesiumStatic/Widgets/Images/NavigationHelp/Mouse.svg +84 -0
- package/dist/cesiumStatic/Widgets/Images/NavigationHelp/MouseLeft.svg +76 -0
- package/dist/cesiumStatic/Widgets/Images/NavigationHelp/MouseMiddle.svg +76 -0
- package/dist/cesiumStatic/Widgets/Images/NavigationHelp/MouseRight.svg +76 -0
- package/dist/cesiumStatic/Widgets/Images/NavigationHelp/Touch.svg +120 -0
- package/dist/cesiumStatic/Widgets/Images/NavigationHelp/TouchDrag.svg +129 -0
- package/dist/cesiumStatic/Widgets/Images/NavigationHelp/TouchRotate.svg +76 -0
- package/dist/cesiumStatic/Widgets/Images/NavigationHelp/TouchTilt.svg +135 -0
- package/dist/cesiumStatic/Widgets/Images/NavigationHelp/TouchZoom.svg +74 -0
- package/dist/cesiumStatic/Widgets/Images/TerrainProviders/CesiumWorldTerrain.png +0 -0
- package/dist/cesiumStatic/Widgets/Images/TerrainProviders/Ellipsoid.png +0 -0
- package/dist/cesiumStatic/Widgets/Images/TimelineIcons.png +0 -0
- package/dist/cesiumStatic/Widgets/Images/info-loading.gif +0 -0
- package/dist/cesiumStatic/Widgets/InfoBox/InfoBox.css +92 -0
- package/dist/cesiumStatic/Widgets/InfoBox/InfoBoxDescription.css +178 -0
- package/dist/cesiumStatic/Widgets/NavigationHelpButton/NavigationHelpButton.css +93 -0
- package/dist/cesiumStatic/Widgets/NavigationHelpButton/lighter.css +38 -0
- package/dist/cesiumStatic/Widgets/PerformanceWatchdog/PerformanceWatchdog.css +15 -0
- package/dist/cesiumStatic/Widgets/ProjectionPicker/ProjectionPicker.css +38 -0
- package/dist/cesiumStatic/Widgets/SceneModePicker/SceneModePicker.css +56 -0
- package/dist/cesiumStatic/Widgets/SelectionIndicator/SelectionIndicator.css +20 -0
- package/dist/cesiumStatic/Widgets/Timeline/Timeline.css +103 -0
- package/dist/cesiumStatic/Widgets/Timeline/lighter.css +23 -0
- package/dist/cesiumStatic/Widgets/VRButton/VRButton.css +8 -0
- package/dist/cesiumStatic/Widgets/Viewer/Viewer.css +107 -0
- package/dist/cesiumStatic/Widgets/VoxelInspector/VoxelInspector.css +16 -0
- package/dist/cesiumStatic/Widgets/lighter.css +237 -0
- package/dist/cesiumStatic/Widgets/lighterShared.css +46 -0
- package/dist/cesiumStatic/Widgets/shared.css +103 -0
- package/dist/cesiumStatic/Widgets/widgets.css +1342 -0
- package/dist/cesiumStatic/Workers/chunk-3FGVTQZT.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-3FGVTQZT.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-5KPQNVA2.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-5KPQNVA2.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-666MYB7X.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-666MYB7X.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-6GG6EJBW.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-6GG6EJBW.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-7OVGHUAO.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-7OVGHUAO.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-AWPY57MX.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-AWPY57MX.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-AXCXHIZO.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-AXCXHIZO.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-BSL4RZYV.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-BSL4RZYV.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-CRU5R7HF.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-CRU5R7HF.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-CUOIAHY2.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-CUOIAHY2.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-CWBIOT2C.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-CWBIOT2C.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-DBOVA5XH.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-DBOVA5XH.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-EEN7GMYN.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-EEN7GMYN.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-FPT7TGTJ.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-FPT7TGTJ.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-FYZYSHA7.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-FYZYSHA7.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-G2BB42Z6.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-G2BB42Z6.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-G4IO3CPJ.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-G4IO3CPJ.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-G6QT7N47.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-G6QT7N47.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-GBRF7ES3.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-GBRF7ES3.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-GI7IUZK6.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-GI7IUZK6.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-GWDOQ4QX.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-GWDOQ4QX.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-H7SSJW5A.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-H7SSJW5A.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-I36V6CKP.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-I36V6CKP.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-KGKDCW56.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-KGKDCW56.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-LL4PRXXO.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-LL4PRXXO.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-LVKOVZ5N.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-LVKOVZ5N.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-M6TFP6VU.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-M6TFP6VU.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-NVJ64HSB.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-NVJ64HSB.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-O3U5FZIX.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-O3U5FZIX.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-O7LU3SZT.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-O7LU3SZT.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-OKAWXMC7.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-OKAWXMC7.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-PPN6SLYU.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-PPN6SLYU.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-Q5J5QSYF.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-Q5J5QSYF.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-Q6IZOLLM.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-Q6IZOLLM.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-QALYXFKR.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-QALYXFKR.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-RAWIUDJR.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-RAWIUDJR.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-RDVL7HNQ.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-RDVL7HNQ.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-RHEGXTJ5.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-RHEGXTJ5.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-RIW4PILL.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-RIW4PILL.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-SOWUYSYI.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-SOWUYSYI.js.LICENSE.txt +67 -0
- package/dist/cesiumStatic/Workers/chunk-SPMC5TLM.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-SPMC5TLM.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-SQXEWPMX.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-SQXEWPMX.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-SXYTVHGU.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-SXYTVHGU.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-T52RL3ZJ.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-T52RL3ZJ.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-TJP3YKBO.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-TJP3YKBO.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-TXLODGLR.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-TXLODGLR.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-W2LU7RJ5.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-W2LU7RJ5.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-W5FWNHP7.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-W5FWNHP7.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-WG62ICZK.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-WG62ICZK.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-WN2OOK5W.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-WN2OOK5W.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-WNCIY4BT.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-WNCIY4BT.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/chunk-WZ52TQTL.js +2 -0
- package/dist/cesiumStatic/Workers/chunk-WZ52TQTL.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/combineGeometry.js +2 -0
- package/dist/cesiumStatic/Workers/combineGeometry.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/createBoxGeometry.js +2 -0
- package/dist/cesiumStatic/Workers/createBoxGeometry.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/createBoxOutlineGeometry.js +2 -0
- package/dist/cesiumStatic/Workers/createBoxOutlineGeometry.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/createCircleGeometry.js +2 -0
- package/dist/cesiumStatic/Workers/createCircleGeometry.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/createCircleOutlineGeometry.js +2 -0
- package/dist/cesiumStatic/Workers/createCircleOutlineGeometry.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/createCoplanarPolygonGeometry.js +2 -0
- package/dist/cesiumStatic/Workers/createCoplanarPolygonGeometry.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/createCoplanarPolygonOutlineGeometry.js +2 -0
- package/dist/cesiumStatic/Workers/createCoplanarPolygonOutlineGeometry.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/createCorridorGeometry.js +2 -0
- package/dist/cesiumStatic/Workers/createCorridorGeometry.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/createCorridorOutlineGeometry.js +2 -0
- package/dist/cesiumStatic/Workers/createCorridorOutlineGeometry.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/createCylinderGeometry.js +2 -0
- package/dist/cesiumStatic/Workers/createCylinderGeometry.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/createCylinderOutlineGeometry.js +2 -0
- package/dist/cesiumStatic/Workers/createCylinderOutlineGeometry.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/createEllipseGeometry.js +2 -0
- package/dist/cesiumStatic/Workers/createEllipseGeometry.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/createEllipseOutlineGeometry.js +2 -0
- package/dist/cesiumStatic/Workers/createEllipseOutlineGeometry.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/createEllipsoidGeometry.js +2 -0
- package/dist/cesiumStatic/Workers/createEllipsoidGeometry.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/createEllipsoidOutlineGeometry.js +2 -0
- package/dist/cesiumStatic/Workers/createEllipsoidOutlineGeometry.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/createFrustumGeometry.js +2 -0
- package/dist/cesiumStatic/Workers/createFrustumGeometry.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/createFrustumOutlineGeometry.js +2 -0
- package/dist/cesiumStatic/Workers/createFrustumOutlineGeometry.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/createGeometry.js +2 -0
- package/dist/cesiumStatic/Workers/createGeometry.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/createGroundPolylineGeometry.js +2 -0
- package/dist/cesiumStatic/Workers/createGroundPolylineGeometry.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/createPlaneGeometry.js +2 -0
- package/dist/cesiumStatic/Workers/createPlaneGeometry.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/createPlaneOutlineGeometry.js +2 -0
- package/dist/cesiumStatic/Workers/createPlaneOutlineGeometry.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/createPolygonGeometry.js +2 -0
- package/dist/cesiumStatic/Workers/createPolygonGeometry.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/createPolygonOutlineGeometry.js +2 -0
- package/dist/cesiumStatic/Workers/createPolygonOutlineGeometry.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/createPolylineGeometry.js +2 -0
- package/dist/cesiumStatic/Workers/createPolylineGeometry.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/createPolylineVolumeGeometry.js +2 -0
- package/dist/cesiumStatic/Workers/createPolylineVolumeGeometry.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/createPolylineVolumeOutlineGeometry.js +2 -0
- package/dist/cesiumStatic/Workers/createPolylineVolumeOutlineGeometry.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/createRectangleGeometry.js +2 -0
- package/dist/cesiumStatic/Workers/createRectangleGeometry.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/createRectangleOutlineGeometry.js +2 -0
- package/dist/cesiumStatic/Workers/createRectangleOutlineGeometry.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/createSimplePolylineGeometry.js +2 -0
- package/dist/cesiumStatic/Workers/createSimplePolylineGeometry.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/createSphereGeometry.js +2 -0
- package/dist/cesiumStatic/Workers/createSphereGeometry.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/createSphereOutlineGeometry.js +2 -0
- package/dist/cesiumStatic/Workers/createSphereOutlineGeometry.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/createTaskProcessorWorker.js +2 -0
- package/dist/cesiumStatic/Workers/createTaskProcessorWorker.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/createVectorTileClampedPolylines.js +2 -0
- package/dist/cesiumStatic/Workers/createVectorTileClampedPolylines.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/createVectorTileGeometries.js +2 -0
- package/dist/cesiumStatic/Workers/createVectorTileGeometries.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/createVectorTilePoints.js +2 -0
- package/dist/cesiumStatic/Workers/createVectorTilePoints.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/createVectorTilePolygons.js +2 -0
- package/dist/cesiumStatic/Workers/createVectorTilePolygons.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/createVectorTilePolylines.js +2 -0
- package/dist/cesiumStatic/Workers/createVectorTilePolylines.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +2 -0
- package/dist/cesiumStatic/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/createVerticesFromHeightmap.js +2 -0
- package/dist/cesiumStatic/Workers/createVerticesFromHeightmap.js.LICENSE.txt +26 -0
- package/dist/cesiumStatic/Workers/createVerticesFromQuantizedTerrainMesh.js +2 -0
- package/dist/cesiumStatic/Workers/createVerticesFromQuantizedTerrainMesh.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/createWallGeometry.js +2 -0
- package/dist/cesiumStatic/Workers/createWallGeometry.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/createWallOutlineGeometry.js +2 -0
- package/dist/cesiumStatic/Workers/createWallOutlineGeometry.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/decodeDraco.js +2 -0
- package/dist/cesiumStatic/Workers/decodeDraco.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/decodeGoogleEarthEnterprisePacket.js +2 -0
- package/dist/cesiumStatic/Workers/decodeGoogleEarthEnterprisePacket.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/decodeI3S.js +2 -0
- package/dist/cesiumStatic/Workers/decodeI3S.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/transcodeKTX2.js +2 -0
- package/dist/cesiumStatic/Workers/transcodeKTX2.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/transferTypedArrayTest.js +2 -0
- package/dist/cesiumStatic/Workers/transferTypedArrayTest.js.LICENSE.txt +24 -0
- package/dist/cesiumStatic/Workers/upsampleQuantizedTerrainMesh.js +2 -0
- package/dist/cesiumStatic/Workers/upsampleQuantizedTerrainMesh.js.LICENSE.txt +24 -0
- package/dist/vizor_view.min.js +2 -0
- package/dist/vizor_view.min.js.LICENSE.txt +61 -0
- package/package.json +42 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see createPlaneGeometry.js.LICENSE.txt */
|
|
2
|
+
import{a as m}from"./chunk-TXLODGLR.js";import{a as b}from"./chunk-RHEGXTJ5.js";import{b as v,c as x,d as p}from"./chunk-CWBIOT2C.js";import{d as A}from"./chunk-PPN6SLYU.js";import"./chunk-SOWUYSYI.js";import{a as c}from"./chunk-I36V6CKP.js";import{a as y}from"./chunk-WG62ICZK.js";import"./chunk-EEN7GMYN.js";import"./chunk-SXYTVHGU.js";import"./chunk-RAWIUDJR.js";import{a as i}from"./chunk-KGKDCW56.js";import{b as u}from"./chunk-G4IO3CPJ.js";import{e as f}from"./chunk-GBRF7ES3.js";function s(t){t=i(t,i.EMPTY_OBJECT);let e=i(t.vertexFormat,m.DEFAULT);this._vertexFormat=e,this._workerName="createPlaneGeometry"}s.packedLength=m.packedLength,s.pack=function(t,e,n){return u.typeOf.object("value",t),u.defined("array",e),n=i(n,0),m.pack(t._vertexFormat,e,n),e};var d=new m,P={vertexFormat:d};s.unpack=function(t,e,n){u.defined("array",t),e=i(e,0);let r=m.unpack(t,e,d);return f(n)?(n._vertexFormat=m.clone(r,n._vertexFormat),n):new s(P)};var F=new y(-.5,-.5,0),l=new y(.5,.5,0);s.createGeometry=function(t){let e,n,r=t._vertexFormat,a=new b;if(r.position){if(n=new Float64Array(12),n[0]=F.x,n[1]=F.y,n[2]=0,n[3]=l.x,n[4]=F.y,n[5]=0,n[6]=l.x,n[7]=l.y,n[8]=0,n[9]=F.x,n[10]=l.y,n[11]=0,a.position=new p({componentDatatype:c.DOUBLE,componentsPerAttribute:3,values:n}),r.normal){let t=new Float32Array(12);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,a.normal=new p({componentDatatype:c.FLOAT,componentsPerAttribute:3,values:t})}if(r.st){let t=new Float32Array(8);t[0]=0,t[1]=0,t[2]=1,t[3]=0,t[4]=1,t[5]=1,t[6]=0,t[7]=1,a.st=new p({componentDatatype:c.FLOAT,componentsPerAttribute:2,values:t})}if(r.tangent){let t=new Float32Array(12);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,a.tangent=new p({componentDatatype:c.FLOAT,componentsPerAttribute:3,values:t})}if(r.bitangent){let t=new Float32Array(12);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,a.bitangent=new p({componentDatatype:c.FLOAT,componentsPerAttribute:3,values:t})}e=new Uint16Array(6),e[0]=0,e[1]=1,e[2]=2,e[3]=0,e[4]=2,e[5]=3}return new x({attributes:a,indices:e,primitiveType:v.TRIANGLES,boundingSphere:new A(y.ZERO,Math.sqrt(2))})};var w=s;function h(t,e){return f(e)&&(t=w.unpack(t,e)),w.createGeometry(t)}var M=h;export{M as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.120
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see createPlaneOutlineGeometry.js.LICENSE.txt */
|
|
2
|
+
import{a as l}from"./chunk-RHEGXTJ5.js";import{b as d,c as y,d as s}from"./chunk-CWBIOT2C.js";import{d as c}from"./chunk-PPN6SLYU.js";import"./chunk-SOWUYSYI.js";import{a as f}from"./chunk-I36V6CKP.js";import{a}from"./chunk-WG62ICZK.js";import"./chunk-EEN7GMYN.js";import"./chunk-SXYTVHGU.js";import"./chunk-RAWIUDJR.js";import"./chunk-KGKDCW56.js";import{b as m}from"./chunk-G4IO3CPJ.js";import{e as i}from"./chunk-GBRF7ES3.js";function o(){this._workerName="createPlaneOutlineGeometry"}o.packedLength=0,o.pack=function(n,e){return m.defined("value",n),m.defined("array",e),e},o.unpack=function(n,e,r){return m.defined("array",n),i(r)?r:new o};var n=new a(-.5,-.5,0),p=new a(.5,.5,0);o.createGeometry=function(){let e=new l,r=new Uint16Array(8),t=new Float64Array(12);return t[0]=n.x,t[1]=n.y,t[2]=n.z,t[3]=p.x,t[4]=n.y,t[5]=n.z,t[6]=p.x,t[7]=p.y,t[8]=n.z,t[9]=n.x,t[10]=p.y,t[11]=n.z,e.position=new s({componentDatatype:f.DOUBLE,componentsPerAttribute:3,values:t}),r[0]=0,r[1]=1,r[2]=1,r[3]=2,r[4]=2,r[5]=3,r[6]=3,r[7]=0,new y({attributes:e,indices:r,primitiveType:d.LINES,boundingSphere:new c(a.ZERO,Math.sqrt(2))})};var u=o;function w(n,e){return i(e)&&(n=u.unpack(n,e)),u.createGeometry(n)}var D=w;export{D as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.120
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see createPolygonGeometry.js.LICENSE.txt */
|
|
2
|
+
import{a as dt}from"./chunk-O3U5FZIX.js";import{a as F}from"./chunk-WNCIY4BT.js";import{a as at}from"./chunk-3FGVTQZT.js";import{a as st}from"./chunk-GWDOQ4QX.js";import{a as bt}from"./chunk-GI7IUZK6.js";import"./chunk-OKAWXMC7.js";import"./chunk-AXCXHIZO.js";import{a as ht}from"./chunk-6GG6EJBW.js";import{a as Q}from"./chunk-TXLODGLR.js";import{a as K}from"./chunk-FYZYSHA7.js";import"./chunk-CRU5R7HF.js";import{a as gt,b as nt}from"./chunk-FPT7TGTJ.js";import"./chunk-M6TFP6VU.js";import"./chunk-Q6IZOLLM.js";import{a as wt,b as yt}from"./chunk-WZ52TQTL.js";import"./chunk-5KPQNVA2.js";import{a as lt}from"./chunk-DBOVA5XH.js";import"./chunk-RHEGXTJ5.js";import{c as mt,d as tt}from"./chunk-CWBIOT2C.js";import{d as Tt}from"./chunk-PPN6SLYU.js";import{f as ct,h as _t}from"./chunk-SOWUYSYI.js";import{a as $}from"./chunk-I36V6CKP.js";import{a as c,b as ot,c as O,d as V,e as U}from"./chunk-WG62ICZK.js";import{a as l}from"./chunk-EEN7GMYN.js";import"./chunk-SXYTVHGU.js";import"./chunk-RAWIUDJR.js";import{a as L}from"./chunk-KGKDCW56.js";import{a as ut,b as q}from"./chunk-G4IO3CPJ.js";import{e as P}from"./chunk-GBRF7ES3.js";function b(t,e){this.position=t,P(this.position)||(this.position=new O),this.tangentPlane=e,P(this.tangentPlane)||(this.tangentPlane=b.NORTH_POLE_TANGENT_PLANE)}Object.defineProperties(b.prototype,{ellipsoid:{get:function(){return this.tangentPlane.ellipsoid}},x:{get:function(){return this.position.x}},y:{get:function(){return this.position.y}},conformalLatitude:{get:function(){let t=O.magnitude(this.position),e=2*this.ellipsoid.maximumRadius;return this.tangentPlane.plane.normal.z*(l.PI_OVER_TWO-2*Math.atan2(t,e))}},longitude:{get:function(){let t=l.PI_OVER_TWO+Math.atan2(this.y,this.x);return t>Math.PI&&(t-=l.TWO_PI),t}}});var it=new ot,Rt=new c;b.prototype.getLatitude=function(t){P(t)||(t=V.default),it.latitude=this.conformalLatitude,it.longitude=this.longitude,it.height=0;let e=this.ellipsoid.cartographicToCartesian(it,Rt);return t.cartesianToCartographic(e,it),it.latitude};var It=new wt,Lt=new c,Ft=new c;b.fromCartesian=function(t,e){q.defined("cartesian",t);let o=l.signNotZero(t.z),i=b.NORTH_POLE_TANGENT_PLANE,n=b.SOUTH_POLE;o<0&&(i=b.SOUTH_POLE_TANGENT_PLANE,n=b.NORTH_POLE);let r=It;r.origin=i.ellipsoid.scaleToGeocentricSurface(t,r.origin),r.direction=c.subtract(r.origin,n,Lt),c.normalize(r.direction,r.direction);let a=yt.rayPlane(r,i.plane,Ft),s=c.subtract(a,n,a),u=c.dot(i.xAxis,s),h=o*c.dot(i.yAxis,s);return P(e)?(e.position=new O(u,h),e.tangentPlane=i,e):new b(new O(u,h),i)},b.fromCartesianArray=function(t,e){q.defined("cartesians",t);let o=t.length;P(e)?e.length=o:e=new Array(o);for(let i=0;i<o;i++)e[i]=b.fromCartesian(t[i],e[i]);return e},b.clone=function(t,e){if(P(t))return P(e)?(e.position=t.position,e.tangentPlane=t.tangentPlane,e):new b(t.position,t.tangentPlane)},b.HALF_UNIT_SPHERE=Object.freeze(new V(.5,.5,.5)),b.NORTH_POLE=Object.freeze(new c(0,0,.5)),b.SOUTH_POLE=Object.freeze(new c(0,0,-.5)),b.NORTH_POLE_TANGENT_PLANE=Object.freeze(new K(b.NORTH_POLE,b.HALF_UNIT_SPHERE)),b.SOUTH_POLE_TANGENT_PLANE=Object.freeze(new K(b.SOUTH_POLE,b.HALF_UNIT_SPHERE));var D=b,vt=new ot,Ot=new ot;function St(t,e,o,i){let n=i.cartesianToCartographic(t,vt).height,r=i.cartesianToCartographic(e,Ot);r.height=n,i.cartographicToCartesian(r,e);let a=i.cartesianToCartographic(o,Ot);a.height=n-100,i.cartographicToCartesian(a,o)}var Et=new dt,Vt=new c,Bt=new c,Mt=new c,jt=new c,kt=new c,zt=new c,ft=new c,Z=new c,rt=new c,Dt=new O,Ut=new O,Wt=new c,At=new ct,Gt=new U,Yt=new U;function pt(t){let e=t.vertexFormat,o=t.geometry,i=t.shadowVolume,n=o.attributes.position.values,r=P(o.attributes.st)?o.attributes.st.values:void 0,a=n.length,s=t.wall,u=t.top||s,h=t.bottom||s;if(e.st||e.normal||e.tangent||e.bitangent||i){let p=t.boundingRectangle,g=t.rotationAxis,m=t.projectTo2d,d=t.ellipsoid,f=t.stRotation,y=t.perPositionHeight,_=Dt;_.x=p.x,_.y=p.y;let T,b=e.st?new Float32Array(a/3*2):void 0;e.normal&&(T=y&&u&&!s?o.attributes.normal.values:new Float32Array(a));let w=e.tangent?new Float32Array(a):void 0,I=e.bitangent?new Float32Array(a):void 0,A=i?new Float32Array(a):void 0,E=0,v=0,x=Bt,H=Mt,N=jt,L=!0,F=Gt,R=Yt;if(0!==f){let t=ct.fromAxisAngle(g,f,At);F=U.fromQuaternion(t,F),t=ct.fromAxisAngle(g,-f,At),R=U.fromQuaternion(t,R)}else F=U.clone(U.IDENTITY,F),R=U.clone(U.IDENTITY,R);let G=0,C=0;u&&h&&(G=a/2,C=a/3,a/=2);for(let o=0;o<a;o+=3){let g=c.fromArray(n,o,Wt);if(e.st&&!P(r)){let t=U.multiplyByVector(F,g,Vt);t=d.scaleToGeodeticSurface(t,t);let e=m([t],Ut)[0];O.subtract(e,_,e);let o=l.clamp(e.x/p.width,0,1),i=l.clamp(e.y/p.height,0,1);h&&(b[E+C]=o,b[E+1+C]=i),u&&(b[E]=o,b[E+1]=i),E+=2}if(e.normal||e.tangent||e.bitangent||i){let r=v+1,p=v+2;if(s){if(o+3<a){let t=c.fromArray(n,o+3,kt);if(L){let e=c.fromArray(n,o+a,zt);y&&St(g,t,e,d),c.subtract(t,g,t),c.subtract(e,g,e),x=c.normalize(c.cross(e,t,x),x),L=!1}c.equalsEpsilon(t,g,l.EPSILON10)&&(L=!0)}(e.tangent||e.bitangent)&&(N=d.geodeticSurfaceNormal(g,N),e.tangent&&(H=c.normalize(c.cross(N,x,H),H)))}else x=d.geodeticSurfaceNormal(g,x),(e.tangent||e.bitangent)&&(y&&(ft=c.fromArray(T,v,ft),Z=c.cross(c.UNIT_Z,ft,Z),Z=c.normalize(U.multiplyByVector(R,Z,Z),Z),e.bitangent&&(rt=c.normalize(c.cross(ft,Z,rt),rt))),H=c.cross(c.UNIT_Z,x,H),H=c.normalize(U.multiplyByVector(R,H,H),H),e.bitangent&&(N=c.normalize(c.cross(x,H,N),N)));e.normal&&(t.wall?(T[v+G]=x.x,T[r+G]=x.y,T[p+G]=x.z):h&&(T[v+G]=-x.x,T[r+G]=-x.y,T[p+G]=-x.z),(u&&!y||s)&&(T[v]=x.x,T[r]=x.y,T[p]=x.z)),i&&(s&&(x=d.geodeticSurfaceNormal(g,x)),A[v+G]=-x.x,A[r+G]=-x.y,A[p+G]=-x.z),e.tangent&&(t.wall?(w[v+G]=H.x,w[r+G]=H.y,w[p+G]=H.z):h&&(w[v+G]=-H.x,w[r+G]=-H.y,w[p+G]=-H.z),u&&(y?(w[v]=Z.x,w[r]=Z.y,w[p]=Z.z):(w[v]=H.x,w[r]=H.y,w[p]=H.z))),e.bitangent&&(h&&(I[v+G]=N.x,I[r+G]=N.y,I[p+G]=N.z),u&&(y?(I[v]=rt.x,I[r]=rt.y,I[p]=rt.z):(I[v]=N.x,I[r]=N.y,I[p]=N.z))),v+=3}}e.st&&!P(r)&&(o.attributes.st=new tt({componentDatatype:$.FLOAT,componentsPerAttribute:2,values:b})),e.normal&&(o.attributes.normal=new tt({componentDatatype:$.FLOAT,componentsPerAttribute:3,values:T})),e.tangent&&(o.attributes.tangent=new tt({componentDatatype:$.FLOAT,componentsPerAttribute:3,values:w})),e.bitangent&&(o.attributes.bitangent=new tt({componentDatatype:$.FLOAT,componentsPerAttribute:3,values:I})),i&&(o.attributes.extrudeDirection=new tt({componentDatatype:$.FLOAT,componentsPerAttribute:3,values:A}))}if(t.extrude&&P(t.offsetAttribute)){let e=n.length/3,i=new Uint8Array(e);if(t.offsetAttribute===ht.TOP)u&&h||s?i=i.fill(1,0,e/2):u&&(i=i.fill(1));else{let e=t.offsetAttribute===ht.NONE?0:1;i=i.fill(e)}o.attributes.applyOffset=new tt({componentDatatype:$.UNSIGNED_BYTE,componentsPerAttribute:1,values:i})}return o}var Ht=[];function qt(t,e,o,i,n,r,a,s,l,c){let u,h={walls:[]};if(a||s){let n,p,g=F.createGeometryFromPositions(t,e,o,i,r,l,c),m=g.attributes.position.values,d=g.indices;if(a&&s){let t=m.concat(m);n=t.length/3,p=lt.createTypedArray(n,2*d.length),p.set(d);let e=d.length,i=n/2;for(u=0;u<e;u+=3){let t=p[u]+i,o=p[u+1]+i,n=p[u+2]+i;p[u+e]=n,p[u+1+e]=o,p[u+2+e]=t}if(g.attributes.position.values=t,r&&l.normal){let e=g.attributes.normal.values;g.attributes.normal.values=new Float32Array(t.length),g.attributes.normal.values.set(e)}if(l.st&&P(o)){let t=g.attributes.st.values;g.attributes.st.values=new Float32Array(2*n),g.attributes.st.values=t.concat(t)}g.indices=p}else if(s){for(n=m.length/3,p=lt.createTypedArray(n,d.length),u=0;u<d.length;u+=3)p[u]=d[u+2],p[u+1]=d[u+1],p[u+2]=d[u];g.indices=p}h.topAndBottom=new st({geometry:g})}let p=n.outerRing,g=K.fromPoints(p,t),m=g.projectPointsOntoPlane(p,Ht),d=nt.computeWindingOrder2D(m);d===gt.CLOCKWISE&&(p=p.slice().reverse());let f=F.computeWallGeometry(p,o,t,i,r,c);h.walls.push(new st({geometry:f}));let y=n.holes;for(u=0;u<y.length;u++){let e=y[u];m=g.projectPointsOntoPlane(e,Ht),d=nt.computeWindingOrder2D(m),d===gt.COUNTER_CLOCKWISE&&(e=e.slice().reverse()),f=F.computeWallGeometry(e,o,t,i,r,c),h.walls.push(new st({geometry:f}))}return h}function G(t){if(q.typeOf.object("options",t),q.typeOf.object("options.polygonHierarchy",t.polygonHierarchy),P(t.perPositionHeight)&&t.perPositionHeight&&P(t.height))throw new ut("Cannot use both options.perPositionHeight and options.height");if(P(t.arcType)&&t.arcType!==at.GEODESIC&&t.arcType!==at.RHUMB)throw new ut("Invalid arcType. Valid options are ArcType.GEODESIC and ArcType.RHUMB.");let e=t.polygonHierarchy,o=L(t.vertexFormat,Q.DEFAULT),i=L(t.ellipsoid,V.default),n=L(t.granularity,l.RADIANS_PER_DEGREE),r=L(t.stRotation,0),a=t.textureCoordinates,s=L(t.perPositionHeight,!1),u=s&&P(t.extrudedHeight),h=L(t.height,0),p=L(t.extrudedHeight,h);if(!u){let t=Math.max(h,p);p=Math.min(h,p),h=t}this._vertexFormat=Q.clone(o),this._ellipsoid=V.clone(i),this._granularity=n,this._stRotation=r,this._height=h,this._extrudedHeight=p,this._closeTop=L(t.closeTop,!0),this._closeBottom=L(t.closeBottom,!0),this._polygonHierarchy=e,this._perPositionHeight=s,this._perPositionHeightExtrude=u,this._shadowVolume=L(t.shadowVolume,!1),this._workerName="createPolygonGeometry",this._offsetAttribute=t.offsetAttribute,this._arcType=L(t.arcType,at.GEODESIC),this._rectangle=void 0,this._textureCoordinateRotationPoints=void 0,this._textureCoordinates=a,this.packedLength=F.computeHierarchyPackedLength(e,c)+V.packedLength+Q.packedLength+(a?F.computeHierarchyPackedLength(a,O):1)+12}G.fromPositions=function(t){return t=L(t,L.EMPTY_OBJECT),q.defined("options.positions",t.positions),new G({polygonHierarchy:{positions:t.positions},height:t.height,extrudedHeight:t.extrudedHeight,vertexFormat:t.vertexFormat,stRotation:t.stRotation,ellipsoid:t.ellipsoid,granularity:t.granularity,perPositionHeight:t.perPositionHeight,closeTop:t.closeTop,closeBottom:t.closeBottom,offsetAttribute:t.offsetAttribute,arcType:t.arcType,textureCoordinates:t.textureCoordinates})},G.pack=function(t,e,o){return q.typeOf.object("value",t),q.defined("array",e),o=L(o,0),o=F.packPolygonHierarchy(t._polygonHierarchy,e,o,c),V.pack(t._ellipsoid,e,o),o+=V.packedLength,Q.pack(t._vertexFormat,e,o),o+=Q.packedLength,e[o++]=t._height,e[o++]=t._extrudedHeight,e[o++]=t._granularity,e[o++]=t._stRotation,e[o++]=t._perPositionHeightExtrude?1:0,e[o++]=t._perPositionHeight?1:0,e[o++]=t._closeTop?1:0,e[o++]=t._closeBottom?1:0,e[o++]=t._shadowVolume?1:0,e[o++]=L(t._offsetAttribute,-1),e[o++]=t._arcType,P(t._textureCoordinates)?o=F.packPolygonHierarchy(t._textureCoordinates,e,o,O):e[o++]=-1,e[o++]=t.packedLength,e};var Qt=V.clone(V.UNIT_SPHERE),Zt=new Q,Kt={polygonHierarchy:{}};G.unpack=function(t,e,o){q.defined("array",t),e=L(e,0);let i=F.unpackPolygonHierarchy(t,e,c);e=i.startingIndex,delete i.startingIndex;let n=V.unpack(t,e,Qt);e+=V.packedLength;let r=Q.unpack(t,e,Zt);e+=Q.packedLength;let a=t[e++],s=t[e++],l=t[e++],u=t[e++],h=1===t[e++],p=1===t[e++],g=1===t[e++],m=1===t[e++],d=1===t[e++],f=t[e++],y=t[e++],_=-1===t[e]?void 0:F.unpackPolygonHierarchy(t,e,O);P(_)?(e=_.startingIndex,delete _.startingIndex):e++;let T=t[e++];return P(o)||(o=new G(Kt)),o._polygonHierarchy=i,o._ellipsoid=V.clone(n,o._ellipsoid),o._vertexFormat=Q.clone(r,o._vertexFormat),o._height=a,o._extrudedHeight=s,o._granularity=l,o._stRotation=u,o._perPositionHeightExtrude=h,o._perPositionHeight=p,o._closeTop=g,o._closeBottom=m,o._shadowVolume=d,o._offsetAttribute=-1===f?void 0:f,o._arcType=y,o._textureCoordinates=_,o.packedLength=T,o};var Jt=new O,Xt=new O,$t=new D;function xt(t,e,o,i,n,r){let a=t.longitude,s=a>=0?a:a+l.TWO_PI;n.westOverIdl=Math.min(n.westOverIdl,s),n.eastOverIdl=Math.max(n.eastOverIdl,s),r.west=Math.min(r.west,a),r.east=Math.max(r.east,a);let c=t.getLatitude(o),u=c;if(r.south=Math.min(r.south,c),r.north=Math.max(r.north,c),i!==at.RHUMB){let i=O.subtract(e.position,t.position,Jt),n=O.dot(e.position,i)/O.dot(i,i);if(n>0&&n<1){let t=O.add(e.position,O.multiplyByScalar(i,-n,i),Xt),a=D.clone(e,$t);a.position=t;let s=a.getLatitude(o);r.south=Math.min(r.south,s),r.north=Math.max(r.north,s),Math.abs(c)>Math.abs(s)&&(u=s)}}let h=e.x*t.y-t.x*e.y,p=Math.sign(h);0!==p&&(p*=O.angleBetween(e.position,t.position)),u>=0&&(n.northAngle+=p),u<=0&&(n.southAngle+=p)}var Ct=new D,te=new D,W={northAngle:0,southAngle:0,westOverIdl:0,eastOverIdl:0};G.computeRectangleFromPositions=function(t,e,o,i){if(q.defined("positions",t),P(i)||(i=new _t),t.length<3)return i;i.west=Number.POSITIVE_INFINITY,i.east=Number.NEGATIVE_INFINITY,i.south=Number.POSITIVE_INFINITY,i.north=Number.NEGATIVE_INFINITY,W.northAngle=0,W.southAngle=0,W.westOverIdl=Number.POSITIVE_INFINITY,W.eastOverIdl=Number.NEGATIVE_INFINITY;let n=t.length,r=D.fromCartesian(t[0],te);for(let a=1;a<n;a++){let n=D.fromCartesian(t[a],Ct);xt(n,r,e,o,W,i),r=D.clone(n,r)}return xt(D.fromCartesian(t[0],Ct),r,e,o,W,i),i.east-i.west>W.eastOverIdl-W.westOverIdl&&(i.west=W.westOverIdl,i.east=W.eastOverIdl,i.east>l.PI&&(i.east=i.east-l.TWO_PI),i.west>l.PI&&(i.west=i.west-l.TWO_PI)),l.equalsEpsilon(Math.abs(W.northAngle),l.TWO_PI,l.EPSILON10)&&(i.north=l.PI_OVER_TWO,i.east=l.PI,i.west=-l.PI),l.equalsEpsilon(Math.abs(W.southAngle),l.TWO_PI,l.EPSILON10)&&(i.south=-l.PI_OVER_TWO,i.east=l.PI,i.west=-l.PI),i};var ee=new D;function oe(t,e,o){return t.height>=l.PI||t.width>=l.PI?D.fromCartesian(e[0],ee).tangentPlane:K.fromPoints(e,o)}var Nt=new ot;function ne(t,e,o){return(i,n)=>{if(t.height>=l.PI||t.width>=l.PI){if(t.south<0&&t.north>0){P(n)||(n=[]);for(let t=0;t<i.length;++t){let e=o.cartesianToCartographic(i[t],Nt);n[t]=new O(e.longitude/l.PI,e.latitude/l.PI_OVER_TWO)}return n.length=i.length,n}return D.fromCartesianArray(i,n)}return K.fromPoints(e,o).projectPointsOntoPlane(i,n)}}function ie(t,e,o){if(t.height>=l.PI||t.width>=l.PI)return(e,i)=>{if(t.south<0&&t.north>0){let t=o.cartesianToCartographic(e,Nt);return P(i)||(i=new O),i.x=t.longitude/l.PI,i.y=t.latitude/l.PI_OVER_TWO,i}return D.fromCartesian(e,i)};let i=K.fromPoints(e,o);return(t,e)=>i.projectPointsOntoPlane(t,e)}function re(t,e,o,i){return(n,r)=>!i&&(t.height>=l.PI_OVER_TWO||t.width>=2*l.PI_OVER_THREE)?F.splitPolygonsOnEquator(n,e,o,r):n}function se(t,e,o,i){if(e.height>=l.PI||e.width>=l.PI)return dt.fromRectangle(e,void 0,Et);let n=t,r=K.fromPoints(n,o);return F.computeBoundingRectangle(r.plane.normal,r.projectPointOntoPlane.bind(r),n,i,Et)}function ae(t){let e=-t._stRotation;if(0===e)return[0,0,0,1,1,0];let o=t._ellipsoid,i=t._polygonHierarchy.positions,n=t.rectangle;return mt._textureCoordinateRotationPoints(i,e,o,n)}G.createGeometry=function(t){let e=t._vertexFormat,o=t._ellipsoid,i=t._granularity,n=t._stRotation,r=t._polygonHierarchy,a=t._perPositionHeight,s=t._closeTop,c=t._closeBottom,u=t._arcType,h=t._textureCoordinates,p=P(h),g=r.positions;if(g.length<3)return;let m=t.rectangle,d=F.polygonsFromHierarchy(r,p,ne(m,g,o),!a,o,re(m,o,u,a)),f=d.hierarchy,y=d.polygons,_=p?F.polygonsFromHierarchy(h,!0,(function(t){return t}),!1,o).polygons:void 0;if(0===f.length)return;let O,T=f[0].outerRing,b=se(T,m,o,n),w=[],I=t._height,A=t._extrudedHeight,E=t._perPositionHeightExtrude||!l.equalsEpsilon(I,A,0,l.EPSILON2),v={perPositionHeight:a,vertexFormat:e,geometry:void 0,rotationAxis:oe(m,T,o).plane.normal,projectTo2d:ie(m,T,o),boundingRectangle:b,ellipsoid:o,stRotation:n,textureCoordinates:void 0,bottom:!1,top:!0,wall:!1,extrude:!1,arcType:u};if(E)for(v.extrude=!0,v.top=s,v.bottom=c,v.shadowVolume=t._shadowVolume,v.offsetAttribute=t._offsetAttribute,O=0;O<y.length;O++){let t,n=qt(o,y[O],p?_[O]:void 0,i,f[O],a,s,c,e,u);s&&c?(t=n.topAndBottom,v.geometry=F.scaleToGeodeticHeightExtruded(t.geometry,I,A,o,a)):s?(t=n.topAndBottom,t.geometry.attributes.position.values=nt.scaleToGeodeticHeight(t.geometry.attributes.position.values,I,o,!a),v.geometry=t.geometry):c&&(t=n.topAndBottom,t.geometry.attributes.position.values=nt.scaleToGeodeticHeight(t.geometry.attributes.position.values,A,o,!0),v.geometry=t.geometry),(s||c)&&(v.wall=!1,t.geometry=pt(v),w.push(t));let r=n.walls;v.wall=!0;for(let t=0;t<r.length;t++){let e=r[t];v.geometry=F.scaleToGeodeticHeightExtruded(e.geometry,I,A,o,a),e.geometry=pt(v),w.push(e)}}else for(O=0;O<y.length;O++){let n=new st({geometry:F.createGeometryFromPositions(o,y[O],p?_[O]:void 0,i,a,e,u)});if(n.geometry.attributes.position.values=nt.scaleToGeodeticHeight(n.geometry.attributes.position.values,I,o,!a),v.geometry=n.geometry,n.geometry=pt(v),P(t._offsetAttribute)){let e=n.geometry.attributes.position.values.length,o=t._offsetAttribute===ht.NONE?0:1,i=new Uint8Array(e/3).fill(o);n.geometry.attributes.applyOffset=new tt({componentDatatype:$.UNSIGNED_BYTE,componentsPerAttribute:1,values:i})}w.push(n)}let x=bt.combineInstances(w)[0];x.attributes.position.values=new Float64Array(x.attributes.position.values),x.indices=lt.createTypedArray(x.attributes.position.values.length/3,x.indices);let H=x.attributes,N=Tt.fromVertices(H.position.values);return e.position||delete H.position,new mt({attributes:H,indices:x.indices,primitiveType:x.primitiveType,boundingSphere:N,offsetAttribute:t._offsetAttribute})},G.createShadowVolume=function(t,e,o){let i=t._granularity,n=t._ellipsoid,r=e(i,n),a=o(i,n);return new G({polygonHierarchy:t._polygonHierarchy,ellipsoid:n,stRotation:t._stRotation,granularity:i,perPositionHeight:!1,extrudedHeight:r,height:a,vertexFormat:Q.POSITION_ONLY,shadowVolume:!0,arcType:t._arcType})},Object.defineProperties(G.prototype,{rectangle:{get:function(){if(!P(this._rectangle)){let t=this._polygonHierarchy.positions;this._rectangle=G.computeRectangleFromPositions(t,this._ellipsoid,this._arcType)}return this._rectangle}},textureCoordinateRotationPoints:{get:function(){return P(this._textureCoordinateRotationPoints)||(this._textureCoordinateRotationPoints=ae(this)),this._textureCoordinateRotationPoints}}});var Pt=G;function ce(t,e){return P(e)&&(t=Pt.unpack(t,e)),t._ellipsoid=V.clone(t._ellipsoid),Pt.createGeometry(t)}var Xe=ce;export{Xe as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.120
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see createPolygonOutlineGeometry.js.LICENSE.txt */
|
|
2
|
+
import{a}from"./chunk-WNCIY4BT.js";import{a as b}from"./chunk-3FGVTQZT.js";import{a as F}from"./chunk-GWDOQ4QX.js";import{a as V}from"./chunk-GI7IUZK6.js";import"./chunk-OKAWXMC7.js";import"./chunk-AXCXHIZO.js";import{a as D}from"./chunk-6GG6EJBW.js";import{a as W}from"./chunk-FYZYSHA7.js";import"./chunk-CRU5R7HF.js";import{a as j,b as k}from"./chunk-FPT7TGTJ.js";import"./chunk-M6TFP6VU.js";import"./chunk-Q6IZOLLM.js";import"./chunk-WZ52TQTL.js";import"./chunk-5KPQNVA2.js";import{a as M}from"./chunk-DBOVA5XH.js";import{a as G}from"./chunk-RHEGXTJ5.js";import{b as B,c as C,d as v}from"./chunk-CWBIOT2C.js";import{d as z}from"./chunk-PPN6SLYU.js";import"./chunk-SOWUYSYI.js";import{a as w}from"./chunk-I36V6CKP.js";import{a as S,d as y}from"./chunk-WG62ICZK.js";import{a as T}from"./chunk-EEN7GMYN.js";import"./chunk-SXYTVHGU.js";import"./chunk-RAWIUDJR.js";import{a as P}from"./chunk-KGKDCW56.js";import{a as U,b as A}from"./chunk-G4IO3CPJ.js";import{e as O}from"./chunk-GBRF7ES3.js";var Y=[],R=[];function K(e,t,i,r,o){let n=W.fromPoints(t,e).projectPointsOntoPlane(t,Y);k.computeWindingOrder2D(n)===j.CLOCKWISE&&(n.reverse(),t=t.slice().reverse());let s,p,u=t.length,l=0;if(r)for(s=new Float64Array(2*u*3),p=0;p<u;p++){let e=t[p],i=t[(p+1)%u];s[l++]=e.x,s[l++]=e.y,s[l++]=e.z,s[l++]=i.x,s[l++]=i.y,s[l++]=i.z}else{let r=0;if(o===b.GEODESIC)for(p=0;p<u;p++)r+=a.subdivideLineCount(t[p],t[(p+1)%u],i);else if(o===b.RHUMB)for(p=0;p<u;p++)r+=a.subdivideRhumbLineCount(e,t[p],t[(p+1)%u],i);for(s=new Float64Array(3*r),p=0;p<u;p++){let r;o===b.GEODESIC?r=a.subdivideLine(t[p],t[(p+1)%u],i,R):o===b.RHUMB&&(r=a.subdivideRhumbLine(e,t[p],t[(p+1)%u],i,R));let n=r.length;for(let e=0;e<n;++e)s[l++]=r[e]}}u=s.length/3;let h=2*u,c=M.createTypedArray(u,h);for(l=0,p=0;p<u-1;p++)c[l++]=p,c[l++]=p+1;return c[l++]=u-1,c[l++]=0,new F({geometry:new C({attributes:new G({position:new v({componentDatatype:w.DOUBLE,componentsPerAttribute:3,values:s})}),indices:c,primitiveType:B.LINES})})}function q(e,t,i,r,o){let n=W.fromPoints(t,e).projectPointsOntoPlane(t,Y);k.computeWindingOrder2D(n)===j.CLOCKWISE&&(n.reverse(),t=t.slice().reverse());let s,p,u=t.length,l=new Array(u),h=0;if(r)for(s=new Float64Array(2*u*3*2),p=0;p<u;++p){l[p]=h/3;let e=t[p],i=t[(p+1)%u];s[h++]=e.x,s[h++]=e.y,s[h++]=e.z,s[h++]=i.x,s[h++]=i.y,s[h++]=i.z}else{let r=0;if(o===b.GEODESIC)for(p=0;p<u;p++)r+=a.subdivideLineCount(t[p],t[(p+1)%u],i);else if(o===b.RHUMB)for(p=0;p<u;p++)r+=a.subdivideRhumbLineCount(e,t[p],t[(p+1)%u],i);for(s=new Float64Array(3*r*2),p=0;p<u;++p){let r;l[p]=h/3,o===b.GEODESIC?r=a.subdivideLine(t[p],t[(p+1)%u],i,R):o===b.RHUMB&&(r=a.subdivideRhumbLine(e,t[p],t[(p+1)%u],i,R));let n=r.length;for(let e=0;e<n;++e)s[h++]=r[e]}}u=s.length/6;let c=l.length,y=2*(2*u+c),f=M.createTypedArray(u+c,y);for(h=0,p=0;p<u;++p)f[h++]=p,f[h++]=(p+1)%u,f[h++]=p+u,f[h++]=(p+1)%u+u;for(p=0;p<c;p++){let e=l[p];f[h++]=e,f[h++]=e+u}return new F({geometry:new C({attributes:new G({position:new v({componentDatatype:w.DOUBLE,componentsPerAttribute:3,values:s})}),indices:f,primitiveType:B.LINES})})}function L(e){if(A.typeOf.object("options",e),A.typeOf.object("options.polygonHierarchy",e.polygonHierarchy),e.perPositionHeight&&O(e.height))throw new U("Cannot use both options.perPositionHeight and options.height");if(O(e.arcType)&&e.arcType!==b.GEODESIC&&e.arcType!==b.RHUMB)throw new U("Invalid arcType. Valid options are ArcType.GEODESIC and ArcType.RHUMB.");let t=e.polygonHierarchy,i=P(e.ellipsoid,y.default),r=P(e.granularity,T.RADIANS_PER_DEGREE),o=P(e.perPositionHeight,!1),n=o&&O(e.extrudedHeight),s=P(e.arcType,b.GEODESIC),p=P(e.height,0),u=P(e.extrudedHeight,p);if(!n){let e=Math.max(p,u);u=Math.min(p,u),p=e}this._ellipsoid=y.clone(i),this._granularity=r,this._height=p,this._extrudedHeight=u,this._arcType=s,this._polygonHierarchy=t,this._perPositionHeight=o,this._perPositionHeightExtrude=n,this._offsetAttribute=e.offsetAttribute,this._workerName="createPolygonOutlineGeometry",this.packedLength=a.computeHierarchyPackedLength(t,S)+y.packedLength+8}L.pack=function(e,t,i){return A.typeOf.object("value",e),A.defined("array",t),i=P(i,0),i=a.packPolygonHierarchy(e._polygonHierarchy,t,i,S),y.pack(e._ellipsoid,t,i),i+=y.packedLength,t[i++]=e._height,t[i++]=e._extrudedHeight,t[i++]=e._granularity,t[i++]=e._perPositionHeightExtrude?1:0,t[i++]=e._perPositionHeight?1:0,t[i++]=e._arcType,t[i++]=P(e._offsetAttribute,-1),t[i]=e.packedLength,t};var J=y.clone(y.UNIT_SPHERE),Q={polygonHierarchy:{}};L.unpack=function(e,t,i){A.defined("array",e),t=P(t,0);let r=a.unpackPolygonHierarchy(e,t,S);t=r.startingIndex,delete r.startingIndex;let o=y.unpack(e,t,J);t+=y.packedLength;let n=e[t++],s=e[t++],p=e[t++],u=1===e[t++],l=1===e[t++],h=e[t++],c=e[t++],f=e[t];return O(i)||(i=new L(Q)),i._polygonHierarchy=r,i._ellipsoid=y.clone(o,i._ellipsoid),i._height=n,i._extrudedHeight=s,i._granularity=p,i._perPositionHeight=l,i._perPositionHeightExtrude=u,i._arcType=h,i._offsetAttribute=-1===c?void 0:c,i.packedLength=f,i},L.fromPositions=function(e){return e=P(e,P.EMPTY_OBJECT),A.defined("options.positions",e.positions),new L({polygonHierarchy:{positions:e.positions},height:e.height,extrudedHeight:e.extrudedHeight,ellipsoid:e.ellipsoid,granularity:e.granularity,perPositionHeight:e.perPositionHeight,arcType:e.arcType,offsetAttribute:e.offsetAttribute})},L.createGeometry=function(e){let t=e._ellipsoid,i=e._granularity,r=e._polygonHierarchy,o=e._perPositionHeight,n=e._arcType,s=a.polygonOutlinesFromHierarchy(r,!o,t);if(0===s.length)return;let p,u,l,h=[],c=T.chordLength(i,t.maximumRadius),y=e._height,f=e._extrudedHeight;if(e._perPositionHeightExtrude||!T.equalsEpsilon(y,f,0,T.EPSILON2))for(l=0;l<s.length;l++){if(p=q(t,s[l],c,o,n),p.geometry=a.scaleToGeodeticHeightExtruded(p.geometry,y,f,t,o),O(e._offsetAttribute)){let t=p.geometry.attributes.position.values.length/3,i=new Uint8Array(t);e._offsetAttribute===D.TOP?i=i.fill(1,0,t/2):(u=e._offsetAttribute===D.NONE?0:1,i=i.fill(u)),p.geometry.attributes.applyOffset=new v({componentDatatype:w.UNSIGNED_BYTE,componentsPerAttribute:1,values:i})}h.push(p)}else for(l=0;l<s.length;l++){if(p=K(t,s[l],c,o,n),p.geometry.attributes.position.values=k.scaleToGeodeticHeight(p.geometry.attributes.position.values,y,t,!o),O(e._offsetAttribute)){let t=p.geometry.attributes.position.values.length;u=e._offsetAttribute===D.NONE?0:1;let i=new Uint8Array(t/3).fill(u);p.geometry.attributes.applyOffset=new v({componentDatatype:w.UNSIGNED_BYTE,componentsPerAttribute:1,values:i})}h.push(p)}let d=V.combineInstances(h)[0],m=z.fromVertices(d.attributes.position.values);return new C({attributes:d.attributes,indices:d.indices,primitiveType:d.primitiveType,boundingSphere:m,offsetAttribute:e._offsetAttribute})};var x=L;function X(e,t){return O(t)&&(e=x.unpack(e,t)),e._ellipsoid=y.clone(e._ellipsoid),x.createGeometry(e)}var Oe=X;export{Oe as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.120
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see createPolylineGeometry.js.LICENSE.txt */
|
|
2
|
+
import{a as m}from"./chunk-LL4PRXXO.js";import{a as N}from"./chunk-3FGVTQZT.js";import{a as U}from"./chunk-T52RL3ZJ.js";import"./chunk-O7LU3SZT.js";import{a as k}from"./chunk-TXLODGLR.js";import{a as le}from"./chunk-M6TFP6VU.js";import"./chunk-Q6IZOLLM.js";import"./chunk-WZ52TQTL.js";import"./chunk-5KPQNVA2.js";import{a as se}from"./chunk-DBOVA5XH.js";import{a as ce}from"./chunk-RHEGXTJ5.js";import{a as ne,b as re,c as ie,d as O}from"./chunk-CWBIOT2C.js";import{d as oe}from"./chunk-PPN6SLYU.js";import"./chunk-SOWUYSYI.js";import{a as x}from"./chunk-I36V6CKP.js";import{a as p,d as u}from"./chunk-WG62ICZK.js";import{a as J}from"./chunk-EEN7GMYN.js";import"./chunk-SXYTVHGU.js";import"./chunk-RAWIUDJR.js";import{a as A}from"./chunk-KGKDCW56.js";import{a as V}from"./chunk-G4IO3CPJ.js";import{e as h}from"./chunk-GBRF7ES3.js";var me=[];function Ae(e,t,r,o,n){let a=me;a.length=n;let i,s=r.red,l=r.green,p=r.blue,c=r.alpha,h=o.red,u=o.green,d=o.blue,f=o.alpha;if(m.equals(r,o)){for(i=0;i<n;i++)a[i]=m.clone(r);return a}let k=(h-s)/n,g=(u-l)/n,w=(d-p)/n,y=(f-c)/n;for(i=0;i<n;i++)a[i]=new m(s+i*k,l+i*g,p+i*w,c+i*y);return a}function G(e){let t=(e=A(e,A.EMPTY_OBJECT)).positions,r=e.colors,o=A(e.width,1),n=A(e.colorsPerVertex,!1);if(!h(t)||t.length<2)throw new V("At least two positions are required.");if("number"!=typeof o)throw new V("width must be a number");if(h(r)&&(n&&r.length<t.length||!n&&r.length<t.length-1))throw new V("colors has an invalid length.");this._positions=t,this._colors=r,this._width=o,this._colorsPerVertex=n,this._vertexFormat=k.clone(A(e.vertexFormat,k.DEFAULT)),this._arcType=A(e.arcType,N.GEODESIC),this._granularity=A(e.granularity,J.RADIANS_PER_DEGREE),this._ellipsoid=u.clone(A(e.ellipsoid,u.default)),this._workerName="createPolylineGeometry";let a=1+t.length*p.packedLength;a+=h(r)?1+r.length*m.packedLength:1,this.packedLength=a+u.packedLength+k.packedLength+4}G.pack=function(e,t,r){if(!h(e))throw new V("value is required");if(!h(t))throw new V("array is required");r=A(r,0);let o,n=e._positions,a=n.length;for(t[r++]=a,o=0;o<a;++o,r+=p.packedLength)p.pack(n[o],t,r);let i=e._colors;for(a=h(i)?i.length:0,t[r++]=a,o=0;o<a;++o,r+=m.packedLength)m.pack(i[o],t,r);return u.pack(e._ellipsoid,t,r),r+=u.packedLength,k.pack(e._vertexFormat,t,r),r+=k.packedLength,t[r++]=e._width,t[r++]=e._colorsPerVertex?1:0,t[r++]=e._arcType,t[r]=e._granularity,t};var de=u.clone(u.UNIT_SPHERE),ue=new k,S={positions:void 0,colors:void 0,ellipsoid:de,vertexFormat:ue,width:void 0,colorsPerVertex:void 0,arcType:void 0,granularity:void 0};G.unpack=function(e,t,r){if(!h(e))throw new V("array is required");t=A(t,0);let o,n=e[t++],a=new Array(n);for(o=0;o<n;++o,t+=p.packedLength)a[o]=p.unpack(e,t);n=e[t++];let i=n>0?new Array(n):void 0;for(o=0;o<n;++o,t+=m.packedLength)i[o]=m.unpack(e,t);let s=u.unpack(e,t,de);t+=u.packedLength;let l=k.unpack(e,t,ue);t+=k.packedLength;let c=e[t++],d=1===e[t++],f=e[t++],g=e[t];return h(r)?(r._positions=a,r._colors=i,r._ellipsoid=u.clone(s,r._ellipsoid),r._vertexFormat=k.clone(l,r._vertexFormat),r._width=c,r._colorsPerVertex=d,r._arcType=f,r._granularity=g,r):(S.positions=a,S.colors=i,S.width=c,S.colorsPerVertex=d,S.arcType=f,S.granularity=g,new G(S))};var pe=new p,ae=new p,fe=new p,he=new p;G.createGeometry=function(e){let t,r,o,n=e._width,a=e._vertexFormat,i=e._colors,s=e._colorsPerVertex,l=e._arcType,c=e._granularity,u=e._ellipsoid,d=[],f=le(e._positions,p.equalsEpsilon,!1,d);if(h(i)&&d.length>0){let e=0,t=d[0];i=i.filter((function(r,o){let n=!1;return n=s?o===t||0===o&&1===t:o+1===t,!n||(e++,t=d[e],!1)}))}let k=f.length;if(k<2||n<=0)return;if(l===N.GEODESIC||l===N.RHUMB){let e,o;l===N.GEODESIC?(e=J.chordLength(c,u.maximumRadius),o=U.numberOfPoints):(e=c,o=U.numberOfPointsRhumbLine);let n=U.extractHeights(f,u);if(h(i)){let n=1;for(t=0;t<k-1;++t)n+=o(f[t],f[t+1],e);let a=new Array(n),l=0;for(t=0;t<k-1;++t){let p=f[t],c=f[t+1],h=i[t],u=o(p,c,e);if(s&&t<n){let e=Ae(p,c,h,i[t+1],u),o=e.length;for(r=0;r<o;++r)a[l++]=e[r]}else for(r=0;r<u;++r)a[l++]=m.clone(h)}a[l]=m.clone(i[i.length-1]),i=a,me.length=0}f=l===N.GEODESIC?U.generateCartesianArc({positions:f,minDistance:e,ellipsoid:u,height:n}):U.generateCartesianRhumbArc({positions:f,granularity:e,ellipsoid:u,height:n})}k=f.length;let g,w=4*k-4,y=new Float64Array(3*w),A=new Float64Array(3*w),_=new Float64Array(3*w),L=new Float32Array(2*w),T=a.st?new Float32Array(2*w):void 0,v=h(i)?new Uint8Array(4*w):void 0,P=0,E=0,G=0,S=0;for(r=0;r<k;++r){let e,t;0===r?(g=pe,p.subtract(f[0],f[1],g),p.add(f[0],g,g)):g=f[r-1],p.clone(g,fe),p.clone(f[r],ae),r===k-1?(g=pe,p.subtract(f[k-1],f[k-2],g),p.add(f[k-1],g,g)):g=f[r+1],p.clone(g,he),h(v)&&(e=0===r||s?i[r]:i[r-1],r!==k-1&&(t=i[r]));let l=r===k-1?2:4;for(o=0===r?2:0;o<l;++o){p.pack(ae,y,P),p.pack(fe,A,P),p.pack(he,_,P),P+=3;let i=o-2<0?-1:1;if(L[E++]=o%2*2-1,L[E++]=i*n,a.st&&(T[G++]=r/(k-1),T[G++]=Math.max(L[E-2],0)),h(v)){let r=o<2?e:t;v[S++]=m.floatToByte(r.red),v[S++]=m.floatToByte(r.green),v[S++]=m.floatToByte(r.blue),v[S++]=m.floatToByte(r.alpha)}}}let j=new ce;j.position=new O({componentDatatype:x.DOUBLE,componentsPerAttribute:3,values:y}),j.prevPosition=new O({componentDatatype:x.DOUBLE,componentsPerAttribute:3,values:A}),j.nextPosition=new O({componentDatatype:x.DOUBLE,componentsPerAttribute:3,values:_}),j.expandAndWidth=new O({componentDatatype:x.FLOAT,componentsPerAttribute:2,values:L}),a.st&&(j.st=new O({componentDatatype:x.FLOAT,componentsPerAttribute:2,values:T})),h(v)&&(j.color=new O({componentDatatype:x.UNSIGNED_BYTE,componentsPerAttribute:4,values:v,normalize:!0}));let D=se.createTypedArray(w,6*k-6),b=0,V=0,F=k-1;for(r=0;r<F;++r)D[V++]=b,D[V++]=b+2,D[V++]=b+1,D[V++]=b+1,D[V++]=b+2,D[V++]=b+3,b+=4;return new ie({attributes:j,indices:D,primitiveType:re.TRIANGLES,boundingSphere:oe.fromPoints(f),geometryType:ne.POLYLINES})};var Q=G;function ge(e,t){return h(t)&&(e=Q.unpack(e,t)),e._ellipsoid=u.clone(e._ellipsoid),Q.createGeometry(e)}var We=ge;export{We as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.120
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see createPolylineVolumeGeometry.js.LICENSE.txt */
|
|
2
|
+
import{a as M}from"./chunk-O3U5FZIX.js";import{a as W}from"./chunk-GI7IUZK6.js";import"./chunk-OKAWXMC7.js";import"./chunk-AXCXHIZO.js";import{a as x,b as I,c as j}from"./chunk-G6QT7N47.js";import"./chunk-T52RL3ZJ.js";import"./chunk-O7LU3SZT.js";import{a as g}from"./chunk-TXLODGLR.js";import"./chunk-FYZYSHA7.js";import"./chunk-CRU5R7HF.js";import{a as $,b as V}from"./chunk-FPT7TGTJ.js";import{a as Z}from"./chunk-M6TFP6VU.js";import"./chunk-Q6IZOLLM.js";import"./chunk-WZ52TQTL.js";import"./chunk-5KPQNVA2.js";import{a as X}from"./chunk-DBOVA5XH.js";import{a as Q}from"./chunk-RHEGXTJ5.js";import{b as Y,c as z,d as U}from"./chunk-CWBIOT2C.js";import{d as K}from"./chunk-PPN6SLYU.js";import"./chunk-SOWUYSYI.js";import{a as B}from"./chunk-I36V6CKP.js";import{a as T,c as C,d as f}from"./chunk-WG62ICZK.js";import{a as J}from"./chunk-EEN7GMYN.js";import"./chunk-SXYTVHGU.js";import"./chunk-RAWIUDJR.js";import{a as k}from"./chunk-KGKDCW56.js";import{a as D}from"./chunk-G4IO3CPJ.js";import{e as _}from"./chunk-GBRF7ES3.js";function oe(e,t,n,o){let r=new Q;o.position&&(r.position=new U({componentDatatype:B.DOUBLE,componentsPerAttribute:3,values:e}));let i,a,s,p,c,l,u=t.length,h=e.length/3,m=(h-2*u)/(2*u),k=V.triangulate(t),g=(m-1)*u*6+2*k.length,f=X.createTypedArray(h,g),d=2*u,y=0;for(i=0;i<m-1;i++){for(a=0;a<u-1;a++)s=2*a+i*u*2,l=s+d,p=s+1,c=p+d,f[y++]=p,f[y++]=s,f[y++]=c,f[y++]=c,f[y++]=s,f[y++]=l;s=2*u-2+i*u*2,p=s+1,c=p+d,l=s+d,f[y++]=p,f[y++]=s,f[y++]=c,f[y++]=c,f[y++]=s,f[y++]=l}if(o.st||o.tangent||o.bitangent){let e,o,s=new Float32Array(2*h),p=1/(m-1),c=1/n.height,l=n.height/2,k=0;for(i=0;i<m;i++){for(e=i*p,o=c*(t[0].y+l),s[k++]=e,s[k++]=o,a=1;a<u;a++)o=c*(t[a].y+l),s[k++]=e,s[k++]=o,s[k++]=e,s[k++]=o;o=c*(t[0].y+l),s[k++]=e,s[k++]=o}for(a=0;a<u;a++)e=0,o=c*(t[a].y+l),s[k++]=e,s[k++]=o;for(a=0;a<u;a++)e=(m-1)*p,o=c*(t[a].y+l),s[k++]=e,s[k++]=o;r.st=new U({componentDatatype:B.FLOAT,componentsPerAttribute:2,values:new Float32Array(s)})}let _=h-2*u;for(i=0;i<k.length;i+=3){let e=k[i]+_,t=k[i+1]+_,n=k[i+2]+_;f[y++]=e,f[y++]=t,f[y++]=n,f[y++]=n+u,f[y++]=t+u,f[y++]=e+u}let T=new z({attributes:r,indices:f,boundingSphere:K.fromVertices(e),primitiveType:Y.TRIANGLES});if(o.normal&&(T=W.computeNormal(T)),o.tangent||o.bitangent){try{T=W.computeTangentAndBitangent(T)}catch{I("polyline-volume-tangent-bitangent","Unable to compute tangents and bitangents for polyline volume geometry")}o.tangent||(T.attributes.tangent=void 0),o.bitangent||(T.attributes.bitangent=void 0),o.st||(T.attributes.st=void 0)}return T}function R(e){let t=(e=k(e,k.EMPTY_OBJECT)).polylinePositions,n=e.shapePositions;if(!_(t))throw new D("options.polylinePositions is required.");if(!_(n))throw new D("options.shapePositions is required.");this._positions=t,this._shape=n,this._ellipsoid=f.clone(k(e.ellipsoid,f.default)),this._cornerType=k(e.cornerType,x.ROUNDED),this._vertexFormat=g.clone(k(e.vertexFormat,g.DEFAULT)),this._granularity=k(e.granularity,J.RADIANS_PER_DEGREE),this._workerName="createPolylineVolumeGeometry";let o=1+t.length*T.packedLength;o+=1+n.length*C.packedLength,this.packedLength=o+f.packedLength+g.packedLength+2}R.pack=function(e,t,n){if(!_(e))throw new D("value is required");if(!_(t))throw new D("array is required");n=k(n,0);let o,r=e._positions,i=r.length;for(t[n++]=i,o=0;o<i;++o,n+=T.packedLength)T.pack(r[o],t,n);let a=e._shape;for(i=a.length,t[n++]=i,o=0;o<i;++o,n+=C.packedLength)C.pack(a[o],t,n);return f.pack(e._ellipsoid,t,n),n+=f.packedLength,g.pack(e._vertexFormat,t,n),n+=g.packedLength,t[n++]=e._cornerType,t[n]=e._granularity,t};var ee=f.clone(f.UNIT_SPHERE),te=new g,v={polylinePositions:void 0,shapePositions:void 0,ellipsoid:ee,vertexFormat:te,cornerType:void 0,granularity:void 0};R.unpack=function(e,t,n){if(!_(e))throw new D("array is required");t=k(t,0);let o,r=e[t++],i=new Array(r);for(o=0;o<r;++o,t+=T.packedLength)i[o]=T.unpack(e,t);r=e[t++];let a=new Array(r);for(o=0;o<r;++o,t+=C.packedLength)a[o]=C.unpack(e,t);let s=f.unpack(e,t,ee);t+=f.packedLength;let p=g.unpack(e,t,te);t+=g.packedLength;let c=e[t++],l=e[t];return _(n)?(n._positions=i,n._shape=a,n._ellipsoid=f.clone(s,n._ellipsoid),n._vertexFormat=g.clone(p,n._vertexFormat),n._cornerType=c,n._granularity=l,n):(v.polylinePositions=i,v.shapePositions=a,v.cornerType=c,v.granularity=l,new R(v))};var ne=new M;R.createGeometry=function(e){let t=e._positions,n=Z(t,T.equalsEpsilon),o=e._shape;if(o=j.removeDuplicatesFromShape(o),n.length<2||o.length<3)return;V.computeWindingOrder2D(o)===$.CLOCKWISE&&o.reverse();let r=M.fromPoints(o,ne);return oe(j.computePositions(n,o,r,e,!0),o,r,e._vertexFormat)};var H=R;function ie(e,t){return _(t)&&(e=H.unpack(e,t)),e._ellipsoid=f.clone(e._ellipsoid),H.createGeometry(e)}var Re=ie;export{Re as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.120
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see createPolylineVolumeOutlineGeometry.js.LICENSE.txt */
|
|
2
|
+
import{a as w}from"./chunk-O3U5FZIX.js";import{a as N,c as E}from"./chunk-G6QT7N47.js";import"./chunk-T52RL3ZJ.js";import"./chunk-O7LU3SZT.js";import"./chunk-FYZYSHA7.js";import"./chunk-CRU5R7HF.js";import{a as v,b as G}from"./chunk-FPT7TGTJ.js";import{a as q}from"./chunk-M6TFP6VU.js";import"./chunk-Q6IZOLLM.js";import"./chunk-WZ52TQTL.js";import"./chunk-5KPQNVA2.js";import{a as k}from"./chunk-DBOVA5XH.js";import{a as O}from"./chunk-RHEGXTJ5.js";import{b as A,c as R,d as S}from"./chunk-CWBIOT2C.js";import{d as C}from"./chunk-PPN6SLYU.js";import"./chunk-SOWUYSYI.js";import{a as b}from"./chunk-I36V6CKP.js";import{a,c as _,d as s}from"./chunk-WG62ICZK.js";import{a as D}from"./chunk-EEN7GMYN.js";import"./chunk-SXYTVHGU.js";import"./chunk-RAWIUDJR.js";import{a as d}from"./chunk-KGKDCW56.js";import{a as y}from"./chunk-G4IO3CPJ.js";import{e as u}from"./chunk-GBRF7ES3.js";function W(e,o){let r=new O;r.position=new S({componentDatatype:b.DOUBLE,componentsPerAttribute:3,values:e});let i,t,n=o.length,s=r.position.values.length/3,a=e.length/3/n,p=k.createTypedArray(s,2*n*(a+1)),c=0;i=0;let u=i*n;for(t=0;t<n-1;t++)p[c++]=t+u,p[c++]=t+u+1;for(p[c++]=n-1+u,p[c++]=u,i=a-1,u=i*n,t=0;t<n-1;t++)p[c++]=t+u,p[c++]=t+u+1;for(p[c++]=n-1+u,p[c++]=u,i=0;i<a-1;i++){let e=n*i,o=e+n;for(t=0;t<n;t++)p[c++]=t+e,p[c++]=t+o}return new R({attributes:r,indices:k.createTypedArray(s,p),boundingSphere:C.fromVertices(e),primitiveType:A.LINES})}function g(e){let o=(e=d(e,d.EMPTY_OBJECT)).polylinePositions,r=e.shapePositions;if(!u(o))throw new y("options.polylinePositions is required.");if(!u(r))throw new y("options.shapePositions is required.");this._positions=o,this._shape=r,this._ellipsoid=s.clone(d(e.ellipsoid,s.default)),this._cornerType=d(e.cornerType,N.ROUNDED),this._granularity=d(e.granularity,D.RADIANS_PER_DEGREE),this._workerName="createPolylineVolumeOutlineGeometry";let i=1+o.length*a.packedLength;i+=1+r.length*_.packedLength,this.packedLength=i+s.packedLength+2}g.pack=function(e,o,r){if(!u(e))throw new y("value is required");if(!u(o))throw new y("array is required");r=d(r,0);let i,t=e._positions,n=t.length;for(o[r++]=n,i=0;i<n;++i,r+=a.packedLength)a.pack(t[i],o,r);let p=e._shape;for(n=p.length,o[r++]=n,i=0;i<n;++i,r+=_.packedLength)_.pack(p[i],o,r);return s.pack(e._ellipsoid,o,r),r+=s.packedLength,o[r++]=e._cornerType,o[r]=e._granularity,o};var B=s.clone(s.UNIT_SPHERE),P={polylinePositions:void 0,shapePositions:void 0,ellipsoid:B,height:void 0,cornerType:void 0,granularity:void 0};g.unpack=function(e,o,r){if(!u(e))throw new y("array is required");o=d(o,0);let i,t=e[o++],n=new Array(t);for(i=0;i<t;++i,o+=a.packedLength)n[i]=a.unpack(e,o);t=e[o++];let p=new Array(t);for(i=0;i<t;++i,o+=_.packedLength)p[i]=_.unpack(e,o);let c=s.unpack(e,o,B);o+=s.packedLength;let h=e[o++],l=e[o];return u(r)?(r._positions=n,r._shape=p,r._ellipsoid=s.clone(c,r._ellipsoid),r._cornerType=h,r._granularity=l,r):(P.polylinePositions=n,P.shapePositions=p,P.cornerType=h,P.granularity=l,new g(P))};var M=new w;g.createGeometry=function(e){let o=e._positions,r=q(o,a.equalsEpsilon),i=e._shape;if(i=E.removeDuplicatesFromShape(i),r.length<2||i.length<3)return;G.computeWindingOrder2D(i)===v.CLOCKWISE&&i.reverse();let t=w.fromPoints(i,M);return W(E.computePositions(r,i,t,e,!1),i)};var L=g;function j(e,o){return u(o)&&(e=L.unpack(e,o)),e._ellipsoid=s.clone(e._ellipsoid),L.createGeometry(e)}var he=j;export{he as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.120
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see createRectangleGeometry.js.LICENSE.txt */
|
|
2
|
+
import{a as J}from"./chunk-SQXEWPMX.js";import{a as Nt}from"./chunk-GWDOQ4QX.js";import{a as zt}from"./chunk-GI7IUZK6.js";import"./chunk-OKAWXMC7.js";import"./chunk-AXCXHIZO.js";import{a as ut}from"./chunk-6GG6EJBW.js";import{a as X}from"./chunk-TXLODGLR.js";import{b as Rt}from"./chunk-FPT7TGTJ.js";import"./chunk-Q6IZOLLM.js";import"./chunk-WZ52TQTL.js";import"./chunk-5KPQNVA2.js";import{a as yt}from"./chunk-DBOVA5XH.js";import{a as Vt}from"./chunk-RHEGXTJ5.js";import{b as Mt,c as Pt,d as q}from"./chunk-CWBIOT2C.js";import{d as st}from"./chunk-PPN6SLYU.js";import{f as Lt,h as E,i as At}from"./chunk-SOWUYSYI.js";import{a as Y}from"./chunk-I36V6CKP.js";import{a as _,b as wt,c as G,d as H,e as ft}from"./chunk-WG62ICZK.js";import{a as W}from"./chunk-EEN7GMYN.js";import"./chunk-SXYTVHGU.js";import"./chunk-RAWIUDJR.js";import{a as L}from"./chunk-KGKDCW56.js";import{a as St,b as lt}from"./chunk-G4IO3CPJ.js";import{e as $}from"./chunk-GBRF7ES3.js";var Tt=new _,Bt=new _,Ut=new _,Yt=new _,qt=new E,Zt=new G,Kt=new st,$t=new st;function Xt(t,e){let n=new Pt({attributes:new Vt,primitiveType:Mt.TRIANGLES});return n.attributes.position=new q({componentDatatype:Y.DOUBLE,componentsPerAttribute:3,values:e.positions}),t.normal&&(n.attributes.normal=new q({componentDatatype:Y.FLOAT,componentsPerAttribute:3,values:e.normals})),t.tangent&&(n.attributes.tangent=new q({componentDatatype:Y.FLOAT,componentsPerAttribute:3,values:e.tangents})),t.bitangent&&(n.attributes.bitangent=new q({componentDatatype:Y.FLOAT,componentsPerAttribute:3,values:e.bitangents})),n}function Gt(t,e,n,o){let a=t.length,r=e.normal?new Float32Array(a):void 0,i=e.tangent?new Float32Array(a):void 0,s=e.bitangent?new Float32Array(a):void 0,l=0,u=Yt,c=Ut,m=Bt;if(e.normal||e.tangent||e.bitangent)for(let p=0;p<a;p+=3){let a=_.fromArray(t,p,Tt),h=l+1,f=l+2;m=n.geodeticSurfaceNormal(a,m),(e.tangent||e.bitangent)&&(_.cross(_.UNIT_Z,m,c),ft.multiplyByVector(o,c,c),_.normalize(c,c),e.bitangent&&_.normalize(_.cross(m,c,u),u)),e.normal&&(r[l]=m.x,r[h]=m.y,r[f]=m.z),e.tangent&&(i[l]=c.x,i[h]=c.y,i[f]=c.z),e.bitangent&&(s[l]=u.x,s[h]=u.y,s[f]=u.z),l+=3}return Xt(e,{positions:t,normals:r,tangents:i,bitangents:s})}var Ct=new _,jt=new _;function te(t,e,n){let o=t.length,a=e.normal?new Float32Array(o):void 0,r=e.tangent?new Float32Array(o):void 0,i=e.bitangent?new Float32Array(o):void 0,s=0,l=0,u=0,c=!0,m=Yt,p=Ut,h=Bt;if(e.normal||e.tangent||e.bitangent)for(let f=0;f<o;f+=6){let g=_.fromArray(t,f,Tt),d=_.fromArray(t,(f+6)%o,Ct);if(c){let e=_.fromArray(t,(f+3)%o,jt);_.subtract(d,g,d),_.subtract(e,g,e),h=_.normalize(_.cross(e,d,h),h),c=!1}_.equalsEpsilon(d,g,W.EPSILON10)&&(c=!0),(e.tangent||e.bitangent)&&(m=n.geodeticSurfaceNormal(g,m),e.tangent&&(p=_.normalize(_.cross(m,h,p),p))),e.normal&&(a[s++]=h.x,a[s++]=h.y,a[s++]=h.z,a[s++]=h.x,a[s++]=h.y,a[s++]=h.z),e.tangent&&(r[l++]=p.x,r[l++]=p.y,r[l++]=p.z,r[l++]=p.x,r[l++]=p.y,r[l++]=p.z),e.bitangent&&(i[u++]=m.x,i[u++]=m.y,i[u++]=m.z,i[u++]=m.x,i[u++]=m.y,i[u++]=m.z)}return Xt(e,{positions:t,normals:a,tangents:r,bitangents:i})}function It(t,e){let n=t._vertexFormat,o=t._ellipsoid,a=e.height,r=e.width,i=e.northCap,s=e.southCap,l=0,u=a,c=a,m=0;i&&(l=1,c-=1,m+=1),s&&(u-=1,c-=1,m+=1),m+=r*c;let p=n.position?new Float64Array(3*m):void 0,h=n.st?new Float32Array(2*m):void 0,f=0,g=0,d=Tt,_=Zt,y=Number.MAX_VALUE,w=Number.MAX_VALUE,b=-Number.MAX_VALUE,A=-Number.MAX_VALUE;for(let t=l;t<u;++t)for(let a=0;a<r;++a)J.computePosition(e,o,n.st,t,a,d,_),p[f++]=d.x,p[f++]=d.y,p[f++]=d.z,n.st&&(h[g++]=_.x,h[g++]=_.y,y=Math.min(y,_.x),w=Math.min(w,_.y),b=Math.max(b,_.x),A=Math.max(A,_.y));if(i&&(J.computePosition(e,o,n.st,0,0,d,_),p[f++]=d.x,p[f++]=d.y,p[f++]=d.z,n.st&&(h[g++]=_.x,h[g++]=_.y,y=_.x,w=_.y,b=_.x,A=_.y)),s&&(J.computePosition(e,o,n.st,a-1,0,d,_),p[f++]=d.x,p[f++]=d.y,p[f]=d.z,n.st&&(h[g++]=_.x,h[g]=_.y,y=Math.min(y,_.x),w=Math.min(w,_.y),b=Math.max(b,_.x),A=Math.max(A,_.y))),n.st&&(y<0||w<0||b>1||A>1))for(let t=0;t<h.length;t+=2)h[t]=(h[t]-y)/(b-y),h[t+1]=(h[t+1]-w)/(A-w);let v=Gt(p,n,o,e.tangentRotationMatrix),x=6*(r-1)*(c-1);i&&(x+=3*(r-1)),s&&(x+=3*(r-1));let E,L=yt.createTypedArray(m,x),k=0,P=0;for(E=0;E<c-1;++E){for(let t=0;t<r-1;++t){let t=k,e=t+r,n=e+1,o=t+1;L[P++]=t,L[P++]=e,L[P++]=o,L[P++]=o,L[P++]=e,L[P++]=n,++k}++k}if(i||s){let t,e,n=m-1,o=m-1;if(i&&s&&(n=m-2),k=0,i)for(E=0;E<r-1;E++)t=k,e=t+1,L[P++]=n,L[P++]=t,L[P++]=e,++k;if(s)for(k=(c-1)*r,E=0;E<r-1;E++)t=k,e=t+1,L[P++]=t,L[P++]=o,L[P++]=e,++k}return v.indices=L,n.st&&(v.attributes.st=new q({componentDatatype:Y.FLOAT,componentsPerAttribute:2,values:h})),v}function ht(t,e,n,o,a){return t[e++]=o[n],t[e++]=o[n+1],t[e++]=o[n+2],t[e++]=a[n],t[e++]=a[n+1],t[e]=a[n+2],t}function dt(t,e,n,o){return t[e++]=o[n],t[e++]=o[n+1],t[e++]=o[n],t[e]=o[n+1],t}var Dt=new X;function ee(t,e){let n,o=t._shadowVolume,a=t._offsetAttribute,r=t._vertexFormat,i=t._extrudedHeight,s=t._surfaceHeight,l=t._ellipsoid,u=e.height,c=e.width;if(o){let e=X.clone(r,Dt);e.normal=!0,t._vertexFormat=e}let m=It(t,e);o&&(t._vertexFormat=r);let p=Rt.scaleToGeodeticHeight(m.attributes.position.values,s,l,!1);p=new Float64Array(p);let h=p.length,f=2*h,g=new Float64Array(f);g.set(p);let d=Rt.scaleToGeodeticHeight(m.attributes.position.values,i,l);g.set(d,h),m.attributes.position.values=g;let y,w,b=r.normal?new Float32Array(f):void 0,A=r.tangent?new Float32Array(f):void 0,v=r.bitangent?new Float32Array(f):void 0,x=r.st?new Float32Array(f/3*2):void 0;if(r.normal){for(w=m.attributes.normal.values,b.set(w),n=0;n<h;n++)w[n]=-w[n];b.set(w,h),m.attributes.normal.values=b}if(o){w=m.attributes.normal.values,r.normal||(m.attributes.normal=void 0);let t=new Float32Array(f);for(n=0;n<h;n++)w[n]=-w[n];t.set(w,h),m.attributes.extrudeDirection=new q({componentDatatype:Y.FLOAT,componentsPerAttribute:3,values:t})}let E,L=$(a);if(L){let t=h/3*2,e=new Uint8Array(t);a===ut.TOP?e=e.fill(1,0,t/2):(E=a===ut.NONE?0:1,e=e.fill(E)),m.attributes.applyOffset=new q({componentDatatype:Y.UNSIGNED_BYTE,componentsPerAttribute:1,values:e})}if(r.tangent){let t=m.attributes.tangent.values;for(A.set(t),n=0;n<h;n++)t[n]=-t[n];A.set(t,h),m.attributes.tangent.values=A}if(r.bitangent){let t=m.attributes.bitangent.values;v.set(t),v.set(t,h),m.attributes.bitangent.values=v}r.st&&(y=m.attributes.st.values,x.set(y),x.set(y,h/3*2),m.attributes.st.values=x);let k=m.indices,P=k.length,R=h/3,T=yt.createTypedArray(f/3,2*P);for(T.set(k),n=0;n<P;n+=3)T[n+P]=k[n+2]+R,T[n+1+P]=k[n+1]+R,T[n+2+P]=k[n]+R;m.indices=T;let F=e.northCap,O=e.southCap,H=u,N=2,D=0,G=4,j=4;F&&(N-=1,H-=1,D+=1,G-=2,j-=1),O&&(N-=1,H-=1,D+=1,G-=2,j-=1),D+=N*c+2*H-G;let I=2*(D+j),S=new Float64Array(3*I),C=o?new Float32Array(3*I):void 0,M=L?new Uint8Array(I):void 0,U=r.st?new Float32Array(2*I):void 0,Q=a===ut.TOP;L&&!Q&&(E=a===ut.ALL?1:0,M=M.fill(E));let V,J=0,z=0,B=0,K=0,Z=c*H;for(n=0;n<Z;n+=c)V=3*n,S=ht(S,J,V,p,d),J+=6,r.st&&(U=dt(U,z,2*n,y),z+=4),o&&(B+=3,C[B++]=w[V],C[B++]=w[V+1],C[B++]=w[V+2]),Q&&(M[K++]=1,K+=1);if(O){let t=F?Z+1:Z;for(V=3*t,n=0;n<2;n++)S=ht(S,J,V,p,d),J+=6,r.st&&(U=dt(U,z,2*t,y),z+=4),o&&(B+=3,C[B++]=w[V],C[B++]=w[V+1],C[B++]=w[V+2]),Q&&(M[K++]=1,K+=1)}else for(n=Z-c;n<Z;n++)V=3*n,S=ht(S,J,V,p,d),J+=6,r.st&&(U=dt(U,z,2*n,y),z+=4),o&&(B+=3,C[B++]=w[V],C[B++]=w[V+1],C[B++]=w[V+2]),Q&&(M[K++]=1,K+=1);for(n=Z-1;n>0;n-=c)V=3*n,S=ht(S,J,V,p,d),J+=6,r.st&&(U=dt(U,z,2*n,y),z+=4),o&&(B+=3,C[B++]=w[V],C[B++]=w[V+1],C[B++]=w[V+2]),Q&&(M[K++]=1,K+=1);if(F){let t=Z;for(V=3*t,n=0;n<2;n++)S=ht(S,J,V,p,d),J+=6,r.st&&(U=dt(U,z,2*t,y),z+=4),o&&(B+=3,C[B++]=w[V],C[B++]=w[V+1],C[B++]=w[V+2]),Q&&(M[K++]=1,K+=1)}else for(n=c-1;n>=0;n--)V=3*n,S=ht(S,J,V,p,d),J+=6,r.st&&(U=dt(U,z,2*n,y),z+=4),o&&(B+=3,C[B++]=w[V],C[B++]=w[V+1],C[B++]=w[V+2]),Q&&(M[K++]=1,K+=1);let tt=te(S,r,l);r.st&&(tt.attributes.st=new q({componentDatatype:Y.FLOAT,componentsPerAttribute:2,values:U})),o&&(tt.attributes.extrudeDirection=new q({componentDatatype:Y.FLOAT,componentsPerAttribute:3,values:C})),L&&(tt.attributes.applyOffset=new q({componentDatatype:Y.UNSIGNED_BYTE,componentsPerAttribute:1,values:M}));let et,nt,ot,at,rt=yt.createTypedArray(I,6*D);h=S.length/3;let it=0;for(n=0;n<h-1;n+=2){et=n,at=(et+2)%h;let t=_.fromArray(S,3*et,Ct),e=_.fromArray(S,3*at,jt);_.equalsEpsilon(t,e,W.EPSILON10)||(nt=(et+1)%h,ot=(nt+2)%h,rt[it++]=et,rt[it++]=nt,rt[it++]=at,rt[it++]=at,rt[it++]=nt,rt[it++]=ot)}return tt.indices=rt,tt=zt.combineInstances([new Nt({geometry:m}),new Nt({geometry:tt})]),tt[0]}var ne=[new _,new _,new _,new _],Wt=new wt,oe=new wt;function Ht(t,e,n,o,a){if(0===n)return E.clone(t,a);let r=J.computeOptions(t,e,n,0,qt,Wt),i=r.height,s=r.width,l=ne;return J.computePosition(r,o,!1,0,0,l[0]),J.computePosition(r,o,!1,0,s-1,l[1]),J.computePosition(r,o,!1,i-1,0,l[2]),J.computePosition(r,o,!1,i-1,s-1,l[3]),E.fromCartesianArray(l,o,a)}function Q(t){let e=(t=L(t,L.EMPTY_OBJECT)).rectangle;if(lt.typeOf.object("rectangle",e),E.validate(e),e.north<e.south)throw new St("options.rectangle.north must be greater than or equal to options.rectangle.south");let n=L(t.height,0),o=L(t.extrudedHeight,n);this._rectangle=E.clone(e),this._granularity=L(t.granularity,W.RADIANS_PER_DEGREE),this._ellipsoid=H.clone(L(t.ellipsoid,H.default)),this._surfaceHeight=Math.max(n,o),this._rotation=L(t.rotation,0),this._stRotation=L(t.stRotation,0),this._vertexFormat=X.clone(L(t.vertexFormat,X.DEFAULT)),this._extrudedHeight=Math.min(n,o),this._shadowVolume=L(t.shadowVolume,!1),this._workerName="createRectangleGeometry",this._offsetAttribute=t.offsetAttribute,this._rotatedRectangle=void 0,this._textureCoordinateRotationPoints=void 0}Q.packedLength=E.packedLength+H.packedLength+X.packedLength+7,Q.pack=function(t,e,n){return lt.typeOf.object("value",t),lt.defined("array",e),n=L(n,0),E.pack(t._rectangle,e,n),n+=E.packedLength,H.pack(t._ellipsoid,e,n),n+=H.packedLength,X.pack(t._vertexFormat,e,n),n+=X.packedLength,e[n++]=t._granularity,e[n++]=t._surfaceHeight,e[n++]=t._rotation,e[n++]=t._stRotation,e[n++]=t._extrudedHeight,e[n++]=t._shadowVolume?1:0,e[n]=L(t._offsetAttribute,-1),e};var Jt=new E,Qt=H.clone(H.UNIT_SPHERE),tt={rectangle:Jt,ellipsoid:Qt,vertexFormat:Dt,granularity:void 0,height:void 0,rotation:void 0,stRotation:void 0,extrudedHeight:void 0,shadowVolume:void 0,offsetAttribute:void 0};Q.unpack=function(t,e,n){lt.defined("array",t),e=L(e,0);let o=E.unpack(t,e,Jt);e+=E.packedLength;let a=H.unpack(t,e,Qt);e+=H.packedLength;let r=X.unpack(t,e,Dt);e+=X.packedLength;let i=t[e++],s=t[e++],l=t[e++],u=t[e++],c=t[e++],m=1===t[e++],p=t[e];return $(n)?(n._rectangle=E.clone(o,n._rectangle),n._ellipsoid=H.clone(a,n._ellipsoid),n._vertexFormat=X.clone(r,n._vertexFormat),n._granularity=i,n._surfaceHeight=s,n._rotation=l,n._stRotation=u,n._extrudedHeight=c,n._shadowVolume=m,n._offsetAttribute=-1===p?void 0:p,n):(tt.granularity=i,tt.height=s,tt.rotation=l,tt.stRotation=u,tt.extrudedHeight=c,tt.shadowVolume=m,tt.offsetAttribute=-1===p?void 0:p,new Q(tt))},Q.computeRectangle=function(t,e){let n=(t=L(t,L.EMPTY_OBJECT)).rectangle;if(lt.typeOf.object("rectangle",n),E.validate(n),n.north<n.south)throw new St("options.rectangle.north must be greater than or equal to options.rectangle.south");let o=L(t.granularity,W.RADIANS_PER_DEGREE),a=L(t.ellipsoid,H.default);return Ht(n,o,L(t.rotation,0),a,e)};var ie=new ft,Ft=new Lt,ae=new wt;Q.createGeometry=function(t){if(W.equalsEpsilon(t._rectangle.north,t._rectangle.south,W.EPSILON10)||W.equalsEpsilon(t._rectangle.east,t._rectangle.west,W.EPSILON10))return;let e=t._rectangle,n=t._ellipsoid,o=t._rotation,a=t._stRotation,r=t._vertexFormat,i=J.computeOptions(e,t._granularity,o,a,qt,Wt,oe),s=ie;if(0!==a||0!==o){let t=E.center(e,ae),o=n.geodeticSurfaceNormalCartographic(t,Ct);Lt.fromAxisAngle(o,-a,Ft),ft.fromQuaternion(Ft,s)}else ft.clone(ft.IDENTITY,s);let l,u,c=t._surfaceHeight,m=t._extrudedHeight,p=!W.equalsEpsilon(c,m,0,W.EPSILON2);if(i.lonScalar=1/t._rectangle.width,i.latScalar=1/t._rectangle.height,i.tangentRotationMatrix=s,e=t._rectangle,p){l=ee(t,i);let o=st.fromRectangle3D(e,n,c,$t),a=st.fromRectangle3D(e,n,m,Kt);u=st.union(o,a)}else{if(l=It(t,i),l.attributes.position.values=Rt.scaleToGeodeticHeight(l.attributes.position.values,c,n,!1),$(t._offsetAttribute)){let e=l.attributes.position.values.length,n=t._offsetAttribute===ut.NONE?0:1,o=new Uint8Array(e/3).fill(n);l.attributes.applyOffset=new q({componentDatatype:Y.UNSIGNED_BYTE,componentsPerAttribute:1,values:o})}u=st.fromRectangle3D(e,n,c)}return r.position||delete l.attributes.position,new Pt({attributes:l.attributes,indices:l.indices,primitiveType:l.primitiveType,boundingSphere:u,offsetAttribute:t._offsetAttribute})},Q.createShadowVolume=function(t,e,n){let o=t._granularity,a=t._ellipsoid,r=e(o,a),i=n(o,a);return new Q({rectangle:t._rectangle,rotation:t._rotation,ellipsoid:a,stRotation:t._stRotation,granularity:o,extrudedHeight:i,height:r,vertexFormat:X.POSITION_ONLY,shadowVolume:!0})};var vt=new E,se=[new G,new G,new G],re=new At,ce=new wt;function le(t){if(0===t._stRotation)return[0,0,0,1,1,0];let e=E.clone(t._rectangle,vt),n=t._granularity,o=t._ellipsoid,a=Ht(e,n,t._rotation-t._stRotation,o,vt),r=se;r[0].x=a.west,r[0].y=a.south,r[1].x=a.west,r[1].y=a.north,r[2].x=a.east,r[2].y=a.south;let i=t.rectangle,s=At.fromRotation(t._stRotation,re),l=E.center(i,ce);for(let t=0;t<3;++t){let e=r[t];e.x-=l.longitude,e.y-=l.latitude,At.multiplyByVector(s,e,e),e.x+=l.longitude,e.y+=l.latitude,e.x=(e.x-i.west)/i.width,e.y=(e.y-i.south)/i.height}let u=r[0],c=r[1],m=r[2],p=new Array(6);return G.pack(u,p),G.pack(c,p,2),G.pack(m,p,4),p}Object.defineProperties(Q.prototype,{rectangle:{get:function(){return $(this._rotatedRectangle)||(this._rotatedRectangle=Ht(this._rectangle,this._granularity,this._rotation,this._ellipsoid)),this._rotatedRectangle}},textureCoordinateRotationPoints:{get:function(){return $(this._textureCoordinateRotationPoints)||(this._textureCoordinateRotationPoints=le(this)),this._textureCoordinateRotationPoints}}});var Ot=Q;function fe(t,e){return $(e)&&(t=Ot.unpack(t,e)),t._ellipsoid=H.clone(t._ellipsoid),t._rectangle=E.clone(t._rectangle),Ot.createGeometry(t)}var Ye=fe;export{Ye as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.120
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see createRectangleOutlineGeometry.js.LICENSE.txt */
|
|
2
|
+
import{a as C}from"./chunk-SQXEWPMX.js";import{a as v}from"./chunk-6GG6EJBW.js";import{b as z}from"./chunk-FPT7TGTJ.js";import"./chunk-Q6IZOLLM.js";import{a as O}from"./chunk-DBOVA5XH.js";import{a as Y}from"./chunk-RHEGXTJ5.js";import{b as B,c as q,d as y}from"./chunk-CWBIOT2C.js";import{d as R}from"./chunk-PPN6SLYU.js";import{h as b}from"./chunk-SOWUYSYI.js";import{a as T}from"./chunk-I36V6CKP.js";import{a as U,b as M,d as w}from"./chunk-WG62ICZK.js";import{a as P}from"./chunk-EEN7GMYN.js";import"./chunk-SXYTVHGU.js";import"./chunk-RAWIUDJR.js";import{a as E}from"./chunk-KGKDCW56.js";import{a as N}from"./chunk-G4IO3CPJ.js";import{e as S}from"./chunk-GBRF7ES3.js";var j=new R,K=new R,Q=new U,W=new b;function F(t,e){let i=t._ellipsoid,r=e.height,o=e.width,n=e.northCap,a=e.southCap,s=r,l=2,u=0,c=4;n&&(l-=1,s-=1,u+=1,c-=2),a&&(l-=1,s-=1,u+=1,c-=2),u+=l*o+2*s-c;let h,p=new Float64Array(3*u),f=0,d=0,g=Q;if(n)C.computePosition(e,i,!1,d,0,g),p[f++]=g.x,p[f++]=g.y,p[f++]=g.z;else for(h=0;h<o;h++)C.computePosition(e,i,!1,d,h,g),p[f++]=g.x,p[f++]=g.y,p[f++]=g.z;for(h=o-1,d=1;d<r;d++)C.computePosition(e,i,!1,d,h,g),p[f++]=g.x,p[f++]=g.y,p[f++]=g.z;if(d=r-1,!a)for(h=o-2;h>=0;h--)C.computePosition(e,i,!1,d,h,g),p[f++]=g.x,p[f++]=g.y,p[f++]=g.z;for(h=0,d=r-2;d>0;d--)C.computePosition(e,i,!1,d,h,g),p[f++]=g.x,p[f++]=g.y,p[f++]=g.z;let m=p.length/3*2,_=O.createTypedArray(p.length/3,m),b=0;for(let t=0;t<p.length/3-1;t++)_[b++]=t,_[b++]=t+1;_[b++]=p.length/3-1,_[b++]=0;let w=new q({attributes:new Y,primitiveType:B.LINES});return w.attributes.position=new y({componentDatatype:T.DOUBLE,componentsPerAttribute:3,values:p}),w.indices=_,w}function X(t,e){let i=t._surfaceHeight,r=t._extrudedHeight,o=t._ellipsoid,n=F(t,e),a=e.height,s=e.width,l=z.scaleToGeodeticHeight(n.attributes.position.values,i,o,!1),u=l.length,c=new Float64Array(2*u);c.set(l);let h=z.scaleToGeodeticHeight(n.attributes.position.values,r,o);c.set(h,u),n.attributes.position.values=c;let p=e.northCap,f=e.southCap,d=4;p&&(d-=1),f&&(d-=1);let g=2*(c.length/3+d),m=O.createTypedArray(c.length/3,g);u=c.length/6;let _,b=0;for(let t=0;t<u-1;t++)m[b++]=t,m[b++]=t+1,m[b++]=t+u,m[b++]=t+u+1;if(m[b++]=u-1,m[b++]=0,m[b++]=u+u-1,m[b++]=u,m[b++]=0,m[b++]=u,p)_=a-1;else{let t=s-1;m[b++]=t,m[b++]=t+u,_=s+a-2}if(m[b++]=_,m[b++]=_+u,!f){let t=s+_-1;m[b++]=t,m[b]=t+u}return n.indices=m,n}function L(t){let e=(t=E(t,E.EMPTY_OBJECT)).rectangle,i=E(t.granularity,P.RADIANS_PER_DEGREE),r=E(t.ellipsoid,w.default),o=E(t.rotation,0);if(!S(e))throw new N("rectangle is required.");if(b.validate(e),e.north<e.south)throw new N("options.rectangle.north must be greater than options.rectangle.south");let n=E(t.height,0),a=E(t.extrudedHeight,n);this._rectangle=b.clone(e),this._granularity=i,this._ellipsoid=r,this._surfaceHeight=Math.max(n,a),this._rotation=o,this._extrudedHeight=Math.min(n,a),this._offsetAttribute=t.offsetAttribute,this._workerName="createRectangleOutlineGeometry"}L.packedLength=b.packedLength+w.packedLength+5,L.pack=function(t,e,i){if(!S(t))throw new N("value is required");if(!S(e))throw new N("array is required");return i=E(i,0),b.pack(t._rectangle,e,i),i+=b.packedLength,w.pack(t._ellipsoid,e,i),i+=w.packedLength,e[i++]=t._granularity,e[i++]=t._surfaceHeight,e[i++]=t._rotation,e[i++]=t._extrudedHeight,e[i]=E(t._offsetAttribute,-1),e};var V=new b,J=w.clone(w.UNIT_SPHERE),k={rectangle:V,ellipsoid:J,granularity:void 0,height:void 0,rotation:void 0,extrudedHeight:void 0,offsetAttribute:void 0};L.unpack=function(t,e,i){if(!S(t))throw new N("array is required");e=E(e,0);let r=b.unpack(t,e,V);e+=b.packedLength;let o=w.unpack(t,e,J);e+=w.packedLength;let n=t[e++],a=t[e++],s=t[e++],l=t[e++],u=t[e];return S(i)?(i._rectangle=b.clone(r,i._rectangle),i._ellipsoid=w.clone(o,i._ellipsoid),i._surfaceHeight=a,i._rotation=s,i._extrudedHeight=l,i._offsetAttribute=-1===u?void 0:u,i):(k.granularity=n,k.height=a,k.rotation=s,k.extrudedHeight=l,k.offsetAttribute=-1===u?void 0:u,new L(k))};var Z=new M;L.createGeometry=function(t){let e,i,r=t._rectangle,o=t._ellipsoid,n=C.computeOptions(r,t._granularity,t._rotation,0,W,Z);if(P.equalsEpsilon(r.north,r.south,P.EPSILON10)||P.equalsEpsilon(r.east,r.west,P.EPSILON10))return;let a,s=t._surfaceHeight,l=t._extrudedHeight;if(!P.equalsEpsilon(s,l,0,P.EPSILON2)){if(e=X(t,n),S(t._offsetAttribute)){let i=e.attributes.position.values.length/3,r=new Uint8Array(i);t._offsetAttribute===v.TOP?r=r.fill(1,0,i/2):(a=t._offsetAttribute===v.NONE?0:1,r=r.fill(a)),e.attributes.applyOffset=new y({componentDatatype:T.UNSIGNED_BYTE,componentsPerAttribute:1,values:r})}let u=R.fromRectangle3D(r,o,s,K),c=R.fromRectangle3D(r,o,l,j);i=R.union(u,c)}else{if(e=F(t,n),e.attributes.position.values=z.scaleToGeodeticHeight(e.attributes.position.values,s,o,!1),S(t._offsetAttribute)){let i=e.attributes.position.values.length;a=t._offsetAttribute===v.NONE?0:1;let r=new Uint8Array(i/3).fill(a);e.attributes.applyOffset=new y({componentDatatype:T.UNSIGNED_BYTE,componentsPerAttribute:1,values:r})}i=R.fromRectangle3D(r,o,s)}return new q({attributes:e.attributes,indices:e.indices,primitiveType:B.LINES,boundingSphere:i,offsetAttribute:t._offsetAttribute})};var x=L;function $(t,e){return S(e)&&(t=x.unpack(t,e)),t._ellipsoid=w.clone(t._ellipsoid),t._rectangle=b.clone(t._rectangle),x.createGeometry(t)}var Et=$;export{Et as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.120
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see createSimplePolylineGeometry.js.LICENSE.txt */
|
|
2
|
+
import{a as r}from"./chunk-LL4PRXXO.js";import{a as S}from"./chunk-3FGVTQZT.js";import{a as E}from"./chunk-T52RL3ZJ.js";import"./chunk-O7LU3SZT.js";import"./chunk-Q6IZOLLM.js";import"./chunk-WZ52TQTL.js";import"./chunk-5KPQNVA2.js";import{a as X}from"./chunk-DBOVA5XH.js";import{a as W}from"./chunk-RHEGXTJ5.js";import{b as K,c as Q,d as Y}from"./chunk-CWBIOT2C.js";import{d as j}from"./chunk-PPN6SLYU.js";import"./chunk-SOWUYSYI.js";import{a as H}from"./chunk-I36V6CKP.js";import{a as k,d as b}from"./chunk-WG62ICZK.js";import{a as q}from"./chunk-EEN7GMYN.js";import"./chunk-SXYTVHGU.js";import"./chunk-RAWIUDJR.js";import{a as w}from"./chunk-KGKDCW56.js";import{a as L}from"./chunk-G4IO3CPJ.js";import{e as u}from"./chunk-GBRF7ES3.js";function Z(e,t,o,a,n,i,l){let s,u=E.numberOfPoints(e,t,n),p=o.red,c=o.green,h=o.blue,f=o.alpha,y=a.red,m=a.green,k=a.blue,d=a.alpha;if(r.equals(o,a)){for(s=0;s<u;s++)i[l++]=r.floatToByte(p),i[l++]=r.floatToByte(c),i[l++]=r.floatToByte(h),i[l++]=r.floatToByte(f);return l}let g=(y-p)/u,T=(m-c)/u,w=(k-h)/u,_=(d-f)/u,B=l;for(s=0;s<u;s++)i[B++]=r.floatToByte(p+s*g),i[B++]=r.floatToByte(c+s*T),i[B++]=r.floatToByte(h+s*w),i[B++]=r.floatToByte(f+s*_);return B}function R(e){let t=(e=w(e,w.EMPTY_OBJECT)).positions,o=e.colors,a=w(e.colorsPerVertex,!1);if(!u(t)||t.length<2)throw new L("At least two positions are required.");if(u(o)&&(a&&o.length<t.length||!a&&o.length<t.length-1))throw new L("colors has an invalid length.");this._positions=t,this._colors=o,this._colorsPerVertex=a,this._arcType=w(e.arcType,S.GEODESIC),this._granularity=w(e.granularity,q.RADIANS_PER_DEGREE),this._ellipsoid=w(e.ellipsoid,b.default),this._workerName="createSimplePolylineGeometry";let n=1+t.length*k.packedLength;n+=u(o)?1+o.length*r.packedLength:1,this.packedLength=n+b.packedLength+3}R.pack=function(e,t,o){if(!u(e))throw new L("value is required");if(!u(t))throw new L("array is required");o=w(o,0);let a,n=e._positions,i=n.length;for(t[o++]=i,a=0;a<i;++a,o+=k.packedLength)k.pack(n[a],t,o);let l=e._colors;for(i=u(l)?l.length:0,t[o++]=i,a=0;a<i;++a,o+=r.packedLength)r.pack(l[a],t,o);return b.pack(e._ellipsoid,t,o),o+=b.packedLength,t[o++]=e._colorsPerVertex?1:0,t[o++]=e._arcType,t[o]=e._granularity,t},R.unpack=function(e,t,o){if(!u(e))throw new L("array is required");t=w(t,0);let a,n=e[t++],i=new Array(n);for(a=0;a<n;++a,t+=k.packedLength)i[a]=k.unpack(e,t);n=e[t++];let l=n>0?new Array(n):void 0;for(a=0;a<n;++a,t+=r.packedLength)l[a]=r.unpack(e,t);let s=b.unpack(e,t);t+=b.packedLength;let p=1===e[t++],c=e[t++],h=e[t];return u(o)?(o._positions=i,o._colors=l,o._ellipsoid=s,o._colorsPerVertex=p,o._arcType=c,o._granularity=h,o):new R({positions:i,colors:l,ellipsoid:s,colorsPerVertex:p,arcType:c,granularity:h})};var F=new Array(2),N=new Array(2),$={positions:F,height:N,ellipsoid:void 0,minDistance:void 0,granularity:void 0};R.createGeometry=function(e){let t,o,a,n,i,l=e._positions,s=e._colors,p=e._colorsPerVertex,c=e._arcType,h=e._granularity,f=e._ellipsoid,y=q.chordLength(h,f.maximumRadius),m=u(s)&&!p,d=l.length,g=0;if(c===S.GEODESIC||c===S.RHUMB){let e,a,p;c===S.GEODESIC?(e=q.chordLength(h,f.maximumRadius),a=E.numberOfPoints,p=E.generateArc):(e=h,a=E.numberOfPointsRhumbLine,p=E.generateRhumbArc);let k=E.extractHeights(l,f),T=$;if(c===S.GEODESIC?T.minDistance=y:T.granularity=h,T.ellipsoid=f,m){let c=0;for(t=0;t<d-1;t++)c+=a(l[t],l[t+1],e)+1;o=new Float64Array(3*c),n=new Uint8Array(4*c),T.positions=F,T.height=N;let h=0;for(t=0;t<d-1;++t){F[0]=l[t],F[1]=l[t+1],N[0]=k[t],N[1]=k[t+1];let e=p(T);if(u(s)){let o=e.length/3;i=s[t];for(let e=0;e<o;++e)n[h++]=r.floatToByte(i.red),n[h++]=r.floatToByte(i.green),n[h++]=r.floatToByte(i.blue),n[h++]=r.floatToByte(i.alpha)}o.set(e,g),g+=e.length}}else if(T.positions=l,T.height=k,o=new Float64Array(p(T)),u(s)){for(n=new Uint8Array(o.length/3*4),t=0;t<d-1;++t){g=Z(l[t],l[t+1],s[t],s[t+1],y,n,g)}let e=s[d-1];n[g++]=r.floatToByte(e.red),n[g++]=r.floatToByte(e.green),n[g++]=r.floatToByte(e.blue),n[g++]=r.floatToByte(e.alpha)}}else{a=m?2*d-2:d,o=new Float64Array(3*a),n=u(s)?new Uint8Array(4*a):void 0;let e=0,p=0;for(t=0;t<d;++t){let a=l[t];if(m&&t>0&&(k.pack(a,o,e),e+=3,i=s[t-1],n[p++]=r.floatToByte(i.red),n[p++]=r.floatToByte(i.green),n[p++]=r.floatToByte(i.blue),n[p++]=r.floatToByte(i.alpha)),m&&t===d-1)break;k.pack(a,o,e),e+=3,u(s)&&(i=s[t],n[p++]=r.floatToByte(i.red),n[p++]=r.floatToByte(i.green),n[p++]=r.floatToByte(i.blue),n[p++]=r.floatToByte(i.alpha))}}let T=new W;T.position=new Y({componentDatatype:H.DOUBLE,componentsPerAttribute:3,values:o}),u(s)&&(T.color=new Y({componentDatatype:H.UNSIGNED_BYTE,componentsPerAttribute:4,values:n,normalize:!0})),a=o.length/3;let w=2*(a-1),_=X.createTypedArray(a,w),B=0;for(t=0;t<a-1;++t)_[B++]=t,_[B++]=t+1;return new Q({attributes:T,indices:_,primitiveType:K.LINES,boundingSphere:j.fromPoints(l)})};var J=R;function x(e,r){return u(r)&&(e=J.unpack(e,r)),e._ellipsoid=b.clone(e._ellipsoid),J.createGeometry(e)}var _e=x;export{_e as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.120
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see createSphereGeometry.js.LICENSE.txt */
|
|
2
|
+
import{a as r}from"./chunk-BSL4RZYV.js";import"./chunk-6GG6EJBW.js";import{a as m}from"./chunk-TXLODGLR.js";import"./chunk-DBOVA5XH.js";import"./chunk-RHEGXTJ5.js";import"./chunk-CWBIOT2C.js";import"./chunk-PPN6SLYU.js";import"./chunk-SOWUYSYI.js";import"./chunk-I36V6CKP.js";import{a as s}from"./chunk-WG62ICZK.js";import"./chunk-EEN7GMYN.js";import"./chunk-SXYTVHGU.js";import"./chunk-RAWIUDJR.js";import{a as l}from"./chunk-KGKDCW56.js";import{b as p}from"./chunk-G4IO3CPJ.js";import{e as c}from"./chunk-GBRF7ES3.js";function n(t){let i=l(t.radius,1),e={radii:new s(i,i,i),stackPartitions:t.stackPartitions,slicePartitions:t.slicePartitions,vertexFormat:t.vertexFormat};this._ellipsoidGeometry=new r(e),this._workerName="createSphereGeometry"}n.packedLength=r.packedLength,n.pack=function(t,i,e){return p.typeOf.object("value",t),r.pack(t._ellipsoidGeometry,i,e)};var f=new r,i={radius:void 0,radii:new s,vertexFormat:new m,stackPartitions:void 0,slicePartitions:void 0};n.unpack=function(t,e,o){let a=r.unpack(t,e,f);return i.vertexFormat=m.clone(a._vertexFormat,i.vertexFormat),i.stackPartitions=a._stackPartitions,i.slicePartitions=a._slicePartitions,c(o)?(s.clone(a._radii,i.radii),o._ellipsoidGeometry=new r(i),o):(i.radius=a._radii.x,new n(i))},n.createGeometry=function(t){return r.createGeometry(t._ellipsoidGeometry)};var d=n;function u(r,t){return c(t)&&(r=d.unpack(r,t)),d.createGeometry(r)}var v=u;export{v as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.120
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see createSphereOutlineGeometry.js.LICENSE.txt */
|
|
2
|
+
import{a as t}from"./chunk-666MYB7X.js";import"./chunk-6GG6EJBW.js";import"./chunk-DBOVA5XH.js";import"./chunk-RHEGXTJ5.js";import"./chunk-CWBIOT2C.js";import"./chunk-PPN6SLYU.js";import"./chunk-SOWUYSYI.js";import"./chunk-I36V6CKP.js";import{a as d}from"./chunk-WG62ICZK.js";import"./chunk-EEN7GMYN.js";import"./chunk-SXYTVHGU.js";import"./chunk-RAWIUDJR.js";import{a as l}from"./chunk-KGKDCW56.js";import{b as u}from"./chunk-G4IO3CPJ.js";import{e as a}from"./chunk-GBRF7ES3.js";function s(i){let s=l(i.radius,1),n={radii:new d(s,s,s),stackPartitions:i.stackPartitions,slicePartitions:i.slicePartitions,subdivisions:i.subdivisions};this._ellipsoidGeometry=new t(n),this._workerName="createSphereOutlineGeometry"}s.packedLength=t.packedLength,s.pack=function(i,s,n){return u.typeOf.object("value",i),t.pack(i._ellipsoidGeometry,s,n)};var m=new t,n={radius:void 0,radii:new d,stackPartitions:void 0,slicePartitions:void 0,subdivisions:void 0};s.unpack=function(i,r,e){let o=t.unpack(i,r,m);return n.stackPartitions=o._stackPartitions,n.slicePartitions=o._slicePartitions,n.subdivisions=o._subdivisions,a(e)?(d.clone(o._radii,n.radii),e._ellipsoidGeometry=new t(n),e):(n.radius=o._radii.x,new s(n))},s.createGeometry=function(i){return t.createGeometry(i._ellipsoidGeometry)};var c=s;function p(i,t){return a(t)&&(i=c.unpack(i,t)),c.createGeometry(i)}var w=p;export{w as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.120
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.120
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see createVectorTileClampedPolylines.js.LICENSE.txt */
|
|
2
|
+
import{a as J}from"./chunk-RIW4PILL.js";import{a as Y}from"./chunk-OKAWXMC7.js";import{a as B}from"./chunk-DBOVA5XH.js";import{c as X,h as W}from"./chunk-SOWUYSYI.js";import"./chunk-I36V6CKP.js";import{a as t,b as k,d as _}from"./chunk-WG62ICZK.js";import{a as v}from"./chunk-EEN7GMYN.js";import"./chunk-SXYTVHGU.js";import"./chunk-RAWIUDJR.js";import"./chunk-KGKDCW56.js";import"./chunk-G4IO3CPJ.js";import"./chunk-GBRF7ES3.js";var V=32767,it=Math.cos(v.toRadians(150)),ct=new k,rt=new t;function at(e,r,s,a,n,i,o){let l=e.length,d=new Float64Array(3*l);for(let f=0;f<l;++f){let l=e[f],h=r[f],c=s[f],u=v.lerp(a.west,a.east,l/V),p=v.lerp(a.south,a.north,h/V),m=v.lerp(n,i,c/V),A=k.fromRadians(u,p,m,ct),w=o.cartographicToCartesian(A,rt);t.pack(w,d,3*f)}return d}function dt(t){let e=t.length,r=new Uint32Array(e+1),s=0;for(let a=0;a<e;++a)r[a]=s,s+=t[a];return r[e]=s,r}var lt=new k,ht=new k;function ft(t,e,r,s){let a=s.length,n=t.length,i=new Uint8Array(n),o=lt,l=ht,d=0;for(let r=0;r<a;r++){let a=s[r],n=a;for(let r=1;r<a;r++){let s=d+r,a=s-1;l.longitude=t[s],l.latitude=e[s],o.longitude=t[a],o.latitude=e[a],k.equals(l,o)&&(n--,i[a]=1)}s[r]=n,d+=a}let f=0;for(let s=0;s<n;s++)1!==i[s]&&(t[f]=t[s],e[f]=e[s],r[f]=r[s],f++)}function ot(t){let e=8*t,r=3*e,s=4*e;this.startEllipsoidNormals=new Float32Array(r),this.endEllipsoidNormals=new Float32Array(r),this.startPositionAndHeights=new Float32Array(s),this.startFaceNormalAndVertexCornerIds=new Float32Array(s),this.endPositionAndHeights=new Float32Array(s),this.endFaceNormalAndHalfWidths=new Float32Array(s),this.vertexBatchIds=new Uint16Array(e),this.indices=B.createTypedArray(e,36*t),this.vec3Offset=0,this.vec4Offset=0,this.batchIdOffset=0,this.indexOffset=0,this.volumeStartIndex=0}var Q=new t,pt=new t;function $(e,r,s,a,n){let i=t.subtract(s,r,pt),o=t.subtract(r,e,Q);return t.normalize(i,i),t.normalize(o,o),t.dot(i,o)<it&&(o=t.multiplyByScalar(o,-1,Q)),t.add(i,o,n),t.equals(n,t.ZERO)&&(n=t.subtract(e,r)),t.cross(n,a,n),t.cross(a,n,n),t.normalize(n,n),n}var st=[0,2,6,0,6,4,0,1,3,0,3,2,0,4,5,0,5,1,5,3,1,5,7,3,7,5,4,7,4,6,7,6,2,7,2,3],j=st.length,tt=new t,ut=new t,mt=new t,At=new t,Nt=new t;ot.prototype.addVolume=function(e,r,s,a,n,i,o,l,d,f){let h=t.add(r,d,tt),c=f.geodeticSurfaceNormal(h,ut);h=t.add(s,d,tt);let u,p=f.geodeticSurfaceNormal(h,At),m=$(e,r,s,c,mt),A=$(a,s,r,p,Nt),k=this.startEllipsoidNormals,w=this.endEllipsoidNormals,b=this.startPositionAndHeights,N=this.startFaceNormalAndVertexCornerIds,g=this.endPositionAndHeights,I=this.endFaceNormalAndHalfWidths,v=this.vertexBatchIds,y=this.batchIdOffset,E=this.vec3Offset,x=this.vec4Offset;for(u=0;u<8;u++)t.pack(c,k,E),t.pack(p,w,E),t.pack(r,b,x),b[x+3]=n,t.pack(s,g,x),g[x+3]=i,t.pack(m,N,x),N[x+3]=u,t.pack(A,I,x),I[x+3]=o,v[y++]=l,E+=3,x+=4;this.batchIdOffset=y,this.vec3Offset=E,this.vec4Offset=x;let F=this.indices,O=this.volumeStartIndex,P=this.indexOffset;for(u=0;u<j;u++)F[P+u]=st[u]+O;this.volumeStartIndex+=8,this.indexOffset+=j};var gt=new W,Et=new _,wt=new t,M=new t,It=new t,xt=new t,T=new t;function Pt(e,r){let s=new Uint16Array(e.positions),a=new Uint16Array(e.widths),n=new Uint32Array(e.counts),i=new Uint16Array(e.batchIds),o=gt,l=Et,d=wt,f=new Float64Array(e.packedBuffer),h=0,c=f[h++],u=f[h++];W.unpack(f,h,o),h+=W.packedLength,_.unpack(f,h,l),h+=_.packedLength,t.unpack(f,h,d);let p,m=s.length/3,A=s.subarray(0,m),k=s.subarray(m,2*m),w=s.subarray(2*m,3*m);Y.zigZagDeltaDecode(A,k,w),ft(A,k,w,n);let b=n.length,N=0;for(p=0;p<b;p++){N+=n[p]-1}let g=new ot(N),I=at(A,k,w,o,c,u,l,d);m=A.length;let y=new Float32Array(3*m);for(p=0;p<m;++p)y[3*p]=I[3*p]-d.x,y[3*p+1]=I[3*p+1]-d.y,y[3*p+2]=I[3*p+2]-d.z;let E=0,x=0;for(p=0;p<b;p++){let e=n[p]-1,r=.5*a[p],s=i[p],o=E;for(let a=0;a<e;a++){let n=t.unpack(y,E,It),i=t.unpack(y,E+3,xt),f=w[x],h=w[x+1];f=v.lerp(c,u,f/V),h=v.lerp(c,u,h/V),x++;let p=M,m=T;if(0===a){let r=o+3*e,s=t.unpack(y,r,M);if(t.equals(s,n))t.unpack(y,r-3,p);else{let e=t.subtract(n,i,M);p=t.add(e,n,M)}}else t.unpack(y,E-3,p);if(a===e-1){let e=t.unpack(y,o,T);if(t.equals(e,i))t.unpack(y,o+3,m);else{let e=t.subtract(i,n,T);m=t.add(e,i,T)}}else t.unpack(y,E+6,m);g.addVolume(p,n,i,m,f,h,r,s,d,l),E+=3}E+=3,x++}let F=g.indices;r.push(g.startEllipsoidNormals.buffer),r.push(g.endEllipsoidNormals.buffer),r.push(g.startPositionAndHeights.buffer),r.push(g.startFaceNormalAndVertexCornerIds.buffer),r.push(g.endPositionAndHeights.buffer),r.push(g.endFaceNormalAndHalfWidths.buffer),r.push(g.vertexBatchIds.buffer),r.push(F.buffer);let O={indexDatatype:2===F.BYTES_PER_ELEMENT?B.UNSIGNED_SHORT:B.UNSIGNED_INT,startEllipsoidNormals:g.startEllipsoidNormals.buffer,endEllipsoidNormals:g.endEllipsoidNormals.buffer,startPositionAndHeights:g.startPositionAndHeights.buffer,startFaceNormalAndVertexCornerIds:g.startFaceNormalAndVertexCornerIds.buffer,endPositionAndHeights:g.endPositionAndHeights.buffer,endFaceNormalAndHalfWidths:g.endFaceNormalAndHalfWidths.buffer,vertexBatchIds:g.vertexBatchIds.buffer,indices:F.buffer};if(e.keepDecodedPositions){let t=dt(n);r.push(I.buffer,t.buffer),O=X(O,{decodedPositions:I.buffer,decodedPositionOffsets:t.buffer})}return O}var Vt=J(Pt);export{Vt as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.120
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see createVectorTileGeometries.js.LICENSE.txt */
|
|
2
|
+
import{a as P}from"./chunk-LL4PRXXO.js";import{a as z}from"./chunk-W5FWNHP7.js";import"./chunk-W2LU7RJ5.js";import{a as H}from"./chunk-BSL4RZYV.js";import{a as Y}from"./chunk-RIW4PILL.js";import{a as j}from"./chunk-G2BB42Z6.js";import"./chunk-6GG6EJBW.js";import"./chunk-TXLODGLR.js";import{a as W}from"./chunk-DBOVA5XH.js";import"./chunk-RHEGXTJ5.js";import"./chunk-CWBIOT2C.js";import{d as E}from"./chunk-PPN6SLYU.js";import{b as d}from"./chunk-SOWUYSYI.js";import"./chunk-I36V6CKP.js";import{a as o}from"./chunk-WG62ICZK.js";import"./chunk-EEN7GMYN.js";import"./chunk-SXYTVHGU.js";import"./chunk-RAWIUDJR.js";import"./chunk-KGKDCW56.js";import"./chunk-G4IO3CPJ.js";import{e as l}from"./chunk-GBRF7ES3.js";function X(e){this.offset=e.offset,this.count=e.count,this.color=e.color,this.batchIds=e.batchIds}var J=X,S=new o,$=d.packedLength+o.packedLength,ee=d.packedLength+2,ne=d.packedLength+o.packedLength,te=o.packedLength+1,u={modelMatrix:new d,boundingVolume:new E};function oe(e,t){let n=t*$,r=o.unpack(e,n,S);n+=o.packedLength;let i=d.unpack(e,n,u.modelMatrix);d.multiplyByScale(i,r,i);let s=u.boundingVolume;return o.clone(o.ZERO,s.center),s.radius=Math.sqrt(3),u}function ce(e,t){let n=t*ee,r=e[n++],i=e[n++],s=o.fromElements(r,r,i,S),a=d.unpack(e,n,u.modelMatrix);d.multiplyByScale(a,s,a);let l=u.boundingVolume;return o.clone(o.ZERO,l.center),l.radius=Math.sqrt(2),u}function se(e,t){let n=t*ne,r=o.unpack(e,n,S);n+=o.packedLength;let i=d.unpack(e,n,u.modelMatrix);d.multiplyByScale(i,r,i);let s=u.boundingVolume;return o.clone(o.ZERO,s.center),s.radius=1,u}function ie(e,t){let n=t*te,r=e[n++],i=o.unpack(e,n,S),s=d.fromTranslation(i,u.modelMatrix);d.multiplyByUniformScale(s,r,s);let a=u.boundingVolume;return o.clone(o.ZERO,a.center),a.radius=1,u}var de=new o;function R(e,t,n,r,i){if(!l(t))return;let s=n.length,a=r.attributes.position.values,c=r.indices,u=e.positions,f=e.vertexBatchIds,h=e.indices,p=e.batchIds,m=e.batchTableColors,b=e.batchedIndices,k=e.indexOffsets,g=e.indexCounts,I=e.boundingVolumes,y=e.modelMatrix,x=e.center,B=e.positionOffset,w=e.batchIdIndex,O=e.indexOffset,j=e.batchedIndicesOffset;for(let e=0;e<s;++e){let r=i(t,e),s=r.modelMatrix;d.multiply(y,s,s);let l=n[e],L=a.length;for(let e=0;e<L;e+=3){let t=o.unpack(a,e,de);d.multiplyByPoint(s,t,t),o.subtract(t,x,t),o.pack(t,u,3*B+e),f[w++]=l}let A=c.length;for(let e=0;e<A;++e)h[O+e]=c[e]+B;let R=e+j;b[R]=new J({offset:O,count:A,color:P.fromRgba(m[l]),batchIds:[l]}),p[R]=l,k[R]=O,g[R]=A,I[R]=E.transform(r.boundingVolume,s),B+=L/3,O+=A}e.positionOffset=B,e.batchIdIndex=w,e.indexOffset=O,e.batchedIndicesOffset+=s}var K=new o,Q=new d;function re(e){let t=new Float64Array(e),n=0;o.unpack(t,n,K),n+=o.packedLength,d.unpack(t,n,Q)}function le(e){let t=e.length,n=0;for(let o=0;o<t;++o)n+=P.packedLength+3+e[o].batchIds.length;return n}function ae(e,t,n){let o=n.length,r=2+o*E.packedLength+1+le(t),i=new Float64Array(r),s=0;i[s++]=e,i[s++]=o;for(let e=0;e<o;++e)E.pack(n[e],i,s),s+=E.packedLength;let a=t.length;i[s++]=a;for(let e=0;e<a;++e){let n=t[e];P.pack(n.color,i,s),s+=P.packedLength,i[s++]=n.offset,i[s++]=n.count;let o=n.batchIds,r=o.length;i[s++]=r;for(let e=0;e<r;++e)i[s++]=o[e]}return i}function fe(e,t){let n=l(e.boxes)?new Float32Array(e.boxes):void 0,o=l(e.boxBatchIds)?new Uint16Array(e.boxBatchIds):void 0,r=l(e.cylinders)?new Float32Array(e.cylinders):void 0,i=l(e.cylinderBatchIds)?new Uint16Array(e.cylinderBatchIds):void 0,s=l(e.ellipsoids)?new Float32Array(e.ellipsoids):void 0,a=l(e.ellipsoidBatchIds)?new Uint16Array(e.ellipsoidBatchIds):void 0,c=l(e.spheres)?new Float32Array(e.spheres):void 0,d=l(e.sphereBatchIds)?new Uint16Array(e.sphereBatchIds):void 0,u=l(n)?o.length:0,f=l(r)?i.length:0,h=l(s)?a.length:0,p=l(c)?d.length:0,m=j.getUnitBox(),b=z.getUnitCylinder(),k=H.getUnitEllipsoid(),g=m.attributes.position.values,I=b.attributes.position.values,y=k.attributes.position.values,x=g.length*u;x+=I.length*f,x+=y.length*(h+p);let B=m.indices,w=b.indices,O=k.indices,L=B.length*u;L+=w.length*f,L+=O.length*(h+p);let E=new Float32Array(x),A=new Uint16Array(x/3),v=W.createTypedArray(x/3,L),U=u+f+h+p,S=new Uint16Array(U),P=new Array(U),C=new Uint32Array(U),M=new Uint32Array(U),V=new Array(U);re(e.packedBuffer);let G={batchTableColors:new Uint32Array(e.batchTableColors),positions:E,vertexBatchIds:A,indices:v,batchIds:S,batchedIndices:P,indexOffsets:C,indexCounts:M,boundingVolumes:V,positionOffset:0,batchIdIndex:0,indexOffset:0,batchedIndicesOffset:0,modelMatrix:Q,center:K};R(G,n,o,m,oe),R(G,r,i,b,ce),R(G,s,a,k,se),R(G,c,d,k,ie);let T=ae(v.BYTES_PER_ELEMENT,P,V);return t.push(E.buffer,A.buffer,v.buffer),t.push(S.buffer,C.buffer,M.buffer),t.push(T.buffer),{positions:E.buffer,vertexBatchIds:A.buffer,indices:v.buffer,indexOffsets:C.buffer,indexCounts:M.buffer,batchIds:S.buffer,packedBuffer:T.buffer}}var Oe=Y(fe);export{Oe as default};
|