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,359 @@
|
|
|
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 } from "./chunk-HSWA4OEL.js";
|
|
27
|
+
import { a as b } from "./chunk-ATPDRNKI.js";
|
|
28
|
+
import { a as F } from "./chunk-EFZKO5RU.js";
|
|
29
|
+
import { a as V } from "./chunk-QB3MDM4J.js";
|
|
30
|
+
import "./chunk-ABGXSJNX.js";
|
|
31
|
+
import "./chunk-DQO6B4EQ.js";
|
|
32
|
+
import { a as D } from "./chunk-ILGBPNP6.js";
|
|
33
|
+
import { a as W } from "./chunk-KF5NF354.js";
|
|
34
|
+
import "./chunk-4WRMLZA7.js";
|
|
35
|
+
import { a as j, b as k } from "./chunk-O5IJ3OGP.js";
|
|
36
|
+
import "./chunk-RXTBM4OI.js";
|
|
37
|
+
import "./chunk-FYOYUPXG.js";
|
|
38
|
+
import "./chunk-TAMCUKAR.js";
|
|
39
|
+
import "./chunk-PDMQLSBL.js";
|
|
40
|
+
import { a as M } from "./chunk-P37AI2DW.js";
|
|
41
|
+
import { a as G } from "./chunk-T6BE4RZK.js";
|
|
42
|
+
import { b as B, c as C, d as v } from "./chunk-X5IHHI6X.js";
|
|
43
|
+
import { d as z } from "./chunk-TMSETF7M.js";
|
|
44
|
+
import "./chunk-7Z5IIKOJ.js";
|
|
45
|
+
import { a as w } from "./chunk-KZNJOCYU.js";
|
|
46
|
+
import { a as S, d as y } from "./chunk-POASMU2N.js";
|
|
47
|
+
import { a as T } from "./chunk-R6KGAEF6.js";
|
|
48
|
+
import "./chunk-3C7WC463.js";
|
|
49
|
+
import "./chunk-II4VNKYR.js";
|
|
50
|
+
import { a as P } from "./chunk-IUA6FAOZ.js";
|
|
51
|
+
import { a as U, b as A } from "./chunk-UH2WFNTA.js";
|
|
52
|
+
import { e as O } from "./chunk-PEYJTJPE.js";
|
|
53
|
+
var Y = [],
|
|
54
|
+
R = [];
|
|
55
|
+
function K(e, t, r, H, l) {
|
|
56
|
+
let p = W.fromPoints(t, e).projectPointsOntoPlane(t, Y);
|
|
57
|
+
k.computeWindingOrder2D(p) === j.CLOCKWISE &&
|
|
58
|
+
(p.reverse(), (t = t.slice().reverse()));
|
|
59
|
+
let n,
|
|
60
|
+
i,
|
|
61
|
+
o = t.length,
|
|
62
|
+
c = 0;
|
|
63
|
+
if (H)
|
|
64
|
+
for (n = new Float64Array(o * 2 * 3), i = 0; i < o; i++) {
|
|
65
|
+
let u = t[i],
|
|
66
|
+
h = t[(i + 1) % o];
|
|
67
|
+
((n[c++] = u.x),
|
|
68
|
+
(n[c++] = u.y),
|
|
69
|
+
(n[c++] = u.z),
|
|
70
|
+
(n[c++] = h.x),
|
|
71
|
+
(n[c++] = h.y),
|
|
72
|
+
(n[c++] = h.z));
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
let u = 0;
|
|
76
|
+
if (l === b.GEODESIC)
|
|
77
|
+
for (i = 0; i < o; i++)
|
|
78
|
+
u += a.subdivideLineCount(t[i], t[(i + 1) % o], r);
|
|
79
|
+
else if (l === b.RHUMB)
|
|
80
|
+
for (i = 0; i < o; i++)
|
|
81
|
+
u += a.subdivideRhumbLineCount(e, t[i], t[(i + 1) % o], r);
|
|
82
|
+
for (n = new Float64Array(u * 3), i = 0; i < o; i++) {
|
|
83
|
+
let h;
|
|
84
|
+
l === b.GEODESIC
|
|
85
|
+
? (h = a.subdivideLine(t[i], t[(i + 1) % o], r, R))
|
|
86
|
+
: l === b.RHUMB &&
|
|
87
|
+
(h = a.subdivideRhumbLine(e, t[i], t[(i + 1) % o], r, R));
|
|
88
|
+
let g = h.length;
|
|
89
|
+
for (let d = 0; d < g; ++d) n[c++] = h[d];
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
o = n.length / 3;
|
|
93
|
+
let f = o * 2,
|
|
94
|
+
m = M.createTypedArray(o, f);
|
|
95
|
+
for (c = 0, i = 0; i < o - 1; i++) ((m[c++] = i), (m[c++] = i + 1));
|
|
96
|
+
return (
|
|
97
|
+
(m[c++] = o - 1),
|
|
98
|
+
(m[c++] = 0),
|
|
99
|
+
new F({
|
|
100
|
+
geometry: new C({
|
|
101
|
+
attributes: new G({
|
|
102
|
+
position: new v({
|
|
103
|
+
componentDatatype: w.DOUBLE,
|
|
104
|
+
componentsPerAttribute: 3,
|
|
105
|
+
values: n,
|
|
106
|
+
}),
|
|
107
|
+
}),
|
|
108
|
+
indices: m,
|
|
109
|
+
primitiveType: B.LINES,
|
|
110
|
+
}),
|
|
111
|
+
})
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
function q(e, t, r, H, l) {
|
|
115
|
+
let p = W.fromPoints(t, e).projectPointsOntoPlane(t, Y);
|
|
116
|
+
k.computeWindingOrder2D(p) === j.CLOCKWISE &&
|
|
117
|
+
(p.reverse(), (t = t.slice().reverse()));
|
|
118
|
+
let n,
|
|
119
|
+
i,
|
|
120
|
+
o = t.length,
|
|
121
|
+
c = new Array(o),
|
|
122
|
+
f = 0;
|
|
123
|
+
if (H)
|
|
124
|
+
for (n = new Float64Array(o * 2 * 3 * 2), i = 0; i < o; ++i) {
|
|
125
|
+
c[i] = f / 3;
|
|
126
|
+
let g = t[i],
|
|
127
|
+
d = t[(i + 1) % o];
|
|
128
|
+
((n[f++] = g.x),
|
|
129
|
+
(n[f++] = g.y),
|
|
130
|
+
(n[f++] = g.z),
|
|
131
|
+
(n[f++] = d.x),
|
|
132
|
+
(n[f++] = d.y),
|
|
133
|
+
(n[f++] = d.z));
|
|
134
|
+
}
|
|
135
|
+
else {
|
|
136
|
+
let g = 0;
|
|
137
|
+
if (l === b.GEODESIC)
|
|
138
|
+
for (i = 0; i < o; i++)
|
|
139
|
+
g += a.subdivideLineCount(t[i], t[(i + 1) % o], r);
|
|
140
|
+
else if (l === b.RHUMB)
|
|
141
|
+
for (i = 0; i < o; i++)
|
|
142
|
+
g += a.subdivideRhumbLineCount(e, t[i], t[(i + 1) % o], r);
|
|
143
|
+
for (n = new Float64Array(g * 3 * 2), i = 0; i < o; ++i) {
|
|
144
|
+
c[i] = f / 3;
|
|
145
|
+
let d;
|
|
146
|
+
l === b.GEODESIC
|
|
147
|
+
? (d = a.subdivideLine(t[i], t[(i + 1) % o], r, R))
|
|
148
|
+
: l === b.RHUMB &&
|
|
149
|
+
(d = a.subdivideRhumbLine(e, t[i], t[(i + 1) % o], r, R));
|
|
150
|
+
let E = d.length;
|
|
151
|
+
for (let N = 0; N < E; ++N) n[f++] = d[N];
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
o = n.length / (3 * 2);
|
|
155
|
+
let m = c.length,
|
|
156
|
+
u = (o * 2 + m) * 2,
|
|
157
|
+
h = M.createTypedArray(o + m, u);
|
|
158
|
+
for (f = 0, i = 0; i < o; ++i)
|
|
159
|
+
((h[f++] = i),
|
|
160
|
+
(h[f++] = (i + 1) % o),
|
|
161
|
+
(h[f++] = i + o),
|
|
162
|
+
(h[f++] = ((i + 1) % o) + o));
|
|
163
|
+
for (i = 0; i < m; i++) {
|
|
164
|
+
let g = c[i];
|
|
165
|
+
((h[f++] = g), (h[f++] = g + o));
|
|
166
|
+
}
|
|
167
|
+
return new F({
|
|
168
|
+
geometry: new C({
|
|
169
|
+
attributes: new G({
|
|
170
|
+
position: new v({
|
|
171
|
+
componentDatatype: w.DOUBLE,
|
|
172
|
+
componentsPerAttribute: 3,
|
|
173
|
+
values: n,
|
|
174
|
+
}),
|
|
175
|
+
}),
|
|
176
|
+
indices: h,
|
|
177
|
+
primitiveType: B.LINES,
|
|
178
|
+
}),
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
function L(e) {
|
|
182
|
+
if (
|
|
183
|
+
(A.typeOf.object("options", e),
|
|
184
|
+
A.typeOf.object("options.polygonHierarchy", e.polygonHierarchy),
|
|
185
|
+
e.perPositionHeight && O(e.height))
|
|
186
|
+
)
|
|
187
|
+
throw new U("Cannot use both options.perPositionHeight and options.height");
|
|
188
|
+
if (O(e.arcType) && e.arcType !== b.GEODESIC && e.arcType !== b.RHUMB)
|
|
189
|
+
throw new U(
|
|
190
|
+
"Invalid arcType. Valid options are ArcType.GEODESIC and ArcType.RHUMB.",
|
|
191
|
+
);
|
|
192
|
+
let t = e.polygonHierarchy,
|
|
193
|
+
r = P(e.ellipsoid, y.default),
|
|
194
|
+
H = P(e.granularity, T.RADIANS_PER_DEGREE),
|
|
195
|
+
l = P(e.perPositionHeight, !1),
|
|
196
|
+
_ = l && O(e.extrudedHeight),
|
|
197
|
+
p = P(e.arcType, b.GEODESIC),
|
|
198
|
+
s = P(e.height, 0),
|
|
199
|
+
n = P(e.extrudedHeight, s);
|
|
200
|
+
if (!_) {
|
|
201
|
+
let i = Math.max(s, n);
|
|
202
|
+
((n = Math.min(s, n)), (s = i));
|
|
203
|
+
}
|
|
204
|
+
((this._ellipsoid = y.clone(r)),
|
|
205
|
+
(this._granularity = H),
|
|
206
|
+
(this._height = s),
|
|
207
|
+
(this._extrudedHeight = n),
|
|
208
|
+
(this._arcType = p),
|
|
209
|
+
(this._polygonHierarchy = t),
|
|
210
|
+
(this._perPositionHeight = l),
|
|
211
|
+
(this._perPositionHeightExtrude = _),
|
|
212
|
+
(this._offsetAttribute = e.offsetAttribute),
|
|
213
|
+
(this._workerName = "createPolygonOutlineGeometry"),
|
|
214
|
+
(this.packedLength =
|
|
215
|
+
a.computeHierarchyPackedLength(t, S) + y.packedLength + 8));
|
|
216
|
+
}
|
|
217
|
+
L.pack = function (e, t, r) {
|
|
218
|
+
return (
|
|
219
|
+
A.typeOf.object("value", e),
|
|
220
|
+
A.defined("array", t),
|
|
221
|
+
(r = P(r, 0)),
|
|
222
|
+
(r = a.packPolygonHierarchy(e._polygonHierarchy, t, r, S)),
|
|
223
|
+
y.pack(e._ellipsoid, t, r),
|
|
224
|
+
(r += y.packedLength),
|
|
225
|
+
(t[r++] = e._height),
|
|
226
|
+
(t[r++] = e._extrudedHeight),
|
|
227
|
+
(t[r++] = e._granularity),
|
|
228
|
+
(t[r++] = e._perPositionHeightExtrude ? 1 : 0),
|
|
229
|
+
(t[r++] = e._perPositionHeight ? 1 : 0),
|
|
230
|
+
(t[r++] = e._arcType),
|
|
231
|
+
(t[r++] = P(e._offsetAttribute, -1)),
|
|
232
|
+
(t[r] = e.packedLength),
|
|
233
|
+
t
|
|
234
|
+
);
|
|
235
|
+
};
|
|
236
|
+
var J = y.clone(y.UNIT_SPHERE),
|
|
237
|
+
Q = { polygonHierarchy: {} };
|
|
238
|
+
L.unpack = function (e, t, r) {
|
|
239
|
+
(A.defined("array", e), (t = P(t, 0)));
|
|
240
|
+
let H = a.unpackPolygonHierarchy(e, t, S);
|
|
241
|
+
((t = H.startingIndex), delete H.startingIndex);
|
|
242
|
+
let l = y.unpack(e, t, J);
|
|
243
|
+
t += y.packedLength;
|
|
244
|
+
let _ = e[t++],
|
|
245
|
+
p = e[t++],
|
|
246
|
+
s = e[t++],
|
|
247
|
+
n = e[t++] === 1,
|
|
248
|
+
i = e[t++] === 1,
|
|
249
|
+
o = e[t++],
|
|
250
|
+
c = e[t++],
|
|
251
|
+
f = e[t];
|
|
252
|
+
return (
|
|
253
|
+
O(r) || (r = new L(Q)),
|
|
254
|
+
(r._polygonHierarchy = H),
|
|
255
|
+
(r._ellipsoid = y.clone(l, r._ellipsoid)),
|
|
256
|
+
(r._height = _),
|
|
257
|
+
(r._extrudedHeight = p),
|
|
258
|
+
(r._granularity = s),
|
|
259
|
+
(r._perPositionHeight = i),
|
|
260
|
+
(r._perPositionHeightExtrude = n),
|
|
261
|
+
(r._arcType = o),
|
|
262
|
+
(r._offsetAttribute = c === -1 ? void 0 : c),
|
|
263
|
+
(r.packedLength = f),
|
|
264
|
+
r
|
|
265
|
+
);
|
|
266
|
+
};
|
|
267
|
+
L.fromPositions = function (e) {
|
|
268
|
+
((e = P(e, P.EMPTY_OBJECT)), A.defined("options.positions", e.positions));
|
|
269
|
+
let t = {
|
|
270
|
+
polygonHierarchy: { positions: e.positions },
|
|
271
|
+
height: e.height,
|
|
272
|
+
extrudedHeight: e.extrudedHeight,
|
|
273
|
+
ellipsoid: e.ellipsoid,
|
|
274
|
+
granularity: e.granularity,
|
|
275
|
+
perPositionHeight: e.perPositionHeight,
|
|
276
|
+
arcType: e.arcType,
|
|
277
|
+
offsetAttribute: e.offsetAttribute,
|
|
278
|
+
};
|
|
279
|
+
return new L(t);
|
|
280
|
+
};
|
|
281
|
+
L.createGeometry = function (e) {
|
|
282
|
+
let t = e._ellipsoid,
|
|
283
|
+
r = e._granularity,
|
|
284
|
+
H = e._polygonHierarchy,
|
|
285
|
+
l = e._perPositionHeight,
|
|
286
|
+
_ = e._arcType,
|
|
287
|
+
p = a.polygonOutlinesFromHierarchy(H, !l, t);
|
|
288
|
+
if (p.length === 0) return;
|
|
289
|
+
let s,
|
|
290
|
+
n = [],
|
|
291
|
+
i = T.chordLength(r, t.maximumRadius),
|
|
292
|
+
o = e._height,
|
|
293
|
+
c = e._extrudedHeight,
|
|
294
|
+
f = e._perPositionHeightExtrude || !T.equalsEpsilon(o, c, 0, T.EPSILON2),
|
|
295
|
+
m,
|
|
296
|
+
u;
|
|
297
|
+
if (f)
|
|
298
|
+
for (u = 0; u < p.length; u++) {
|
|
299
|
+
if (
|
|
300
|
+
((s = q(t, p[u], i, l, _)),
|
|
301
|
+
(s.geometry = a.scaleToGeodeticHeightExtruded(s.geometry, o, c, t, l)),
|
|
302
|
+
O(e._offsetAttribute))
|
|
303
|
+
) {
|
|
304
|
+
let d = s.geometry.attributes.position.values.length / 3,
|
|
305
|
+
E = new Uint8Array(d);
|
|
306
|
+
(e._offsetAttribute === D.TOP
|
|
307
|
+
? (E = E.fill(1, 0, d / 2))
|
|
308
|
+
: ((m = e._offsetAttribute === D.NONE ? 0 : 1), (E = E.fill(m))),
|
|
309
|
+
(s.geometry.attributes.applyOffset = new v({
|
|
310
|
+
componentDatatype: w.UNSIGNED_BYTE,
|
|
311
|
+
componentsPerAttribute: 1,
|
|
312
|
+
values: E,
|
|
313
|
+
})));
|
|
314
|
+
}
|
|
315
|
+
n.push(s);
|
|
316
|
+
}
|
|
317
|
+
else
|
|
318
|
+
for (u = 0; u < p.length; u++) {
|
|
319
|
+
if (
|
|
320
|
+
((s = K(t, p[u], i, l, _)),
|
|
321
|
+
(s.geometry.attributes.position.values = k.scaleToGeodeticHeight(
|
|
322
|
+
s.geometry.attributes.position.values,
|
|
323
|
+
o,
|
|
324
|
+
t,
|
|
325
|
+
!l,
|
|
326
|
+
)),
|
|
327
|
+
O(e._offsetAttribute))
|
|
328
|
+
) {
|
|
329
|
+
let d = s.geometry.attributes.position.values.length;
|
|
330
|
+
m = e._offsetAttribute === D.NONE ? 0 : 1;
|
|
331
|
+
let E = new Uint8Array(d / 3).fill(m);
|
|
332
|
+
s.geometry.attributes.applyOffset = new v({
|
|
333
|
+
componentDatatype: w.UNSIGNED_BYTE,
|
|
334
|
+
componentsPerAttribute: 1,
|
|
335
|
+
values: E,
|
|
336
|
+
});
|
|
337
|
+
}
|
|
338
|
+
n.push(s);
|
|
339
|
+
}
|
|
340
|
+
let h = V.combineInstances(n)[0],
|
|
341
|
+
g = z.fromVertices(h.attributes.position.values);
|
|
342
|
+
return new C({
|
|
343
|
+
attributes: h.attributes,
|
|
344
|
+
indices: h.indices,
|
|
345
|
+
primitiveType: h.primitiveType,
|
|
346
|
+
boundingSphere: g,
|
|
347
|
+
offsetAttribute: e._offsetAttribute,
|
|
348
|
+
});
|
|
349
|
+
};
|
|
350
|
+
var x = L;
|
|
351
|
+
function X(e, t) {
|
|
352
|
+
return (
|
|
353
|
+
O(t) && (e = x.unpack(e, t)),
|
|
354
|
+
(e._ellipsoid = y.clone(e._ellipsoid)),
|
|
355
|
+
x.createGeometry(e)
|
|
356
|
+
);
|
|
357
|
+
}
|
|
358
|
+
var Oe = X;
|
|
359
|
+
export { Oe as default };
|
|
@@ -0,0 +1,349 @@
|
|
|
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-V7JEDBOE.js";
|
|
27
|
+
import { a as N } from "./chunk-ATPDRNKI.js";
|
|
28
|
+
import { a as U } from "./chunk-AMQUWUD4.js";
|
|
29
|
+
import "./chunk-W23CU777.js";
|
|
30
|
+
import { a as k } from "./chunk-HEEMUCG6.js";
|
|
31
|
+
import { a as le } from "./chunk-RXTBM4OI.js";
|
|
32
|
+
import "./chunk-FYOYUPXG.js";
|
|
33
|
+
import "./chunk-TAMCUKAR.js";
|
|
34
|
+
import "./chunk-PDMQLSBL.js";
|
|
35
|
+
import { a as se } from "./chunk-P37AI2DW.js";
|
|
36
|
+
import { a as ce } from "./chunk-T6BE4RZK.js";
|
|
37
|
+
import { a as ne, b as re, c as ie, d as O } from "./chunk-X5IHHI6X.js";
|
|
38
|
+
import { d as oe } from "./chunk-TMSETF7M.js";
|
|
39
|
+
import "./chunk-7Z5IIKOJ.js";
|
|
40
|
+
import { a as x } from "./chunk-KZNJOCYU.js";
|
|
41
|
+
import { a as p, d as u } from "./chunk-POASMU2N.js";
|
|
42
|
+
import { a as J } from "./chunk-R6KGAEF6.js";
|
|
43
|
+
import "./chunk-3C7WC463.js";
|
|
44
|
+
import "./chunk-II4VNKYR.js";
|
|
45
|
+
import { a as A } from "./chunk-IUA6FAOZ.js";
|
|
46
|
+
import { a as V } from "./chunk-UH2WFNTA.js";
|
|
47
|
+
import { e as h } from "./chunk-PEYJTJPE.js";
|
|
48
|
+
var me = [];
|
|
49
|
+
function Ae(e, o, t, n, c) {
|
|
50
|
+
let s = me;
|
|
51
|
+
s.length = c;
|
|
52
|
+
let l,
|
|
53
|
+
E = t.red,
|
|
54
|
+
a = t.green,
|
|
55
|
+
r = t.blue,
|
|
56
|
+
w = t.alpha,
|
|
57
|
+
b = n.red,
|
|
58
|
+
i = n.green,
|
|
59
|
+
f = n.blue,
|
|
60
|
+
L = n.alpha;
|
|
61
|
+
if (m.equals(t, n)) {
|
|
62
|
+
for (l = 0; l < c; l++) s[l] = m.clone(t);
|
|
63
|
+
return s;
|
|
64
|
+
}
|
|
65
|
+
let M = (b - E) / c,
|
|
66
|
+
z = (i - a) / c,
|
|
67
|
+
H = (f - r) / c,
|
|
68
|
+
B = (L - w) / c;
|
|
69
|
+
for (l = 0; l < c; l++)
|
|
70
|
+
s[l] = new m(E + l * M, a + l * z, r + l * H, w + l * B);
|
|
71
|
+
return s;
|
|
72
|
+
}
|
|
73
|
+
function G(e) {
|
|
74
|
+
e = A(e, A.EMPTY_OBJECT);
|
|
75
|
+
let o = e.positions,
|
|
76
|
+
t = e.colors,
|
|
77
|
+
n = A(e.width, 1),
|
|
78
|
+
c = A(e.colorsPerVertex, !1);
|
|
79
|
+
if (!h(o) || o.length < 2)
|
|
80
|
+
throw new V("At least two positions are required.");
|
|
81
|
+
if (typeof n != "number") throw new V("width must be a number");
|
|
82
|
+
if (h(t) && ((c && t.length < o.length) || (!c && t.length < o.length - 1)))
|
|
83
|
+
throw new V("colors has an invalid length.");
|
|
84
|
+
((this._positions = o),
|
|
85
|
+
(this._colors = t),
|
|
86
|
+
(this._width = n),
|
|
87
|
+
(this._colorsPerVertex = c),
|
|
88
|
+
(this._vertexFormat = k.clone(A(e.vertexFormat, k.DEFAULT))),
|
|
89
|
+
(this._arcType = A(e.arcType, N.GEODESIC)),
|
|
90
|
+
(this._granularity = A(e.granularity, J.RADIANS_PER_DEGREE)),
|
|
91
|
+
(this._ellipsoid = u.clone(A(e.ellipsoid, u.default))),
|
|
92
|
+
(this._workerName = "createPolylineGeometry"));
|
|
93
|
+
let s = 1 + o.length * p.packedLength;
|
|
94
|
+
((s += h(t) ? 1 + t.length * m.packedLength : 1),
|
|
95
|
+
(this.packedLength = s + u.packedLength + k.packedLength + 4));
|
|
96
|
+
}
|
|
97
|
+
G.pack = function (e, o, t) {
|
|
98
|
+
if (!h(e)) throw new V("value is required");
|
|
99
|
+
if (!h(o)) throw new V("array is required");
|
|
100
|
+
t = A(t, 0);
|
|
101
|
+
let n,
|
|
102
|
+
c = e._positions,
|
|
103
|
+
s = c.length;
|
|
104
|
+
for (o[t++] = s, n = 0; n < s; ++n, t += p.packedLength) p.pack(c[n], o, t);
|
|
105
|
+
let l = e._colors;
|
|
106
|
+
for (
|
|
107
|
+
s = h(l) ? l.length : 0, o[t++] = s, n = 0;
|
|
108
|
+
n < s;
|
|
109
|
+
++n, t += m.packedLength
|
|
110
|
+
)
|
|
111
|
+
m.pack(l[n], o, t);
|
|
112
|
+
return (
|
|
113
|
+
u.pack(e._ellipsoid, o, t),
|
|
114
|
+
(t += u.packedLength),
|
|
115
|
+
k.pack(e._vertexFormat, o, t),
|
|
116
|
+
(t += k.packedLength),
|
|
117
|
+
(o[t++] = e._width),
|
|
118
|
+
(o[t++] = e._colorsPerVertex ? 1 : 0),
|
|
119
|
+
(o[t++] = e._arcType),
|
|
120
|
+
(o[t] = e._granularity),
|
|
121
|
+
o
|
|
122
|
+
);
|
|
123
|
+
};
|
|
124
|
+
var de = u.clone(u.UNIT_SPHERE),
|
|
125
|
+
ue = new k(),
|
|
126
|
+
S = {
|
|
127
|
+
positions: void 0,
|
|
128
|
+
colors: void 0,
|
|
129
|
+
ellipsoid: de,
|
|
130
|
+
vertexFormat: ue,
|
|
131
|
+
width: void 0,
|
|
132
|
+
colorsPerVertex: void 0,
|
|
133
|
+
arcType: void 0,
|
|
134
|
+
granularity: void 0,
|
|
135
|
+
};
|
|
136
|
+
G.unpack = function (e, o, t) {
|
|
137
|
+
if (!h(e)) throw new V("array is required");
|
|
138
|
+
o = A(o, 0);
|
|
139
|
+
let n,
|
|
140
|
+
c = e[o++],
|
|
141
|
+
s = new Array(c);
|
|
142
|
+
for (n = 0; n < c; ++n, o += p.packedLength) s[n] = p.unpack(e, o);
|
|
143
|
+
c = e[o++];
|
|
144
|
+
let l = c > 0 ? new Array(c) : void 0;
|
|
145
|
+
for (n = 0; n < c; ++n, o += m.packedLength) l[n] = m.unpack(e, o);
|
|
146
|
+
let E = u.unpack(e, o, de);
|
|
147
|
+
o += u.packedLength;
|
|
148
|
+
let a = k.unpack(e, o, ue);
|
|
149
|
+
o += k.packedLength;
|
|
150
|
+
let r = e[o++],
|
|
151
|
+
w = e[o++] === 1,
|
|
152
|
+
b = e[o++],
|
|
153
|
+
i = e[o];
|
|
154
|
+
return h(t)
|
|
155
|
+
? ((t._positions = s),
|
|
156
|
+
(t._colors = l),
|
|
157
|
+
(t._ellipsoid = u.clone(E, t._ellipsoid)),
|
|
158
|
+
(t._vertexFormat = k.clone(a, t._vertexFormat)),
|
|
159
|
+
(t._width = r),
|
|
160
|
+
(t._colorsPerVertex = w),
|
|
161
|
+
(t._arcType = b),
|
|
162
|
+
(t._granularity = i),
|
|
163
|
+
t)
|
|
164
|
+
: ((S.positions = s),
|
|
165
|
+
(S.colors = l),
|
|
166
|
+
(S.width = r),
|
|
167
|
+
(S.colorsPerVertex = w),
|
|
168
|
+
(S.arcType = b),
|
|
169
|
+
(S.granularity = i),
|
|
170
|
+
new G(S));
|
|
171
|
+
};
|
|
172
|
+
var pe = new p(),
|
|
173
|
+
ae = new p(),
|
|
174
|
+
fe = new p(),
|
|
175
|
+
he = new p();
|
|
176
|
+
G.createGeometry = function (e) {
|
|
177
|
+
let o = e._width,
|
|
178
|
+
t = e._vertexFormat,
|
|
179
|
+
n = e._colors,
|
|
180
|
+
c = e._colorsPerVertex,
|
|
181
|
+
s = e._arcType,
|
|
182
|
+
l = e._granularity,
|
|
183
|
+
E = e._ellipsoid,
|
|
184
|
+
a,
|
|
185
|
+
r,
|
|
186
|
+
w,
|
|
187
|
+
b = [],
|
|
188
|
+
i = le(e._positions, p.equalsEpsilon, !1, b);
|
|
189
|
+
if (h(n) && b.length > 0) {
|
|
190
|
+
let d = 0,
|
|
191
|
+
P = b[0];
|
|
192
|
+
n = n.filter(function (q, T) {
|
|
193
|
+
let g = !1;
|
|
194
|
+
return (
|
|
195
|
+
c ? (g = T === P || (T === 0 && P === 1)) : (g = T + 1 === P),
|
|
196
|
+
g ? (d++, (P = b[d]), !1) : !0
|
|
197
|
+
);
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
let f = i.length;
|
|
201
|
+
if (f < 2 || o <= 0) return;
|
|
202
|
+
if (s === N.GEODESIC || s === N.RHUMB) {
|
|
203
|
+
let d, P;
|
|
204
|
+
s === N.GEODESIC
|
|
205
|
+
? ((d = J.chordLength(l, E.maximumRadius)), (P = U.numberOfPoints))
|
|
206
|
+
: ((d = l), (P = U.numberOfPointsRhumbLine));
|
|
207
|
+
let q = U.extractHeights(i, E);
|
|
208
|
+
if (h(n)) {
|
|
209
|
+
let T = 1;
|
|
210
|
+
for (a = 0; a < f - 1; ++a) T += P(i[a], i[a + 1], d);
|
|
211
|
+
let g = new Array(T),
|
|
212
|
+
D = 0;
|
|
213
|
+
for (a = 0; a < f - 1; ++a) {
|
|
214
|
+
let Z = i[a],
|
|
215
|
+
$ = i[a + 1],
|
|
216
|
+
I = n[a],
|
|
217
|
+
ee = P(Z, $, d);
|
|
218
|
+
if (c && a < T) {
|
|
219
|
+
let _e = n[a + 1],
|
|
220
|
+
te = Ae(Z, $, I, _e, ee),
|
|
221
|
+
Pe = te.length;
|
|
222
|
+
for (r = 0; r < Pe; ++r) g[D++] = te[r];
|
|
223
|
+
} else for (r = 0; r < ee; ++r) g[D++] = m.clone(I);
|
|
224
|
+
}
|
|
225
|
+
((g[D] = m.clone(n[n.length - 1])), (n = g), (me.length = 0));
|
|
226
|
+
}
|
|
227
|
+
s === N.GEODESIC
|
|
228
|
+
? (i = U.generateCartesianArc({
|
|
229
|
+
positions: i,
|
|
230
|
+
minDistance: d,
|
|
231
|
+
ellipsoid: E,
|
|
232
|
+
height: q,
|
|
233
|
+
}))
|
|
234
|
+
: (i = U.generateCartesianRhumbArc({
|
|
235
|
+
positions: i,
|
|
236
|
+
granularity: d,
|
|
237
|
+
ellipsoid: E,
|
|
238
|
+
height: q,
|
|
239
|
+
}));
|
|
240
|
+
}
|
|
241
|
+
f = i.length;
|
|
242
|
+
let L = f * 4 - 4,
|
|
243
|
+
M = new Float64Array(L * 3),
|
|
244
|
+
z = new Float64Array(L * 3),
|
|
245
|
+
H = new Float64Array(L * 3),
|
|
246
|
+
B = new Float32Array(L * 2),
|
|
247
|
+
K = t.st ? new Float32Array(L * 2) : void 0,
|
|
248
|
+
y = h(n) ? new Uint8Array(L * 4) : void 0,
|
|
249
|
+
W = 0,
|
|
250
|
+
j = 0,
|
|
251
|
+
X = 0,
|
|
252
|
+
Y = 0,
|
|
253
|
+
_;
|
|
254
|
+
for (r = 0; r < f; ++r) {
|
|
255
|
+
(r === 0
|
|
256
|
+
? ((_ = pe), p.subtract(i[0], i[1], _), p.add(i[0], _, _))
|
|
257
|
+
: (_ = i[r - 1]),
|
|
258
|
+
p.clone(_, fe),
|
|
259
|
+
p.clone(i[r], ae),
|
|
260
|
+
r === f - 1
|
|
261
|
+
? ((_ = pe), p.subtract(i[f - 1], i[f - 2], _), p.add(i[f - 1], _, _))
|
|
262
|
+
: (_ = i[r + 1]),
|
|
263
|
+
p.clone(_, he));
|
|
264
|
+
let d, P;
|
|
265
|
+
h(y) &&
|
|
266
|
+
(r !== 0 && !c ? (d = n[r - 1]) : (d = n[r]), r !== f - 1 && (P = n[r]));
|
|
267
|
+
let q = r === 0 ? 2 : 0,
|
|
268
|
+
T = r === f - 1 ? 2 : 4;
|
|
269
|
+
for (w = q; w < T; ++w) {
|
|
270
|
+
(p.pack(ae, M, W), p.pack(fe, z, W), p.pack(he, H, W), (W += 3));
|
|
271
|
+
let g = w - 2 < 0 ? -1 : 1;
|
|
272
|
+
if (
|
|
273
|
+
((B[j++] = 2 * (w % 2) - 1),
|
|
274
|
+
(B[j++] = g * o),
|
|
275
|
+
t.st && ((K[X++] = r / (f - 1)), (K[X++] = Math.max(B[j - 2], 0))),
|
|
276
|
+
h(y))
|
|
277
|
+
) {
|
|
278
|
+
let D = w < 2 ? d : P;
|
|
279
|
+
((y[Y++] = m.floatToByte(D.red)),
|
|
280
|
+
(y[Y++] = m.floatToByte(D.green)),
|
|
281
|
+
(y[Y++] = m.floatToByte(D.blue)),
|
|
282
|
+
(y[Y++] = m.floatToByte(D.alpha)));
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
let v = new ce();
|
|
287
|
+
((v.position = new O({
|
|
288
|
+
componentDatatype: x.DOUBLE,
|
|
289
|
+
componentsPerAttribute: 3,
|
|
290
|
+
values: M,
|
|
291
|
+
})),
|
|
292
|
+
(v.prevPosition = new O({
|
|
293
|
+
componentDatatype: x.DOUBLE,
|
|
294
|
+
componentsPerAttribute: 3,
|
|
295
|
+
values: z,
|
|
296
|
+
})),
|
|
297
|
+
(v.nextPosition = new O({
|
|
298
|
+
componentDatatype: x.DOUBLE,
|
|
299
|
+
componentsPerAttribute: 3,
|
|
300
|
+
values: H,
|
|
301
|
+
})),
|
|
302
|
+
(v.expandAndWidth = new O({
|
|
303
|
+
componentDatatype: x.FLOAT,
|
|
304
|
+
componentsPerAttribute: 2,
|
|
305
|
+
values: B,
|
|
306
|
+
})),
|
|
307
|
+
t.st &&
|
|
308
|
+
(v.st = new O({
|
|
309
|
+
componentDatatype: x.FLOAT,
|
|
310
|
+
componentsPerAttribute: 2,
|
|
311
|
+
values: K,
|
|
312
|
+
})),
|
|
313
|
+
h(y) &&
|
|
314
|
+
(v.color = new O({
|
|
315
|
+
componentDatatype: x.UNSIGNED_BYTE,
|
|
316
|
+
componentsPerAttribute: 4,
|
|
317
|
+
values: y,
|
|
318
|
+
normalize: !0,
|
|
319
|
+
})));
|
|
320
|
+
let C = se.createTypedArray(L, f * 6 - 6),
|
|
321
|
+
F = 0,
|
|
322
|
+
R = 0,
|
|
323
|
+
we = f - 1;
|
|
324
|
+
for (r = 0; r < we; ++r)
|
|
325
|
+
((C[R++] = F),
|
|
326
|
+
(C[R++] = F + 2),
|
|
327
|
+
(C[R++] = F + 1),
|
|
328
|
+
(C[R++] = F + 1),
|
|
329
|
+
(C[R++] = F + 2),
|
|
330
|
+
(C[R++] = F + 3),
|
|
331
|
+
(F += 4));
|
|
332
|
+
return new ie({
|
|
333
|
+
attributes: v,
|
|
334
|
+
indices: C,
|
|
335
|
+
primitiveType: re.TRIANGLES,
|
|
336
|
+
boundingSphere: oe.fromPoints(i),
|
|
337
|
+
geometryType: ne.POLYLINES,
|
|
338
|
+
});
|
|
339
|
+
};
|
|
340
|
+
var Q = G;
|
|
341
|
+
function ge(e, o) {
|
|
342
|
+
return (
|
|
343
|
+
h(o) && (e = Q.unpack(e, o)),
|
|
344
|
+
(e._ellipsoid = u.clone(e._ellipsoid)),
|
|
345
|
+
Q.createGeometry(e)
|
|
346
|
+
);
|
|
347
|
+
}
|
|
348
|
+
var We = ge;
|
|
349
|
+
export { We as default };
|