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,911 @@
|
|
|
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 _e } from "./chunk-SB224QGV.js";
|
|
27
|
+
import { a as Z } from "./chunk-ATPDRNKI.js";
|
|
28
|
+
import { a as _t } from "./chunk-DQO6B4EQ.js";
|
|
29
|
+
import { a as Oe } from "./chunk-W23CU777.js";
|
|
30
|
+
import { a as Le } from "./chunk-RXTBM4OI.js";
|
|
31
|
+
import { a as te } from "./chunk-FYOYUPXG.js";
|
|
32
|
+
import { b as Qt } from "./chunk-TAMCUKAR.js";
|
|
33
|
+
import { a as jt } from "./chunk-PDMQLSBL.js";
|
|
34
|
+
import { c as Ce, d as zt } from "./chunk-X5IHHI6X.js";
|
|
35
|
+
import { a as bt, d as G } from "./chunk-TMSETF7M.js";
|
|
36
|
+
import { d as xe, e as Ne, f as Kt, h as U } from "./chunk-7Z5IIKOJ.js";
|
|
37
|
+
import { a as Bt } from "./chunk-KZNJOCYU.js";
|
|
38
|
+
import { a as t, b as u, c as Pt, d as z, e as vt } from "./chunk-POASMU2N.js";
|
|
39
|
+
import { a as p } from "./chunk-R6KGAEF6.js";
|
|
40
|
+
import "./chunk-3C7WC463.js";
|
|
41
|
+
import "./chunk-II4VNKYR.js";
|
|
42
|
+
import { a as O } from "./chunk-IUA6FAOZ.js";
|
|
43
|
+
import { a as St, b as et } from "./chunk-UH2WFNTA.js";
|
|
44
|
+
import { e as g } from "./chunk-PEYJTJPE.js";
|
|
45
|
+
function rt(e) {
|
|
46
|
+
((e = O(e, O.EMPTY_OBJECT)),
|
|
47
|
+
(this._ellipsoid = O(e.ellipsoid, z.default)),
|
|
48
|
+
(this._rectangle = O(e.rectangle, U.MAX_VALUE)),
|
|
49
|
+
(this._projection = new bt(this._ellipsoid)),
|
|
50
|
+
(this._numberOfLevelZeroTilesX = O(e.numberOfLevelZeroTilesX, 2)),
|
|
51
|
+
(this._numberOfLevelZeroTilesY = O(e.numberOfLevelZeroTilesY, 1)));
|
|
52
|
+
}
|
|
53
|
+
Object.defineProperties(rt.prototype, {
|
|
54
|
+
ellipsoid: {
|
|
55
|
+
get: function () {
|
|
56
|
+
return this._ellipsoid;
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
rectangle: {
|
|
60
|
+
get: function () {
|
|
61
|
+
return this._rectangle;
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
projection: {
|
|
65
|
+
get: function () {
|
|
66
|
+
return this._projection;
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
});
|
|
70
|
+
rt.prototype.getNumberOfXTilesAtLevel = function (e) {
|
|
71
|
+
return this._numberOfLevelZeroTilesX << e;
|
|
72
|
+
};
|
|
73
|
+
rt.prototype.getNumberOfYTilesAtLevel = function (e) {
|
|
74
|
+
return this._numberOfLevelZeroTilesY << e;
|
|
75
|
+
};
|
|
76
|
+
rt.prototype.rectangleToNativeRectangle = function (e, i) {
|
|
77
|
+
et.defined("rectangle", e);
|
|
78
|
+
let r = p.toDegrees(e.west),
|
|
79
|
+
n = p.toDegrees(e.south),
|
|
80
|
+
o = p.toDegrees(e.east),
|
|
81
|
+
a = p.toDegrees(e.north);
|
|
82
|
+
return g(i)
|
|
83
|
+
? ((i.west = r), (i.south = n), (i.east = o), (i.north = a), i)
|
|
84
|
+
: new U(r, n, o, a);
|
|
85
|
+
};
|
|
86
|
+
rt.prototype.tileXYToNativeRectangle = function (e, i, r, n) {
|
|
87
|
+
let o = this.tileXYToRectangle(e, i, r, n);
|
|
88
|
+
return (
|
|
89
|
+
(o.west = p.toDegrees(o.west)),
|
|
90
|
+
(o.south = p.toDegrees(o.south)),
|
|
91
|
+
(o.east = p.toDegrees(o.east)),
|
|
92
|
+
(o.north = p.toDegrees(o.north)),
|
|
93
|
+
o
|
|
94
|
+
);
|
|
95
|
+
};
|
|
96
|
+
rt.prototype.tileXYToRectangle = function (e, i, r, n) {
|
|
97
|
+
let o = this._rectangle,
|
|
98
|
+
a = this.getNumberOfXTilesAtLevel(r),
|
|
99
|
+
c = this.getNumberOfYTilesAtLevel(r),
|
|
100
|
+
l = o.width / a,
|
|
101
|
+
s = e * l + o.west,
|
|
102
|
+
d = (e + 1) * l + o.west,
|
|
103
|
+
h = o.height / c,
|
|
104
|
+
N = o.north - i * h,
|
|
105
|
+
S = o.north - (i + 1) * h;
|
|
106
|
+
return (
|
|
107
|
+
g(n) || (n = new U(s, S, d, N)),
|
|
108
|
+
(n.west = s),
|
|
109
|
+
(n.south = S),
|
|
110
|
+
(n.east = d),
|
|
111
|
+
(n.north = N),
|
|
112
|
+
n
|
|
113
|
+
);
|
|
114
|
+
};
|
|
115
|
+
rt.prototype.positionToTileXY = function (e, i, r) {
|
|
116
|
+
let n = this._rectangle;
|
|
117
|
+
if (!U.contains(n, e)) return;
|
|
118
|
+
let o = this.getNumberOfXTilesAtLevel(i),
|
|
119
|
+
a = this.getNumberOfYTilesAtLevel(i),
|
|
120
|
+
c = n.width / o,
|
|
121
|
+
l = n.height / a,
|
|
122
|
+
s = e.longitude;
|
|
123
|
+
n.east < n.west && (s += p.TWO_PI);
|
|
124
|
+
let d = ((s - n.west) / c) | 0;
|
|
125
|
+
d >= o && (d = o - 1);
|
|
126
|
+
let h = ((n.north - e.latitude) / l) | 0;
|
|
127
|
+
return (
|
|
128
|
+
h >= a && (h = a - 1),
|
|
129
|
+
g(r) ? ((r.x = d), (r.y = h), r) : new Pt(d, h)
|
|
130
|
+
);
|
|
131
|
+
};
|
|
132
|
+
var De = rt;
|
|
133
|
+
var Ie = new t(),
|
|
134
|
+
He = new t(),
|
|
135
|
+
ke = new u(),
|
|
136
|
+
ee = new t(),
|
|
137
|
+
hn = new t(),
|
|
138
|
+
ye = new G(),
|
|
139
|
+
pn = new De(),
|
|
140
|
+
Lt = [new u(), new u(), new u(), new u()],
|
|
141
|
+
Ot = new Pt(),
|
|
142
|
+
w = {};
|
|
143
|
+
w.initialize = function () {
|
|
144
|
+
let e = w._initPromise;
|
|
145
|
+
return (
|
|
146
|
+
g(e) ||
|
|
147
|
+
((e = xe
|
|
148
|
+
.fetchJson(Ne("Assets/approximateTerrainHeights.json"))
|
|
149
|
+
.then(function (i) {
|
|
150
|
+
w._terrainHeights = i;
|
|
151
|
+
})),
|
|
152
|
+
(w._initPromise = e)),
|
|
153
|
+
e
|
|
154
|
+
);
|
|
155
|
+
};
|
|
156
|
+
w.getMinimumMaximumHeights = function (e, i) {
|
|
157
|
+
if ((et.defined("rectangle", e), !g(w._terrainHeights)))
|
|
158
|
+
throw new St(
|
|
159
|
+
"You must call ApproximateTerrainHeights.initialize and wait for the promise to resolve before using this function",
|
|
160
|
+
);
|
|
161
|
+
i = O(i, z.default);
|
|
162
|
+
let r = Ae(e),
|
|
163
|
+
n = w._defaultMinTerrainHeight,
|
|
164
|
+
o = w._defaultMaxTerrainHeight;
|
|
165
|
+
if (g(r)) {
|
|
166
|
+
let a = `${r.level}-${r.x}-${r.y}`,
|
|
167
|
+
c = w._terrainHeights[a];
|
|
168
|
+
(g(c) && ((n = c[0]), (o = c[1])),
|
|
169
|
+
i.cartographicToCartesian(U.northeast(e, ke), Ie),
|
|
170
|
+
i.cartographicToCartesian(U.southwest(e, ke), He),
|
|
171
|
+
t.midpoint(He, Ie, ee));
|
|
172
|
+
let l = i.scaleToGeodeticSurface(ee, hn);
|
|
173
|
+
if (g(l)) {
|
|
174
|
+
let s = t.distance(ee, l);
|
|
175
|
+
n = Math.min(n, -s);
|
|
176
|
+
} else n = w._defaultMinTerrainHeight;
|
|
177
|
+
}
|
|
178
|
+
return (
|
|
179
|
+
(n = Math.max(w._defaultMinTerrainHeight, n)),
|
|
180
|
+
{ minimumTerrainHeight: n, maximumTerrainHeight: o }
|
|
181
|
+
);
|
|
182
|
+
};
|
|
183
|
+
w.getBoundingSphere = function (e, i) {
|
|
184
|
+
if ((et.defined("rectangle", e), !g(w._terrainHeights)))
|
|
185
|
+
throw new St(
|
|
186
|
+
"You must call ApproximateTerrainHeights.initialize and wait for the promise to resolve before using this function",
|
|
187
|
+
);
|
|
188
|
+
i = O(i, z.default);
|
|
189
|
+
let r = Ae(e),
|
|
190
|
+
n = w._defaultMaxTerrainHeight;
|
|
191
|
+
if (g(r)) {
|
|
192
|
+
let a = `${r.level}-${r.x}-${r.y}`,
|
|
193
|
+
c = w._terrainHeights[a];
|
|
194
|
+
g(c) && (n = c[1]);
|
|
195
|
+
}
|
|
196
|
+
let o = G.fromRectangle3D(e, i, 0);
|
|
197
|
+
return (G.fromRectangle3D(e, i, n, ye), G.union(o, ye, o));
|
|
198
|
+
};
|
|
199
|
+
function Ae(e) {
|
|
200
|
+
(u.fromRadians(e.east, e.north, 0, Lt[0]),
|
|
201
|
+
u.fromRadians(e.west, e.north, 0, Lt[1]),
|
|
202
|
+
u.fromRadians(e.east, e.south, 0, Lt[2]),
|
|
203
|
+
u.fromRadians(e.west, e.south, 0, Lt[3]));
|
|
204
|
+
let i = 0,
|
|
205
|
+
r = 0,
|
|
206
|
+
n = 0,
|
|
207
|
+
o = 0,
|
|
208
|
+
a = w._terrainHeightsMaxLevel,
|
|
209
|
+
c;
|
|
210
|
+
for (c = 0; c <= a; ++c) {
|
|
211
|
+
let l = !1;
|
|
212
|
+
for (let s = 0; s < 4; ++s) {
|
|
213
|
+
let d = Lt[s];
|
|
214
|
+
if ((pn.positionToTileXY(d, c, Ot), s === 0)) ((n = Ot.x), (o = Ot.y));
|
|
215
|
+
else if (n !== Ot.x || o !== Ot.y) {
|
|
216
|
+
l = !0;
|
|
217
|
+
break;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
if (l) break;
|
|
221
|
+
((i = n), (r = o));
|
|
222
|
+
}
|
|
223
|
+
if (c !== 0) return { x: i, y: r, level: c > a ? a : c - 1 };
|
|
224
|
+
}
|
|
225
|
+
w._terrainHeightsMaxLevel = 6;
|
|
226
|
+
w._defaultMaxTerrainHeight = 9e3;
|
|
227
|
+
w._defaultMinTerrainHeight = -1e5;
|
|
228
|
+
w._terrainHeights = void 0;
|
|
229
|
+
w._initPromise = void 0;
|
|
230
|
+
Object.defineProperties(w, {
|
|
231
|
+
initialized: {
|
|
232
|
+
get: function () {
|
|
233
|
+
return g(w._terrainHeights);
|
|
234
|
+
},
|
|
235
|
+
},
|
|
236
|
+
});
|
|
237
|
+
var Xt = w;
|
|
238
|
+
var le = [bt, _e],
|
|
239
|
+
dn = le.length,
|
|
240
|
+
Ke = Math.cos(p.toRadians(30)),
|
|
241
|
+
Me = Math.cos(p.toRadians(150)),
|
|
242
|
+
Qe = 0,
|
|
243
|
+
tn = 1e3;
|
|
244
|
+
function ct(e) {
|
|
245
|
+
e = O(e, O.EMPTY_OBJECT);
|
|
246
|
+
let i = e.positions;
|
|
247
|
+
if (!g(i) || i.length < 2)
|
|
248
|
+
throw new St("At least two positions are required.");
|
|
249
|
+
if (g(e.arcType) && e.arcType !== Z.GEODESIC && e.arcType !== Z.RHUMB)
|
|
250
|
+
throw new St(
|
|
251
|
+
"Valid options for arcType are ArcType.GEODESIC and ArcType.RHUMB.",
|
|
252
|
+
);
|
|
253
|
+
((this.width = O(e.width, 1)),
|
|
254
|
+
(this._positions = i),
|
|
255
|
+
(this.granularity = O(e.granularity, 9999)),
|
|
256
|
+
(this.loop = O(e.loop, !1)),
|
|
257
|
+
(this.arcType = O(e.arcType, Z.GEODESIC)),
|
|
258
|
+
(this._ellipsoid = z.default),
|
|
259
|
+
(this._projectionIndex = 0),
|
|
260
|
+
(this._workerName = "createGroundPolylineGeometry"),
|
|
261
|
+
(this._scene3DOnly = !1));
|
|
262
|
+
}
|
|
263
|
+
Object.defineProperties(ct.prototype, {
|
|
264
|
+
packedLength: {
|
|
265
|
+
get: function () {
|
|
266
|
+
return (
|
|
267
|
+
1 + this._positions.length * 3 + 1 + 1 + 1 + z.packedLength + 1 + 1
|
|
268
|
+
);
|
|
269
|
+
},
|
|
270
|
+
},
|
|
271
|
+
});
|
|
272
|
+
ct.setProjectionAndEllipsoid = function (e, i) {
|
|
273
|
+
let r = 0;
|
|
274
|
+
for (let n = 0; n < dn; n++)
|
|
275
|
+
if (i instanceof le[n]) {
|
|
276
|
+
r = n;
|
|
277
|
+
break;
|
|
278
|
+
}
|
|
279
|
+
((e._projectionIndex = r), (e._ellipsoid = i.ellipsoid));
|
|
280
|
+
};
|
|
281
|
+
var fn = new t(),
|
|
282
|
+
Re = new t(),
|
|
283
|
+
Pe = new t();
|
|
284
|
+
function se(e, i, r, n, o) {
|
|
285
|
+
let a = P(n, e, 0, fn),
|
|
286
|
+
c = P(n, e, r, Re),
|
|
287
|
+
l = P(n, i, 0, Pe),
|
|
288
|
+
s = nt(c, a, Re),
|
|
289
|
+
d = nt(l, a, Pe);
|
|
290
|
+
return (t.cross(d, s, o), t.normalize(o, o));
|
|
291
|
+
}
|
|
292
|
+
var mn = new u(),
|
|
293
|
+
gn = new t(),
|
|
294
|
+
un = new t(),
|
|
295
|
+
wn = new t();
|
|
296
|
+
function ne(e, i, r, n, o, a, c, l, s, d, h) {
|
|
297
|
+
if (o === 0) return;
|
|
298
|
+
let N;
|
|
299
|
+
a === Z.GEODESIC
|
|
300
|
+
? (N = new Oe(e, i, c))
|
|
301
|
+
: a === Z.RHUMB && (N = new te(e, i, c));
|
|
302
|
+
let S = N.surfaceDistance;
|
|
303
|
+
if (S < o) return;
|
|
304
|
+
let R = se(e, i, n, c, wn),
|
|
305
|
+
D = Math.ceil(S / o),
|
|
306
|
+
I = S / D,
|
|
307
|
+
j = I,
|
|
308
|
+
q = D - 1,
|
|
309
|
+
f = l.length;
|
|
310
|
+
for (let X = 0; X < q; X++) {
|
|
311
|
+
let v = N.interpolateUsingSurfaceDistance(j, mn),
|
|
312
|
+
y = P(c, v, r, gn),
|
|
313
|
+
H = P(c, v, n, un);
|
|
314
|
+
(t.pack(R, l, f),
|
|
315
|
+
t.pack(y, s, f),
|
|
316
|
+
t.pack(H, d, f),
|
|
317
|
+
h.push(v.latitude),
|
|
318
|
+
h.push(v.longitude),
|
|
319
|
+
(f += 3),
|
|
320
|
+
(j += I));
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
var oe = new u();
|
|
324
|
+
function P(e, i, r, n) {
|
|
325
|
+
return (u.clone(i, oe), (oe.height = r), u.toCartesian(oe, e, n));
|
|
326
|
+
}
|
|
327
|
+
ct.pack = function (e, i, r) {
|
|
328
|
+
(et.typeOf.object("value", e), et.defined("array", i));
|
|
329
|
+
let n = O(r, 0),
|
|
330
|
+
o = e._positions,
|
|
331
|
+
a = o.length;
|
|
332
|
+
i[n++] = a;
|
|
333
|
+
for (let c = 0; c < a; ++c) {
|
|
334
|
+
let l = o[c];
|
|
335
|
+
(t.pack(l, i, n), (n += 3));
|
|
336
|
+
}
|
|
337
|
+
return (
|
|
338
|
+
(i[n++] = e.granularity),
|
|
339
|
+
(i[n++] = e.loop ? 1 : 0),
|
|
340
|
+
(i[n++] = e.arcType),
|
|
341
|
+
z.pack(e._ellipsoid, i, n),
|
|
342
|
+
(n += z.packedLength),
|
|
343
|
+
(i[n++] = e._projectionIndex),
|
|
344
|
+
(i[n++] = e._scene3DOnly ? 1 : 0),
|
|
345
|
+
i
|
|
346
|
+
);
|
|
347
|
+
};
|
|
348
|
+
ct.unpack = function (e, i, r) {
|
|
349
|
+
et.defined("array", e);
|
|
350
|
+
let n = O(i, 0),
|
|
351
|
+
o = e[n++],
|
|
352
|
+
a = new Array(o);
|
|
353
|
+
for (let S = 0; S < o; S++) ((a[S] = t.unpack(e, n)), (n += 3));
|
|
354
|
+
let c = e[n++],
|
|
355
|
+
l = e[n++] === 1,
|
|
356
|
+
s = e[n++],
|
|
357
|
+
d = z.unpack(e, n);
|
|
358
|
+
n += z.packedLength;
|
|
359
|
+
let h = e[n++],
|
|
360
|
+
N = e[n++] === 1;
|
|
361
|
+
return (
|
|
362
|
+
g(r) || (r = new ct({ positions: a })),
|
|
363
|
+
(r._positions = a),
|
|
364
|
+
(r.granularity = c),
|
|
365
|
+
(r.loop = l),
|
|
366
|
+
(r.arcType = s),
|
|
367
|
+
(r._ellipsoid = d),
|
|
368
|
+
(r._projectionIndex = h),
|
|
369
|
+
(r._scene3DOnly = N),
|
|
370
|
+
r
|
|
371
|
+
);
|
|
372
|
+
};
|
|
373
|
+
function nt(e, i, r) {
|
|
374
|
+
return (t.subtract(e, i, r), t.normalize(r, r), r);
|
|
375
|
+
}
|
|
376
|
+
function be(e, i, r, n) {
|
|
377
|
+
return (
|
|
378
|
+
(n = nt(e, i, n)),
|
|
379
|
+
(n = t.cross(n, r, n)),
|
|
380
|
+
(n = t.normalize(n, n)),
|
|
381
|
+
(n = t.cross(r, n, n)),
|
|
382
|
+
n
|
|
383
|
+
);
|
|
384
|
+
}
|
|
385
|
+
var Sn = new t(),
|
|
386
|
+
Tn = new t(),
|
|
387
|
+
En = new t(),
|
|
388
|
+
en = new t(),
|
|
389
|
+
xn = 0,
|
|
390
|
+
Nn = -1;
|
|
391
|
+
function ie(e, i, r, n, o) {
|
|
392
|
+
let a = nt(r, i, en),
|
|
393
|
+
c = be(e, i, a, Sn),
|
|
394
|
+
l = be(n, i, a, Tn);
|
|
395
|
+
if (p.equalsEpsilon(t.dot(c, l), Nn, p.EPSILON5))
|
|
396
|
+
return ((o = t.cross(a, c, o)), (o = t.normalize(o, o)), o);
|
|
397
|
+
((o = t.add(l, c, o)), (o = t.normalize(o, o)));
|
|
398
|
+
let s = t.cross(a, o, En);
|
|
399
|
+
return (t.dot(l, s) < xn && (o = t.negate(o, o)), o);
|
|
400
|
+
}
|
|
401
|
+
var Gt = jt.fromPointNormal(t.ZERO, t.UNIT_Y),
|
|
402
|
+
Cn = new t(),
|
|
403
|
+
_n = new t(),
|
|
404
|
+
Ln = new t(),
|
|
405
|
+
On = new t(),
|
|
406
|
+
Dn = new t(),
|
|
407
|
+
Yt = new t(),
|
|
408
|
+
Ft = new u(),
|
|
409
|
+
ve = new u(),
|
|
410
|
+
Be = new u();
|
|
411
|
+
ct.createGeometry = function (e) {
|
|
412
|
+
let i = !e._scene3DOnly,
|
|
413
|
+
r = e.loop,
|
|
414
|
+
n = e._ellipsoid,
|
|
415
|
+
o = e.granularity,
|
|
416
|
+
a = e.arcType,
|
|
417
|
+
c = new le[e._projectionIndex](n),
|
|
418
|
+
l = Qe,
|
|
419
|
+
s = tn,
|
|
420
|
+
d,
|
|
421
|
+
h,
|
|
422
|
+
N = e._positions,
|
|
423
|
+
S = N.length;
|
|
424
|
+
S === 2 && (r = !1);
|
|
425
|
+
let R,
|
|
426
|
+
D,
|
|
427
|
+
I,
|
|
428
|
+
j,
|
|
429
|
+
q = new te(void 0, void 0, n),
|
|
430
|
+
f,
|
|
431
|
+
X,
|
|
432
|
+
v,
|
|
433
|
+
y = [N[0]];
|
|
434
|
+
for (h = 0; h < S - 1; h++)
|
|
435
|
+
((R = N[h]),
|
|
436
|
+
(D = N[h + 1]),
|
|
437
|
+
(f = Qt.lineSegmentPlane(R, D, Gt, Yt)),
|
|
438
|
+
g(f) &&
|
|
439
|
+
!t.equalsEpsilon(f, R, p.EPSILON7) &&
|
|
440
|
+
!t.equalsEpsilon(f, D, p.EPSILON7) &&
|
|
441
|
+
(e.arcType === Z.GEODESIC
|
|
442
|
+
? y.push(t.clone(f))
|
|
443
|
+
: e.arcType === Z.RHUMB &&
|
|
444
|
+
((v = n.cartesianToCartographic(f, Ft).longitude),
|
|
445
|
+
(I = n.cartesianToCartographic(R, Ft)),
|
|
446
|
+
(j = n.cartesianToCartographic(D, ve)),
|
|
447
|
+
q.setEndPoints(I, j),
|
|
448
|
+
(X = q.findIntersectionWithLongitude(v, Be)),
|
|
449
|
+
(f = n.cartographicToCartesian(X, Yt)),
|
|
450
|
+
g(f) &&
|
|
451
|
+
!t.equalsEpsilon(f, R, p.EPSILON7) &&
|
|
452
|
+
!t.equalsEpsilon(f, D, p.EPSILON7) &&
|
|
453
|
+
y.push(t.clone(f)))),
|
|
454
|
+
y.push(D));
|
|
455
|
+
r &&
|
|
456
|
+
((R = N[S - 1]),
|
|
457
|
+
(D = N[0]),
|
|
458
|
+
(f = Qt.lineSegmentPlane(R, D, Gt, Yt)),
|
|
459
|
+
g(f) &&
|
|
460
|
+
!t.equalsEpsilon(f, R, p.EPSILON7) &&
|
|
461
|
+
!t.equalsEpsilon(f, D, p.EPSILON7) &&
|
|
462
|
+
(e.arcType === Z.GEODESIC
|
|
463
|
+
? y.push(t.clone(f))
|
|
464
|
+
: e.arcType === Z.RHUMB &&
|
|
465
|
+
((v = n.cartesianToCartographic(f, Ft).longitude),
|
|
466
|
+
(I = n.cartesianToCartographic(R, Ft)),
|
|
467
|
+
(j = n.cartesianToCartographic(D, ve)),
|
|
468
|
+
q.setEndPoints(I, j),
|
|
469
|
+
(X = q.findIntersectionWithLongitude(v, Be)),
|
|
470
|
+
(f = n.cartographicToCartesian(X, Yt)),
|
|
471
|
+
g(f) &&
|
|
472
|
+
!t.equalsEpsilon(f, R, p.EPSILON7) &&
|
|
473
|
+
!t.equalsEpsilon(f, D, p.EPSILON7) &&
|
|
474
|
+
y.push(t.clone(f)))));
|
|
475
|
+
let H = y.length,
|
|
476
|
+
C = new Array(H);
|
|
477
|
+
for (h = 0; h < H; h++) {
|
|
478
|
+
let F = u.fromCartesian(y[h], n);
|
|
479
|
+
((F.height = 0), (C[h] = F));
|
|
480
|
+
}
|
|
481
|
+
if (((C = Le(C, u.equalsEpsilon)), (H = C.length), H < 2)) return;
|
|
482
|
+
let k = [],
|
|
483
|
+
b = [],
|
|
484
|
+
B = [],
|
|
485
|
+
E = [],
|
|
486
|
+
x = Cn,
|
|
487
|
+
L = _n,
|
|
488
|
+
_ = Ln,
|
|
489
|
+
Y = On,
|
|
490
|
+
A = Dn,
|
|
491
|
+
m = C[0],
|
|
492
|
+
V = C[1],
|
|
493
|
+
It = C[H - 1];
|
|
494
|
+
for (
|
|
495
|
+
x = P(n, It, l, x),
|
|
496
|
+
Y = P(n, V, l, Y),
|
|
497
|
+
L = P(n, m, l, L),
|
|
498
|
+
_ = P(n, m, s, _),
|
|
499
|
+
r ? (A = ie(x, L, _, Y, A)) : (A = se(m, V, s, n, A)),
|
|
500
|
+
t.pack(A, b, 0),
|
|
501
|
+
t.pack(L, B, 0),
|
|
502
|
+
t.pack(_, E, 0),
|
|
503
|
+
k.push(m.latitude),
|
|
504
|
+
k.push(m.longitude),
|
|
505
|
+
ne(m, V, l, s, o, a, n, b, B, E, k),
|
|
506
|
+
h = 1;
|
|
507
|
+
h < H - 1;
|
|
508
|
+
++h
|
|
509
|
+
) {
|
|
510
|
+
((x = t.clone(L, x)), (L = t.clone(Y, L)));
|
|
511
|
+
let F = C[h];
|
|
512
|
+
(P(n, F, s, _),
|
|
513
|
+
P(n, C[h + 1], l, Y),
|
|
514
|
+
ie(x, L, _, Y, A),
|
|
515
|
+
(d = b.length),
|
|
516
|
+
t.pack(A, b, d),
|
|
517
|
+
t.pack(L, B, d),
|
|
518
|
+
t.pack(_, E, d),
|
|
519
|
+
k.push(F.latitude),
|
|
520
|
+
k.push(F.longitude),
|
|
521
|
+
ne(C[h], C[h + 1], l, s, o, a, n, b, B, E, k));
|
|
522
|
+
}
|
|
523
|
+
let M = C[H - 1],
|
|
524
|
+
Tt = C[H - 2];
|
|
525
|
+
if (((L = P(n, M, l, L)), (_ = P(n, M, s, _)), r)) {
|
|
526
|
+
let F = C[0];
|
|
527
|
+
((x = P(n, Tt, l, x)), (Y = P(n, F, l, Y)), (A = ie(x, L, _, Y, A)));
|
|
528
|
+
} else A = se(Tt, M, s, n, A);
|
|
529
|
+
if (
|
|
530
|
+
((d = b.length),
|
|
531
|
+
t.pack(A, b, d),
|
|
532
|
+
t.pack(L, B, d),
|
|
533
|
+
t.pack(_, E, d),
|
|
534
|
+
k.push(M.latitude),
|
|
535
|
+
k.push(M.longitude),
|
|
536
|
+
r)
|
|
537
|
+
) {
|
|
538
|
+
for (ne(M, m, l, s, o, a, n, b, B, E, k), d = b.length, h = 0; h < 3; ++h)
|
|
539
|
+
((b[d + h] = b[h]), (B[d + h] = B[h]), (E[d + h] = E[h]));
|
|
540
|
+
(k.push(m.latitude), k.push(m.longitude));
|
|
541
|
+
}
|
|
542
|
+
return Qn(r, c, B, E, b, k, i);
|
|
543
|
+
};
|
|
544
|
+
var In = new t(),
|
|
545
|
+
Hn = new vt(),
|
|
546
|
+
kn = new Kt();
|
|
547
|
+
function ze(e, i, r, n) {
|
|
548
|
+
let o = nt(r, i, In),
|
|
549
|
+
a = t.dot(o, e);
|
|
550
|
+
if (a > Ke || a < Me) {
|
|
551
|
+
let c = nt(n, r, en),
|
|
552
|
+
l = a < Me ? p.PI_OVER_TWO : -p.PI_OVER_TWO,
|
|
553
|
+
s = Kt.fromAxisAngle(c, l, kn),
|
|
554
|
+
d = vt.fromQuaternion(s, Hn);
|
|
555
|
+
return (vt.multiplyByVector(d, e, e), !0);
|
|
556
|
+
}
|
|
557
|
+
return !1;
|
|
558
|
+
}
|
|
559
|
+
var je = new u(),
|
|
560
|
+
yn = new t(),
|
|
561
|
+
Xe = new t();
|
|
562
|
+
function Dt(e, i, r, n, o) {
|
|
563
|
+
let a = u.toCartesian(i, e._ellipsoid, yn),
|
|
564
|
+
c = t.add(a, r, Xe),
|
|
565
|
+
l = !1,
|
|
566
|
+
s = e._ellipsoid,
|
|
567
|
+
d = s.cartesianToCartographic(c, je);
|
|
568
|
+
(Math.abs(i.longitude - d.longitude) > p.PI_OVER_TWO &&
|
|
569
|
+
((l = !0),
|
|
570
|
+
(c = t.subtract(a, r, Xe)),
|
|
571
|
+
(d = s.cartesianToCartographic(c, je))),
|
|
572
|
+
(d.height = 0));
|
|
573
|
+
let h = e.project(d, o);
|
|
574
|
+
return (
|
|
575
|
+
(o = t.subtract(h, n, o)),
|
|
576
|
+
(o.z = 0),
|
|
577
|
+
(o = t.normalize(o, o)),
|
|
578
|
+
l && t.negate(o, o),
|
|
579
|
+
o
|
|
580
|
+
);
|
|
581
|
+
}
|
|
582
|
+
var An = new t(),
|
|
583
|
+
Ye = new t();
|
|
584
|
+
function Fe(e, i, r, n, o, a) {
|
|
585
|
+
let c = t.subtract(i, e, An);
|
|
586
|
+
t.normalize(c, c);
|
|
587
|
+
let l = r - Qe,
|
|
588
|
+
s = t.multiplyByScalar(c, l, Ye);
|
|
589
|
+
t.add(e, s, o);
|
|
590
|
+
let d = n - tn;
|
|
591
|
+
((s = t.multiplyByScalar(c, d, Ye)), t.add(i, s, a));
|
|
592
|
+
}
|
|
593
|
+
var Mn = new t();
|
|
594
|
+
function Ut(e, i) {
|
|
595
|
+
let r = jt.getPointDistance(Gt, e),
|
|
596
|
+
n = jt.getPointDistance(Gt, i),
|
|
597
|
+
o = Mn;
|
|
598
|
+
p.equalsEpsilon(r, 0, p.EPSILON2)
|
|
599
|
+
? ((o = nt(i, e, o)), t.multiplyByScalar(o, p.EPSILON2, o), t.add(e, o, e))
|
|
600
|
+
: p.equalsEpsilon(n, 0, p.EPSILON2) &&
|
|
601
|
+
((o = nt(e, i, o)), t.multiplyByScalar(o, p.EPSILON2, o), t.add(i, o, i));
|
|
602
|
+
}
|
|
603
|
+
function Rn(e, i) {
|
|
604
|
+
let r = Math.abs(e.longitude),
|
|
605
|
+
n = Math.abs(i.longitude);
|
|
606
|
+
if (p.equalsEpsilon(r, p.PI, p.EPSILON11)) {
|
|
607
|
+
let o = p.sign(i.longitude);
|
|
608
|
+
return ((e.longitude = o * (r - p.EPSILON11)), 1);
|
|
609
|
+
} else if (p.equalsEpsilon(n, p.PI, p.EPSILON11)) {
|
|
610
|
+
let o = p.sign(e.longitude);
|
|
611
|
+
return ((i.longitude = o * (n - p.EPSILON11)), 2);
|
|
612
|
+
}
|
|
613
|
+
return 0;
|
|
614
|
+
}
|
|
615
|
+
var nn = new u(),
|
|
616
|
+
on = new u(),
|
|
617
|
+
Ue = new t(),
|
|
618
|
+
re = new t(),
|
|
619
|
+
Ge = new t(),
|
|
620
|
+
qe = new t(),
|
|
621
|
+
Pn = new t(),
|
|
622
|
+
We = new t(),
|
|
623
|
+
bn = [nn, on],
|
|
624
|
+
vn = new U(),
|
|
625
|
+
Bn = new t(),
|
|
626
|
+
zn = new t(),
|
|
627
|
+
jn = new t(),
|
|
628
|
+
Xn = new t(),
|
|
629
|
+
Yn = new t(),
|
|
630
|
+
Fn = new t(),
|
|
631
|
+
ae = new t(),
|
|
632
|
+
ce = new t(),
|
|
633
|
+
Un = new t(),
|
|
634
|
+
Gn = new t(),
|
|
635
|
+
qn = new t(),
|
|
636
|
+
Ze = new t(),
|
|
637
|
+
Wn = new t(),
|
|
638
|
+
Zn = new t(),
|
|
639
|
+
Vn = new _t(),
|
|
640
|
+
$n = new _t(),
|
|
641
|
+
Ve = new t(),
|
|
642
|
+
Jn = new t(),
|
|
643
|
+
$e = new t(),
|
|
644
|
+
Kn = [new G(), new G()],
|
|
645
|
+
rn = [
|
|
646
|
+
0, 2, 1, 0, 3, 2, 0, 7, 3, 0, 4, 7, 0, 5, 4, 0, 1, 5, 5, 7, 4, 5, 6, 7, 5,
|
|
647
|
+
2, 6, 5, 1, 2, 3, 6, 2, 3, 7, 6,
|
|
648
|
+
],
|
|
649
|
+
Je = rn.length;
|
|
650
|
+
function Qn(e, i, r, n, o, a, c) {
|
|
651
|
+
let l,
|
|
652
|
+
s,
|
|
653
|
+
d = i._ellipsoid,
|
|
654
|
+
h = r.length / 3 - 1,
|
|
655
|
+
N = h * 8,
|
|
656
|
+
S = N * 4,
|
|
657
|
+
R = h * 36,
|
|
658
|
+
D = N > 65535 ? new Uint32Array(R) : new Uint16Array(R),
|
|
659
|
+
I = new Float64Array(N * 3),
|
|
660
|
+
j = new Float32Array(S),
|
|
661
|
+
q = new Float32Array(S),
|
|
662
|
+
f = new Float32Array(S),
|
|
663
|
+
X = new Float32Array(S),
|
|
664
|
+
v = new Float32Array(S),
|
|
665
|
+
y,
|
|
666
|
+
H,
|
|
667
|
+
C,
|
|
668
|
+
k;
|
|
669
|
+
c &&
|
|
670
|
+
((y = new Float32Array(S)),
|
|
671
|
+
(H = new Float32Array(S)),
|
|
672
|
+
(C = new Float32Array(S)),
|
|
673
|
+
(k = new Float32Array(N * 2)));
|
|
674
|
+
let b = a.length / 2,
|
|
675
|
+
B = 0,
|
|
676
|
+
E = nn;
|
|
677
|
+
E.height = 0;
|
|
678
|
+
let x = on;
|
|
679
|
+
x.height = 0;
|
|
680
|
+
let L = Ue,
|
|
681
|
+
_ = re;
|
|
682
|
+
if (c)
|
|
683
|
+
for (s = 0, l = 1; l < b; l++)
|
|
684
|
+
((E.latitude = a[s]),
|
|
685
|
+
(E.longitude = a[s + 1]),
|
|
686
|
+
(x.latitude = a[s + 2]),
|
|
687
|
+
(x.longitude = a[s + 3]),
|
|
688
|
+
(L = i.project(E, L)),
|
|
689
|
+
(_ = i.project(x, _)),
|
|
690
|
+
(B += t.distance(L, _)),
|
|
691
|
+
(s += 2));
|
|
692
|
+
let Y = n.length / 3;
|
|
693
|
+
_ = t.unpack(n, 0, _);
|
|
694
|
+
let A = 0;
|
|
695
|
+
for (s = 3, l = 1; l < Y; l++)
|
|
696
|
+
((L = t.clone(_, L)),
|
|
697
|
+
(_ = t.unpack(n, s, _)),
|
|
698
|
+
(A += t.distance(L, _)),
|
|
699
|
+
(s += 3));
|
|
700
|
+
let m;
|
|
701
|
+
s = 3;
|
|
702
|
+
let V = 0,
|
|
703
|
+
It = 0,
|
|
704
|
+
M = 0,
|
|
705
|
+
Tt = 0,
|
|
706
|
+
F = !1,
|
|
707
|
+
st = t.unpack(r, 0, qe),
|
|
708
|
+
lt = t.unpack(n, 0, re),
|
|
709
|
+
W = t.unpack(o, 0, We);
|
|
710
|
+
if (e) {
|
|
711
|
+
let ht = t.unpack(r, r.length - 6, Ge);
|
|
712
|
+
ze(W, ht, st, lt) && (W = t.negate(W, W));
|
|
713
|
+
}
|
|
714
|
+
let pe = 0,
|
|
715
|
+
de = 0,
|
|
716
|
+
qt = 0;
|
|
717
|
+
for (l = 0; l < h; l++) {
|
|
718
|
+
let ht = t.clone(st, Ge),
|
|
719
|
+
Zt = t.clone(lt, Ue),
|
|
720
|
+
mt = t.clone(W, Pn);
|
|
721
|
+
(F && (mt = t.negate(mt, mt)),
|
|
722
|
+
(st = t.unpack(r, s, qe)),
|
|
723
|
+
(lt = t.unpack(n, s, re)),
|
|
724
|
+
(W = t.unpack(o, s, We)),
|
|
725
|
+
(F = ze(W, ht, st, lt)),
|
|
726
|
+
(E.latitude = a[V]),
|
|
727
|
+
(E.longitude = a[V + 1]),
|
|
728
|
+
(x.latitude = a[V + 2]),
|
|
729
|
+
(x.longitude = a[V + 3]));
|
|
730
|
+
let pt, gt, ot, it;
|
|
731
|
+
if (c) {
|
|
732
|
+
let T = Rn(E, x);
|
|
733
|
+
((pt = i.project(E, Yn)), (gt = i.project(x, Fn)));
|
|
734
|
+
let wt = nt(gt, pt, Ve);
|
|
735
|
+
((wt.y = Math.abs(wt.y)),
|
|
736
|
+
(ot = ae),
|
|
737
|
+
(it = ce),
|
|
738
|
+
T === 0 || t.dot(wt, t.UNIT_Y) > Ke
|
|
739
|
+
? ((ot = Dt(i, E, mt, pt, ae)), (it = Dt(i, x, W, gt, ce)))
|
|
740
|
+
: T === 1
|
|
741
|
+
? ((it = Dt(i, x, W, gt, ce)),
|
|
742
|
+
(ot.x = 0),
|
|
743
|
+
(ot.y = p.sign(E.longitude - Math.abs(x.longitude))),
|
|
744
|
+
(ot.z = 0))
|
|
745
|
+
: ((ot = Dt(i, E, mt, pt, ae)),
|
|
746
|
+
(it.x = 0),
|
|
747
|
+
(it.y = p.sign(E.longitude - x.longitude)),
|
|
748
|
+
(it.z = 0)));
|
|
749
|
+
}
|
|
750
|
+
let ge = t.distance(Zt, lt),
|
|
751
|
+
ue = _t.fromCartesian(ht, Vn),
|
|
752
|
+
Ht = t.subtract(st, ht, Un),
|
|
753
|
+
an = t.normalize(Ht, Ze),
|
|
754
|
+
xt = t.subtract(Zt, ht, Gn);
|
|
755
|
+
xt = t.normalize(xt, xt);
|
|
756
|
+
let ut = t.cross(an, xt, Ze);
|
|
757
|
+
ut = t.normalize(ut, ut);
|
|
758
|
+
let kt = t.cross(xt, mt, Wn);
|
|
759
|
+
kt = t.normalize(kt, kt);
|
|
760
|
+
let yt = t.subtract(lt, st, qn);
|
|
761
|
+
yt = t.normalize(yt, yt);
|
|
762
|
+
let At = t.cross(W, yt, Zn);
|
|
763
|
+
At = t.normalize(At, At);
|
|
764
|
+
let cn = ge / A,
|
|
765
|
+
sn = pe / A,
|
|
766
|
+
Vt = 0,
|
|
767
|
+
Nt,
|
|
768
|
+
Mt,
|
|
769
|
+
dt,
|
|
770
|
+
we = 0,
|
|
771
|
+
Se = 0;
|
|
772
|
+
if (c) {
|
|
773
|
+
((Vt = t.distance(pt, gt)),
|
|
774
|
+
(Nt = _t.fromCartesian(pt, $n)),
|
|
775
|
+
(Mt = t.subtract(gt, pt, Ve)),
|
|
776
|
+
(dt = t.normalize(Mt, Jn)));
|
|
777
|
+
let T = dt.x;
|
|
778
|
+
((dt.x = dt.y), (dt.y = -T), (we = Vt / B), (Se = de / B));
|
|
779
|
+
}
|
|
780
|
+
for (m = 0; m < 8; m++) {
|
|
781
|
+
let T = Tt + m * 4,
|
|
782
|
+
wt = It + m * 2,
|
|
783
|
+
Ct = T + 3,
|
|
784
|
+
Ee = m < 4 ? 1 : -1,
|
|
785
|
+
Rt = m === 2 || m === 3 || m === 6 || m === 7 ? 1 : -1;
|
|
786
|
+
(t.pack(ue.high, j, T),
|
|
787
|
+
(j[Ct] = Ht.x),
|
|
788
|
+
t.pack(ue.low, q, T),
|
|
789
|
+
(q[Ct] = Ht.y),
|
|
790
|
+
t.pack(kt, f, T),
|
|
791
|
+
(f[Ct] = Ht.z),
|
|
792
|
+
t.pack(At, X, T),
|
|
793
|
+
(X[Ct] = cn * Ee),
|
|
794
|
+
t.pack(ut, v, T));
|
|
795
|
+
let ft = sn * Rt;
|
|
796
|
+
(ft === 0 && Rt < 0 && (ft = 9),
|
|
797
|
+
(v[Ct] = ft),
|
|
798
|
+
c &&
|
|
799
|
+
((y[T] = Nt.high.x),
|
|
800
|
+
(y[T + 1] = Nt.high.y),
|
|
801
|
+
(y[T + 2] = Nt.low.x),
|
|
802
|
+
(y[T + 3] = Nt.low.y),
|
|
803
|
+
(C[T] = -ot.y),
|
|
804
|
+
(C[T + 1] = ot.x),
|
|
805
|
+
(C[T + 2] = it.y),
|
|
806
|
+
(C[T + 3] = -it.x),
|
|
807
|
+
(H[T] = Mt.x),
|
|
808
|
+
(H[T + 1] = Mt.y),
|
|
809
|
+
(H[T + 2] = dt.x),
|
|
810
|
+
(H[T + 3] = dt.y),
|
|
811
|
+
(k[wt] = we * Ee),
|
|
812
|
+
(ft = Se * Rt),
|
|
813
|
+
ft === 0 && Rt < 0 && (ft = 9),
|
|
814
|
+
(k[wt + 1] = ft)));
|
|
815
|
+
}
|
|
816
|
+
let $ = jn,
|
|
817
|
+
J = Xn,
|
|
818
|
+
K = Bn,
|
|
819
|
+
Q = zn,
|
|
820
|
+
ln = U.fromCartographicArray(bn, vn),
|
|
821
|
+
Te = Xt.getMinimumMaximumHeights(ln, d),
|
|
822
|
+
$t = Te.minimumTerrainHeight,
|
|
823
|
+
Jt = Te.maximumTerrainHeight;
|
|
824
|
+
((qt += Math.abs($t)),
|
|
825
|
+
(qt += Math.abs(Jt)),
|
|
826
|
+
Fe(ht, Zt, $t, Jt, $, K),
|
|
827
|
+
Fe(st, lt, $t, Jt, J, Q));
|
|
828
|
+
let tt = t.multiplyByScalar(ut, p.EPSILON5, $e);
|
|
829
|
+
(t.add($, tt, $),
|
|
830
|
+
t.add(J, tt, J),
|
|
831
|
+
t.add(K, tt, K),
|
|
832
|
+
t.add(Q, tt, Q),
|
|
833
|
+
Ut($, J),
|
|
834
|
+
Ut(K, Q),
|
|
835
|
+
t.pack($, I, M),
|
|
836
|
+
t.pack(J, I, M + 3),
|
|
837
|
+
t.pack(Q, I, M + 6),
|
|
838
|
+
t.pack(K, I, M + 9),
|
|
839
|
+
(tt = t.multiplyByScalar(ut, -2 * p.EPSILON5, $e)),
|
|
840
|
+
t.add($, tt, $),
|
|
841
|
+
t.add(J, tt, J),
|
|
842
|
+
t.add(K, tt, K),
|
|
843
|
+
t.add(Q, tt, Q),
|
|
844
|
+
Ut($, J),
|
|
845
|
+
Ut(K, Q),
|
|
846
|
+
t.pack($, I, M + 12),
|
|
847
|
+
t.pack(J, I, M + 15),
|
|
848
|
+
t.pack(Q, I, M + 18),
|
|
849
|
+
t.pack(K, I, M + 21),
|
|
850
|
+
(V += 2),
|
|
851
|
+
(s += 3),
|
|
852
|
+
(It += 16),
|
|
853
|
+
(M += 24),
|
|
854
|
+
(Tt += 32),
|
|
855
|
+
(pe += ge),
|
|
856
|
+
(de += Vt));
|
|
857
|
+
}
|
|
858
|
+
s = 0;
|
|
859
|
+
let fe = 0;
|
|
860
|
+
for (l = 0; l < h; l++) {
|
|
861
|
+
for (m = 0; m < Je; m++) D[s + m] = rn[m] + fe;
|
|
862
|
+
((fe += 8), (s += Je));
|
|
863
|
+
}
|
|
864
|
+
let Wt = Kn;
|
|
865
|
+
(G.fromVertices(r, t.ZERO, 3, Wt[0]), G.fromVertices(n, t.ZERO, 3, Wt[1]));
|
|
866
|
+
let me = G.fromBoundingSpheres(Wt);
|
|
867
|
+
me.radius += qt / (h * 2);
|
|
868
|
+
let Et = {
|
|
869
|
+
position: new zt({
|
|
870
|
+
componentDatatype: Bt.DOUBLE,
|
|
871
|
+
componentsPerAttribute: 3,
|
|
872
|
+
normalize: !1,
|
|
873
|
+
values: I,
|
|
874
|
+
}),
|
|
875
|
+
startHiAndForwardOffsetX: at(j),
|
|
876
|
+
startLoAndForwardOffsetY: at(q),
|
|
877
|
+
startNormalAndForwardOffsetZ: at(f),
|
|
878
|
+
endNormalAndTextureCoordinateNormalizationX: at(X),
|
|
879
|
+
rightNormalAndTextureCoordinateNormalizationY: at(v),
|
|
880
|
+
};
|
|
881
|
+
return (
|
|
882
|
+
c &&
|
|
883
|
+
((Et.startHiLo2D = at(y)),
|
|
884
|
+
(Et.offsetAndRight2D = at(H)),
|
|
885
|
+
(Et.startEndNormals2D = at(C)),
|
|
886
|
+
(Et.texcoordNormalization2D = new zt({
|
|
887
|
+
componentDatatype: Bt.FLOAT,
|
|
888
|
+
componentsPerAttribute: 2,
|
|
889
|
+
normalize: !1,
|
|
890
|
+
values: k,
|
|
891
|
+
}))),
|
|
892
|
+
new Ce({ attributes: Et, indices: D, boundingSphere: me })
|
|
893
|
+
);
|
|
894
|
+
}
|
|
895
|
+
function at(e) {
|
|
896
|
+
return new zt({
|
|
897
|
+
componentDatatype: Bt.FLOAT,
|
|
898
|
+
componentsPerAttribute: 4,
|
|
899
|
+
normalize: !1,
|
|
900
|
+
values: e,
|
|
901
|
+
});
|
|
902
|
+
}
|
|
903
|
+
ct._projectNormal = Dt;
|
|
904
|
+
var he = ct;
|
|
905
|
+
function to(e, i) {
|
|
906
|
+
return Xt.initialize().then(function () {
|
|
907
|
+
return (g(i) && (e = he.unpack(e, i)), he.createGeometry(e));
|
|
908
|
+
});
|
|
909
|
+
}
|
|
910
|
+
var ti = to;
|
|
911
|
+
export { ti as default };
|