create-swdg-frontend 0.1.0
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 +39 -0
- package/bin/index.js +248 -0
- package/package.json +29 -0
- package/template/.husky/commit-msg +42 -0
- package/template/.husky/pre-commit +2 -0
- package/template/.husky/prepare-commit-msg +1 -0
- package/template/.lintstagedrc +5 -0
- package/template/.prettierignore +26 -0
- package/template/.prettierrc.cjs +10 -0
- package/template/.stylelintignore +1 -0
- package/template/.stylelintrc.json +6 -0
- package/template/README.md +36 -0
- package/template/commitlint.config.cjs +64 -0
- package/template/eslint.config.js +96 -0
- package/template/index.html +17 -0
- package/template/interface/user.ts +5 -0
- package/template/package.json +84 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_0.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_1.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_10.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_11.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_12.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_13.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_14.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_15.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_16.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_17.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_18.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_19.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_2.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_20.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_21.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_22.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_23.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_24.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_25.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_26.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_27.json +438 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_3.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_4.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_5.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_6.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_7.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_8.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_9.json +1012 -0
- package/template/public/Cesium1.119/Assets/Images/bing_maps_credit.png +0 -0
- package/template/public/Cesium1.119/Assets/Images/cesium_credit.png +0 -0
- package/template/public/Cesium1.119/Assets/Images/google_earth_credit.png +0 -0
- package/template/public/Cesium1.119/Assets/Images/ion-credit.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/LensFlare/DirtMask.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/LensFlare/StarBurst.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/0/0/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/0/1/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/0/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/0/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/1/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/1/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/2/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/2/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/3/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/3/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/tilemapresource.xml +14 -0
- package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_mx.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_my.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_mz.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_px.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_py.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_pz.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/airfield.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/airport.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/alcohol-shop.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/america-football.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/art-gallery.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/bakery.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/bank.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/bar.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/baseball.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/basketball.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/beer.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/bicycle.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/building.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/bus.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/cafe.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/camera.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/campsite.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/car.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/cemetery.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/cesium.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/chemist.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/cinema.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/circle-stroked.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/circle.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/city.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/clothing-store.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/college.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/commercial.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/cricket.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/cross.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/dam.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/danger.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/disability.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/dog-park.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/embassy.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/emergency-telephone.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/entrance.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/farm.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/fast-food.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/ferry.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/fire-station.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/fuel.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/garden.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/gift.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/golf.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/grocery.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/hairdresser.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/harbor.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/heart.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/heliport.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/hospital.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/ice-cream.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/industrial.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/land-use.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/laundry.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/library.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/lighthouse.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/lodging.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/logging.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/london-underground.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/marker-stroked.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/marker.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/minefield.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/mobilephone.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/monument.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/museum.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/music.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/oil-well.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/park.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/park2.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/parking-garage.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/parking.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/pharmacy.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/pitch.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/place-of-worship.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/playground.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/police.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/polling-place.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/post.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/prison.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/rail-above.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/rail-light.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/rail-metro.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/rail-underground.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/rail.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/religious-christian.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/religious-jewish.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/religious-muslim.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/restaurant.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/roadblock.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/rocket.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/school.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/scooter.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/shop.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/skiing.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/slaughterhouse.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/soccer.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/square-stroked.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/square.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/star-stroked.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/star.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/suitcase.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/swimming.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/telephone.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/tennis.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/theatre.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/toilets.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/town-hall.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/town.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/triangle-stroked.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/triangle.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/village.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/warehouse.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/waste-basket.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/water.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/wetland.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/zoo.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/moonSmall.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/pin.svg +1 -0
- package/template/public/Cesium1.119/Assets/Textures/waterNormals.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/waterNormalsSmall.jpg +0 -0
- package/template/public/Cesium1.119/Assets/approximateTerrainHeights.json +10924 -0
- package/template/public/Cesium1.119/Cesium.js +185772 -0
- package/template/public/Cesium1.119/ThirdParty/Workers/package.json +3 -0
- package/template/public/Cesium1.119/ThirdParty/Workers/pako_deflate.min.js +1681 -0
- package/template/public/Cesium1.119/ThirdParty/Workers/pako_inflate.min.js +1489 -0
- package/template/public/Cesium1.119/ThirdParty/Workers/z-worker-pako.js +1070 -0
- package/template/public/Cesium1.119/ThirdParty/basis_transcoder.wasm +0 -0
- package/template/public/Cesium1.119/ThirdParty/draco_decoder.wasm +0 -0
- package/template/public/Cesium1.119/ThirdParty/google-earth-dbroot-parser.js +11424 -0
- package/template/public/Cesium1.119/Widgets/Animation/Animation.css +127 -0
- package/template/public/Cesium1.119/Widgets/Animation/lighter.css +78 -0
- package/template/public/Cesium1.119/Widgets/BaseLayerPicker/BaseLayerPicker.css +112 -0
- package/template/public/Cesium1.119/Widgets/BaseLayerPicker/lighter.css +28 -0
- package/template/public/Cesium1.119/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css +104 -0
- package/template/public/Cesium1.119/Widgets/CesiumInspector/CesiumInspector.css +115 -0
- package/template/public/Cesium1.119/Widgets/CesiumWidget/CesiumWidget.css +119 -0
- package/template/public/Cesium1.119/Widgets/CesiumWidget/lighter.css +14 -0
- package/template/public/Cesium1.119/Widgets/FullscreenButton/FullscreenButton.css +8 -0
- package/template/public/Cesium1.119/Widgets/Geocoder/Geocoder.css +72 -0
- package/template/public/Cesium1.119/Widgets/Geocoder/lighter.css +17 -0
- package/template/public/Cesium1.119/Widgets/I3SBuildingSceneLayerExplorer/I3SBuildingSceneLayerExplorer.css +27 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldHillshade.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldImagery.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldOcean.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/bingAerial.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/bingAerialLabels.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/bingRoads.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/blueMarble.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/earthAtNight.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapQuestOpenStreetMap.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapboxSatellite.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapboxStreets.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapboxTerrain.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/naturalEarthII.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/openStreetMap.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/sentinel-2.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stadiaAlidadeSmooth.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stadiaAlidadeSmoothDark.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stamenToner.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stamenWatercolor.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/Mouse.svg +84 -0
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/MouseLeft.svg +76 -0
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/MouseMiddle.svg +76 -0
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/MouseRight.svg +76 -0
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/Touch.svg +120 -0
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchDrag.svg +129 -0
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchRotate.svg +76 -0
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchTilt.svg +135 -0
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchZoom.svg +74 -0
- package/template/public/Cesium1.119/Widgets/Images/TerrainProviders/CesiumWorldTerrain.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/TerrainProviders/Ellipsoid.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/TimelineIcons.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/info-loading.gif +0 -0
- package/template/public/Cesium1.119/Widgets/InfoBox/InfoBox.css +94 -0
- package/template/public/Cesium1.119/Widgets/InfoBox/InfoBoxDescription.css +178 -0
- package/template/public/Cesium1.119/Widgets/NavigationHelpButton/NavigationHelpButton.css +95 -0
- package/template/public/Cesium1.119/Widgets/NavigationHelpButton/lighter.css +38 -0
- package/template/public/Cesium1.119/Widgets/PerformanceWatchdog/PerformanceWatchdog.css +15 -0
- package/template/public/Cesium1.119/Widgets/ProjectionPicker/ProjectionPicker.css +46 -0
- package/template/public/Cesium1.119/Widgets/SceneModePicker/SceneModePicker.css +72 -0
- package/template/public/Cesium1.119/Widgets/SelectionIndicator/SelectionIndicator.css +22 -0
- package/template/public/Cesium1.119/Widgets/Timeline/Timeline.css +103 -0
- package/template/public/Cesium1.119/Widgets/Timeline/lighter.css +18 -0
- package/template/public/Cesium1.119/Widgets/VRButton/VRButton.css +8 -0
- package/template/public/Cesium1.119/Widgets/Viewer/Viewer.css +107 -0
- package/template/public/Cesium1.119/Widgets/VoxelInspector/VoxelInspector.css +18 -0
- package/template/public/Cesium1.119/Widgets/lighter.css +246 -0
- package/template/public/Cesium1.119/Widgets/lighterShared.css +46 -0
- package/template/public/Cesium1.119/Widgets/shared.css +103 -0
- package/template/public/Cesium1.119/Widgets/widgets.css +1376 -0
- package/template/public/Cesium1.119/Workers/chunk-3C7WC463.js +611 -0
- package/template/public/Cesium1.119/Workers/chunk-3JW36LZF.js +166 -0
- package/template/public/Cesium1.119/Workers/chunk-4BTGX3WJ.js +264 -0
- package/template/public/Cesium1.119/Workers/chunk-4WRMLZA7.js +128 -0
- package/template/public/Cesium1.119/Workers/chunk-7Z5IIKOJ.js +8046 -0
- package/template/public/Cesium1.119/Workers/chunk-ABGXSJNX.js +341 -0
- package/template/public/Cesium1.119/Workers/chunk-AMQUWUD4.js +269 -0
- package/template/public/Cesium1.119/Workers/chunk-ATPDRNKI.js +28 -0
- package/template/public/Cesium1.119/Workers/chunk-BMHPVZ4H.js +199 -0
- package/template/public/Cesium1.119/Workers/chunk-CBEO3SHS.js +1102 -0
- package/template/public/Cesium1.119/Workers/chunk-CV7DLCWG.js +485 -0
- package/template/public/Cesium1.119/Workers/chunk-DQO6B4EQ.js +76 -0
- package/template/public/Cesium1.119/Workers/chunk-ED3TLP6D.js +91 -0
- package/template/public/Cesium1.119/Workers/chunk-EFZKO5RU.js +42 -0
- package/template/public/Cesium1.119/Workers/chunk-F5IHREXR.js +2678 -0
- package/template/public/Cesium1.119/Workers/chunk-FKRG4HDY.js +516 -0
- package/template/public/Cesium1.119/Workers/chunk-FYOYUPXG.js +399 -0
- package/template/public/Cesium1.119/Workers/chunk-GFN7NNSJ.js +65 -0
- package/template/public/Cesium1.119/Workers/chunk-HEEMUCG6.js +92 -0
- package/template/public/Cesium1.119/Workers/chunk-HSWA4OEL.js +672 -0
- package/template/public/Cesium1.119/Workers/chunk-IAC5XVZV.js +287 -0
- package/template/public/Cesium1.119/Workers/chunk-II4VNKYR.js +50 -0
- package/template/public/Cesium1.119/Workers/chunk-ILGBPNP6.js +28 -0
- package/template/public/Cesium1.119/Workers/chunk-IRH46BDL.js +124 -0
- package/template/public/Cesium1.119/Workers/chunk-IUA6FAOZ.js +31 -0
- package/template/public/Cesium1.119/Workers/chunk-K4ASOM65.js +331 -0
- package/template/public/Cesium1.119/Workers/chunk-KCIZBVXL.js +258 -0
- package/template/public/Cesium1.119/Workers/chunk-KF5NF354.js +162 -0
- package/template/public/Cesium1.119/Workers/chunk-KRKI6AAO.js +773 -0
- package/template/public/Cesium1.119/Workers/chunk-KZNJOCYU.js +162 -0
- package/template/public/Cesium1.119/Workers/chunk-O5IJ3OGP.js +857 -0
- package/template/public/Cesium1.119/Workers/chunk-OO23RBLX.js +183 -0
- package/template/public/Cesium1.119/Workers/chunk-P37AI2DW.js +85 -0
- package/template/public/Cesium1.119/Workers/chunk-PDMQLSBL.js +108 -0
- package/template/public/Cesium1.119/Workers/chunk-PEYJTJPE.js +73 -0
- package/template/public/Cesium1.119/Workers/chunk-POASMU2N.js +2372 -0
- package/template/public/Cesium1.119/Workers/chunk-PXCJYT2S.js +73 -0
- package/template/public/Cesium1.119/Workers/chunk-Q6L7X3LP.js +538 -0
- package/template/public/Cesium1.119/Workers/chunk-QB3MDM4J.js +1670 -0
- package/template/public/Cesium1.119/Workers/chunk-R6KGAEF6.js +392 -0
- package/template/public/Cesium1.119/Workers/chunk-RXTBM4OI.js +57 -0
- package/template/public/Cesium1.119/Workers/chunk-SB224QGV.js +72 -0
- package/template/public/Cesium1.119/Workers/chunk-T6BE4RZK.js +37 -0
- package/template/public/Cesium1.119/Workers/chunk-TAMCUKAR.js +814 -0
- package/template/public/Cesium1.119/Workers/chunk-TMSETF7M.js +579 -0
- package/template/public/Cesium1.119/Workers/chunk-TOGHF3VN.js +376 -0
- package/template/public/Cesium1.119/Workers/chunk-UH2WFNTA.js +111 -0
- package/template/public/Cesium1.119/Workers/chunk-V7JEDBOE.js +573 -0
- package/template/public/Cesium1.119/Workers/chunk-VBIROZR5.js +633 -0
- package/template/public/Cesium1.119/Workers/chunk-W23CU777.js +271 -0
- package/template/public/Cesium1.119/Workers/chunk-X5IHHI6X.js +173 -0
- package/template/public/Cesium1.119/Workers/chunk-XHX2UPDO.js +217 -0
- package/template/public/Cesium1.119/Workers/combineGeometry.js +53 -0
- package/template/public/Cesium1.119/Workers/createBoxGeometry.js +45 -0
- package/template/public/Cesium1.119/Workers/createBoxOutlineGeometry.js +189 -0
- package/template/public/Cesium1.119/Workers/createCircleGeometry.js +148 -0
- package/template/public/Cesium1.119/Workers/createCircleOutlineGeometry.js +105 -0
- package/template/public/Cesium1.119/Workers/createCoplanarPolygonGeometry.js +293 -0
- package/template/public/Cesium1.119/Workers/createCoplanarPolygonOutlineGeometry.js +143 -0
- package/template/public/Cesium1.119/Workers/createCorridorGeometry.js +830 -0
- package/template/public/Cesium1.119/Workers/createCorridorOutlineGeometry.js +417 -0
- package/template/public/Cesium1.119/Workers/createCylinderGeometry.js +47 -0
- package/template/public/Cesium1.119/Workers/createCylinderOutlineGeometry.js +170 -0
- package/template/public/Cesium1.119/Workers/createEllipseGeometry.js +58 -0
- package/template/public/Cesium1.119/Workers/createEllipseOutlineGeometry.js +51 -0
- package/template/public/Cesium1.119/Workers/createEllipsoidGeometry.js +46 -0
- package/template/public/Cesium1.119/Workers/createEllipsoidOutlineGeometry.js +45 -0
- package/template/public/Cesium1.119/Workers/createFrustumGeometry.js +45 -0
- package/template/public/Cesium1.119/Workers/createFrustumOutlineGeometry.js +164 -0
- package/template/public/Cesium1.119/Workers/createGeometry.js +159 -0
- package/template/public/Cesium1.119/Workers/createGroundPolylineGeometry.js +911 -0
- package/template/public/Cesium1.119/Workers/createPlaneGeometry.js +185 -0
- package/template/public/Cesium1.119/Workers/createPlaneOutlineGeometry.js +93 -0
- package/template/public/Cesium1.119/Workers/createPolygonGeometry.js +884 -0
- package/template/public/Cesium1.119/Workers/createPolygonOutlineGeometry.js +359 -0
- package/template/public/Cesium1.119/Workers/createPolylineGeometry.js +349 -0
- package/template/public/Cesium1.119/Workers/createPolylineVolumeGeometry.js +262 -0
- package/template/public/Cesium1.119/Workers/createPolylineVolumeOutlineGeometry.js +177 -0
- package/template/public/Cesium1.119/Workers/createRectangleGeometry.js +787 -0
- package/template/public/Cesium1.119/Workers/createRectangleOutlineGeometry.js +299 -0
- package/template/public/Cesium1.119/Workers/createSimplePolylineGeometry.js +294 -0
- package/template/public/Cesium1.119/Workers/createSphereGeometry.js +84 -0
- package/template/public/Cesium1.119/Workers/createSphereOutlineGeometry.js +83 -0
- package/template/public/Cesium1.119/Workers/createTaskProcessorWorker.js +28 -0
- package/template/public/Cesium1.119/Workers/createVectorTileClampedPolylines.js +289 -0
- package/template/public/Cesium1.119/Workers/createVectorTileGeometries.js +258 -0
- package/template/public/Cesium1.119/Workers/createVectorTilePoints.js +79 -0
- package/template/public/Cesium1.119/Workers/createVectorTilePolygons.js +275 -0
- package/template/public/Cesium1.119/Workers/createVectorTilePolylines.js +176 -0
- package/template/public/Cesium1.119/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +375 -0
- package/template/public/Cesium1.119/Workers/createVerticesFromHeightmap.js +1772 -0
- package/template/public/Cesium1.119/Workers/createVerticesFromQuantizedTerrainMesh.js +425 -0
- package/template/public/Cesium1.119/Workers/createWallGeometry.js +320 -0
- package/template/public/Cesium1.119/Workers/createWallOutlineGeometry.js +229 -0
- package/template/public/Cesium1.119/Workers/decodeDraco.js +227 -0
- package/template/public/Cesium1.119/Workers/decodeGoogleEarthEnterprisePacket.js +1836 -0
- package/template/public/Cesium1.119/Workers/decodeI3S.js +924 -0
- package/template/public/Cesium1.119/Workers/transcodeKTX2.js +3180 -0
- package/template/public/Cesium1.119/Workers/transferTypedArrayTest.js +34 -0
- package/template/public/Cesium1.119/Workers/upsampleQuantizedTerrainMesh.js +534 -0
- package/template/public/Cesium1.119/index.cjs +185632 -0
- package/template/public/Cesium1.119/index.js +182874 -0
- package/template/public/vite.svg +1 -0
- package/template/scripts/gen-api.cjs +178 -0
- package/template/src/App.vue +6 -0
- package/template/src/api/README.md +3 -0
- package/template/src/assets/favicon.svg +49 -0
- package/template/src/components/Body/index.vue +16 -0
- package/template/src/components/Header/index.vue +8 -0
- package/template/src/directive/focus.ts +9 -0
- package/template/src/layout/BasicLayout.vue +28 -0
- package/template/src/main.ts +33 -0
- package/template/src/router/index.ts +24 -0
- package/template/src/stores/README.md +3 -0
- package/template/src/stores/useCounter.ts +12 -0
- package/template/src/styles/alerts.less +85 -0
- package/template/src/styles/global.css +326 -0
- package/template/src/utils/alert.ts +58 -0
- package/template/src/utils/components.ts +21 -0
- package/template/src/utils/composables/useAlert.ts +14 -0
- package/template/src/views/Test/index.vue +23 -0
- package/template/src/views/index.vue +9 -0
- package/template/src/vite-env.d.ts +1 -0
- package/template/swdg/bin/index.js +23 -0
- package/template/swdg/package.json +27 -0
- package/template/tests/README.md +6 -0
- package/template/tests/e2e/README.md +3 -0
- package/template/tests/setup.ts +1 -0
- package/template/tests/unit/example.test.ts +7 -0
- package/template/tests/utils/helpers.ts +1 -0
- package/template/tsconfig.json +51 -0
- package/template/tsconfig.node.json +11 -0
- package/template/types/README.md +3 -0
- package/template/types/global.d.ts +9 -0
- package/template/vite.config.ts +75 -0
- package/template/vitest.config.ts +9 -0
|
@@ -0,0 +1,773 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.119
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
import { a as tt } from "./chunk-BMHPVZ4H.js";
|
|
27
|
+
import { a as At } from "./chunk-EFZKO5RU.js";
|
|
28
|
+
import { a as yt } from "./chunk-QB3MDM4J.js";
|
|
29
|
+
import { a as G } from "./chunk-ILGBPNP6.js";
|
|
30
|
+
import { a as z } from "./chunk-HEEMUCG6.js";
|
|
31
|
+
import { a as at } from "./chunk-P37AI2DW.js";
|
|
32
|
+
import { a as ht } from "./chunk-T6BE4RZK.js";
|
|
33
|
+
import { b as mt, c as st, d as S } from "./chunk-X5IHHI6X.js";
|
|
34
|
+
import { a as dt, d as rt } from "./chunk-TMSETF7M.js";
|
|
35
|
+
import { f as it, h as bt } from "./chunk-7Z5IIKOJ.js";
|
|
36
|
+
import { a as F } from "./chunk-KZNJOCYU.js";
|
|
37
|
+
import { a, b as _t, c as W, d as v, e as R } from "./chunk-POASMU2N.js";
|
|
38
|
+
import { a as I } from "./chunk-R6KGAEF6.js";
|
|
39
|
+
import { a as T } from "./chunk-IUA6FAOZ.js";
|
|
40
|
+
import { a as nt, b as H } from "./chunk-UH2WFNTA.js";
|
|
41
|
+
import { e as K } from "./chunk-PEYJTJPE.js";
|
|
42
|
+
var et = new a(),
|
|
43
|
+
pt = new a(),
|
|
44
|
+
xt = new a(),
|
|
45
|
+
wt = new a(),
|
|
46
|
+
w = new W(),
|
|
47
|
+
Mt = new R(),
|
|
48
|
+
Vt = new R(),
|
|
49
|
+
gt = new it(),
|
|
50
|
+
Tt = new a(),
|
|
51
|
+
Nt = new a(),
|
|
52
|
+
Et = new a(),
|
|
53
|
+
lt = new _t(),
|
|
54
|
+
Pt = new a(),
|
|
55
|
+
Ft = new W(),
|
|
56
|
+
St = new W();
|
|
57
|
+
function Ot(o, e, t) {
|
|
58
|
+
let n = e.vertexFormat,
|
|
59
|
+
s = e.center,
|
|
60
|
+
i = e.semiMajorAxis,
|
|
61
|
+
r = e.semiMinorAxis,
|
|
62
|
+
f = e.ellipsoid,
|
|
63
|
+
h = e.stRotation,
|
|
64
|
+
E = t ? (o.length / 3) * 2 : o.length / 3,
|
|
65
|
+
g = e.shadowVolume,
|
|
66
|
+
c = n.st ? new Float32Array(E * 2) : void 0,
|
|
67
|
+
l = n.normal ? new Float32Array(E * 3) : void 0,
|
|
68
|
+
A = n.tangent ? new Float32Array(E * 3) : void 0,
|
|
69
|
+
x = n.bitangent ? new Float32Array(E * 3) : void 0,
|
|
70
|
+
O = g ? new Float32Array(E * 3) : void 0,
|
|
71
|
+
B = 0,
|
|
72
|
+
b = Tt,
|
|
73
|
+
M = Nt,
|
|
74
|
+
d = Et,
|
|
75
|
+
_ = new dt(f),
|
|
76
|
+
L = _.project(f.cartesianToCartographic(s, lt), Pt),
|
|
77
|
+
J = f.scaleToGeodeticSurface(s, et);
|
|
78
|
+
f.geodeticSurfaceNormal(J, J);
|
|
79
|
+
let Z = Mt,
|
|
80
|
+
q = Vt;
|
|
81
|
+
if (h !== 0) {
|
|
82
|
+
let m = it.fromAxisAngle(J, h, gt);
|
|
83
|
+
((Z = R.fromQuaternion(m, Z)),
|
|
84
|
+
(m = it.fromAxisAngle(J, -h, gt)),
|
|
85
|
+
(q = R.fromQuaternion(m, q)));
|
|
86
|
+
} else ((Z = R.clone(R.IDENTITY, Z)), (q = R.clone(R.IDENTITY, q)));
|
|
87
|
+
let k = W.fromElements(
|
|
88
|
+
Number.POSITIVE_INFINITY,
|
|
89
|
+
Number.POSITIVE_INFINITY,
|
|
90
|
+
Ft,
|
|
91
|
+
),
|
|
92
|
+
Q = W.fromElements(Number.NEGATIVE_INFINITY, Number.NEGATIVE_INFINITY, St),
|
|
93
|
+
j = o.length,
|
|
94
|
+
y = t ? j : 0,
|
|
95
|
+
p = (y / 3) * 2;
|
|
96
|
+
for (let m = 0; m < j; m += 3) {
|
|
97
|
+
let u = m + 1,
|
|
98
|
+
N = m + 2,
|
|
99
|
+
D = a.fromArray(o, m, et);
|
|
100
|
+
if (n.st) {
|
|
101
|
+
let P = R.multiplyByVector(Z, D, pt),
|
|
102
|
+
C = _.project(f.cartesianToCartographic(P, lt), xt);
|
|
103
|
+
(a.subtract(C, L, C),
|
|
104
|
+
(w.x = (C.x + i) / (2 * i)),
|
|
105
|
+
(w.y = (C.y + r) / (2 * r)),
|
|
106
|
+
(k.x = Math.min(w.x, k.x)),
|
|
107
|
+
(k.y = Math.min(w.y, k.y)),
|
|
108
|
+
(Q.x = Math.max(w.x, Q.x)),
|
|
109
|
+
(Q.y = Math.max(w.y, Q.y)),
|
|
110
|
+
t && ((c[B + p] = w.x), (c[B + 1 + p] = w.y)),
|
|
111
|
+
(c[B++] = w.x),
|
|
112
|
+
(c[B++] = w.y));
|
|
113
|
+
}
|
|
114
|
+
(n.normal || n.tangent || n.bitangent || g) &&
|
|
115
|
+
((b = f.geodeticSurfaceNormal(D, b)),
|
|
116
|
+
g && ((O[m + y] = -b.x), (O[u + y] = -b.y), (O[N + y] = -b.z)),
|
|
117
|
+
(n.normal || n.tangent || n.bitangent) &&
|
|
118
|
+
((n.tangent || n.bitangent) &&
|
|
119
|
+
((M = a.normalize(a.cross(a.UNIT_Z, b, M), M)),
|
|
120
|
+
R.multiplyByVector(q, M, M)),
|
|
121
|
+
n.normal &&
|
|
122
|
+
((l[m] = b.x),
|
|
123
|
+
(l[u] = b.y),
|
|
124
|
+
(l[N] = b.z),
|
|
125
|
+
t && ((l[m + y] = -b.x), (l[u + y] = -b.y), (l[N + y] = -b.z))),
|
|
126
|
+
n.tangent &&
|
|
127
|
+
((A[m] = M.x),
|
|
128
|
+
(A[u] = M.y),
|
|
129
|
+
(A[N] = M.z),
|
|
130
|
+
t && ((A[m + y] = -M.x), (A[u + y] = -M.y), (A[N + y] = -M.z))),
|
|
131
|
+
n.bitangent &&
|
|
132
|
+
((d = a.normalize(a.cross(b, M, d), d)),
|
|
133
|
+
(x[m] = d.x),
|
|
134
|
+
(x[u] = d.y),
|
|
135
|
+
(x[N] = d.z),
|
|
136
|
+
t && ((x[m + y] = d.x), (x[u + y] = d.y), (x[N + y] = d.z)))));
|
|
137
|
+
}
|
|
138
|
+
if (n.st) {
|
|
139
|
+
j = c.length;
|
|
140
|
+
for (let m = 0; m < j; m += 2)
|
|
141
|
+
((c[m] = (c[m] - k.x) / (Q.x - k.x)),
|
|
142
|
+
(c[m + 1] = (c[m + 1] - k.y) / (Q.y - k.y)));
|
|
143
|
+
}
|
|
144
|
+
let V = new ht();
|
|
145
|
+
if (n.position) {
|
|
146
|
+
let m = tt.raisePositionsToHeight(o, e, t);
|
|
147
|
+
V.position = new S({
|
|
148
|
+
componentDatatype: F.DOUBLE,
|
|
149
|
+
componentsPerAttribute: 3,
|
|
150
|
+
values: m,
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
if (
|
|
154
|
+
(n.st &&
|
|
155
|
+
(V.st = new S({
|
|
156
|
+
componentDatatype: F.FLOAT,
|
|
157
|
+
componentsPerAttribute: 2,
|
|
158
|
+
values: c,
|
|
159
|
+
})),
|
|
160
|
+
n.normal &&
|
|
161
|
+
(V.normal = new S({
|
|
162
|
+
componentDatatype: F.FLOAT,
|
|
163
|
+
componentsPerAttribute: 3,
|
|
164
|
+
values: l,
|
|
165
|
+
})),
|
|
166
|
+
n.tangent &&
|
|
167
|
+
(V.tangent = new S({
|
|
168
|
+
componentDatatype: F.FLOAT,
|
|
169
|
+
componentsPerAttribute: 3,
|
|
170
|
+
values: A,
|
|
171
|
+
})),
|
|
172
|
+
n.bitangent &&
|
|
173
|
+
(V.bitangent = new S({
|
|
174
|
+
componentDatatype: F.FLOAT,
|
|
175
|
+
componentsPerAttribute: 3,
|
|
176
|
+
values: x,
|
|
177
|
+
})),
|
|
178
|
+
g &&
|
|
179
|
+
(V.extrudeDirection = new S({
|
|
180
|
+
componentDatatype: F.FLOAT,
|
|
181
|
+
componentsPerAttribute: 3,
|
|
182
|
+
values: O,
|
|
183
|
+
})),
|
|
184
|
+
t && K(e.offsetAttribute))
|
|
185
|
+
) {
|
|
186
|
+
let m = new Uint8Array(E);
|
|
187
|
+
if (e.offsetAttribute === G.TOP) m = m.fill(1, 0, E / 2);
|
|
188
|
+
else {
|
|
189
|
+
let u = e.offsetAttribute === G.NONE ? 0 : 1;
|
|
190
|
+
m = m.fill(u);
|
|
191
|
+
}
|
|
192
|
+
V.applyOffset = new S({
|
|
193
|
+
componentDatatype: F.UNSIGNED_BYTE,
|
|
194
|
+
componentsPerAttribute: 1,
|
|
195
|
+
values: m,
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
return V;
|
|
199
|
+
}
|
|
200
|
+
function jt(o) {
|
|
201
|
+
let e = new Array(12 * (o * (o + 1)) - 6),
|
|
202
|
+
t = 0,
|
|
203
|
+
n,
|
|
204
|
+
s,
|
|
205
|
+
i,
|
|
206
|
+
r,
|
|
207
|
+
f;
|
|
208
|
+
for (n = 0, i = 1, r = 0; r < 3; r++)
|
|
209
|
+
((e[t++] = i++), (e[t++] = n), (e[t++] = i));
|
|
210
|
+
for (r = 2; r < o + 1; ++r) {
|
|
211
|
+
for (
|
|
212
|
+
i = r * (r + 1) - 1,
|
|
213
|
+
n = (r - 1) * r - 1,
|
|
214
|
+
e[t++] = i++,
|
|
215
|
+
e[t++] = n,
|
|
216
|
+
e[t++] = i,
|
|
217
|
+
s = 2 * r,
|
|
218
|
+
f = 0;
|
|
219
|
+
f < s - 1;
|
|
220
|
+
++f
|
|
221
|
+
)
|
|
222
|
+
((e[t++] = i),
|
|
223
|
+
(e[t++] = n++),
|
|
224
|
+
(e[t++] = n),
|
|
225
|
+
(e[t++] = i++),
|
|
226
|
+
(e[t++] = n),
|
|
227
|
+
(e[t++] = i));
|
|
228
|
+
((e[t++] = i++), (e[t++] = n), (e[t++] = i));
|
|
229
|
+
}
|
|
230
|
+
for (s = o * 2, ++i, ++n, r = 0; r < s - 1; ++r)
|
|
231
|
+
((e[t++] = i),
|
|
232
|
+
(e[t++] = n++),
|
|
233
|
+
(e[t++] = n),
|
|
234
|
+
(e[t++] = i++),
|
|
235
|
+
(e[t++] = n),
|
|
236
|
+
(e[t++] = i));
|
|
237
|
+
for (
|
|
238
|
+
e[t++] = i,
|
|
239
|
+
e[t++] = n++,
|
|
240
|
+
e[t++] = n,
|
|
241
|
+
e[t++] = i++,
|
|
242
|
+
e[t++] = n++,
|
|
243
|
+
e[t++] = n,
|
|
244
|
+
++n,
|
|
245
|
+
r = o - 1;
|
|
246
|
+
r > 1;
|
|
247
|
+
--r
|
|
248
|
+
) {
|
|
249
|
+
for (e[t++] = n++, e[t++] = n, e[t++] = i, s = 2 * r, f = 0; f < s - 1; ++f)
|
|
250
|
+
((e[t++] = i),
|
|
251
|
+
(e[t++] = n++),
|
|
252
|
+
(e[t++] = n),
|
|
253
|
+
(e[t++] = i++),
|
|
254
|
+
(e[t++] = n),
|
|
255
|
+
(e[t++] = i));
|
|
256
|
+
((e[t++] = n++), (e[t++] = n++), (e[t++] = i++));
|
|
257
|
+
}
|
|
258
|
+
for (r = 0; r < 3; r++) ((e[t++] = n++), (e[t++] = n), (e[t++] = i));
|
|
259
|
+
return e;
|
|
260
|
+
}
|
|
261
|
+
var X = new a();
|
|
262
|
+
function Dt(o) {
|
|
263
|
+
let e = o.center;
|
|
264
|
+
((X = a.multiplyByScalar(
|
|
265
|
+
o.ellipsoid.geodeticSurfaceNormal(e, X),
|
|
266
|
+
o.height,
|
|
267
|
+
X,
|
|
268
|
+
)),
|
|
269
|
+
(X = a.add(e, X, X)));
|
|
270
|
+
let t = new rt(X, o.semiMajorAxis),
|
|
271
|
+
n = tt.computeEllipsePositions(o, !0, !1),
|
|
272
|
+
s = n.positions,
|
|
273
|
+
i = n.numPts,
|
|
274
|
+
r = Ot(s, o, !1),
|
|
275
|
+
f = jt(i);
|
|
276
|
+
return (
|
|
277
|
+
(f = at.createTypedArray(s.length / 3, f)),
|
|
278
|
+
{ boundingSphere: t, attributes: r, indices: f }
|
|
279
|
+
);
|
|
280
|
+
}
|
|
281
|
+
function vt(o, e) {
|
|
282
|
+
let t = e.vertexFormat,
|
|
283
|
+
n = e.center,
|
|
284
|
+
s = e.semiMajorAxis,
|
|
285
|
+
i = e.semiMinorAxis,
|
|
286
|
+
r = e.ellipsoid,
|
|
287
|
+
f = e.height,
|
|
288
|
+
h = e.extrudedHeight,
|
|
289
|
+
E = e.stRotation,
|
|
290
|
+
g = (o.length / 3) * 2,
|
|
291
|
+
c = new Float64Array(g * 3),
|
|
292
|
+
l = t.st ? new Float32Array(g * 2) : void 0,
|
|
293
|
+
A = t.normal ? new Float32Array(g * 3) : void 0,
|
|
294
|
+
x = t.tangent ? new Float32Array(g * 3) : void 0,
|
|
295
|
+
O = t.bitangent ? new Float32Array(g * 3) : void 0,
|
|
296
|
+
B = e.shadowVolume,
|
|
297
|
+
b = B ? new Float32Array(g * 3) : void 0,
|
|
298
|
+
M = 0,
|
|
299
|
+
d = Tt,
|
|
300
|
+
_ = Nt,
|
|
301
|
+
L = Et,
|
|
302
|
+
J = new dt(r),
|
|
303
|
+
Z = J.project(r.cartesianToCartographic(n, lt), Pt),
|
|
304
|
+
q = r.scaleToGeodeticSurface(n, et);
|
|
305
|
+
r.geodeticSurfaceNormal(q, q);
|
|
306
|
+
let k = it.fromAxisAngle(q, E, gt),
|
|
307
|
+
Q = R.fromQuaternion(k, Mt),
|
|
308
|
+
j = W.fromElements(Number.POSITIVE_INFINITY, Number.POSITIVE_INFINITY, Ft),
|
|
309
|
+
y = W.fromElements(Number.NEGATIVE_INFINITY, Number.NEGATIVE_INFINITY, St),
|
|
310
|
+
p = o.length,
|
|
311
|
+
V = (p / 3) * 2;
|
|
312
|
+
for (let u = 0; u < p; u += 3) {
|
|
313
|
+
let N = u + 1,
|
|
314
|
+
D = u + 2,
|
|
315
|
+
P = a.fromArray(o, u, et),
|
|
316
|
+
C;
|
|
317
|
+
if (t.st) {
|
|
318
|
+
let ot = R.multiplyByVector(Q, P, pt),
|
|
319
|
+
$ = J.project(r.cartesianToCartographic(ot, lt), xt);
|
|
320
|
+
(a.subtract($, Z, $),
|
|
321
|
+
(w.x = ($.x + s) / (2 * s)),
|
|
322
|
+
(w.y = ($.y + i) / (2 * i)),
|
|
323
|
+
(j.x = Math.min(w.x, j.x)),
|
|
324
|
+
(j.y = Math.min(w.y, j.y)),
|
|
325
|
+
(y.x = Math.max(w.x, y.x)),
|
|
326
|
+
(y.y = Math.max(w.y, y.y)),
|
|
327
|
+
(l[M + V] = w.x),
|
|
328
|
+
(l[M + 1 + V] = w.y),
|
|
329
|
+
(l[M++] = w.x),
|
|
330
|
+
(l[M++] = w.y));
|
|
331
|
+
}
|
|
332
|
+
((P = r.scaleToGeodeticSurface(P, P)),
|
|
333
|
+
(C = a.clone(P, pt)),
|
|
334
|
+
(d = r.geodeticSurfaceNormal(P, d)),
|
|
335
|
+
B && ((b[u + p] = -d.x), (b[N + p] = -d.y), (b[D + p] = -d.z)));
|
|
336
|
+
let ct = a.multiplyByScalar(d, f, wt);
|
|
337
|
+
if (
|
|
338
|
+
((P = a.add(P, ct, P)),
|
|
339
|
+
(ct = a.multiplyByScalar(d, h, ct)),
|
|
340
|
+
(C = a.add(C, ct, C)),
|
|
341
|
+
t.position &&
|
|
342
|
+
((c[u + p] = C.x),
|
|
343
|
+
(c[N + p] = C.y),
|
|
344
|
+
(c[D + p] = C.z),
|
|
345
|
+
(c[u] = P.x),
|
|
346
|
+
(c[N] = P.y),
|
|
347
|
+
(c[D] = P.z)),
|
|
348
|
+
t.normal || t.tangent || t.bitangent)
|
|
349
|
+
) {
|
|
350
|
+
L = a.clone(d, L);
|
|
351
|
+
let ot = a.fromArray(o, (u + 3) % p, wt);
|
|
352
|
+
a.subtract(ot, P, ot);
|
|
353
|
+
let $ = a.subtract(C, P, xt);
|
|
354
|
+
((d = a.normalize(a.cross($, ot, d), d)),
|
|
355
|
+
t.normal &&
|
|
356
|
+
((A[u] = d.x),
|
|
357
|
+
(A[N] = d.y),
|
|
358
|
+
(A[D] = d.z),
|
|
359
|
+
(A[u + p] = d.x),
|
|
360
|
+
(A[N + p] = d.y),
|
|
361
|
+
(A[D + p] = d.z)),
|
|
362
|
+
t.tangent &&
|
|
363
|
+
((_ = a.normalize(a.cross(L, d, _), _)),
|
|
364
|
+
(x[u] = _.x),
|
|
365
|
+
(x[N] = _.y),
|
|
366
|
+
(x[D] = _.z),
|
|
367
|
+
(x[u + p] = _.x),
|
|
368
|
+
(x[u + 1 + p] = _.y),
|
|
369
|
+
(x[u + 2 + p] = _.z)),
|
|
370
|
+
t.bitangent &&
|
|
371
|
+
((O[u] = L.x),
|
|
372
|
+
(O[N] = L.y),
|
|
373
|
+
(O[D] = L.z),
|
|
374
|
+
(O[u + p] = L.x),
|
|
375
|
+
(O[N + p] = L.y),
|
|
376
|
+
(O[D + p] = L.z)));
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
if (t.st) {
|
|
380
|
+
p = l.length;
|
|
381
|
+
for (let u = 0; u < p; u += 2)
|
|
382
|
+
((l[u] = (l[u] - j.x) / (y.x - j.x)),
|
|
383
|
+
(l[u + 1] = (l[u + 1] - j.y) / (y.y - j.y)));
|
|
384
|
+
}
|
|
385
|
+
let m = new ht();
|
|
386
|
+
if (
|
|
387
|
+
(t.position &&
|
|
388
|
+
(m.position = new S({
|
|
389
|
+
componentDatatype: F.DOUBLE,
|
|
390
|
+
componentsPerAttribute: 3,
|
|
391
|
+
values: c,
|
|
392
|
+
})),
|
|
393
|
+
t.st &&
|
|
394
|
+
(m.st = new S({
|
|
395
|
+
componentDatatype: F.FLOAT,
|
|
396
|
+
componentsPerAttribute: 2,
|
|
397
|
+
values: l,
|
|
398
|
+
})),
|
|
399
|
+
t.normal &&
|
|
400
|
+
(m.normal = new S({
|
|
401
|
+
componentDatatype: F.FLOAT,
|
|
402
|
+
componentsPerAttribute: 3,
|
|
403
|
+
values: A,
|
|
404
|
+
})),
|
|
405
|
+
t.tangent &&
|
|
406
|
+
(m.tangent = new S({
|
|
407
|
+
componentDatatype: F.FLOAT,
|
|
408
|
+
componentsPerAttribute: 3,
|
|
409
|
+
values: x,
|
|
410
|
+
})),
|
|
411
|
+
t.bitangent &&
|
|
412
|
+
(m.bitangent = new S({
|
|
413
|
+
componentDatatype: F.FLOAT,
|
|
414
|
+
componentsPerAttribute: 3,
|
|
415
|
+
values: O,
|
|
416
|
+
})),
|
|
417
|
+
B &&
|
|
418
|
+
(m.extrudeDirection = new S({
|
|
419
|
+
componentDatatype: F.FLOAT,
|
|
420
|
+
componentsPerAttribute: 3,
|
|
421
|
+
values: b,
|
|
422
|
+
})),
|
|
423
|
+
K(e.offsetAttribute))
|
|
424
|
+
) {
|
|
425
|
+
let u = new Uint8Array(g);
|
|
426
|
+
if (e.offsetAttribute === G.TOP) u = u.fill(1, 0, g / 2);
|
|
427
|
+
else {
|
|
428
|
+
let N = e.offsetAttribute === G.NONE ? 0 : 1;
|
|
429
|
+
u = u.fill(N);
|
|
430
|
+
}
|
|
431
|
+
m.applyOffset = new S({
|
|
432
|
+
componentDatatype: F.UNSIGNED_BYTE,
|
|
433
|
+
componentsPerAttribute: 1,
|
|
434
|
+
values: u,
|
|
435
|
+
});
|
|
436
|
+
}
|
|
437
|
+
return m;
|
|
438
|
+
}
|
|
439
|
+
function zt(o) {
|
|
440
|
+
let e = o.length / 3,
|
|
441
|
+
t = at.createTypedArray(e, e * 6),
|
|
442
|
+
n = 0;
|
|
443
|
+
for (let s = 0; s < e; s++) {
|
|
444
|
+
let i = s,
|
|
445
|
+
r = s + e,
|
|
446
|
+
f = (i + 1) % e,
|
|
447
|
+
h = f + e;
|
|
448
|
+
((t[n++] = i),
|
|
449
|
+
(t[n++] = r),
|
|
450
|
+
(t[n++] = f),
|
|
451
|
+
(t[n++] = f),
|
|
452
|
+
(t[n++] = r),
|
|
453
|
+
(t[n++] = h));
|
|
454
|
+
}
|
|
455
|
+
return t;
|
|
456
|
+
}
|
|
457
|
+
var ut = new rt(),
|
|
458
|
+
ft = new rt();
|
|
459
|
+
function Bt(o) {
|
|
460
|
+
let e = o.center,
|
|
461
|
+
t = o.ellipsoid,
|
|
462
|
+
n = o.semiMajorAxis,
|
|
463
|
+
s = a.multiplyByScalar(t.geodeticSurfaceNormal(e, et), o.height, et);
|
|
464
|
+
((ut.center = a.add(e, s, ut.center)),
|
|
465
|
+
(ut.radius = n),
|
|
466
|
+
(s = a.multiplyByScalar(
|
|
467
|
+
t.geodeticSurfaceNormal(e, s),
|
|
468
|
+
o.extrudedHeight,
|
|
469
|
+
s,
|
|
470
|
+
)),
|
|
471
|
+
(ft.center = a.add(e, s, ft.center)),
|
|
472
|
+
(ft.radius = n));
|
|
473
|
+
let i = tt.computeEllipsePositions(o, !0, !0),
|
|
474
|
+
r = i.positions,
|
|
475
|
+
f = i.numPts,
|
|
476
|
+
h = i.outerPositions,
|
|
477
|
+
E = rt.union(ut, ft),
|
|
478
|
+
g = Ot(r, o, !0),
|
|
479
|
+
c = jt(f),
|
|
480
|
+
l = c.length;
|
|
481
|
+
c.length = l * 2;
|
|
482
|
+
let A = r.length / 3;
|
|
483
|
+
for (let _ = 0; _ < l; _ += 3)
|
|
484
|
+
((c[_ + l] = c[_ + 2] + A),
|
|
485
|
+
(c[_ + 1 + l] = c[_ + 1] + A),
|
|
486
|
+
(c[_ + 2 + l] = c[_] + A));
|
|
487
|
+
let x = at.createTypedArray((A * 2) / 3, c),
|
|
488
|
+
O = new st({ attributes: g, indices: x, primitiveType: mt.TRIANGLES }),
|
|
489
|
+
B = vt(h, o);
|
|
490
|
+
c = zt(h);
|
|
491
|
+
let b = at.createTypedArray((h.length * 2) / 3, c),
|
|
492
|
+
M = new st({ attributes: B, indices: b, primitiveType: mt.TRIANGLES }),
|
|
493
|
+
d = yt.combineInstances([new At({ geometry: O }), new At({ geometry: M })]);
|
|
494
|
+
return {
|
|
495
|
+
boundingSphere: E,
|
|
496
|
+
attributes: d[0].attributes,
|
|
497
|
+
indices: d[0].indices,
|
|
498
|
+
};
|
|
499
|
+
}
|
|
500
|
+
function Ct(o, e, t, n, s, i, r) {
|
|
501
|
+
let h = tt.computeEllipsePositions(
|
|
502
|
+
{
|
|
503
|
+
center: o,
|
|
504
|
+
semiMajorAxis: e,
|
|
505
|
+
semiMinorAxis: t,
|
|
506
|
+
rotation: n,
|
|
507
|
+
granularity: s,
|
|
508
|
+
},
|
|
509
|
+
!1,
|
|
510
|
+
!0,
|
|
511
|
+
).outerPositions,
|
|
512
|
+
E = h.length / 3,
|
|
513
|
+
g = new Array(E);
|
|
514
|
+
for (let l = 0; l < E; ++l) g[l] = a.fromArray(h, l * 3);
|
|
515
|
+
let c = bt.fromCartesianArray(g, i, r);
|
|
516
|
+
return (
|
|
517
|
+
c.width > I.PI &&
|
|
518
|
+
((c.north = c.north > 0 ? I.PI_OVER_TWO - I.EPSILON7 : c.north),
|
|
519
|
+
(c.south = c.south < 0 ? I.EPSILON7 - I.PI_OVER_TWO : c.south),
|
|
520
|
+
(c.east = I.PI),
|
|
521
|
+
(c.west = -I.PI)),
|
|
522
|
+
c
|
|
523
|
+
);
|
|
524
|
+
}
|
|
525
|
+
function U(o) {
|
|
526
|
+
o = T(o, T.EMPTY_OBJECT);
|
|
527
|
+
let e = o.center,
|
|
528
|
+
t = T(o.ellipsoid, v.default),
|
|
529
|
+
n = o.semiMajorAxis,
|
|
530
|
+
s = o.semiMinorAxis,
|
|
531
|
+
i = T(o.granularity, I.RADIANS_PER_DEGREE),
|
|
532
|
+
r = T(o.vertexFormat, z.DEFAULT);
|
|
533
|
+
if (
|
|
534
|
+
(H.defined("options.center", e),
|
|
535
|
+
H.typeOf.number("options.semiMajorAxis", n),
|
|
536
|
+
H.typeOf.number("options.semiMinorAxis", s),
|
|
537
|
+
n < s)
|
|
538
|
+
)
|
|
539
|
+
throw new nt(
|
|
540
|
+
"semiMajorAxis must be greater than or equal to the semiMinorAxis.",
|
|
541
|
+
);
|
|
542
|
+
if (i <= 0) throw new nt("granularity must be greater than zero.");
|
|
543
|
+
let f = T(o.height, 0),
|
|
544
|
+
h = T(o.extrudedHeight, f);
|
|
545
|
+
((this._center = a.clone(e)),
|
|
546
|
+
(this._semiMajorAxis = n),
|
|
547
|
+
(this._semiMinorAxis = s),
|
|
548
|
+
(this._ellipsoid = v.clone(t)),
|
|
549
|
+
(this._rotation = T(o.rotation, 0)),
|
|
550
|
+
(this._stRotation = T(o.stRotation, 0)),
|
|
551
|
+
(this._height = Math.max(h, f)),
|
|
552
|
+
(this._granularity = i),
|
|
553
|
+
(this._vertexFormat = z.clone(r)),
|
|
554
|
+
(this._extrudedHeight = Math.min(h, f)),
|
|
555
|
+
(this._shadowVolume = T(o.shadowVolume, !1)),
|
|
556
|
+
(this._workerName = "createEllipseGeometry"),
|
|
557
|
+
(this._offsetAttribute = o.offsetAttribute),
|
|
558
|
+
(this._rectangle = void 0),
|
|
559
|
+
(this._textureCoordinateRotationPoints = void 0));
|
|
560
|
+
}
|
|
561
|
+
U.packedLength = a.packedLength + v.packedLength + z.packedLength + 9;
|
|
562
|
+
U.pack = function (o, e, t) {
|
|
563
|
+
return (
|
|
564
|
+
H.defined("value", o),
|
|
565
|
+
H.defined("array", e),
|
|
566
|
+
(t = T(t, 0)),
|
|
567
|
+
a.pack(o._center, e, t),
|
|
568
|
+
(t += a.packedLength),
|
|
569
|
+
v.pack(o._ellipsoid, e, t),
|
|
570
|
+
(t += v.packedLength),
|
|
571
|
+
z.pack(o._vertexFormat, e, t),
|
|
572
|
+
(t += z.packedLength),
|
|
573
|
+
(e[t++] = o._semiMajorAxis),
|
|
574
|
+
(e[t++] = o._semiMinorAxis),
|
|
575
|
+
(e[t++] = o._rotation),
|
|
576
|
+
(e[t++] = o._stRotation),
|
|
577
|
+
(e[t++] = o._height),
|
|
578
|
+
(e[t++] = o._granularity),
|
|
579
|
+
(e[t++] = o._extrudedHeight),
|
|
580
|
+
(e[t++] = o._shadowVolume ? 1 : 0),
|
|
581
|
+
(e[t] = T(o._offsetAttribute, -1)),
|
|
582
|
+
e
|
|
583
|
+
);
|
|
584
|
+
};
|
|
585
|
+
var Rt = new a(),
|
|
586
|
+
It = new v(),
|
|
587
|
+
Lt = new z(),
|
|
588
|
+
Y = {
|
|
589
|
+
center: Rt,
|
|
590
|
+
ellipsoid: It,
|
|
591
|
+
vertexFormat: Lt,
|
|
592
|
+
semiMajorAxis: void 0,
|
|
593
|
+
semiMinorAxis: void 0,
|
|
594
|
+
rotation: void 0,
|
|
595
|
+
stRotation: void 0,
|
|
596
|
+
height: void 0,
|
|
597
|
+
granularity: void 0,
|
|
598
|
+
extrudedHeight: void 0,
|
|
599
|
+
shadowVolume: void 0,
|
|
600
|
+
offsetAttribute: void 0,
|
|
601
|
+
};
|
|
602
|
+
U.unpack = function (o, e, t) {
|
|
603
|
+
(H.defined("array", o), (e = T(e, 0)));
|
|
604
|
+
let n = a.unpack(o, e, Rt);
|
|
605
|
+
e += a.packedLength;
|
|
606
|
+
let s = v.unpack(o, e, It);
|
|
607
|
+
e += v.packedLength;
|
|
608
|
+
let i = z.unpack(o, e, Lt);
|
|
609
|
+
e += z.packedLength;
|
|
610
|
+
let r = o[e++],
|
|
611
|
+
f = o[e++],
|
|
612
|
+
h = o[e++],
|
|
613
|
+
E = o[e++],
|
|
614
|
+
g = o[e++],
|
|
615
|
+
c = o[e++],
|
|
616
|
+
l = o[e++],
|
|
617
|
+
A = o[e++] === 1,
|
|
618
|
+
x = o[e];
|
|
619
|
+
return K(t)
|
|
620
|
+
? ((t._center = a.clone(n, t._center)),
|
|
621
|
+
(t._ellipsoid = v.clone(s, t._ellipsoid)),
|
|
622
|
+
(t._vertexFormat = z.clone(i, t._vertexFormat)),
|
|
623
|
+
(t._semiMajorAxis = r),
|
|
624
|
+
(t._semiMinorAxis = f),
|
|
625
|
+
(t._rotation = h),
|
|
626
|
+
(t._stRotation = E),
|
|
627
|
+
(t._height = g),
|
|
628
|
+
(t._granularity = c),
|
|
629
|
+
(t._extrudedHeight = l),
|
|
630
|
+
(t._shadowVolume = A),
|
|
631
|
+
(t._offsetAttribute = x === -1 ? void 0 : x),
|
|
632
|
+
t)
|
|
633
|
+
: ((Y.height = g),
|
|
634
|
+
(Y.extrudedHeight = l),
|
|
635
|
+
(Y.granularity = c),
|
|
636
|
+
(Y.stRotation = E),
|
|
637
|
+
(Y.rotation = h),
|
|
638
|
+
(Y.semiMajorAxis = r),
|
|
639
|
+
(Y.semiMinorAxis = f),
|
|
640
|
+
(Y.shadowVolume = A),
|
|
641
|
+
(Y.offsetAttribute = x === -1 ? void 0 : x),
|
|
642
|
+
new U(Y));
|
|
643
|
+
};
|
|
644
|
+
U.computeRectangle = function (o, e) {
|
|
645
|
+
o = T(o, T.EMPTY_OBJECT);
|
|
646
|
+
let t = o.center,
|
|
647
|
+
n = T(o.ellipsoid, v.default),
|
|
648
|
+
s = o.semiMajorAxis,
|
|
649
|
+
i = o.semiMinorAxis,
|
|
650
|
+
r = T(o.granularity, I.RADIANS_PER_DEGREE),
|
|
651
|
+
f = T(o.rotation, 0);
|
|
652
|
+
if (
|
|
653
|
+
(H.defined("options.center", t),
|
|
654
|
+
H.typeOf.number("options.semiMajorAxis", s),
|
|
655
|
+
H.typeOf.number("options.semiMinorAxis", i),
|
|
656
|
+
s < i)
|
|
657
|
+
)
|
|
658
|
+
throw new nt(
|
|
659
|
+
"semiMajorAxis must be greater than or equal to the semiMinorAxis.",
|
|
660
|
+
);
|
|
661
|
+
if (r <= 0) throw new nt("granularity must be greater than zero.");
|
|
662
|
+
return Ct(t, s, i, f, r, n, e);
|
|
663
|
+
};
|
|
664
|
+
U.createGeometry = function (o) {
|
|
665
|
+
if (o._semiMajorAxis <= 0 || o._semiMinorAxis <= 0) return;
|
|
666
|
+
let e = o._height,
|
|
667
|
+
t = o._extrudedHeight,
|
|
668
|
+
n = !I.equalsEpsilon(e, t, 0, I.EPSILON2);
|
|
669
|
+
o._center = o._ellipsoid.scaleToGeodeticSurface(o._center, o._center);
|
|
670
|
+
let s = {
|
|
671
|
+
center: o._center,
|
|
672
|
+
semiMajorAxis: o._semiMajorAxis,
|
|
673
|
+
semiMinorAxis: o._semiMinorAxis,
|
|
674
|
+
ellipsoid: o._ellipsoid,
|
|
675
|
+
rotation: o._rotation,
|
|
676
|
+
height: e,
|
|
677
|
+
granularity: o._granularity,
|
|
678
|
+
vertexFormat: o._vertexFormat,
|
|
679
|
+
stRotation: o._stRotation,
|
|
680
|
+
},
|
|
681
|
+
i;
|
|
682
|
+
if (n)
|
|
683
|
+
((s.extrudedHeight = t),
|
|
684
|
+
(s.shadowVolume = o._shadowVolume),
|
|
685
|
+
(s.offsetAttribute = o._offsetAttribute),
|
|
686
|
+
(i = Bt(s)));
|
|
687
|
+
else if (((i = Dt(s)), K(o._offsetAttribute))) {
|
|
688
|
+
let r = i.attributes.position.values.length,
|
|
689
|
+
f = o._offsetAttribute === G.NONE ? 0 : 1,
|
|
690
|
+
h = new Uint8Array(r / 3).fill(f);
|
|
691
|
+
i.attributes.applyOffset = new S({
|
|
692
|
+
componentDatatype: F.UNSIGNED_BYTE,
|
|
693
|
+
componentsPerAttribute: 1,
|
|
694
|
+
values: h,
|
|
695
|
+
});
|
|
696
|
+
}
|
|
697
|
+
return new st({
|
|
698
|
+
attributes: i.attributes,
|
|
699
|
+
indices: i.indices,
|
|
700
|
+
primitiveType: mt.TRIANGLES,
|
|
701
|
+
boundingSphere: i.boundingSphere,
|
|
702
|
+
offsetAttribute: o._offsetAttribute,
|
|
703
|
+
});
|
|
704
|
+
};
|
|
705
|
+
U.createShadowVolume = function (o, e, t) {
|
|
706
|
+
let n = o._granularity,
|
|
707
|
+
s = o._ellipsoid,
|
|
708
|
+
i = e(n, s),
|
|
709
|
+
r = t(n, s);
|
|
710
|
+
return new U({
|
|
711
|
+
center: o._center,
|
|
712
|
+
semiMajorAxis: o._semiMajorAxis,
|
|
713
|
+
semiMinorAxis: o._semiMinorAxis,
|
|
714
|
+
ellipsoid: s,
|
|
715
|
+
rotation: o._rotation,
|
|
716
|
+
stRotation: o._stRotation,
|
|
717
|
+
granularity: n,
|
|
718
|
+
extrudedHeight: i,
|
|
719
|
+
height: r,
|
|
720
|
+
vertexFormat: z.POSITION_ONLY,
|
|
721
|
+
shadowVolume: !0,
|
|
722
|
+
});
|
|
723
|
+
};
|
|
724
|
+
function kt(o) {
|
|
725
|
+
let e = -o._stRotation;
|
|
726
|
+
if (e === 0) return [0, 0, 0, 1, 1, 0];
|
|
727
|
+
let n = tt.computeEllipsePositions(
|
|
728
|
+
{
|
|
729
|
+
center: o._center,
|
|
730
|
+
semiMajorAxis: o._semiMajorAxis,
|
|
731
|
+
semiMinorAxis: o._semiMinorAxis,
|
|
732
|
+
rotation: o._rotation,
|
|
733
|
+
granularity: o._granularity,
|
|
734
|
+
},
|
|
735
|
+
!1,
|
|
736
|
+
!0,
|
|
737
|
+
).outerPositions,
|
|
738
|
+
s = n.length / 3,
|
|
739
|
+
i = new Array(s);
|
|
740
|
+
for (let h = 0; h < s; ++h) i[h] = a.fromArray(n, h * 3);
|
|
741
|
+
let r = o._ellipsoid,
|
|
742
|
+
f = o.rectangle;
|
|
743
|
+
return st._textureCoordinateRotationPoints(i, e, r, f);
|
|
744
|
+
}
|
|
745
|
+
Object.defineProperties(U.prototype, {
|
|
746
|
+
rectangle: {
|
|
747
|
+
get: function () {
|
|
748
|
+
return (
|
|
749
|
+
K(this._rectangle) ||
|
|
750
|
+
(this._rectangle = Ct(
|
|
751
|
+
this._center,
|
|
752
|
+
this._semiMajorAxis,
|
|
753
|
+
this._semiMinorAxis,
|
|
754
|
+
this._rotation,
|
|
755
|
+
this._granularity,
|
|
756
|
+
this._ellipsoid,
|
|
757
|
+
)),
|
|
758
|
+
this._rectangle
|
|
759
|
+
);
|
|
760
|
+
},
|
|
761
|
+
},
|
|
762
|
+
textureCoordinateRotationPoints: {
|
|
763
|
+
get: function () {
|
|
764
|
+
return (
|
|
765
|
+
K(this._textureCoordinateRotationPoints) ||
|
|
766
|
+
(this._textureCoordinateRotationPoints = kt(this)),
|
|
767
|
+
this._textureCoordinateRotationPoints
|
|
768
|
+
);
|
|
769
|
+
},
|
|
770
|
+
},
|
|
771
|
+
});
|
|
772
|
+
var de = U;
|
|
773
|
+
export { de as a };
|