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,830 @@
|
|
|
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 M } from "./chunk-XHX2UPDO.js";
|
|
27
|
+
import { a as ht } from "./chunk-K4ASOM65.js";
|
|
28
|
+
import "./chunk-AMQUWUD4.js";
|
|
29
|
+
import "./chunk-W23CU777.js";
|
|
30
|
+
import { a as _t } from "./chunk-ILGBPNP6.js";
|
|
31
|
+
import { a as G } from "./chunk-HEEMUCG6.js";
|
|
32
|
+
import "./chunk-KF5NF354.js";
|
|
33
|
+
import "./chunk-4WRMLZA7.js";
|
|
34
|
+
import { b as yt } from "./chunk-O5IJ3OGP.js";
|
|
35
|
+
import { a as Pt } from "./chunk-RXTBM4OI.js";
|
|
36
|
+
import "./chunk-FYOYUPXG.js";
|
|
37
|
+
import "./chunk-TAMCUKAR.js";
|
|
38
|
+
import "./chunk-PDMQLSBL.js";
|
|
39
|
+
import { a as Nt } from "./chunk-P37AI2DW.js";
|
|
40
|
+
import { a as Ct } from "./chunk-T6BE4RZK.js";
|
|
41
|
+
import { b as Mt, c as Vt, d as x } from "./chunk-X5IHHI6X.js";
|
|
42
|
+
import { d as St } from "./chunk-TMSETF7M.js";
|
|
43
|
+
import { h as Et } from "./chunk-7Z5IIKOJ.js";
|
|
44
|
+
import { a as F } from "./chunk-KZNJOCYU.js";
|
|
45
|
+
import { a as o, b as bt, d as I } from "./chunk-POASMU2N.js";
|
|
46
|
+
import { a as st } from "./chunk-R6KGAEF6.js";
|
|
47
|
+
import "./chunk-3C7WC463.js";
|
|
48
|
+
import "./chunk-II4VNKYR.js";
|
|
49
|
+
import { a as B } from "./chunk-IUA6FAOZ.js";
|
|
50
|
+
import { b as it } from "./chunk-UH2WFNTA.js";
|
|
51
|
+
import { e as X } from "./chunk-PEYJTJPE.js";
|
|
52
|
+
var zt = new o(),
|
|
53
|
+
kt = new o(),
|
|
54
|
+
wt = new o(),
|
|
55
|
+
Tt = new o(),
|
|
56
|
+
jt = new o(),
|
|
57
|
+
Ht = new o(),
|
|
58
|
+
at = new o(),
|
|
59
|
+
ft = new o();
|
|
60
|
+
function Ut(t, e) {
|
|
61
|
+
for (let i = 0; i < t.length; i++)
|
|
62
|
+
t[i] = e.scaleToGeodeticSurface(t[i], t[i]);
|
|
63
|
+
return t;
|
|
64
|
+
}
|
|
65
|
+
function Z(t, e, i, l, d, f) {
|
|
66
|
+
let h = t.normals,
|
|
67
|
+
O = t.tangents,
|
|
68
|
+
g = t.bitangents,
|
|
69
|
+
r = o.normalize(o.cross(i, e, at), at);
|
|
70
|
+
(f.normal && M.addAttribute(h, e, l, d),
|
|
71
|
+
f.tangent && M.addAttribute(O, r, l, d),
|
|
72
|
+
f.bitangent && M.addAttribute(g, i, l, d));
|
|
73
|
+
}
|
|
74
|
+
function Bt(t, e, i) {
|
|
75
|
+
let l = t.positions,
|
|
76
|
+
d = t.corners,
|
|
77
|
+
f = t.endPositions,
|
|
78
|
+
h = t.lefts,
|
|
79
|
+
O = t.normals,
|
|
80
|
+
g = new Ct(),
|
|
81
|
+
r,
|
|
82
|
+
a = 0,
|
|
83
|
+
s = 0,
|
|
84
|
+
n,
|
|
85
|
+
A = 0,
|
|
86
|
+
u;
|
|
87
|
+
for (n = 0; n < l.length; n += 2)
|
|
88
|
+
((u = l[n].length - 3), (a += u), (A += u * 2), (s += l[n + 1].length - 3));
|
|
89
|
+
for (a += 3, s += 3, n = 0; n < d.length; n++) {
|
|
90
|
+
r = d[n];
|
|
91
|
+
let c = d[n].leftPositions;
|
|
92
|
+
X(c)
|
|
93
|
+
? ((u = c.length), (a += u), (A += u))
|
|
94
|
+
: ((u = d[n].rightPositions.length), (s += u), (A += u));
|
|
95
|
+
}
|
|
96
|
+
let b = X(f),
|
|
97
|
+
p;
|
|
98
|
+
b && ((p = f[0].length - 3), (a += p), (s += p), (p /= 3), (A += p * 6));
|
|
99
|
+
let R = a + s,
|
|
100
|
+
m = new Float64Array(R),
|
|
101
|
+
C = e.normal ? new Float32Array(R) : void 0,
|
|
102
|
+
D = e.tangent ? new Float32Array(R) : void 0,
|
|
103
|
+
lt = e.bitangent ? new Float32Array(R) : void 0,
|
|
104
|
+
z = { normals: C, tangents: D, bitangents: lt },
|
|
105
|
+
y = 0,
|
|
106
|
+
E = R - 1,
|
|
107
|
+
S,
|
|
108
|
+
V,
|
|
109
|
+
H,
|
|
110
|
+
J,
|
|
111
|
+
P = zt,
|
|
112
|
+
w = kt,
|
|
113
|
+
nt,
|
|
114
|
+
ot,
|
|
115
|
+
mt = p / 2,
|
|
116
|
+
_ = Nt.createTypedArray(R / 3, A),
|
|
117
|
+
T = 0;
|
|
118
|
+
if (b) {
|
|
119
|
+
((ot = wt), (nt = Tt));
|
|
120
|
+
let c = f[0];
|
|
121
|
+
for (P = o.fromArray(O, 0, P), w = o.fromArray(h, 0, w), n = 0; n < mt; n++)
|
|
122
|
+
((ot = o.fromArray(c, (mt - 1 - n) * 3, ot)),
|
|
123
|
+
(nt = o.fromArray(c, (mt + n) * 3, nt)),
|
|
124
|
+
M.addAttribute(m, nt, y),
|
|
125
|
+
M.addAttribute(m, ot, void 0, E),
|
|
126
|
+
Z(z, P, w, y, E, e),
|
|
127
|
+
(V = y / 3),
|
|
128
|
+
(J = V + 1),
|
|
129
|
+
(S = (E - 2) / 3),
|
|
130
|
+
(H = S - 1),
|
|
131
|
+
(_[T++] = S),
|
|
132
|
+
(_[T++] = V),
|
|
133
|
+
(_[T++] = H),
|
|
134
|
+
(_[T++] = H),
|
|
135
|
+
(_[T++] = V),
|
|
136
|
+
(_[T++] = J),
|
|
137
|
+
(y += 3),
|
|
138
|
+
(E -= 3));
|
|
139
|
+
}
|
|
140
|
+
let At = 0,
|
|
141
|
+
ut = 0,
|
|
142
|
+
rt = l[At++],
|
|
143
|
+
q = l[At++];
|
|
144
|
+
(m.set(rt, y), m.set(q, E - q.length + 1), (w = o.fromArray(h, ut, w)));
|
|
145
|
+
let ct, dt;
|
|
146
|
+
for (u = q.length - 3, n = 0; n < u; n += 3)
|
|
147
|
+
((ct = i.geodeticSurfaceNormal(o.fromArray(rt, n, at), at)),
|
|
148
|
+
(dt = i.geodeticSurfaceNormal(o.fromArray(q, u - n, ft), ft)),
|
|
149
|
+
(P = o.normalize(o.add(ct, dt, P), P)),
|
|
150
|
+
Z(z, P, w, y, E, e),
|
|
151
|
+
(V = y / 3),
|
|
152
|
+
(J = V + 1),
|
|
153
|
+
(S = (E - 2) / 3),
|
|
154
|
+
(H = S - 1),
|
|
155
|
+
(_[T++] = S),
|
|
156
|
+
(_[T++] = V),
|
|
157
|
+
(_[T++] = H),
|
|
158
|
+
(_[T++] = H),
|
|
159
|
+
(_[T++] = V),
|
|
160
|
+
(_[T++] = J),
|
|
161
|
+
(y += 3),
|
|
162
|
+
(E -= 3));
|
|
163
|
+
for (
|
|
164
|
+
ct = i.geodeticSurfaceNormal(o.fromArray(rt, u, at), at),
|
|
165
|
+
dt = i.geodeticSurfaceNormal(o.fromArray(q, u, ft), ft),
|
|
166
|
+
P = o.normalize(o.add(ct, dt, P), P),
|
|
167
|
+
ut += 3,
|
|
168
|
+
n = 0;
|
|
169
|
+
n < d.length;
|
|
170
|
+
n++
|
|
171
|
+
) {
|
|
172
|
+
let c;
|
|
173
|
+
r = d[n];
|
|
174
|
+
let $ = r.leftPositions,
|
|
175
|
+
v = r.rightPositions,
|
|
176
|
+
L,
|
|
177
|
+
U,
|
|
178
|
+
N = Ht,
|
|
179
|
+
k = wt,
|
|
180
|
+
Y = Tt;
|
|
181
|
+
if (((P = o.fromArray(O, ut, P)), X($))) {
|
|
182
|
+
for (
|
|
183
|
+
Z(z, P, w, void 0, E, e), E -= 3, L = J, U = H, c = 0;
|
|
184
|
+
c < $.length / 3;
|
|
185
|
+
c++
|
|
186
|
+
)
|
|
187
|
+
((N = o.fromArray($, c * 3, N)),
|
|
188
|
+
(_[T++] = L),
|
|
189
|
+
(_[T++] = U - c - 1),
|
|
190
|
+
(_[T++] = U - c),
|
|
191
|
+
M.addAttribute(m, N, void 0, E),
|
|
192
|
+
(k = o.fromArray(m, (U - c - 1) * 3, k)),
|
|
193
|
+
(Y = o.fromArray(m, L * 3, Y)),
|
|
194
|
+
(w = o.normalize(o.subtract(k, Y, w), w)),
|
|
195
|
+
Z(z, P, w, void 0, E, e),
|
|
196
|
+
(E -= 3));
|
|
197
|
+
((N = o.fromArray(m, L * 3, N)),
|
|
198
|
+
(k = o.subtract(o.fromArray(m, U * 3, k), N, k)),
|
|
199
|
+
(Y = o.subtract(o.fromArray(m, (U - c) * 3, Y), N, Y)),
|
|
200
|
+
(w = o.normalize(o.add(k, Y, w), w)),
|
|
201
|
+
Z(z, P, w, y, void 0, e),
|
|
202
|
+
(y += 3));
|
|
203
|
+
} else {
|
|
204
|
+
for (
|
|
205
|
+
Z(z, P, w, y, void 0, e), y += 3, L = H, U = J, c = 0;
|
|
206
|
+
c < v.length / 3;
|
|
207
|
+
c++
|
|
208
|
+
)
|
|
209
|
+
((N = o.fromArray(v, c * 3, N)),
|
|
210
|
+
(_[T++] = L),
|
|
211
|
+
(_[T++] = U + c),
|
|
212
|
+
(_[T++] = U + c + 1),
|
|
213
|
+
M.addAttribute(m, N, y),
|
|
214
|
+
(k = o.fromArray(m, L * 3, k)),
|
|
215
|
+
(Y = o.fromArray(m, (U + c) * 3, Y)),
|
|
216
|
+
(w = o.normalize(o.subtract(k, Y, w), w)),
|
|
217
|
+
Z(z, P, w, y, void 0, e),
|
|
218
|
+
(y += 3));
|
|
219
|
+
((N = o.fromArray(m, L * 3, N)),
|
|
220
|
+
(k = o.subtract(o.fromArray(m, (U + c) * 3, k), N, k)),
|
|
221
|
+
(Y = o.subtract(o.fromArray(m, U * 3, Y), N, Y)),
|
|
222
|
+
(w = o.normalize(o.negate(o.add(Y, k, w), w), w)),
|
|
223
|
+
Z(z, P, w, void 0, E, e),
|
|
224
|
+
(E -= 3));
|
|
225
|
+
}
|
|
226
|
+
for (
|
|
227
|
+
rt = l[At++],
|
|
228
|
+
q = l[At++],
|
|
229
|
+
rt.splice(0, 3),
|
|
230
|
+
q.splice(q.length - 3, 3),
|
|
231
|
+
m.set(rt, y),
|
|
232
|
+
m.set(q, E - q.length + 1),
|
|
233
|
+
u = q.length - 3,
|
|
234
|
+
ut += 3,
|
|
235
|
+
w = o.fromArray(h, ut, w),
|
|
236
|
+
c = 0;
|
|
237
|
+
c < q.length;
|
|
238
|
+
c += 3
|
|
239
|
+
)
|
|
240
|
+
((ct = i.geodeticSurfaceNormal(o.fromArray(rt, c, at), at)),
|
|
241
|
+
(dt = i.geodeticSurfaceNormal(o.fromArray(q, u - c, ft), ft)),
|
|
242
|
+
(P = o.normalize(o.add(ct, dt, P), P)),
|
|
243
|
+
Z(z, P, w, y, E, e),
|
|
244
|
+
(J = y / 3),
|
|
245
|
+
(V = J - 1),
|
|
246
|
+
(H = (E - 2) / 3),
|
|
247
|
+
(S = H + 1),
|
|
248
|
+
(_[T++] = S),
|
|
249
|
+
(_[T++] = V),
|
|
250
|
+
(_[T++] = H),
|
|
251
|
+
(_[T++] = H),
|
|
252
|
+
(_[T++] = V),
|
|
253
|
+
(_[T++] = J),
|
|
254
|
+
(y += 3),
|
|
255
|
+
(E -= 3));
|
|
256
|
+
((y -= 3), (E += 3));
|
|
257
|
+
}
|
|
258
|
+
if (((P = o.fromArray(O, O.length - 3, P)), Z(z, P, w, y, E, e), b)) {
|
|
259
|
+
((y += 3), (E -= 3), (ot = wt), (nt = Tt));
|
|
260
|
+
let c = f[1];
|
|
261
|
+
for (n = 0; n < mt; n++)
|
|
262
|
+
((ot = o.fromArray(c, (p - n - 1) * 3, ot)),
|
|
263
|
+
(nt = o.fromArray(c, n * 3, nt)),
|
|
264
|
+
M.addAttribute(m, ot, void 0, E),
|
|
265
|
+
M.addAttribute(m, nt, y),
|
|
266
|
+
Z(z, P, w, y, E, e),
|
|
267
|
+
(J = y / 3),
|
|
268
|
+
(V = J - 1),
|
|
269
|
+
(H = (E - 2) / 3),
|
|
270
|
+
(S = H + 1),
|
|
271
|
+
(_[T++] = S),
|
|
272
|
+
(_[T++] = V),
|
|
273
|
+
(_[T++] = H),
|
|
274
|
+
(_[T++] = H),
|
|
275
|
+
(_[T++] = V),
|
|
276
|
+
(_[T++] = J),
|
|
277
|
+
(y += 3),
|
|
278
|
+
(E -= 3));
|
|
279
|
+
}
|
|
280
|
+
if (
|
|
281
|
+
((g.position = new x({
|
|
282
|
+
componentDatatype: F.DOUBLE,
|
|
283
|
+
componentsPerAttribute: 3,
|
|
284
|
+
values: m,
|
|
285
|
+
})),
|
|
286
|
+
e.st)
|
|
287
|
+
) {
|
|
288
|
+
let c = new Float32Array((R / 3) * 2),
|
|
289
|
+
$,
|
|
290
|
+
v,
|
|
291
|
+
L = 0;
|
|
292
|
+
if (b) {
|
|
293
|
+
((a /= 3), (s /= 3));
|
|
294
|
+
let U = Math.PI / (p + 1);
|
|
295
|
+
((v = 1 / (a - p + 1)), ($ = 1 / (s - p + 1)));
|
|
296
|
+
let N,
|
|
297
|
+
k = p / 2;
|
|
298
|
+
for (n = k + 1; n < p + 1; n++)
|
|
299
|
+
((N = st.PI_OVER_TWO + U * n),
|
|
300
|
+
(c[L++] = $ * (1 + Math.cos(N))),
|
|
301
|
+
(c[L++] = 0.5 * (1 + Math.sin(N))));
|
|
302
|
+
for (n = 1; n < s - p + 1; n++) ((c[L++] = n * $), (c[L++] = 0));
|
|
303
|
+
for (n = p; n > k; n--)
|
|
304
|
+
((N = st.PI_OVER_TWO - n * U),
|
|
305
|
+
(c[L++] = 1 - $ * (1 + Math.cos(N))),
|
|
306
|
+
(c[L++] = 0.5 * (1 + Math.sin(N))));
|
|
307
|
+
for (n = k; n > 0; n--)
|
|
308
|
+
((N = st.PI_OVER_TWO - U * n),
|
|
309
|
+
(c[L++] = 1 - v * (1 + Math.cos(N))),
|
|
310
|
+
(c[L++] = 0.5 * (1 + Math.sin(N))));
|
|
311
|
+
for (n = a - p; n > 0; n--) ((c[L++] = n * v), (c[L++] = 1));
|
|
312
|
+
for (n = 1; n < k + 1; n++)
|
|
313
|
+
((N = st.PI_OVER_TWO + U * n),
|
|
314
|
+
(c[L++] = v * (1 + Math.cos(N))),
|
|
315
|
+
(c[L++] = 0.5 * (1 + Math.sin(N))));
|
|
316
|
+
} else {
|
|
317
|
+
for (a /= 3, s /= 3, v = 1 / (a - 1), $ = 1 / (s - 1), n = 0; n < s; n++)
|
|
318
|
+
((c[L++] = n * $), (c[L++] = 0));
|
|
319
|
+
for (n = a; n > 0; n--) ((c[L++] = (n - 1) * v), (c[L++] = 1));
|
|
320
|
+
}
|
|
321
|
+
g.st = new x({
|
|
322
|
+
componentDatatype: F.FLOAT,
|
|
323
|
+
componentsPerAttribute: 2,
|
|
324
|
+
values: c,
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
return (
|
|
328
|
+
e.normal &&
|
|
329
|
+
(g.normal = new x({
|
|
330
|
+
componentDatatype: F.FLOAT,
|
|
331
|
+
componentsPerAttribute: 3,
|
|
332
|
+
values: z.normals,
|
|
333
|
+
})),
|
|
334
|
+
e.tangent &&
|
|
335
|
+
(g.tangent = new x({
|
|
336
|
+
componentDatatype: F.FLOAT,
|
|
337
|
+
componentsPerAttribute: 3,
|
|
338
|
+
values: z.tangents,
|
|
339
|
+
})),
|
|
340
|
+
e.bitangent &&
|
|
341
|
+
(g.bitangent = new x({
|
|
342
|
+
componentDatatype: F.FLOAT,
|
|
343
|
+
componentsPerAttribute: 3,
|
|
344
|
+
values: z.bitangents,
|
|
345
|
+
})),
|
|
346
|
+
{ attributes: g, indices: _ }
|
|
347
|
+
);
|
|
348
|
+
}
|
|
349
|
+
function qt(t, e) {
|
|
350
|
+
if (!e.normal && !e.tangent && !e.bitangent && !e.st) return t;
|
|
351
|
+
let i = t.position.values,
|
|
352
|
+
l,
|
|
353
|
+
d;
|
|
354
|
+
(e.normal || e.bitangent) &&
|
|
355
|
+
((l = t.normal.values), (d = t.bitangent.values));
|
|
356
|
+
let f = t.position.values.length / 18,
|
|
357
|
+
h = f * 3,
|
|
358
|
+
O = f * 2,
|
|
359
|
+
g = h * 2,
|
|
360
|
+
r;
|
|
361
|
+
if (e.normal || e.bitangent || e.tangent) {
|
|
362
|
+
let a = e.normal ? new Float32Array(h * 6) : void 0,
|
|
363
|
+
s = e.tangent ? new Float32Array(h * 6) : void 0,
|
|
364
|
+
n = e.bitangent ? new Float32Array(h * 6) : void 0,
|
|
365
|
+
A = zt,
|
|
366
|
+
u = kt,
|
|
367
|
+
b = wt,
|
|
368
|
+
p = Tt,
|
|
369
|
+
R = jt,
|
|
370
|
+
m = Ht,
|
|
371
|
+
C = g;
|
|
372
|
+
for (r = 0; r < h; r += 3) {
|
|
373
|
+
let D = C + g;
|
|
374
|
+
((A = o.fromArray(i, r, A)),
|
|
375
|
+
(u = o.fromArray(i, r + h, u)),
|
|
376
|
+
(b = o.fromArray(i, (r + 3) % h, b)),
|
|
377
|
+
(u = o.subtract(u, A, u)),
|
|
378
|
+
(b = o.subtract(b, A, b)),
|
|
379
|
+
(p = o.normalize(o.cross(u, b, p), p)),
|
|
380
|
+
e.normal &&
|
|
381
|
+
(M.addAttribute(a, p, D),
|
|
382
|
+
M.addAttribute(a, p, D + 3),
|
|
383
|
+
M.addAttribute(a, p, C),
|
|
384
|
+
M.addAttribute(a, p, C + 3)),
|
|
385
|
+
(e.tangent || e.bitangent) &&
|
|
386
|
+
((m = o.fromArray(l, r, m)),
|
|
387
|
+
e.bitangent &&
|
|
388
|
+
(M.addAttribute(n, m, D),
|
|
389
|
+
M.addAttribute(n, m, D + 3),
|
|
390
|
+
M.addAttribute(n, m, C),
|
|
391
|
+
M.addAttribute(n, m, C + 3)),
|
|
392
|
+
e.tangent &&
|
|
393
|
+
((R = o.normalize(o.cross(m, p, R), R)),
|
|
394
|
+
M.addAttribute(s, R, D),
|
|
395
|
+
M.addAttribute(s, R, D + 3),
|
|
396
|
+
M.addAttribute(s, R, C),
|
|
397
|
+
M.addAttribute(s, R, C + 3))),
|
|
398
|
+
(C += 6));
|
|
399
|
+
}
|
|
400
|
+
if (e.normal) {
|
|
401
|
+
for (a.set(l), r = 0; r < h; r += 3)
|
|
402
|
+
((a[r + h] = -l[r]),
|
|
403
|
+
(a[r + h + 1] = -l[r + 1]),
|
|
404
|
+
(a[r + h + 2] = -l[r + 2]));
|
|
405
|
+
t.normal.values = a;
|
|
406
|
+
} else t.normal = void 0;
|
|
407
|
+
if (
|
|
408
|
+
(e.bitangent
|
|
409
|
+
? (n.set(d), n.set(d, h), (t.bitangent.values = n))
|
|
410
|
+
: (t.bitangent = void 0),
|
|
411
|
+
e.tangent)
|
|
412
|
+
) {
|
|
413
|
+
let D = t.tangent.values;
|
|
414
|
+
(s.set(D), s.set(D, h), (t.tangent.values = s));
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
if (e.st) {
|
|
418
|
+
let a = t.st.values,
|
|
419
|
+
s = new Float32Array(O * 6);
|
|
420
|
+
(s.set(a), s.set(a, O));
|
|
421
|
+
let n = O * 2;
|
|
422
|
+
for (let A = 0; A < 2; A++) {
|
|
423
|
+
for (s[n++] = a[0], s[n++] = a[1], r = 2; r < O; r += 2) {
|
|
424
|
+
let u = a[r],
|
|
425
|
+
b = a[r + 1];
|
|
426
|
+
((s[n++] = u), (s[n++] = b), (s[n++] = u), (s[n++] = b));
|
|
427
|
+
}
|
|
428
|
+
((s[n++] = a[0]), (s[n++] = a[1]));
|
|
429
|
+
}
|
|
430
|
+
t.st.values = s;
|
|
431
|
+
}
|
|
432
|
+
return t;
|
|
433
|
+
}
|
|
434
|
+
function Ot(t, e, i) {
|
|
435
|
+
((i[e++] = t[0]), (i[e++] = t[1]), (i[e++] = t[2]));
|
|
436
|
+
for (let l = 3; l < t.length; l += 3) {
|
|
437
|
+
let d = t[l],
|
|
438
|
+
f = t[l + 1],
|
|
439
|
+
h = t[l + 2];
|
|
440
|
+
((i[e++] = d),
|
|
441
|
+
(i[e++] = f),
|
|
442
|
+
(i[e++] = h),
|
|
443
|
+
(i[e++] = d),
|
|
444
|
+
(i[e++] = f),
|
|
445
|
+
(i[e++] = h));
|
|
446
|
+
}
|
|
447
|
+
return ((i[e++] = t[0]), (i[e++] = t[1]), (i[e++] = t[2]), i);
|
|
448
|
+
}
|
|
449
|
+
function Jt(t, e) {
|
|
450
|
+
let i = new G({
|
|
451
|
+
position: e.position,
|
|
452
|
+
normal: e.normal || e.bitangent || t.shadowVolume,
|
|
453
|
+
tangent: e.tangent,
|
|
454
|
+
bitangent: e.normal || e.bitangent,
|
|
455
|
+
st: e.st,
|
|
456
|
+
}),
|
|
457
|
+
l = t.ellipsoid,
|
|
458
|
+
d = M.computePositions(t),
|
|
459
|
+
f = Bt(d, i, l),
|
|
460
|
+
h = t.height,
|
|
461
|
+
O = t.extrudedHeight,
|
|
462
|
+
g = f.attributes,
|
|
463
|
+
r = f.indices,
|
|
464
|
+
a = g.position.values,
|
|
465
|
+
s = a.length,
|
|
466
|
+
n = new Float64Array(s * 6),
|
|
467
|
+
A = new Float64Array(s);
|
|
468
|
+
A.set(a);
|
|
469
|
+
let u = new Float64Array(s * 4);
|
|
470
|
+
((a = yt.scaleToGeodeticHeight(a, h, l)),
|
|
471
|
+
(u = Ot(a, 0, u)),
|
|
472
|
+
(A = yt.scaleToGeodeticHeight(A, O, l)),
|
|
473
|
+
(u = Ot(A, s * 2, u)),
|
|
474
|
+
n.set(a),
|
|
475
|
+
n.set(A, s),
|
|
476
|
+
n.set(u, s * 2),
|
|
477
|
+
(g.position.values = n),
|
|
478
|
+
(g = qt(g, e)));
|
|
479
|
+
let b,
|
|
480
|
+
p = s / 3;
|
|
481
|
+
if (t.shadowVolume) {
|
|
482
|
+
let S = g.normal.values;
|
|
483
|
+
s = S.length;
|
|
484
|
+
let V = new Float32Array(s * 6);
|
|
485
|
+
for (b = 0; b < s; b++) S[b] = -S[b];
|
|
486
|
+
(V.set(S, s),
|
|
487
|
+
(V = Ot(S, s * 4, V)),
|
|
488
|
+
(g.extrudeDirection = new x({
|
|
489
|
+
componentDatatype: F.FLOAT,
|
|
490
|
+
componentsPerAttribute: 3,
|
|
491
|
+
values: V,
|
|
492
|
+
})),
|
|
493
|
+
e.normal || (g.normal = void 0));
|
|
494
|
+
}
|
|
495
|
+
if (X(t.offsetAttribute)) {
|
|
496
|
+
let S = new Uint8Array(p * 6);
|
|
497
|
+
if (t.offsetAttribute === _t.TOP) S = S.fill(1, 0, p).fill(1, p * 2, p * 4);
|
|
498
|
+
else {
|
|
499
|
+
let V = t.offsetAttribute === _t.NONE ? 0 : 1;
|
|
500
|
+
S = S.fill(V);
|
|
501
|
+
}
|
|
502
|
+
g.applyOffset = new x({
|
|
503
|
+
componentDatatype: F.UNSIGNED_BYTE,
|
|
504
|
+
componentsPerAttribute: 1,
|
|
505
|
+
values: S,
|
|
506
|
+
});
|
|
507
|
+
}
|
|
508
|
+
let R = r.length,
|
|
509
|
+
m = p + p,
|
|
510
|
+
C = Nt.createTypedArray(n.length / 3, R * 2 + m * 3);
|
|
511
|
+
C.set(r);
|
|
512
|
+
let D = R;
|
|
513
|
+
for (b = 0; b < R; b += 3) {
|
|
514
|
+
let S = r[b],
|
|
515
|
+
V = r[b + 1],
|
|
516
|
+
H = r[b + 2];
|
|
517
|
+
((C[D++] = H + p), (C[D++] = V + p), (C[D++] = S + p));
|
|
518
|
+
}
|
|
519
|
+
let lt, z, y, E;
|
|
520
|
+
for (b = 0; b < m; b += 2)
|
|
521
|
+
((lt = b + m),
|
|
522
|
+
(z = lt + m),
|
|
523
|
+
(y = lt + 1),
|
|
524
|
+
(E = z + 1),
|
|
525
|
+
(C[D++] = lt),
|
|
526
|
+
(C[D++] = z),
|
|
527
|
+
(C[D++] = y),
|
|
528
|
+
(C[D++] = y),
|
|
529
|
+
(C[D++] = z),
|
|
530
|
+
(C[D++] = E));
|
|
531
|
+
return { attributes: g, indices: C };
|
|
532
|
+
}
|
|
533
|
+
var Dt = new o(),
|
|
534
|
+
gt = new o(),
|
|
535
|
+
Q = new bt();
|
|
536
|
+
function Rt(t, e, i, l, d, f) {
|
|
537
|
+
let h = o.subtract(e, t, Dt);
|
|
538
|
+
o.normalize(h, h);
|
|
539
|
+
let O = i.geodeticSurfaceNormal(t, gt),
|
|
540
|
+
g = o.cross(h, O, Dt);
|
|
541
|
+
o.multiplyByScalar(g, l, g);
|
|
542
|
+
let r = d.latitude,
|
|
543
|
+
a = d.longitude,
|
|
544
|
+
s = f.latitude,
|
|
545
|
+
n = f.longitude;
|
|
546
|
+
(o.add(t, g, gt), i.cartesianToCartographic(gt, Q));
|
|
547
|
+
let A = Q.latitude,
|
|
548
|
+
u = Q.longitude;
|
|
549
|
+
((r = Math.min(r, A)),
|
|
550
|
+
(a = Math.min(a, u)),
|
|
551
|
+
(s = Math.max(s, A)),
|
|
552
|
+
(n = Math.max(n, u)),
|
|
553
|
+
o.subtract(t, g, gt),
|
|
554
|
+
i.cartesianToCartographic(gt, Q),
|
|
555
|
+
(A = Q.latitude),
|
|
556
|
+
(u = Q.longitude),
|
|
557
|
+
(r = Math.min(r, A)),
|
|
558
|
+
(a = Math.min(a, u)),
|
|
559
|
+
(s = Math.max(s, A)),
|
|
560
|
+
(n = Math.max(n, u)),
|
|
561
|
+
(d.latitude = r),
|
|
562
|
+
(d.longitude = a),
|
|
563
|
+
(f.latitude = s),
|
|
564
|
+
(f.longitude = n));
|
|
565
|
+
}
|
|
566
|
+
var K = new o(),
|
|
567
|
+
pt = new o(),
|
|
568
|
+
W = new bt(),
|
|
569
|
+
j = new bt();
|
|
570
|
+
function Yt(t, e, i, l, d) {
|
|
571
|
+
t = Ut(t, e);
|
|
572
|
+
let f = Pt(t, o.equalsEpsilon),
|
|
573
|
+
h = f.length;
|
|
574
|
+
if (h < 2 || i <= 0) return new Et();
|
|
575
|
+
let O = i * 0.5;
|
|
576
|
+
((W.latitude = Number.POSITIVE_INFINITY),
|
|
577
|
+
(W.longitude = Number.POSITIVE_INFINITY),
|
|
578
|
+
(j.latitude = Number.NEGATIVE_INFINITY),
|
|
579
|
+
(j.longitude = Number.NEGATIVE_INFINITY));
|
|
580
|
+
let g, r;
|
|
581
|
+
if (l === ht.ROUNDED) {
|
|
582
|
+
let n = f[0];
|
|
583
|
+
(o.subtract(n, f[1], K),
|
|
584
|
+
o.normalize(K, K),
|
|
585
|
+
o.multiplyByScalar(K, O, K),
|
|
586
|
+
o.add(n, K, pt),
|
|
587
|
+
e.cartesianToCartographic(pt, Q),
|
|
588
|
+
(g = Q.latitude),
|
|
589
|
+
(r = Q.longitude),
|
|
590
|
+
(W.latitude = Math.min(W.latitude, g)),
|
|
591
|
+
(W.longitude = Math.min(W.longitude, r)),
|
|
592
|
+
(j.latitude = Math.max(j.latitude, g)),
|
|
593
|
+
(j.longitude = Math.max(j.longitude, r)));
|
|
594
|
+
}
|
|
595
|
+
for (let n = 0; n < h - 1; ++n) Rt(f[n], f[n + 1], e, O, W, j);
|
|
596
|
+
let a = f[h - 1];
|
|
597
|
+
(o.subtract(a, f[h - 2], K),
|
|
598
|
+
o.normalize(K, K),
|
|
599
|
+
o.multiplyByScalar(K, O, K),
|
|
600
|
+
o.add(a, K, pt),
|
|
601
|
+
Rt(a, pt, e, O, W, j),
|
|
602
|
+
l === ht.ROUNDED &&
|
|
603
|
+
(e.cartesianToCartographic(pt, Q),
|
|
604
|
+
(g = Q.latitude),
|
|
605
|
+
(r = Q.longitude),
|
|
606
|
+
(W.latitude = Math.min(W.latitude, g)),
|
|
607
|
+
(W.longitude = Math.min(W.longitude, r)),
|
|
608
|
+
(j.latitude = Math.max(j.latitude, g)),
|
|
609
|
+
(j.longitude = Math.max(j.longitude, r))));
|
|
610
|
+
let s = X(d) ? d : new Et();
|
|
611
|
+
return (
|
|
612
|
+
(s.north = j.latitude),
|
|
613
|
+
(s.south = W.latitude),
|
|
614
|
+
(s.east = j.longitude),
|
|
615
|
+
(s.west = W.longitude),
|
|
616
|
+
s
|
|
617
|
+
);
|
|
618
|
+
}
|
|
619
|
+
function et(t) {
|
|
620
|
+
t = B(t, B.EMPTY_OBJECT);
|
|
621
|
+
let e = t.positions,
|
|
622
|
+
i = t.width;
|
|
623
|
+
(it.defined("options.positions", e), it.defined("options.width", i));
|
|
624
|
+
let l = B(t.height, 0),
|
|
625
|
+
d = B(t.extrudedHeight, l);
|
|
626
|
+
((this._positions = e),
|
|
627
|
+
(this._ellipsoid = I.clone(B(t.ellipsoid, I.default))),
|
|
628
|
+
(this._vertexFormat = G.clone(B(t.vertexFormat, G.DEFAULT))),
|
|
629
|
+
(this._width = i),
|
|
630
|
+
(this._height = Math.max(l, d)),
|
|
631
|
+
(this._extrudedHeight = Math.min(l, d)),
|
|
632
|
+
(this._cornerType = B(t.cornerType, ht.ROUNDED)),
|
|
633
|
+
(this._granularity = B(t.granularity, st.RADIANS_PER_DEGREE)),
|
|
634
|
+
(this._shadowVolume = B(t.shadowVolume, !1)),
|
|
635
|
+
(this._workerName = "createCorridorGeometry"),
|
|
636
|
+
(this._offsetAttribute = t.offsetAttribute),
|
|
637
|
+
(this._rectangle = void 0),
|
|
638
|
+
(this.packedLength =
|
|
639
|
+
1 + e.length * o.packedLength + I.packedLength + G.packedLength + 7));
|
|
640
|
+
}
|
|
641
|
+
et.pack = function (t, e, i) {
|
|
642
|
+
(it.defined("value", t), it.defined("array", e), (i = B(i, 0)));
|
|
643
|
+
let l = t._positions,
|
|
644
|
+
d = l.length;
|
|
645
|
+
e[i++] = d;
|
|
646
|
+
for (let f = 0; f < d; ++f, i += o.packedLength) o.pack(l[f], e, i);
|
|
647
|
+
return (
|
|
648
|
+
I.pack(t._ellipsoid, e, i),
|
|
649
|
+
(i += I.packedLength),
|
|
650
|
+
G.pack(t._vertexFormat, e, i),
|
|
651
|
+
(i += G.packedLength),
|
|
652
|
+
(e[i++] = t._width),
|
|
653
|
+
(e[i++] = t._height),
|
|
654
|
+
(e[i++] = t._extrudedHeight),
|
|
655
|
+
(e[i++] = t._cornerType),
|
|
656
|
+
(e[i++] = t._granularity),
|
|
657
|
+
(e[i++] = t._shadowVolume ? 1 : 0),
|
|
658
|
+
(e[i] = B(t._offsetAttribute, -1)),
|
|
659
|
+
e
|
|
660
|
+
);
|
|
661
|
+
};
|
|
662
|
+
var It = I.clone(I.UNIT_SPHERE),
|
|
663
|
+
Wt = new G(),
|
|
664
|
+
tt = {
|
|
665
|
+
positions: void 0,
|
|
666
|
+
ellipsoid: It,
|
|
667
|
+
vertexFormat: Wt,
|
|
668
|
+
width: void 0,
|
|
669
|
+
height: void 0,
|
|
670
|
+
extrudedHeight: void 0,
|
|
671
|
+
cornerType: void 0,
|
|
672
|
+
granularity: void 0,
|
|
673
|
+
shadowVolume: void 0,
|
|
674
|
+
offsetAttribute: void 0,
|
|
675
|
+
};
|
|
676
|
+
et.unpack = function (t, e, i) {
|
|
677
|
+
(it.defined("array", t), (e = B(e, 0)));
|
|
678
|
+
let l = t[e++],
|
|
679
|
+
d = new Array(l);
|
|
680
|
+
for (let u = 0; u < l; ++u, e += o.packedLength) d[u] = o.unpack(t, e);
|
|
681
|
+
let f = I.unpack(t, e, It);
|
|
682
|
+
e += I.packedLength;
|
|
683
|
+
let h = G.unpack(t, e, Wt);
|
|
684
|
+
e += G.packedLength;
|
|
685
|
+
let O = t[e++],
|
|
686
|
+
g = t[e++],
|
|
687
|
+
r = t[e++],
|
|
688
|
+
a = t[e++],
|
|
689
|
+
s = t[e++],
|
|
690
|
+
n = t[e++] === 1,
|
|
691
|
+
A = t[e];
|
|
692
|
+
return X(i)
|
|
693
|
+
? ((i._positions = d),
|
|
694
|
+
(i._ellipsoid = I.clone(f, i._ellipsoid)),
|
|
695
|
+
(i._vertexFormat = G.clone(h, i._vertexFormat)),
|
|
696
|
+
(i._width = O),
|
|
697
|
+
(i._height = g),
|
|
698
|
+
(i._extrudedHeight = r),
|
|
699
|
+
(i._cornerType = a),
|
|
700
|
+
(i._granularity = s),
|
|
701
|
+
(i._shadowVolume = n),
|
|
702
|
+
(i._offsetAttribute = A === -1 ? void 0 : A),
|
|
703
|
+
i)
|
|
704
|
+
: ((tt.positions = d),
|
|
705
|
+
(tt.width = O),
|
|
706
|
+
(tt.height = g),
|
|
707
|
+
(tt.extrudedHeight = r),
|
|
708
|
+
(tt.cornerType = a),
|
|
709
|
+
(tt.granularity = s),
|
|
710
|
+
(tt.shadowVolume = n),
|
|
711
|
+
(tt.offsetAttribute = A === -1 ? void 0 : A),
|
|
712
|
+
new et(tt));
|
|
713
|
+
};
|
|
714
|
+
et.computeRectangle = function (t, e) {
|
|
715
|
+
t = B(t, B.EMPTY_OBJECT);
|
|
716
|
+
let i = t.positions,
|
|
717
|
+
l = t.width;
|
|
718
|
+
(it.defined("options.positions", i), it.defined("options.width", l));
|
|
719
|
+
let d = B(t.ellipsoid, I.default),
|
|
720
|
+
f = B(t.cornerType, ht.ROUNDED);
|
|
721
|
+
return Yt(i, d, l, f, e);
|
|
722
|
+
};
|
|
723
|
+
et.createGeometry = function (t) {
|
|
724
|
+
let e = t._positions,
|
|
725
|
+
i = t._width,
|
|
726
|
+
l = t._ellipsoid;
|
|
727
|
+
e = Ut(e, l);
|
|
728
|
+
let d = Pt(e, o.equalsEpsilon);
|
|
729
|
+
if (d.length < 2 || i <= 0) return;
|
|
730
|
+
let f = t._height,
|
|
731
|
+
h = t._extrudedHeight,
|
|
732
|
+
O = !st.equalsEpsilon(f, h, 0, st.EPSILON2),
|
|
733
|
+
g = t._vertexFormat,
|
|
734
|
+
r = {
|
|
735
|
+
ellipsoid: l,
|
|
736
|
+
positions: d,
|
|
737
|
+
width: i,
|
|
738
|
+
cornerType: t._cornerType,
|
|
739
|
+
granularity: t._granularity,
|
|
740
|
+
saveAttributes: !0,
|
|
741
|
+
},
|
|
742
|
+
a;
|
|
743
|
+
if (O)
|
|
744
|
+
((r.height = f),
|
|
745
|
+
(r.extrudedHeight = h),
|
|
746
|
+
(r.shadowVolume = t._shadowVolume),
|
|
747
|
+
(r.offsetAttribute = t._offsetAttribute),
|
|
748
|
+
(a = Jt(r, g)));
|
|
749
|
+
else {
|
|
750
|
+
let A = M.computePositions(r);
|
|
751
|
+
if (
|
|
752
|
+
((a = Bt(A, g, l)),
|
|
753
|
+
(a.attributes.position.values = yt.scaleToGeodeticHeight(
|
|
754
|
+
a.attributes.position.values,
|
|
755
|
+
f,
|
|
756
|
+
l,
|
|
757
|
+
)),
|
|
758
|
+
X(t._offsetAttribute))
|
|
759
|
+
) {
|
|
760
|
+
let u = t._offsetAttribute === _t.NONE ? 0 : 1,
|
|
761
|
+
b = a.attributes.position.values.length,
|
|
762
|
+
p = new Uint8Array(b / 3).fill(u);
|
|
763
|
+
a.attributes.applyOffset = new x({
|
|
764
|
+
componentDatatype: F.UNSIGNED_BYTE,
|
|
765
|
+
componentsPerAttribute: 1,
|
|
766
|
+
values: p,
|
|
767
|
+
});
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
let s = a.attributes,
|
|
771
|
+
n = St.fromVertices(s.position.values, void 0, 3);
|
|
772
|
+
return (
|
|
773
|
+
g.position || (a.attributes.position.values = void 0),
|
|
774
|
+
new Vt({
|
|
775
|
+
attributes: s,
|
|
776
|
+
indices: a.indices,
|
|
777
|
+
primitiveType: Mt.TRIANGLES,
|
|
778
|
+
boundingSphere: n,
|
|
779
|
+
offsetAttribute: t._offsetAttribute,
|
|
780
|
+
})
|
|
781
|
+
);
|
|
782
|
+
};
|
|
783
|
+
et.createShadowVolume = function (t, e, i) {
|
|
784
|
+
let l = t._granularity,
|
|
785
|
+
d = t._ellipsoid,
|
|
786
|
+
f = e(l, d),
|
|
787
|
+
h = i(l, d);
|
|
788
|
+
return new et({
|
|
789
|
+
positions: t._positions,
|
|
790
|
+
width: t._width,
|
|
791
|
+
cornerType: t._cornerType,
|
|
792
|
+
ellipsoid: d,
|
|
793
|
+
granularity: l,
|
|
794
|
+
extrudedHeight: f,
|
|
795
|
+
height: h,
|
|
796
|
+
vertexFormat: G.POSITION_ONLY,
|
|
797
|
+
shadowVolume: !0,
|
|
798
|
+
});
|
|
799
|
+
};
|
|
800
|
+
Object.defineProperties(et.prototype, {
|
|
801
|
+
rectangle: {
|
|
802
|
+
get: function () {
|
|
803
|
+
return (
|
|
804
|
+
X(this._rectangle) ||
|
|
805
|
+
(this._rectangle = Yt(
|
|
806
|
+
this._positions,
|
|
807
|
+
this._ellipsoid,
|
|
808
|
+
this._width,
|
|
809
|
+
this._cornerType,
|
|
810
|
+
)),
|
|
811
|
+
this._rectangle
|
|
812
|
+
);
|
|
813
|
+
},
|
|
814
|
+
},
|
|
815
|
+
textureCoordinateRotationPoints: {
|
|
816
|
+
get: function () {
|
|
817
|
+
return [0, 0, 0, 1, 1, 0];
|
|
818
|
+
},
|
|
819
|
+
},
|
|
820
|
+
});
|
|
821
|
+
var Lt = et;
|
|
822
|
+
function Gt(t, e) {
|
|
823
|
+
return (
|
|
824
|
+
X(e) && (t = Lt.unpack(t, e)),
|
|
825
|
+
(t._ellipsoid = I.clone(t._ellipsoid)),
|
|
826
|
+
Lt.createGeometry(t)
|
|
827
|
+
);
|
|
828
|
+
}
|
|
829
|
+
var Ae = Gt;
|
|
830
|
+
export { Ae as default };
|