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,485 @@
|
|
|
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 y } from "./chunk-ABGXSJNX.js";
|
|
27
|
+
import { d as j } from "./chunk-TMSETF7M.js";
|
|
28
|
+
import { b as d, h as L } from "./chunk-7Z5IIKOJ.js";
|
|
29
|
+
import { a as R } from "./chunk-KZNJOCYU.js";
|
|
30
|
+
import { a as s, b as W, c as T, d as q } from "./chunk-POASMU2N.js";
|
|
31
|
+
import { a as w } from "./chunk-R6KGAEF6.js";
|
|
32
|
+
import { a as P } from "./chunk-IUA6FAOZ.js";
|
|
33
|
+
import { a as A, b as z } from "./chunk-UH2WFNTA.js";
|
|
34
|
+
import { e as l } from "./chunk-PEYJTJPE.js";
|
|
35
|
+
function x(o, t) {
|
|
36
|
+
(z.typeOf.object("ellipsoid", o),
|
|
37
|
+
(this._ellipsoid = o),
|
|
38
|
+
(this._cameraPosition = new s()),
|
|
39
|
+
(this._cameraPositionInScaledSpace = new s()),
|
|
40
|
+
(this._distanceToLimbInScaledSpaceSquared = 0),
|
|
41
|
+
l(t) && (this.cameraPosition = t));
|
|
42
|
+
}
|
|
43
|
+
Object.defineProperties(x.prototype, {
|
|
44
|
+
ellipsoid: {
|
|
45
|
+
get: function () {
|
|
46
|
+
return this._ellipsoid;
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
cameraPosition: {
|
|
50
|
+
get: function () {
|
|
51
|
+
return this._cameraPosition;
|
|
52
|
+
},
|
|
53
|
+
set: function (o) {
|
|
54
|
+
let e = this._ellipsoid.transformPositionToScaledSpace(
|
|
55
|
+
o,
|
|
56
|
+
this._cameraPositionInScaledSpace,
|
|
57
|
+
),
|
|
58
|
+
a = s.magnitudeSquared(e) - 1;
|
|
59
|
+
(s.clone(o, this._cameraPosition),
|
|
60
|
+
(this._cameraPositionInScaledSpace = e),
|
|
61
|
+
(this._distanceToLimbInScaledSpaceSquared = a));
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
});
|
|
65
|
+
var U = new s();
|
|
66
|
+
x.prototype.isPointVisible = function (o) {
|
|
67
|
+
let e = this._ellipsoid.transformPositionToScaledSpace(o, U);
|
|
68
|
+
return F(
|
|
69
|
+
e,
|
|
70
|
+
this._cameraPositionInScaledSpace,
|
|
71
|
+
this._distanceToLimbInScaledSpaceSquared,
|
|
72
|
+
);
|
|
73
|
+
};
|
|
74
|
+
x.prototype.isScaledSpacePointVisible = function (o) {
|
|
75
|
+
return F(
|
|
76
|
+
o,
|
|
77
|
+
this._cameraPositionInScaledSpace,
|
|
78
|
+
this._distanceToLimbInScaledSpaceSquared,
|
|
79
|
+
);
|
|
80
|
+
};
|
|
81
|
+
var at = new s();
|
|
82
|
+
x.prototype.isScaledSpacePointVisiblePossiblyUnderEllipsoid = function (o, t) {
|
|
83
|
+
let e = this._ellipsoid,
|
|
84
|
+
a,
|
|
85
|
+
i;
|
|
86
|
+
return (
|
|
87
|
+
l(t) && t < 0 && e.minimumRadius > -t
|
|
88
|
+
? ((i = at),
|
|
89
|
+
(i.x = this._cameraPosition.x / (e.radii.x + t)),
|
|
90
|
+
(i.y = this._cameraPosition.y / (e.radii.y + t)),
|
|
91
|
+
(i.z = this._cameraPosition.z / (e.radii.z + t)),
|
|
92
|
+
(a = i.x * i.x + i.y * i.y + i.z * i.z - 1))
|
|
93
|
+
: ((i = this._cameraPositionInScaledSpace),
|
|
94
|
+
(a = this._distanceToLimbInScaledSpaceSquared)),
|
|
95
|
+
F(o, i, a)
|
|
96
|
+
);
|
|
97
|
+
};
|
|
98
|
+
x.prototype.computeHorizonCullingPoint = function (o, t, e) {
|
|
99
|
+
return Q(this._ellipsoid, o, t, e);
|
|
100
|
+
};
|
|
101
|
+
var v = q.clone(q.UNIT_SPHERE);
|
|
102
|
+
x.prototype.computeHorizonCullingPointPossiblyUnderEllipsoid = function (
|
|
103
|
+
o,
|
|
104
|
+
t,
|
|
105
|
+
e,
|
|
106
|
+
a,
|
|
107
|
+
) {
|
|
108
|
+
let i = Z(this._ellipsoid, e, v);
|
|
109
|
+
return Q(i, o, t, a);
|
|
110
|
+
};
|
|
111
|
+
x.prototype.computeHorizonCullingPointFromVertices = function (o, t, e, a, i) {
|
|
112
|
+
return J(this._ellipsoid, o, t, e, a, i);
|
|
113
|
+
};
|
|
114
|
+
x.prototype.computeHorizonCullingPointFromVerticesPossiblyUnderEllipsoid =
|
|
115
|
+
function (o, t, e, a, i, c) {
|
|
116
|
+
let n = Z(this._ellipsoid, i, v);
|
|
117
|
+
return J(n, o, t, e, a, c);
|
|
118
|
+
};
|
|
119
|
+
var nt = [];
|
|
120
|
+
x.prototype.computeHorizonCullingPointFromRectangle = function (o, t, e) {
|
|
121
|
+
z.typeOf.object("rectangle", o);
|
|
122
|
+
let a = L.subsample(o, t, 0, nt),
|
|
123
|
+
i = j.fromPoints(a);
|
|
124
|
+
if (!(s.magnitude(i.center) < 0.1 * t.minimumRadius))
|
|
125
|
+
return this.computeHorizonCullingPoint(i.center, a, e);
|
|
126
|
+
};
|
|
127
|
+
var st = new s();
|
|
128
|
+
function Z(o, t, e) {
|
|
129
|
+
if (l(t) && t < 0 && o.minimumRadius > -t) {
|
|
130
|
+
let a = s.fromElements(o.radii.x + t, o.radii.y + t, o.radii.z + t, st);
|
|
131
|
+
o = q.fromCartesian3(a, e);
|
|
132
|
+
}
|
|
133
|
+
return o;
|
|
134
|
+
}
|
|
135
|
+
function Q(o, t, e, a) {
|
|
136
|
+
(z.typeOf.object("directionToPoint", t),
|
|
137
|
+
z.defined("positions", e),
|
|
138
|
+
l(a) || (a = new s()));
|
|
139
|
+
let i = Y(o, t),
|
|
140
|
+
c = 0;
|
|
141
|
+
for (let n = 0, r = e.length; n < r; ++n) {
|
|
142
|
+
let m = e[n],
|
|
143
|
+
h = K(o, m, i);
|
|
144
|
+
if (h < 0) return;
|
|
145
|
+
c = Math.max(c, h);
|
|
146
|
+
}
|
|
147
|
+
return X(i, c, a);
|
|
148
|
+
}
|
|
149
|
+
var M = new s();
|
|
150
|
+
function J(o, t, e, a, i, c) {
|
|
151
|
+
(z.typeOf.object("directionToPoint", t),
|
|
152
|
+
z.defined("vertices", e),
|
|
153
|
+
z.typeOf.number("stride", a),
|
|
154
|
+
l(c) || (c = new s()),
|
|
155
|
+
(a = P(a, 3)),
|
|
156
|
+
(i = P(i, s.ZERO)));
|
|
157
|
+
let n = Y(o, t),
|
|
158
|
+
r = 0;
|
|
159
|
+
for (let m = 0, h = e.length; m < h; m += a) {
|
|
160
|
+
((M.x = e[m] + i.x), (M.y = e[m + 1] + i.y), (M.z = e[m + 2] + i.z));
|
|
161
|
+
let u = K(o, M, n);
|
|
162
|
+
if (u < 0) return;
|
|
163
|
+
r = Math.max(r, u);
|
|
164
|
+
}
|
|
165
|
+
return X(n, r, c);
|
|
166
|
+
}
|
|
167
|
+
function F(o, t, e) {
|
|
168
|
+
let a = t,
|
|
169
|
+
i = e,
|
|
170
|
+
c = s.subtract(o, a, U),
|
|
171
|
+
n = -s.dot(c, a);
|
|
172
|
+
return !(i < 0 ? n > 0 : n > i && (n * n) / s.magnitudeSquared(c) > i);
|
|
173
|
+
}
|
|
174
|
+
var ct = new s(),
|
|
175
|
+
rt = new s();
|
|
176
|
+
function K(o, t, e) {
|
|
177
|
+
let a = o.transformPositionToScaledSpace(t, ct),
|
|
178
|
+
i = s.magnitudeSquared(a),
|
|
179
|
+
c = Math.sqrt(i),
|
|
180
|
+
n = s.divideByScalar(a, c, rt);
|
|
181
|
+
((i = Math.max(1, i)), (c = Math.max(1, c)));
|
|
182
|
+
let r = s.dot(n, e),
|
|
183
|
+
m = s.magnitude(s.cross(n, e, n)),
|
|
184
|
+
h = 1 / c,
|
|
185
|
+
u = Math.sqrt(i - 1) * h;
|
|
186
|
+
return 1 / (r * h - m * u);
|
|
187
|
+
}
|
|
188
|
+
function X(o, t, e) {
|
|
189
|
+
if (!(t <= 0 || t === 1 / 0 || t !== t)) return s.multiplyByScalar(o, t, e);
|
|
190
|
+
}
|
|
191
|
+
var D = new s();
|
|
192
|
+
function Y(o, t) {
|
|
193
|
+
return s.equals(t, s.ZERO)
|
|
194
|
+
? t
|
|
195
|
+
: (o.transformPositionToScaledSpace(t, D), s.normalize(D, D));
|
|
196
|
+
}
|
|
197
|
+
var Pt = x;
|
|
198
|
+
var O = {};
|
|
199
|
+
O.getHeight = function (o, t, e) {
|
|
200
|
+
if (!Number.isFinite(t)) throw new A("scale must be a finite number.");
|
|
201
|
+
if (!Number.isFinite(e))
|
|
202
|
+
throw new A("relativeHeight must be a finite number.");
|
|
203
|
+
return (o - e) * t + e;
|
|
204
|
+
};
|
|
205
|
+
var mt = new W();
|
|
206
|
+
O.getPosition = function (o, t, e, a, i) {
|
|
207
|
+
let c = t.cartesianToCartographic(o, mt);
|
|
208
|
+
if (!l(c)) return s.clone(o, i);
|
|
209
|
+
let n = O.getHeight(c.height, e, a);
|
|
210
|
+
return s.fromRadians(c.longitude, c.latitude, n, t, i);
|
|
211
|
+
};
|
|
212
|
+
var $ = O;
|
|
213
|
+
var dt = { NONE: 0, BITS12: 1 },
|
|
214
|
+
S = Object.freeze(dt);
|
|
215
|
+
var C = new s(),
|
|
216
|
+
lt = new s(),
|
|
217
|
+
f = new T(),
|
|
218
|
+
V = new d(),
|
|
219
|
+
ht = new d(),
|
|
220
|
+
pt = Math.pow(2, 12);
|
|
221
|
+
function p(o, t, e, a, i, c, n, r, m, h) {
|
|
222
|
+
let u = S.NONE,
|
|
223
|
+
g,
|
|
224
|
+
N;
|
|
225
|
+
if (l(t) && l(e) && l(a) && l(i)) {
|
|
226
|
+
let E = t.minimum,
|
|
227
|
+
I = t.maximum,
|
|
228
|
+
_ = s.subtract(I, E, lt),
|
|
229
|
+
tt = a - e;
|
|
230
|
+
(Math.max(s.maximumComponent(_), tt) < pt - 1
|
|
231
|
+
? (u = S.BITS12)
|
|
232
|
+
: (u = S.NONE),
|
|
233
|
+
(g = d.inverseTransformation(i, new d())));
|
|
234
|
+
let ot = s.negate(E, C);
|
|
235
|
+
d.multiply(d.fromTranslation(ot, V), g, g);
|
|
236
|
+
let b = C;
|
|
237
|
+
((b.x = 1 / _.x),
|
|
238
|
+
(b.y = 1 / _.y),
|
|
239
|
+
(b.z = 1 / _.z),
|
|
240
|
+
d.multiply(d.fromScale(b, V), g, g),
|
|
241
|
+
(N = d.clone(i)),
|
|
242
|
+
d.setTranslation(N, s.ZERO, N),
|
|
243
|
+
(i = d.clone(i, new d())));
|
|
244
|
+
let et = d.fromTranslation(E, V),
|
|
245
|
+
it = d.fromScale(_, ht),
|
|
246
|
+
k = d.multiply(et, it, V);
|
|
247
|
+
(d.multiply(i, k, i), d.multiply(N, k, N));
|
|
248
|
+
}
|
|
249
|
+
((this.quantization = u),
|
|
250
|
+
(this.minimumHeight = e),
|
|
251
|
+
(this.maximumHeight = a),
|
|
252
|
+
(this.center = s.clone(o)),
|
|
253
|
+
(this.toScaledENU = g),
|
|
254
|
+
(this.fromScaledENU = i),
|
|
255
|
+
(this.matrix = N),
|
|
256
|
+
(this.hasVertexNormals = c),
|
|
257
|
+
(this.hasWebMercatorT = P(n, !1)),
|
|
258
|
+
(this.hasGeodeticSurfaceNormals = P(r, !1)),
|
|
259
|
+
(this.exaggeration = P(m, 1)),
|
|
260
|
+
(this.exaggerationRelativeHeight = P(h, 0)),
|
|
261
|
+
(this.stride = 0),
|
|
262
|
+
(this._offsetGeodeticSurfaceNormal = 0),
|
|
263
|
+
(this._offsetVertexNormal = 0),
|
|
264
|
+
this._calculateStrideAndOffsets());
|
|
265
|
+
}
|
|
266
|
+
p.prototype.encode = function (o, t, e, a, i, c, n, r) {
|
|
267
|
+
let m = a.x,
|
|
268
|
+
h = a.y;
|
|
269
|
+
if (this.quantization === S.BITS12) {
|
|
270
|
+
((e = d.multiplyByPoint(this.toScaledENU, e, C)),
|
|
271
|
+
(e.x = w.clamp(e.x, 0, 1)),
|
|
272
|
+
(e.y = w.clamp(e.y, 0, 1)),
|
|
273
|
+
(e.z = w.clamp(e.z, 0, 1)));
|
|
274
|
+
let u = this.maximumHeight - this.minimumHeight,
|
|
275
|
+
g = w.clamp((i - this.minimumHeight) / u, 0, 1);
|
|
276
|
+
T.fromElements(e.x, e.y, f);
|
|
277
|
+
let N = y.compressTextureCoordinates(f);
|
|
278
|
+
T.fromElements(e.z, g, f);
|
|
279
|
+
let E = y.compressTextureCoordinates(f);
|
|
280
|
+
T.fromElements(m, h, f);
|
|
281
|
+
let I = y.compressTextureCoordinates(f);
|
|
282
|
+
if (((o[t++] = N), (o[t++] = E), (o[t++] = I), this.hasWebMercatorT)) {
|
|
283
|
+
T.fromElements(n, 0, f);
|
|
284
|
+
let _ = y.compressTextureCoordinates(f);
|
|
285
|
+
o[t++] = _;
|
|
286
|
+
}
|
|
287
|
+
} else
|
|
288
|
+
(s.subtract(e, this.center, C),
|
|
289
|
+
(o[t++] = C.x),
|
|
290
|
+
(o[t++] = C.y),
|
|
291
|
+
(o[t++] = C.z),
|
|
292
|
+
(o[t++] = i),
|
|
293
|
+
(o[t++] = m),
|
|
294
|
+
(o[t++] = h),
|
|
295
|
+
this.hasWebMercatorT && (o[t++] = n));
|
|
296
|
+
return (
|
|
297
|
+
this.hasVertexNormals && (o[t++] = y.octPackFloat(c)),
|
|
298
|
+
this.hasGeodeticSurfaceNormals &&
|
|
299
|
+
((o[t++] = r.x), (o[t++] = r.y), (o[t++] = r.z)),
|
|
300
|
+
t
|
|
301
|
+
);
|
|
302
|
+
};
|
|
303
|
+
var ut = new s(),
|
|
304
|
+
B = new s();
|
|
305
|
+
p.prototype.addGeodeticSurfaceNormals = function (o, t, e) {
|
|
306
|
+
if (this.hasGeodeticSurfaceNormals) return;
|
|
307
|
+
let a = this.stride,
|
|
308
|
+
i = o.length / a;
|
|
309
|
+
((this.hasGeodeticSurfaceNormals = !0), this._calculateStrideAndOffsets());
|
|
310
|
+
let c = this.stride;
|
|
311
|
+
for (let n = 0; n < i; n++) {
|
|
312
|
+
for (let u = 0; u < a; u++) {
|
|
313
|
+
let g = n * a + u,
|
|
314
|
+
N = n * c + u;
|
|
315
|
+
t[N] = o[g];
|
|
316
|
+
}
|
|
317
|
+
let r = this.decodePosition(t, n, ut),
|
|
318
|
+
m = e.geodeticSurfaceNormal(r, B),
|
|
319
|
+
h = n * c + this._offsetGeodeticSurfaceNormal;
|
|
320
|
+
((t[h] = m.x), (t[h + 1] = m.y), (t[h + 2] = m.z));
|
|
321
|
+
}
|
|
322
|
+
};
|
|
323
|
+
p.prototype.removeGeodeticSurfaceNormals = function (o, t) {
|
|
324
|
+
if (!this.hasGeodeticSurfaceNormals) return;
|
|
325
|
+
let e = this.stride,
|
|
326
|
+
a = o.length / e;
|
|
327
|
+
((this.hasGeodeticSurfaceNormals = !1), this._calculateStrideAndOffsets());
|
|
328
|
+
let i = this.stride;
|
|
329
|
+
for (let c = 0; c < a; c++)
|
|
330
|
+
for (let n = 0; n < i; n++) {
|
|
331
|
+
let r = c * e + n,
|
|
332
|
+
m = c * i + n;
|
|
333
|
+
t[m] = o[r];
|
|
334
|
+
}
|
|
335
|
+
};
|
|
336
|
+
p.prototype.decodePosition = function (o, t, e) {
|
|
337
|
+
if (
|
|
338
|
+
(l(e) || (e = new s()), (t *= this.stride), this.quantization === S.BITS12)
|
|
339
|
+
) {
|
|
340
|
+
let a = y.decompressTextureCoordinates(o[t], f);
|
|
341
|
+
((e.x = a.x), (e.y = a.y));
|
|
342
|
+
let i = y.decompressTextureCoordinates(o[t + 1], f);
|
|
343
|
+
return ((e.z = i.x), d.multiplyByPoint(this.fromScaledENU, e, e));
|
|
344
|
+
}
|
|
345
|
+
return (
|
|
346
|
+
(e.x = o[t]),
|
|
347
|
+
(e.y = o[t + 1]),
|
|
348
|
+
(e.z = o[t + 2]),
|
|
349
|
+
s.add(e, this.center, e)
|
|
350
|
+
);
|
|
351
|
+
};
|
|
352
|
+
p.prototype.getExaggeratedPosition = function (o, t, e) {
|
|
353
|
+
e = this.decodePosition(o, t, e);
|
|
354
|
+
let a = this.exaggeration,
|
|
355
|
+
i = this.exaggerationRelativeHeight;
|
|
356
|
+
if (a !== 1 && this.hasGeodeticSurfaceNormals) {
|
|
357
|
+
let n = this.decodeGeodeticSurfaceNormal(o, t, B),
|
|
358
|
+
r = this.decodeHeight(o, t),
|
|
359
|
+
m = $.getHeight(r, a, i) - r;
|
|
360
|
+
((e.x += n.x * m), (e.y += n.y * m), (e.z += n.z * m));
|
|
361
|
+
}
|
|
362
|
+
return e;
|
|
363
|
+
};
|
|
364
|
+
p.prototype.decodeTextureCoordinates = function (o, t, e) {
|
|
365
|
+
return (
|
|
366
|
+
l(e) || (e = new T()),
|
|
367
|
+
(t *= this.stride),
|
|
368
|
+
this.quantization === S.BITS12
|
|
369
|
+
? y.decompressTextureCoordinates(o[t + 2], e)
|
|
370
|
+
: T.fromElements(o[t + 4], o[t + 5], e)
|
|
371
|
+
);
|
|
372
|
+
};
|
|
373
|
+
p.prototype.decodeHeight = function (o, t) {
|
|
374
|
+
return (
|
|
375
|
+
(t *= this.stride),
|
|
376
|
+
this.quantization === S.BITS12
|
|
377
|
+
? y.decompressTextureCoordinates(o[t + 1], f).y *
|
|
378
|
+
(this.maximumHeight - this.minimumHeight) +
|
|
379
|
+
this.minimumHeight
|
|
380
|
+
: o[t + 3]
|
|
381
|
+
);
|
|
382
|
+
};
|
|
383
|
+
p.prototype.decodeWebMercatorT = function (o, t) {
|
|
384
|
+
return (
|
|
385
|
+
(t *= this.stride),
|
|
386
|
+
this.quantization === S.BITS12
|
|
387
|
+
? y.decompressTextureCoordinates(o[t + 3], f).x
|
|
388
|
+
: o[t + 6]
|
|
389
|
+
);
|
|
390
|
+
};
|
|
391
|
+
p.prototype.getOctEncodedNormal = function (o, t, e) {
|
|
392
|
+
t = t * this.stride + this._offsetVertexNormal;
|
|
393
|
+
let a = o[t] / 256,
|
|
394
|
+
i = Math.floor(a),
|
|
395
|
+
c = (a - i) * 256;
|
|
396
|
+
return T.fromElements(i, c, e);
|
|
397
|
+
};
|
|
398
|
+
p.prototype.decodeGeodeticSurfaceNormal = function (o, t, e) {
|
|
399
|
+
return (
|
|
400
|
+
(t = t * this.stride + this._offsetGeodeticSurfaceNormal),
|
|
401
|
+
(e.x = o[t]),
|
|
402
|
+
(e.y = o[t + 1]),
|
|
403
|
+
(e.z = o[t + 2]),
|
|
404
|
+
e
|
|
405
|
+
);
|
|
406
|
+
};
|
|
407
|
+
p.prototype._calculateStrideAndOffsets = function () {
|
|
408
|
+
let o = 0;
|
|
409
|
+
switch (this.quantization) {
|
|
410
|
+
case S.BITS12:
|
|
411
|
+
o += 3;
|
|
412
|
+
break;
|
|
413
|
+
default:
|
|
414
|
+
o += 6;
|
|
415
|
+
}
|
|
416
|
+
(this.hasWebMercatorT && (o += 1),
|
|
417
|
+
this.hasVertexNormals && ((this._offsetVertexNormal = o), (o += 1)),
|
|
418
|
+
this.hasGeodeticSurfaceNormals &&
|
|
419
|
+
((this._offsetGeodeticSurfaceNormal = o), (o += 3)),
|
|
420
|
+
(this.stride = o));
|
|
421
|
+
};
|
|
422
|
+
var G = {
|
|
423
|
+
position3DAndHeight: 0,
|
|
424
|
+
textureCoordAndEncodedNormals: 1,
|
|
425
|
+
geodeticSurfaceNormal: 2,
|
|
426
|
+
},
|
|
427
|
+
H = { compressed0: 0, compressed1: 1, geodeticSurfaceNormal: 2 };
|
|
428
|
+
p.prototype.getAttributes = function (o) {
|
|
429
|
+
let t = R.FLOAT,
|
|
430
|
+
e = R.getSizeInBytes(t),
|
|
431
|
+
a = this.stride * e,
|
|
432
|
+
i = 0,
|
|
433
|
+
c = [];
|
|
434
|
+
function n(r, m) {
|
|
435
|
+
(c.push({
|
|
436
|
+
index: r,
|
|
437
|
+
vertexBuffer: o,
|
|
438
|
+
componentDatatype: t,
|
|
439
|
+
componentsPerAttribute: m,
|
|
440
|
+
offsetInBytes: i,
|
|
441
|
+
strideInBytes: a,
|
|
442
|
+
}),
|
|
443
|
+
(i += m * e));
|
|
444
|
+
}
|
|
445
|
+
if (this.quantization === S.NONE) {
|
|
446
|
+
n(G.position3DAndHeight, 4);
|
|
447
|
+
let r = 2;
|
|
448
|
+
((r += this.hasWebMercatorT ? 1 : 0),
|
|
449
|
+
(r += this.hasVertexNormals ? 1 : 0),
|
|
450
|
+
n(G.textureCoordAndEncodedNormals, r),
|
|
451
|
+
this.hasGeodeticSurfaceNormals && n(G.geodeticSurfaceNormal, 3));
|
|
452
|
+
} else {
|
|
453
|
+
let r = this.hasWebMercatorT || this.hasVertexNormals,
|
|
454
|
+
m = this.hasWebMercatorT && this.hasVertexNormals;
|
|
455
|
+
(n(H.compressed0, r ? 4 : 3),
|
|
456
|
+
m && n(H.compressed1, 1),
|
|
457
|
+
this.hasGeodeticSurfaceNormals && n(H.geodeticSurfaceNormal, 3));
|
|
458
|
+
}
|
|
459
|
+
return c;
|
|
460
|
+
};
|
|
461
|
+
p.prototype.getAttributeLocations = function () {
|
|
462
|
+
return this.quantization === S.NONE ? G : H;
|
|
463
|
+
};
|
|
464
|
+
p.clone = function (o, t) {
|
|
465
|
+
if (l(o))
|
|
466
|
+
return (
|
|
467
|
+
l(t) || (t = new p()),
|
|
468
|
+
(t.quantization = o.quantization),
|
|
469
|
+
(t.minimumHeight = o.minimumHeight),
|
|
470
|
+
(t.maximumHeight = o.maximumHeight),
|
|
471
|
+
(t.center = s.clone(o.center)),
|
|
472
|
+
(t.toScaledENU = d.clone(o.toScaledENU)),
|
|
473
|
+
(t.fromScaledENU = d.clone(o.fromScaledENU)),
|
|
474
|
+
(t.matrix = d.clone(o.matrix)),
|
|
475
|
+
(t.hasVertexNormals = o.hasVertexNormals),
|
|
476
|
+
(t.hasWebMercatorT = o.hasWebMercatorT),
|
|
477
|
+
(t.hasGeodeticSurfaceNormals = o.hasGeodeticSurfaceNormals),
|
|
478
|
+
(t.exaggeration = o.exaggeration),
|
|
479
|
+
(t.exaggerationRelativeHeight = o.exaggerationRelativeHeight),
|
|
480
|
+
t._calculateStrideAndOffsets(),
|
|
481
|
+
t
|
|
482
|
+
);
|
|
483
|
+
};
|
|
484
|
+
var Wt = p;
|
|
485
|
+
export { Pt as a, Wt as b };
|
|
@@ -0,0 +1,76 @@
|
|
|
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 c } from "./chunk-POASMU2N.js";
|
|
27
|
+
import { b as t } from "./chunk-UH2WFNTA.js";
|
|
28
|
+
import { e as g } from "./chunk-PEYJTJPE.js";
|
|
29
|
+
function f() {
|
|
30
|
+
((this.high = c.clone(c.ZERO)), (this.low = c.clone(c.ZERO)));
|
|
31
|
+
}
|
|
32
|
+
f.encode = function (n, o) {
|
|
33
|
+
(t.typeOf.number("value", n), g(o) || (o = { high: 0, low: 0 }));
|
|
34
|
+
let h;
|
|
35
|
+
return (
|
|
36
|
+
n >= 0
|
|
37
|
+
? ((h = Math.floor(n / 65536) * 65536), (o.high = h), (o.low = n - h))
|
|
38
|
+
: ((h = Math.floor(-n / 65536) * 65536), (o.high = -h), (o.low = n + h)),
|
|
39
|
+
o
|
|
40
|
+
);
|
|
41
|
+
};
|
|
42
|
+
var e = { high: 0, low: 0 };
|
|
43
|
+
f.fromCartesian = function (n, o) {
|
|
44
|
+
(t.typeOf.object("cartesian", n), g(o) || (o = new f()));
|
|
45
|
+
let h = o.high,
|
|
46
|
+
i = o.low;
|
|
47
|
+
return (
|
|
48
|
+
f.encode(n.x, e),
|
|
49
|
+
(h.x = e.high),
|
|
50
|
+
(i.x = e.low),
|
|
51
|
+
f.encode(n.y, e),
|
|
52
|
+
(h.y = e.high),
|
|
53
|
+
(i.y = e.low),
|
|
54
|
+
f.encode(n.z, e),
|
|
55
|
+
(h.z = e.high),
|
|
56
|
+
(i.z = e.low),
|
|
57
|
+
o
|
|
58
|
+
);
|
|
59
|
+
};
|
|
60
|
+
var m = new f();
|
|
61
|
+
f.writeElements = function (n, o, h) {
|
|
62
|
+
(t.defined("cartesianArray", o),
|
|
63
|
+
t.typeOf.number("index", h),
|
|
64
|
+
t.typeOf.number.greaterThanOrEquals("index", h, 0),
|
|
65
|
+
f.fromCartesian(n, m));
|
|
66
|
+
let i = m.high,
|
|
67
|
+
w = m.low;
|
|
68
|
+
((o[h] = i.x),
|
|
69
|
+
(o[h + 1] = i.y),
|
|
70
|
+
(o[h + 2] = i.z),
|
|
71
|
+
(o[h + 3] = w.x),
|
|
72
|
+
(o[h + 4] = w.y),
|
|
73
|
+
(o[h + 5] = w.z));
|
|
74
|
+
};
|
|
75
|
+
var O = f;
|
|
76
|
+
export { O as a };
|
|
@@ -0,0 +1,91 @@
|
|
|
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 h } from "./chunk-Q6L7X3LP.js";
|
|
27
|
+
import { a as n, c as y, e as a } from "./chunk-POASMU2N.js";
|
|
28
|
+
import { b as f } from "./chunk-UH2WFNTA.js";
|
|
29
|
+
var x = {},
|
|
30
|
+
b = new n(),
|
|
31
|
+
P = new n(),
|
|
32
|
+
B = new n(),
|
|
33
|
+
M = new n(),
|
|
34
|
+
w = new h();
|
|
35
|
+
x.validOutline = function (i) {
|
|
36
|
+
f.defined("positions", i);
|
|
37
|
+
let o = h.fromPoints(i, w).halfAxes,
|
|
38
|
+
e = a.getColumn(o, 0, P),
|
|
39
|
+
r = a.getColumn(o, 1, B),
|
|
40
|
+
t = a.getColumn(o, 2, M),
|
|
41
|
+
u = n.magnitude(e),
|
|
42
|
+
s = n.magnitude(r),
|
|
43
|
+
l = n.magnitude(t);
|
|
44
|
+
return !((u === 0 && (s === 0 || l === 0)) || (s === 0 && l === 0));
|
|
45
|
+
};
|
|
46
|
+
x.computeProjectTo2DArguments = function (i, c, o, e) {
|
|
47
|
+
(f.defined("positions", i),
|
|
48
|
+
f.defined("centerResult", c),
|
|
49
|
+
f.defined("planeAxis1Result", o),
|
|
50
|
+
f.defined("planeAxis2Result", e));
|
|
51
|
+
let r = h.fromPoints(i, w),
|
|
52
|
+
t = r.halfAxes,
|
|
53
|
+
u = a.getColumn(t, 0, P),
|
|
54
|
+
s = a.getColumn(t, 1, B),
|
|
55
|
+
l = a.getColumn(t, 2, M),
|
|
56
|
+
A = n.magnitude(u),
|
|
57
|
+
d = n.magnitude(s),
|
|
58
|
+
g = n.magnitude(l),
|
|
59
|
+
m = Math.min(A, d, g);
|
|
60
|
+
if ((A === 0 && (d === 0 || g === 0)) || (d === 0 && g === 0)) return !1;
|
|
61
|
+
let p, C;
|
|
62
|
+
return (
|
|
63
|
+
(m === d || m === g) && (p = u),
|
|
64
|
+
m === A ? (p = s) : m === g && (C = s),
|
|
65
|
+
(m === A || m === d) && (C = l),
|
|
66
|
+
n.normalize(p, o),
|
|
67
|
+
n.normalize(C, e),
|
|
68
|
+
n.clone(r.center, c),
|
|
69
|
+
!0
|
|
70
|
+
);
|
|
71
|
+
};
|
|
72
|
+
function z(i, c, o, e, r) {
|
|
73
|
+
let t = n.subtract(i, c, b),
|
|
74
|
+
u = n.dot(o, t),
|
|
75
|
+
s = n.dot(e, t);
|
|
76
|
+
return y.fromElements(u, s, r);
|
|
77
|
+
}
|
|
78
|
+
x.createProjectPointsTo2DFunction = function (i, c, o) {
|
|
79
|
+
return function (e) {
|
|
80
|
+
let r = new Array(e.length);
|
|
81
|
+
for (let t = 0; t < e.length; t++) r[t] = z(e[t], i, c, o);
|
|
82
|
+
return r;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
x.createProjectPointTo2DFunction = function (i, c, o) {
|
|
86
|
+
return function (e, r) {
|
|
87
|
+
return z(e, i, c, o, r);
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
var O = x;
|
|
91
|
+
export { O as a };
|
|
@@ -0,0 +1,42 @@
|
|
|
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 { b as t } from "./chunk-7Z5IIKOJ.js";
|
|
27
|
+
import { a as r } from "./chunk-IUA6FAOZ.js";
|
|
28
|
+
import { a as m } from "./chunk-UH2WFNTA.js";
|
|
29
|
+
import { e as i } from "./chunk-PEYJTJPE.js";
|
|
30
|
+
function d(e) {
|
|
31
|
+
if (((e = r(e, r.EMPTY_OBJECT)), !i(e.geometry)))
|
|
32
|
+
throw new m("options.geometry is required.");
|
|
33
|
+
((this.geometry = e.geometry),
|
|
34
|
+
(this.modelMatrix = t.clone(r(e.modelMatrix, t.IDENTITY))),
|
|
35
|
+
(this.id = e.id),
|
|
36
|
+
(this.pickPrimitive = e.pickPrimitive),
|
|
37
|
+
(this.attributes = r(e.attributes, {})),
|
|
38
|
+
(this.westHemisphereGeometry = void 0),
|
|
39
|
+
(this.eastHemisphereGeometry = void 0));
|
|
40
|
+
}
|
|
41
|
+
var s = d;
|
|
42
|
+
export { s as a };
|