create-swdg-frontend 0.1.7 → 0.2.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 +31 -13
- package/bin/index.js +3 -244
- package/lib/argv.js +43 -0
- package/lib/cli.js +141 -0
- package/lib/constants.js +24 -0
- package/lib/gis.js +92 -0
- package/lib/manifest.js +23 -0
- package/lib/prompts.js +55 -0
- package/lib/scaffold.js +118 -0
- package/package.json +6 -2
- package/scripts/sync-template.js +120 -0
- package/scripts/validate-template.mjs +74 -0
- package/stubs/tsconfig.node.json +11 -0
- package/stubs/types-env.d.ts +9 -0
- package/stubs/vite.config.ts +64 -0
- package/template/.env.example +6 -0
- package/template/.github/workflows/ci.yml +23 -0
- package/template/.github/workflows/release.yml +69 -0
- package/template/.stylelintrc.json +7 -1
- package/template/README.md +95 -32
- package/template/auto-imports.d.ts +10 -0
- package/template/docs/MAINTAINER.md +77 -0
- package/template/docs/ONBOARDING.md +284 -0
- package/template/docs/TESTING.md +104 -0
- package/template/package.json +48 -41
- package/template/pnpm-lock.yaml +6360 -0
- package/template/scripts/gen-api.cjs +20 -7
- package/template/scripts/release.mjs +22 -28
- package/template/scripts/set-release-version.mjs +46 -0
- package/template/scripts/test-pipeline.mjs +85 -0
- package/template/scripts/test-scaffold.mjs +197 -0
- package/template/scripts/test-template.mjs +52 -0
- package/template/scripts/verify.mjs +28 -0
- package/template/scripts/vite-plugin-cesium-dev.ts +56 -0
- package/template/src/api/README.md +4 -0
- package/template/src/components/Body/index.vue +65 -35
- package/template/src/components/CesiumViewer/index.vue +36 -0
- package/template/src/components/Header/index.vue +16 -5
- package/template/src/components/OnboardingDeck/index.vue +449 -0
- package/template/src/data/onboardingSlides.ts +208 -0
- package/template/src/main.ts +1 -0
- package/template/src/router/index.ts +20 -14
- package/template/src/router/routeUtils.ts +13 -0
- package/template/src/styles/shell.css +232 -0
- package/template/src/utils/axios-middleware.js +1 -1
- package/template/src/utils/cesium/index.ts +71 -0
- package/template/src/utils/composables/useFeatureGis.ts +24 -0
- package/template/src/views/examples/cesium/index.vue +85 -0
- package/template/src/views/examples/guide/index.vue +42 -0
- package/template/src/views/examples/test/index.vue +63 -0
- package/template/src/views/index.vue +2 -3
- package/template/tests/README.md +1 -0
- package/template/tests/unit/onboardingSlides.test.ts +20 -0
- package/template/tests/unit/router.utils.test.ts +21 -0
- package/template/tests/unit/scaffold.lib.test.ts +44 -0
- package/template/tests/unit/useFeatureGis.test.ts +14 -0
- package/template/tsconfig.json +17 -17
- package/template/tsconfig.node.json +1 -1
- package/template/types/env.d.ts +13 -0
- package/template/vite.config.ts +26 -5
- package/template/vitest.config.ts +13 -0
- package/template/.env +0 -1
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_0.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_1.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_10.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_11.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_12.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_13.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_14.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_15.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_16.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_17.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_18.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_19.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_2.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_20.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_21.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_22.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_23.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_24.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_25.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_26.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_27.json +0 -438
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_3.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_4.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_5.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_6.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_7.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_8.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_9.json +0 -1012
- 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 +0 -14
- 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 +0 -1
- 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 +0 -10924
- package/template/public/Cesium1.119/Cesium.js +0 -185772
- package/template/public/Cesium1.119/ThirdParty/Workers/package.json +0 -3
- package/template/public/Cesium1.119/ThirdParty/Workers/pako_deflate.min.js +0 -1681
- package/template/public/Cesium1.119/ThirdParty/Workers/pako_inflate.min.js +0 -1489
- package/template/public/Cesium1.119/ThirdParty/Workers/z-worker-pako.js +0 -1070
- 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 +0 -11424
- package/template/public/Cesium1.119/Widgets/Animation/Animation.css +0 -127
- package/template/public/Cesium1.119/Widgets/Animation/lighter.css +0 -78
- package/template/public/Cesium1.119/Widgets/BaseLayerPicker/BaseLayerPicker.css +0 -112
- package/template/public/Cesium1.119/Widgets/BaseLayerPicker/lighter.css +0 -28
- package/template/public/Cesium1.119/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css +0 -104
- package/template/public/Cesium1.119/Widgets/CesiumInspector/CesiumInspector.css +0 -115
- package/template/public/Cesium1.119/Widgets/CesiumWidget/CesiumWidget.css +0 -119
- package/template/public/Cesium1.119/Widgets/CesiumWidget/lighter.css +0 -14
- package/template/public/Cesium1.119/Widgets/FullscreenButton/FullscreenButton.css +0 -8
- package/template/public/Cesium1.119/Widgets/Geocoder/Geocoder.css +0 -72
- package/template/public/Cesium1.119/Widgets/Geocoder/lighter.css +0 -17
- package/template/public/Cesium1.119/Widgets/I3SBuildingSceneLayerExplorer/I3SBuildingSceneLayerExplorer.css +0 -27
- 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 +0 -84
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/MouseLeft.svg +0 -76
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/MouseMiddle.svg +0 -76
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/MouseRight.svg +0 -76
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/Touch.svg +0 -120
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchDrag.svg +0 -129
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchRotate.svg +0 -76
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchTilt.svg +0 -135
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchZoom.svg +0 -74
- 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 +0 -94
- package/template/public/Cesium1.119/Widgets/InfoBox/InfoBoxDescription.css +0 -178
- package/template/public/Cesium1.119/Widgets/NavigationHelpButton/NavigationHelpButton.css +0 -95
- package/template/public/Cesium1.119/Widgets/NavigationHelpButton/lighter.css +0 -38
- package/template/public/Cesium1.119/Widgets/PerformanceWatchdog/PerformanceWatchdog.css +0 -15
- package/template/public/Cesium1.119/Widgets/ProjectionPicker/ProjectionPicker.css +0 -46
- package/template/public/Cesium1.119/Widgets/SceneModePicker/SceneModePicker.css +0 -72
- package/template/public/Cesium1.119/Widgets/SelectionIndicator/SelectionIndicator.css +0 -22
- package/template/public/Cesium1.119/Widgets/Timeline/Timeline.css +0 -103
- package/template/public/Cesium1.119/Widgets/Timeline/lighter.css +0 -18
- package/template/public/Cesium1.119/Widgets/VRButton/VRButton.css +0 -8
- package/template/public/Cesium1.119/Widgets/Viewer/Viewer.css +0 -107
- package/template/public/Cesium1.119/Widgets/VoxelInspector/VoxelInspector.css +0 -18
- package/template/public/Cesium1.119/Widgets/lighter.css +0 -246
- package/template/public/Cesium1.119/Widgets/lighterShared.css +0 -46
- package/template/public/Cesium1.119/Widgets/shared.css +0 -103
- package/template/public/Cesium1.119/Widgets/widgets.css +0 -1376
- package/template/public/Cesium1.119/Workers/chunk-3C7WC463.js +0 -611
- package/template/public/Cesium1.119/Workers/chunk-3JW36LZF.js +0 -166
- package/template/public/Cesium1.119/Workers/chunk-4BTGX3WJ.js +0 -264
- package/template/public/Cesium1.119/Workers/chunk-4WRMLZA7.js +0 -128
- package/template/public/Cesium1.119/Workers/chunk-7Z5IIKOJ.js +0 -8046
- package/template/public/Cesium1.119/Workers/chunk-ABGXSJNX.js +0 -341
- package/template/public/Cesium1.119/Workers/chunk-AMQUWUD4.js +0 -269
- package/template/public/Cesium1.119/Workers/chunk-ATPDRNKI.js +0 -28
- package/template/public/Cesium1.119/Workers/chunk-BMHPVZ4H.js +0 -199
- package/template/public/Cesium1.119/Workers/chunk-CBEO3SHS.js +0 -1102
- package/template/public/Cesium1.119/Workers/chunk-CV7DLCWG.js +0 -485
- package/template/public/Cesium1.119/Workers/chunk-DQO6B4EQ.js +0 -76
- package/template/public/Cesium1.119/Workers/chunk-ED3TLP6D.js +0 -91
- package/template/public/Cesium1.119/Workers/chunk-EFZKO5RU.js +0 -42
- package/template/public/Cesium1.119/Workers/chunk-F5IHREXR.js +0 -2678
- package/template/public/Cesium1.119/Workers/chunk-FKRG4HDY.js +0 -516
- package/template/public/Cesium1.119/Workers/chunk-FYOYUPXG.js +0 -399
- package/template/public/Cesium1.119/Workers/chunk-GFN7NNSJ.js +0 -65
- package/template/public/Cesium1.119/Workers/chunk-HEEMUCG6.js +0 -92
- package/template/public/Cesium1.119/Workers/chunk-HSWA4OEL.js +0 -672
- package/template/public/Cesium1.119/Workers/chunk-IAC5XVZV.js +0 -287
- package/template/public/Cesium1.119/Workers/chunk-II4VNKYR.js +0 -50
- package/template/public/Cesium1.119/Workers/chunk-ILGBPNP6.js +0 -28
- package/template/public/Cesium1.119/Workers/chunk-IRH46BDL.js +0 -124
- package/template/public/Cesium1.119/Workers/chunk-IUA6FAOZ.js +0 -31
- package/template/public/Cesium1.119/Workers/chunk-K4ASOM65.js +0 -331
- package/template/public/Cesium1.119/Workers/chunk-KCIZBVXL.js +0 -258
- package/template/public/Cesium1.119/Workers/chunk-KF5NF354.js +0 -162
- package/template/public/Cesium1.119/Workers/chunk-KRKI6AAO.js +0 -773
- package/template/public/Cesium1.119/Workers/chunk-KZNJOCYU.js +0 -162
- package/template/public/Cesium1.119/Workers/chunk-O5IJ3OGP.js +0 -857
- package/template/public/Cesium1.119/Workers/chunk-OO23RBLX.js +0 -183
- package/template/public/Cesium1.119/Workers/chunk-P37AI2DW.js +0 -85
- package/template/public/Cesium1.119/Workers/chunk-PDMQLSBL.js +0 -108
- package/template/public/Cesium1.119/Workers/chunk-PEYJTJPE.js +0 -73
- package/template/public/Cesium1.119/Workers/chunk-POASMU2N.js +0 -2372
- package/template/public/Cesium1.119/Workers/chunk-PXCJYT2S.js +0 -73
- package/template/public/Cesium1.119/Workers/chunk-Q6L7X3LP.js +0 -538
- package/template/public/Cesium1.119/Workers/chunk-QB3MDM4J.js +0 -1670
- package/template/public/Cesium1.119/Workers/chunk-R6KGAEF6.js +0 -392
- package/template/public/Cesium1.119/Workers/chunk-RXTBM4OI.js +0 -57
- package/template/public/Cesium1.119/Workers/chunk-SB224QGV.js +0 -72
- package/template/public/Cesium1.119/Workers/chunk-T6BE4RZK.js +0 -37
- package/template/public/Cesium1.119/Workers/chunk-TAMCUKAR.js +0 -814
- package/template/public/Cesium1.119/Workers/chunk-TMSETF7M.js +0 -579
- package/template/public/Cesium1.119/Workers/chunk-TOGHF3VN.js +0 -376
- package/template/public/Cesium1.119/Workers/chunk-UH2WFNTA.js +0 -111
- package/template/public/Cesium1.119/Workers/chunk-V7JEDBOE.js +0 -573
- package/template/public/Cesium1.119/Workers/chunk-VBIROZR5.js +0 -633
- package/template/public/Cesium1.119/Workers/chunk-W23CU777.js +0 -271
- package/template/public/Cesium1.119/Workers/chunk-X5IHHI6X.js +0 -173
- package/template/public/Cesium1.119/Workers/chunk-XHX2UPDO.js +0 -217
- package/template/public/Cesium1.119/Workers/combineGeometry.js +0 -53
- package/template/public/Cesium1.119/Workers/createBoxGeometry.js +0 -45
- package/template/public/Cesium1.119/Workers/createBoxOutlineGeometry.js +0 -189
- package/template/public/Cesium1.119/Workers/createCircleGeometry.js +0 -148
- package/template/public/Cesium1.119/Workers/createCircleOutlineGeometry.js +0 -105
- package/template/public/Cesium1.119/Workers/createCoplanarPolygonGeometry.js +0 -293
- package/template/public/Cesium1.119/Workers/createCoplanarPolygonOutlineGeometry.js +0 -143
- package/template/public/Cesium1.119/Workers/createCorridorGeometry.js +0 -830
- package/template/public/Cesium1.119/Workers/createCorridorOutlineGeometry.js +0 -417
- package/template/public/Cesium1.119/Workers/createCylinderGeometry.js +0 -47
- package/template/public/Cesium1.119/Workers/createCylinderOutlineGeometry.js +0 -170
- package/template/public/Cesium1.119/Workers/createEllipseGeometry.js +0 -58
- package/template/public/Cesium1.119/Workers/createEllipseOutlineGeometry.js +0 -51
- package/template/public/Cesium1.119/Workers/createEllipsoidGeometry.js +0 -46
- package/template/public/Cesium1.119/Workers/createEllipsoidOutlineGeometry.js +0 -45
- package/template/public/Cesium1.119/Workers/createFrustumGeometry.js +0 -45
- package/template/public/Cesium1.119/Workers/createFrustumOutlineGeometry.js +0 -164
- package/template/public/Cesium1.119/Workers/createGeometry.js +0 -159
- package/template/public/Cesium1.119/Workers/createGroundPolylineGeometry.js +0 -911
- package/template/public/Cesium1.119/Workers/createPlaneGeometry.js +0 -185
- package/template/public/Cesium1.119/Workers/createPlaneOutlineGeometry.js +0 -93
- package/template/public/Cesium1.119/Workers/createPolygonGeometry.js +0 -884
- package/template/public/Cesium1.119/Workers/createPolygonOutlineGeometry.js +0 -359
- package/template/public/Cesium1.119/Workers/createPolylineGeometry.js +0 -349
- package/template/public/Cesium1.119/Workers/createPolylineVolumeGeometry.js +0 -262
- package/template/public/Cesium1.119/Workers/createPolylineVolumeOutlineGeometry.js +0 -177
- package/template/public/Cesium1.119/Workers/createRectangleGeometry.js +0 -787
- package/template/public/Cesium1.119/Workers/createRectangleOutlineGeometry.js +0 -299
- package/template/public/Cesium1.119/Workers/createSimplePolylineGeometry.js +0 -294
- package/template/public/Cesium1.119/Workers/createSphereGeometry.js +0 -84
- package/template/public/Cesium1.119/Workers/createSphereOutlineGeometry.js +0 -83
- package/template/public/Cesium1.119/Workers/createTaskProcessorWorker.js +0 -28
- package/template/public/Cesium1.119/Workers/createVectorTileClampedPolylines.js +0 -289
- package/template/public/Cesium1.119/Workers/createVectorTileGeometries.js +0 -258
- package/template/public/Cesium1.119/Workers/createVectorTilePoints.js +0 -79
- package/template/public/Cesium1.119/Workers/createVectorTilePolygons.js +0 -275
- package/template/public/Cesium1.119/Workers/createVectorTilePolylines.js +0 -176
- package/template/public/Cesium1.119/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +0 -375
- package/template/public/Cesium1.119/Workers/createVerticesFromHeightmap.js +0 -1772
- package/template/public/Cesium1.119/Workers/createVerticesFromQuantizedTerrainMesh.js +0 -425
- package/template/public/Cesium1.119/Workers/createWallGeometry.js +0 -320
- package/template/public/Cesium1.119/Workers/createWallOutlineGeometry.js +0 -229
- package/template/public/Cesium1.119/Workers/decodeDraco.js +0 -227
- package/template/public/Cesium1.119/Workers/decodeGoogleEarthEnterprisePacket.js +0 -1836
- package/template/public/Cesium1.119/Workers/decodeI3S.js +0 -924
- package/template/public/Cesium1.119/Workers/transcodeKTX2.js +0 -3180
- package/template/public/Cesium1.119/Workers/transferTypedArrayTest.js +0 -34
- package/template/public/Cesium1.119/Workers/upsampleQuantizedTerrainMesh.js +0 -534
- package/template/public/Cesium1.119/index.cjs +0 -185632
- package/template/public/Cesium1.119/index.js +0 -182874
- package/template/src/views/Test/index.vue +0 -56
- package/template/tests/unit/example.test.ts +0 -7
|
@@ -1,884 +0,0 @@
|
|
|
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 dt } from "./chunk-3JW36LZF.js";
|
|
27
|
-
import { a as F } from "./chunk-HSWA4OEL.js";
|
|
28
|
-
import { a as at } from "./chunk-ATPDRNKI.js";
|
|
29
|
-
import { a as st } from "./chunk-EFZKO5RU.js";
|
|
30
|
-
import { a as bt } from "./chunk-QB3MDM4J.js";
|
|
31
|
-
import "./chunk-ABGXSJNX.js";
|
|
32
|
-
import "./chunk-DQO6B4EQ.js";
|
|
33
|
-
import { a as ht } from "./chunk-ILGBPNP6.js";
|
|
34
|
-
import { a as Q } from "./chunk-HEEMUCG6.js";
|
|
35
|
-
import { a as K } from "./chunk-KF5NF354.js";
|
|
36
|
-
import "./chunk-4WRMLZA7.js";
|
|
37
|
-
import { a as gt, b as nt } from "./chunk-O5IJ3OGP.js";
|
|
38
|
-
import "./chunk-RXTBM4OI.js";
|
|
39
|
-
import "./chunk-FYOYUPXG.js";
|
|
40
|
-
import { a as wt, b as yt } from "./chunk-TAMCUKAR.js";
|
|
41
|
-
import "./chunk-PDMQLSBL.js";
|
|
42
|
-
import { a as lt } from "./chunk-P37AI2DW.js";
|
|
43
|
-
import "./chunk-T6BE4RZK.js";
|
|
44
|
-
import { c as mt, d as tt } from "./chunk-X5IHHI6X.js";
|
|
45
|
-
import { d as Tt } from "./chunk-TMSETF7M.js";
|
|
46
|
-
import { f as ct, h as _t } from "./chunk-7Z5IIKOJ.js";
|
|
47
|
-
import { a as $ } from "./chunk-KZNJOCYU.js";
|
|
48
|
-
import { a as c, b as ot, c as O, d as V, e as U } from "./chunk-POASMU2N.js";
|
|
49
|
-
import { a as l } from "./chunk-R6KGAEF6.js";
|
|
50
|
-
import "./chunk-3C7WC463.js";
|
|
51
|
-
import "./chunk-II4VNKYR.js";
|
|
52
|
-
import { a as L } from "./chunk-IUA6FAOZ.js";
|
|
53
|
-
import { a as ut, b as q } from "./chunk-UH2WFNTA.js";
|
|
54
|
-
import { e as P } from "./chunk-PEYJTJPE.js";
|
|
55
|
-
function b(t, e) {
|
|
56
|
-
((this.position = t),
|
|
57
|
-
P(this.position) || (this.position = new O()),
|
|
58
|
-
(this.tangentPlane = e),
|
|
59
|
-
P(this.tangentPlane) || (this.tangentPlane = b.NORTH_POLE_TANGENT_PLANE));
|
|
60
|
-
}
|
|
61
|
-
Object.defineProperties(b.prototype, {
|
|
62
|
-
ellipsoid: {
|
|
63
|
-
get: function () {
|
|
64
|
-
return this.tangentPlane.ellipsoid;
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
x: {
|
|
68
|
-
get: function () {
|
|
69
|
-
return this.position.x;
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
y: {
|
|
73
|
-
get: function () {
|
|
74
|
-
return this.position.y;
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
conformalLatitude: {
|
|
78
|
-
get: function () {
|
|
79
|
-
let t = O.magnitude(this.position),
|
|
80
|
-
e = 2 * this.ellipsoid.maximumRadius;
|
|
81
|
-
return (
|
|
82
|
-
this.tangentPlane.plane.normal.z *
|
|
83
|
-
(l.PI_OVER_TWO - 2 * Math.atan2(t, e))
|
|
84
|
-
);
|
|
85
|
-
},
|
|
86
|
-
},
|
|
87
|
-
longitude: {
|
|
88
|
-
get: function () {
|
|
89
|
-
let t = l.PI_OVER_TWO + Math.atan2(this.y, this.x);
|
|
90
|
-
return (t > Math.PI && (t -= l.TWO_PI), t);
|
|
91
|
-
},
|
|
92
|
-
},
|
|
93
|
-
});
|
|
94
|
-
var it = new ot(),
|
|
95
|
-
Rt = new c();
|
|
96
|
-
b.prototype.getLatitude = function (t) {
|
|
97
|
-
(P(t) || (t = V.default),
|
|
98
|
-
(it.latitude = this.conformalLatitude),
|
|
99
|
-
(it.longitude = this.longitude),
|
|
100
|
-
(it.height = 0));
|
|
101
|
-
let e = this.ellipsoid.cartographicToCartesian(it, Rt);
|
|
102
|
-
return (t.cartesianToCartographic(e, it), it.latitude);
|
|
103
|
-
};
|
|
104
|
-
var It = new wt(),
|
|
105
|
-
Lt = new c(),
|
|
106
|
-
Ft = new c();
|
|
107
|
-
b.fromCartesian = function (t, e) {
|
|
108
|
-
q.defined("cartesian", t);
|
|
109
|
-
let o = l.signNotZero(t.z),
|
|
110
|
-
n = b.NORTH_POLE_TANGENT_PLANE,
|
|
111
|
-
s = b.SOUTH_POLE;
|
|
112
|
-
o < 0 && ((n = b.SOUTH_POLE_TANGENT_PLANE), (s = b.NORTH_POLE));
|
|
113
|
-
let i = It;
|
|
114
|
-
((i.origin = n.ellipsoid.scaleToGeocentricSurface(t, i.origin)),
|
|
115
|
-
(i.direction = c.subtract(i.origin, s, Lt)),
|
|
116
|
-
c.normalize(i.direction, i.direction));
|
|
117
|
-
let r = yt.rayPlane(i, n.plane, Ft),
|
|
118
|
-
f = c.subtract(r, s, r),
|
|
119
|
-
d = c.dot(n.xAxis, f),
|
|
120
|
-
p = o * c.dot(n.yAxis, f);
|
|
121
|
-
return P(e)
|
|
122
|
-
? ((e.position = new O(d, p)), (e.tangentPlane = n), e)
|
|
123
|
-
: new b(new O(d, p), n);
|
|
124
|
-
};
|
|
125
|
-
b.fromCartesianArray = function (t, e) {
|
|
126
|
-
q.defined("cartesians", t);
|
|
127
|
-
let o = t.length;
|
|
128
|
-
P(e) ? (e.length = o) : (e = new Array(o));
|
|
129
|
-
for (let n = 0; n < o; n++) e[n] = b.fromCartesian(t[n], e[n]);
|
|
130
|
-
return e;
|
|
131
|
-
};
|
|
132
|
-
b.clone = function (t, e) {
|
|
133
|
-
if (P(t))
|
|
134
|
-
return P(e)
|
|
135
|
-
? ((e.position = t.position), (e.tangentPlane = t.tangentPlane), e)
|
|
136
|
-
: new b(t.position, t.tangentPlane);
|
|
137
|
-
};
|
|
138
|
-
b.HALF_UNIT_SPHERE = Object.freeze(new V(0.5, 0.5, 0.5));
|
|
139
|
-
b.NORTH_POLE = Object.freeze(new c(0, 0, 0.5));
|
|
140
|
-
b.SOUTH_POLE = Object.freeze(new c(0, 0, -0.5));
|
|
141
|
-
b.NORTH_POLE_TANGENT_PLANE = Object.freeze(
|
|
142
|
-
new K(b.NORTH_POLE, b.HALF_UNIT_SPHERE),
|
|
143
|
-
);
|
|
144
|
-
b.SOUTH_POLE_TANGENT_PLANE = Object.freeze(
|
|
145
|
-
new K(b.SOUTH_POLE, b.HALF_UNIT_SPHERE),
|
|
146
|
-
);
|
|
147
|
-
var D = b;
|
|
148
|
-
var vt = new ot(),
|
|
149
|
-
Ot = new ot();
|
|
150
|
-
function St(t, e, o, n) {
|
|
151
|
-
let i = n.cartesianToCartographic(t, vt).height,
|
|
152
|
-
r = n.cartesianToCartographic(e, Ot);
|
|
153
|
-
((r.height = i), n.cartographicToCartesian(r, e));
|
|
154
|
-
let f = n.cartesianToCartographic(o, Ot);
|
|
155
|
-
((f.height = i - 100), n.cartographicToCartesian(f, o));
|
|
156
|
-
}
|
|
157
|
-
var Et = new dt(),
|
|
158
|
-
Vt = new c(),
|
|
159
|
-
Bt = new c(),
|
|
160
|
-
Mt = new c(),
|
|
161
|
-
jt = new c(),
|
|
162
|
-
kt = new c(),
|
|
163
|
-
zt = new c(),
|
|
164
|
-
ft = new c(),
|
|
165
|
-
Z = new c(),
|
|
166
|
-
rt = new c(),
|
|
167
|
-
Dt = new O(),
|
|
168
|
-
Ut = new O(),
|
|
169
|
-
Wt = new c(),
|
|
170
|
-
At = new ct(),
|
|
171
|
-
Gt = new U(),
|
|
172
|
-
Yt = new U();
|
|
173
|
-
function pt(t) {
|
|
174
|
-
let e = t.vertexFormat,
|
|
175
|
-
o = t.geometry,
|
|
176
|
-
n = t.shadowVolume,
|
|
177
|
-
s = o.attributes.position.values,
|
|
178
|
-
i = P(o.attributes.st) ? o.attributes.st.values : void 0,
|
|
179
|
-
r = s.length,
|
|
180
|
-
f = t.wall,
|
|
181
|
-
d = t.top || f,
|
|
182
|
-
p = t.bottom || f;
|
|
183
|
-
if (e.st || e.normal || e.tangent || e.bitangent || n) {
|
|
184
|
-
let w = t.boundingRectangle,
|
|
185
|
-
a = t.rotationAxis,
|
|
186
|
-
H = t.projectTo2d,
|
|
187
|
-
x = t.ellipsoid,
|
|
188
|
-
j = t.stRotation,
|
|
189
|
-
C = t.perPositionHeight,
|
|
190
|
-
R = Dt;
|
|
191
|
-
((R.x = w.x), (R.y = w.y));
|
|
192
|
-
let B = e.st ? new Float32Array(2 * (r / 3)) : void 0,
|
|
193
|
-
u;
|
|
194
|
-
e.normal &&
|
|
195
|
-
(C && d && !f
|
|
196
|
-
? (u = o.attributes.normal.values)
|
|
197
|
-
: (u = new Float32Array(r)));
|
|
198
|
-
let E = e.tangent ? new Float32Array(r) : void 0,
|
|
199
|
-
A = e.bitangent ? new Float32Array(r) : void 0,
|
|
200
|
-
v = n ? new Float32Array(r) : void 0,
|
|
201
|
-
T = 0,
|
|
202
|
-
y = 0,
|
|
203
|
-
_ = Bt,
|
|
204
|
-
h = Mt,
|
|
205
|
-
g = jt,
|
|
206
|
-
k = !0,
|
|
207
|
-
Y = Gt,
|
|
208
|
-
J = Yt;
|
|
209
|
-
if (j !== 0) {
|
|
210
|
-
let M = ct.fromAxisAngle(a, j, At);
|
|
211
|
-
((Y = U.fromQuaternion(M, Y)),
|
|
212
|
-
(M = ct.fromAxisAngle(a, -j, At)),
|
|
213
|
-
(J = U.fromQuaternion(M, J)));
|
|
214
|
-
} else ((Y = U.clone(U.IDENTITY, Y)), (J = U.clone(U.IDENTITY, J)));
|
|
215
|
-
let m = 0,
|
|
216
|
-
I = 0;
|
|
217
|
-
d && p && ((m = r / 2), (I = r / 3), (r /= 2));
|
|
218
|
-
for (let M = 0; M < r; M += 3) {
|
|
219
|
-
let z = c.fromArray(s, M, Wt);
|
|
220
|
-
if (e.st && !P(i)) {
|
|
221
|
-
let N = U.multiplyByVector(Y, z, Vt);
|
|
222
|
-
N = x.scaleToGeodeticSurface(N, N);
|
|
223
|
-
let S = H([N], Ut)[0];
|
|
224
|
-
O.subtract(S, R, S);
|
|
225
|
-
let X = l.clamp(S.x / w.width, 0, 1),
|
|
226
|
-
et = l.clamp(S.y / w.height, 0, 1);
|
|
227
|
-
(p && ((B[T + I] = X), (B[T + 1 + I] = et)),
|
|
228
|
-
d && ((B[T] = X), (B[T + 1] = et)),
|
|
229
|
-
(T += 2));
|
|
230
|
-
}
|
|
231
|
-
if (e.normal || e.tangent || e.bitangent || n) {
|
|
232
|
-
let N = y + 1,
|
|
233
|
-
S = y + 2;
|
|
234
|
-
if (f) {
|
|
235
|
-
if (M + 3 < r) {
|
|
236
|
-
let X = c.fromArray(s, M + 3, kt);
|
|
237
|
-
if (k) {
|
|
238
|
-
let et = c.fromArray(s, M + r, zt);
|
|
239
|
-
(C && St(z, X, et, x),
|
|
240
|
-
c.subtract(X, z, X),
|
|
241
|
-
c.subtract(et, z, et),
|
|
242
|
-
(_ = c.normalize(c.cross(et, X, _), _)),
|
|
243
|
-
(k = !1));
|
|
244
|
-
}
|
|
245
|
-
c.equalsEpsilon(X, z, l.EPSILON10) && (k = !0);
|
|
246
|
-
}
|
|
247
|
-
(e.tangent || e.bitangent) &&
|
|
248
|
-
((g = x.geodeticSurfaceNormal(z, g)),
|
|
249
|
-
e.tangent && (h = c.normalize(c.cross(g, _, h), h)));
|
|
250
|
-
} else
|
|
251
|
-
((_ = x.geodeticSurfaceNormal(z, _)),
|
|
252
|
-
(e.tangent || e.bitangent) &&
|
|
253
|
-
(C &&
|
|
254
|
-
((ft = c.fromArray(u, y, ft)),
|
|
255
|
-
(Z = c.cross(c.UNIT_Z, ft, Z)),
|
|
256
|
-
(Z = c.normalize(U.multiplyByVector(J, Z, Z), Z)),
|
|
257
|
-
e.bitangent && (rt = c.normalize(c.cross(ft, Z, rt), rt))),
|
|
258
|
-
(h = c.cross(c.UNIT_Z, _, h)),
|
|
259
|
-
(h = c.normalize(U.multiplyByVector(J, h, h), h)),
|
|
260
|
-
e.bitangent && (g = c.normalize(c.cross(_, h, g), g))));
|
|
261
|
-
(e.normal &&
|
|
262
|
-
(t.wall
|
|
263
|
-
? ((u[y + m] = _.x), (u[N + m] = _.y), (u[S + m] = _.z))
|
|
264
|
-
: p && ((u[y + m] = -_.x), (u[N + m] = -_.y), (u[S + m] = -_.z)),
|
|
265
|
-
((d && !C) || f) && ((u[y] = _.x), (u[N] = _.y), (u[S] = _.z))),
|
|
266
|
-
n &&
|
|
267
|
-
(f && (_ = x.geodeticSurfaceNormal(z, _)),
|
|
268
|
-
(v[y + m] = -_.x),
|
|
269
|
-
(v[N + m] = -_.y),
|
|
270
|
-
(v[S + m] = -_.z)),
|
|
271
|
-
e.tangent &&
|
|
272
|
-
(t.wall
|
|
273
|
-
? ((E[y + m] = h.x), (E[N + m] = h.y), (E[S + m] = h.z))
|
|
274
|
-
: p && ((E[y + m] = -h.x), (E[N + m] = -h.y), (E[S + m] = -h.z)),
|
|
275
|
-
d &&
|
|
276
|
-
(C
|
|
277
|
-
? ((E[y] = Z.x), (E[N] = Z.y), (E[S] = Z.z))
|
|
278
|
-
: ((E[y] = h.x), (E[N] = h.y), (E[S] = h.z)))),
|
|
279
|
-
e.bitangent &&
|
|
280
|
-
(p && ((A[y + m] = g.x), (A[N + m] = g.y), (A[S + m] = g.z)),
|
|
281
|
-
d &&
|
|
282
|
-
(C
|
|
283
|
-
? ((A[y] = rt.x), (A[N] = rt.y), (A[S] = rt.z))
|
|
284
|
-
: ((A[y] = g.x), (A[N] = g.y), (A[S] = g.z)))),
|
|
285
|
-
(y += 3));
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
(e.st &&
|
|
289
|
-
!P(i) &&
|
|
290
|
-
(o.attributes.st = new tt({
|
|
291
|
-
componentDatatype: $.FLOAT,
|
|
292
|
-
componentsPerAttribute: 2,
|
|
293
|
-
values: B,
|
|
294
|
-
})),
|
|
295
|
-
e.normal &&
|
|
296
|
-
(o.attributes.normal = new tt({
|
|
297
|
-
componentDatatype: $.FLOAT,
|
|
298
|
-
componentsPerAttribute: 3,
|
|
299
|
-
values: u,
|
|
300
|
-
})),
|
|
301
|
-
e.tangent &&
|
|
302
|
-
(o.attributes.tangent = new tt({
|
|
303
|
-
componentDatatype: $.FLOAT,
|
|
304
|
-
componentsPerAttribute: 3,
|
|
305
|
-
values: E,
|
|
306
|
-
})),
|
|
307
|
-
e.bitangent &&
|
|
308
|
-
(o.attributes.bitangent = new tt({
|
|
309
|
-
componentDatatype: $.FLOAT,
|
|
310
|
-
componentsPerAttribute: 3,
|
|
311
|
-
values: A,
|
|
312
|
-
})),
|
|
313
|
-
n &&
|
|
314
|
-
(o.attributes.extrudeDirection = new tt({
|
|
315
|
-
componentDatatype: $.FLOAT,
|
|
316
|
-
componentsPerAttribute: 3,
|
|
317
|
-
values: v,
|
|
318
|
-
})));
|
|
319
|
-
}
|
|
320
|
-
if (t.extrude && P(t.offsetAttribute)) {
|
|
321
|
-
let w = s.length / 3,
|
|
322
|
-
a = new Uint8Array(w);
|
|
323
|
-
if (t.offsetAttribute === ht.TOP)
|
|
324
|
-
(d && p) || f ? (a = a.fill(1, 0, w / 2)) : d && (a = a.fill(1));
|
|
325
|
-
else {
|
|
326
|
-
let H = t.offsetAttribute === ht.NONE ? 0 : 1;
|
|
327
|
-
a = a.fill(H);
|
|
328
|
-
}
|
|
329
|
-
o.attributes.applyOffset = new tt({
|
|
330
|
-
componentDatatype: $.UNSIGNED_BYTE,
|
|
331
|
-
componentsPerAttribute: 1,
|
|
332
|
-
values: a,
|
|
333
|
-
});
|
|
334
|
-
}
|
|
335
|
-
return o;
|
|
336
|
-
}
|
|
337
|
-
var Ht = [];
|
|
338
|
-
function qt(t, e, o, n, s, i, r, f, d, p) {
|
|
339
|
-
let w = { walls: [] },
|
|
340
|
-
a;
|
|
341
|
-
if (r || f) {
|
|
342
|
-
let u = F.createGeometryFromPositions(t, e, o, n, i, d, p),
|
|
343
|
-
E = u.attributes.position.values,
|
|
344
|
-
A = u.indices,
|
|
345
|
-
v,
|
|
346
|
-
T;
|
|
347
|
-
if (r && f) {
|
|
348
|
-
let y = E.concat(E);
|
|
349
|
-
((v = y.length / 3),
|
|
350
|
-
(T = lt.createTypedArray(v, A.length * 2)),
|
|
351
|
-
T.set(A));
|
|
352
|
-
let _ = A.length,
|
|
353
|
-
h = v / 2;
|
|
354
|
-
for (a = 0; a < _; a += 3) {
|
|
355
|
-
let g = T[a] + h,
|
|
356
|
-
k = T[a + 1] + h,
|
|
357
|
-
Y = T[a + 2] + h;
|
|
358
|
-
((T[a + _] = Y), (T[a + 1 + _] = k), (T[a + 2 + _] = g));
|
|
359
|
-
}
|
|
360
|
-
if (((u.attributes.position.values = y), i && d.normal)) {
|
|
361
|
-
let g = u.attributes.normal.values;
|
|
362
|
-
((u.attributes.normal.values = new Float32Array(y.length)),
|
|
363
|
-
u.attributes.normal.values.set(g));
|
|
364
|
-
}
|
|
365
|
-
if (d.st && P(o)) {
|
|
366
|
-
let g = u.attributes.st.values;
|
|
367
|
-
((u.attributes.st.values = new Float32Array(v * 2)),
|
|
368
|
-
(u.attributes.st.values = g.concat(g)));
|
|
369
|
-
}
|
|
370
|
-
u.indices = T;
|
|
371
|
-
} else if (f) {
|
|
372
|
-
for (
|
|
373
|
-
v = E.length / 3, T = lt.createTypedArray(v, A.length), a = 0;
|
|
374
|
-
a < A.length;
|
|
375
|
-
a += 3
|
|
376
|
-
)
|
|
377
|
-
((T[a] = A[a + 2]), (T[a + 1] = A[a + 1]), (T[a + 2] = A[a]));
|
|
378
|
-
u.indices = T;
|
|
379
|
-
}
|
|
380
|
-
w.topAndBottom = new st({ geometry: u });
|
|
381
|
-
}
|
|
382
|
-
let H = s.outerRing,
|
|
383
|
-
x = K.fromPoints(H, t),
|
|
384
|
-
j = x.projectPointsOntoPlane(H, Ht),
|
|
385
|
-
C = nt.computeWindingOrder2D(j);
|
|
386
|
-
C === gt.CLOCKWISE && (H = H.slice().reverse());
|
|
387
|
-
let R = F.computeWallGeometry(H, o, t, n, i, p);
|
|
388
|
-
w.walls.push(new st({ geometry: R }));
|
|
389
|
-
let B = s.holes;
|
|
390
|
-
for (a = 0; a < B.length; a++) {
|
|
391
|
-
let u = B[a];
|
|
392
|
-
((j = x.projectPointsOntoPlane(u, Ht)),
|
|
393
|
-
(C = nt.computeWindingOrder2D(j)),
|
|
394
|
-
C === gt.COUNTER_CLOCKWISE && (u = u.slice().reverse()),
|
|
395
|
-
(R = F.computeWallGeometry(u, o, t, n, i, p)),
|
|
396
|
-
w.walls.push(new st({ geometry: R })));
|
|
397
|
-
}
|
|
398
|
-
return w;
|
|
399
|
-
}
|
|
400
|
-
function G(t) {
|
|
401
|
-
if (
|
|
402
|
-
(q.typeOf.object("options", t),
|
|
403
|
-
q.typeOf.object("options.polygonHierarchy", t.polygonHierarchy),
|
|
404
|
-
P(t.perPositionHeight) && t.perPositionHeight && P(t.height))
|
|
405
|
-
)
|
|
406
|
-
throw new ut(
|
|
407
|
-
"Cannot use both options.perPositionHeight and options.height",
|
|
408
|
-
);
|
|
409
|
-
if (P(t.arcType) && t.arcType !== at.GEODESIC && t.arcType !== at.RHUMB)
|
|
410
|
-
throw new ut(
|
|
411
|
-
"Invalid arcType. Valid options are ArcType.GEODESIC and ArcType.RHUMB.",
|
|
412
|
-
);
|
|
413
|
-
let e = t.polygonHierarchy,
|
|
414
|
-
o = L(t.vertexFormat, Q.DEFAULT),
|
|
415
|
-
n = L(t.ellipsoid, V.default),
|
|
416
|
-
s = L(t.granularity, l.RADIANS_PER_DEGREE),
|
|
417
|
-
i = L(t.stRotation, 0),
|
|
418
|
-
r = t.textureCoordinates,
|
|
419
|
-
f = L(t.perPositionHeight, !1),
|
|
420
|
-
d = f && P(t.extrudedHeight),
|
|
421
|
-
p = L(t.height, 0),
|
|
422
|
-
w = L(t.extrudedHeight, p);
|
|
423
|
-
if (!d) {
|
|
424
|
-
let a = Math.max(p, w);
|
|
425
|
-
((w = Math.min(p, w)), (p = a));
|
|
426
|
-
}
|
|
427
|
-
((this._vertexFormat = Q.clone(o)),
|
|
428
|
-
(this._ellipsoid = V.clone(n)),
|
|
429
|
-
(this._granularity = s),
|
|
430
|
-
(this._stRotation = i),
|
|
431
|
-
(this._height = p),
|
|
432
|
-
(this._extrudedHeight = w),
|
|
433
|
-
(this._closeTop = L(t.closeTop, !0)),
|
|
434
|
-
(this._closeBottom = L(t.closeBottom, !0)),
|
|
435
|
-
(this._polygonHierarchy = e),
|
|
436
|
-
(this._perPositionHeight = f),
|
|
437
|
-
(this._perPositionHeightExtrude = d),
|
|
438
|
-
(this._shadowVolume = L(t.shadowVolume, !1)),
|
|
439
|
-
(this._workerName = "createPolygonGeometry"),
|
|
440
|
-
(this._offsetAttribute = t.offsetAttribute),
|
|
441
|
-
(this._arcType = L(t.arcType, at.GEODESIC)),
|
|
442
|
-
(this._rectangle = void 0),
|
|
443
|
-
(this._textureCoordinateRotationPoints = void 0),
|
|
444
|
-
(this._textureCoordinates = r),
|
|
445
|
-
(this.packedLength =
|
|
446
|
-
F.computeHierarchyPackedLength(e, c) +
|
|
447
|
-
V.packedLength +
|
|
448
|
-
Q.packedLength +
|
|
449
|
-
(r ? F.computeHierarchyPackedLength(r, O) : 1) +
|
|
450
|
-
12));
|
|
451
|
-
}
|
|
452
|
-
G.fromPositions = function (t) {
|
|
453
|
-
((t = L(t, L.EMPTY_OBJECT)), q.defined("options.positions", t.positions));
|
|
454
|
-
let e = {
|
|
455
|
-
polygonHierarchy: { positions: t.positions },
|
|
456
|
-
height: t.height,
|
|
457
|
-
extrudedHeight: t.extrudedHeight,
|
|
458
|
-
vertexFormat: t.vertexFormat,
|
|
459
|
-
stRotation: t.stRotation,
|
|
460
|
-
ellipsoid: t.ellipsoid,
|
|
461
|
-
granularity: t.granularity,
|
|
462
|
-
perPositionHeight: t.perPositionHeight,
|
|
463
|
-
closeTop: t.closeTop,
|
|
464
|
-
closeBottom: t.closeBottom,
|
|
465
|
-
offsetAttribute: t.offsetAttribute,
|
|
466
|
-
arcType: t.arcType,
|
|
467
|
-
textureCoordinates: t.textureCoordinates,
|
|
468
|
-
};
|
|
469
|
-
return new G(e);
|
|
470
|
-
};
|
|
471
|
-
G.pack = function (t, e, o) {
|
|
472
|
-
return (
|
|
473
|
-
q.typeOf.object("value", t),
|
|
474
|
-
q.defined("array", e),
|
|
475
|
-
(o = L(o, 0)),
|
|
476
|
-
(o = F.packPolygonHierarchy(t._polygonHierarchy, e, o, c)),
|
|
477
|
-
V.pack(t._ellipsoid, e, o),
|
|
478
|
-
(o += V.packedLength),
|
|
479
|
-
Q.pack(t._vertexFormat, e, o),
|
|
480
|
-
(o += Q.packedLength),
|
|
481
|
-
(e[o++] = t._height),
|
|
482
|
-
(e[o++] = t._extrudedHeight),
|
|
483
|
-
(e[o++] = t._granularity),
|
|
484
|
-
(e[o++] = t._stRotation),
|
|
485
|
-
(e[o++] = t._perPositionHeightExtrude ? 1 : 0),
|
|
486
|
-
(e[o++] = t._perPositionHeight ? 1 : 0),
|
|
487
|
-
(e[o++] = t._closeTop ? 1 : 0),
|
|
488
|
-
(e[o++] = t._closeBottom ? 1 : 0),
|
|
489
|
-
(e[o++] = t._shadowVolume ? 1 : 0),
|
|
490
|
-
(e[o++] = L(t._offsetAttribute, -1)),
|
|
491
|
-
(e[o++] = t._arcType),
|
|
492
|
-
P(t._textureCoordinates)
|
|
493
|
-
? (o = F.packPolygonHierarchy(t._textureCoordinates, e, o, O))
|
|
494
|
-
: (e[o++] = -1),
|
|
495
|
-
(e[o++] = t.packedLength),
|
|
496
|
-
e
|
|
497
|
-
);
|
|
498
|
-
};
|
|
499
|
-
var Qt = V.clone(V.UNIT_SPHERE),
|
|
500
|
-
Zt = new Q(),
|
|
501
|
-
Kt = { polygonHierarchy: {} };
|
|
502
|
-
G.unpack = function (t, e, o) {
|
|
503
|
-
(q.defined("array", t), (e = L(e, 0)));
|
|
504
|
-
let n = F.unpackPolygonHierarchy(t, e, c);
|
|
505
|
-
((e = n.startingIndex), delete n.startingIndex);
|
|
506
|
-
let s = V.unpack(t, e, Qt);
|
|
507
|
-
e += V.packedLength;
|
|
508
|
-
let i = Q.unpack(t, e, Zt);
|
|
509
|
-
e += Q.packedLength;
|
|
510
|
-
let r = t[e++],
|
|
511
|
-
f = t[e++],
|
|
512
|
-
d = t[e++],
|
|
513
|
-
p = t[e++],
|
|
514
|
-
w = t[e++] === 1,
|
|
515
|
-
a = t[e++] === 1,
|
|
516
|
-
H = t[e++] === 1,
|
|
517
|
-
x = t[e++] === 1,
|
|
518
|
-
j = t[e++] === 1,
|
|
519
|
-
C = t[e++],
|
|
520
|
-
R = t[e++],
|
|
521
|
-
B = t[e] === -1 ? void 0 : F.unpackPolygonHierarchy(t, e, O);
|
|
522
|
-
P(B) ? ((e = B.startingIndex), delete B.startingIndex) : e++;
|
|
523
|
-
let u = t[e++];
|
|
524
|
-
return (
|
|
525
|
-
P(o) || (o = new G(Kt)),
|
|
526
|
-
(o._polygonHierarchy = n),
|
|
527
|
-
(o._ellipsoid = V.clone(s, o._ellipsoid)),
|
|
528
|
-
(o._vertexFormat = Q.clone(i, o._vertexFormat)),
|
|
529
|
-
(o._height = r),
|
|
530
|
-
(o._extrudedHeight = f),
|
|
531
|
-
(o._granularity = d),
|
|
532
|
-
(o._stRotation = p),
|
|
533
|
-
(o._perPositionHeightExtrude = w),
|
|
534
|
-
(o._perPositionHeight = a),
|
|
535
|
-
(o._closeTop = H),
|
|
536
|
-
(o._closeBottom = x),
|
|
537
|
-
(o._shadowVolume = j),
|
|
538
|
-
(o._offsetAttribute = C === -1 ? void 0 : C),
|
|
539
|
-
(o._arcType = R),
|
|
540
|
-
(o._textureCoordinates = B),
|
|
541
|
-
(o.packedLength = u),
|
|
542
|
-
o
|
|
543
|
-
);
|
|
544
|
-
};
|
|
545
|
-
var Jt = new O(),
|
|
546
|
-
Xt = new O(),
|
|
547
|
-
$t = new D();
|
|
548
|
-
function xt(t, e, o, n, s, i) {
|
|
549
|
-
let r = t.longitude,
|
|
550
|
-
f = r >= 0 ? r : r + l.TWO_PI;
|
|
551
|
-
((s.westOverIdl = Math.min(s.westOverIdl, f)),
|
|
552
|
-
(s.eastOverIdl = Math.max(s.eastOverIdl, f)),
|
|
553
|
-
(i.west = Math.min(i.west, r)),
|
|
554
|
-
(i.east = Math.max(i.east, r)));
|
|
555
|
-
let d = t.getLatitude(o),
|
|
556
|
-
p = d;
|
|
557
|
-
if (
|
|
558
|
-
((i.south = Math.min(i.south, d)),
|
|
559
|
-
(i.north = Math.max(i.north, d)),
|
|
560
|
-
n !== at.RHUMB)
|
|
561
|
-
) {
|
|
562
|
-
let H = O.subtract(e.position, t.position, Jt),
|
|
563
|
-
x = O.dot(e.position, H) / O.dot(H, H);
|
|
564
|
-
if (x > 0 && x < 1) {
|
|
565
|
-
let j = O.add(e.position, O.multiplyByScalar(H, -x, H), Xt),
|
|
566
|
-
C = D.clone(e, $t);
|
|
567
|
-
C.position = j;
|
|
568
|
-
let R = C.getLatitude(o);
|
|
569
|
-
((i.south = Math.min(i.south, R)),
|
|
570
|
-
(i.north = Math.max(i.north, R)),
|
|
571
|
-
Math.abs(d) > Math.abs(R) && (p = R));
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
let w = e.x * t.y - t.x * e.y,
|
|
575
|
-
a = Math.sign(w);
|
|
576
|
-
(a !== 0 && (a *= O.angleBetween(e.position, t.position)),
|
|
577
|
-
p >= 0 && (s.northAngle += a),
|
|
578
|
-
p <= 0 && (s.southAngle += a));
|
|
579
|
-
}
|
|
580
|
-
var Ct = new D(),
|
|
581
|
-
te = new D(),
|
|
582
|
-
W = { northAngle: 0, southAngle: 0, westOverIdl: 0, eastOverIdl: 0 };
|
|
583
|
-
G.computeRectangleFromPositions = function (t, e, o, n) {
|
|
584
|
-
if ((q.defined("positions", t), P(n) || (n = new _t()), t.length < 3))
|
|
585
|
-
return n;
|
|
586
|
-
((n.west = Number.POSITIVE_INFINITY),
|
|
587
|
-
(n.east = Number.NEGATIVE_INFINITY),
|
|
588
|
-
(n.south = Number.POSITIVE_INFINITY),
|
|
589
|
-
(n.north = Number.NEGATIVE_INFINITY),
|
|
590
|
-
(W.northAngle = 0),
|
|
591
|
-
(W.southAngle = 0),
|
|
592
|
-
(W.westOverIdl = Number.POSITIVE_INFINITY),
|
|
593
|
-
(W.eastOverIdl = Number.NEGATIVE_INFINITY));
|
|
594
|
-
let s = t.length,
|
|
595
|
-
i = D.fromCartesian(t[0], te);
|
|
596
|
-
for (let r = 1; r < s; r++) {
|
|
597
|
-
let f = D.fromCartesian(t[r], Ct);
|
|
598
|
-
(xt(f, i, e, o, W, n), (i = D.clone(f, i)));
|
|
599
|
-
}
|
|
600
|
-
return (
|
|
601
|
-
xt(D.fromCartesian(t[0], Ct), i, e, o, W, n),
|
|
602
|
-
n.east - n.west > W.eastOverIdl - W.westOverIdl &&
|
|
603
|
-
((n.west = W.westOverIdl),
|
|
604
|
-
(n.east = W.eastOverIdl),
|
|
605
|
-
n.east > l.PI && (n.east = n.east - l.TWO_PI),
|
|
606
|
-
n.west > l.PI && (n.west = n.west - l.TWO_PI)),
|
|
607
|
-
l.equalsEpsilon(Math.abs(W.northAngle), l.TWO_PI, l.EPSILON10) &&
|
|
608
|
-
((n.north = l.PI_OVER_TWO), (n.east = l.PI), (n.west = -l.PI)),
|
|
609
|
-
l.equalsEpsilon(Math.abs(W.southAngle), l.TWO_PI, l.EPSILON10) &&
|
|
610
|
-
((n.south = -l.PI_OVER_TWO), (n.east = l.PI), (n.west = -l.PI)),
|
|
611
|
-
n
|
|
612
|
-
);
|
|
613
|
-
};
|
|
614
|
-
var ee = new D();
|
|
615
|
-
function oe(t, e, o) {
|
|
616
|
-
return t.height >= l.PI || t.width >= l.PI
|
|
617
|
-
? D.fromCartesian(e[0], ee).tangentPlane
|
|
618
|
-
: K.fromPoints(e, o);
|
|
619
|
-
}
|
|
620
|
-
var Nt = new ot();
|
|
621
|
-
function ne(t, e, o) {
|
|
622
|
-
return (n, s) => {
|
|
623
|
-
if (t.height >= l.PI || t.width >= l.PI) {
|
|
624
|
-
if (t.south < 0 && t.north > 0) {
|
|
625
|
-
P(s) || (s = []);
|
|
626
|
-
for (let r = 0; r < n.length; ++r) {
|
|
627
|
-
let f = o.cartesianToCartographic(n[r], Nt);
|
|
628
|
-
s[r] = new O(f.longitude / l.PI, f.latitude / l.PI_OVER_TWO);
|
|
629
|
-
}
|
|
630
|
-
return ((s.length = n.length), s);
|
|
631
|
-
}
|
|
632
|
-
return D.fromCartesianArray(n, s);
|
|
633
|
-
}
|
|
634
|
-
return K.fromPoints(e, o).projectPointsOntoPlane(n, s);
|
|
635
|
-
};
|
|
636
|
-
}
|
|
637
|
-
function ie(t, e, o) {
|
|
638
|
-
if (t.height >= l.PI || t.width >= l.PI)
|
|
639
|
-
return (s, i) => {
|
|
640
|
-
if (t.south < 0 && t.north > 0) {
|
|
641
|
-
let r = o.cartesianToCartographic(s, Nt);
|
|
642
|
-
return (
|
|
643
|
-
P(i) || (i = new O()),
|
|
644
|
-
(i.x = r.longitude / l.PI),
|
|
645
|
-
(i.y = r.latitude / l.PI_OVER_TWO),
|
|
646
|
-
i
|
|
647
|
-
);
|
|
648
|
-
}
|
|
649
|
-
return D.fromCartesian(s, i);
|
|
650
|
-
};
|
|
651
|
-
let n = K.fromPoints(e, o);
|
|
652
|
-
return (s, i) => n.projectPointsOntoPlane(s, i);
|
|
653
|
-
}
|
|
654
|
-
function re(t, e, o, n) {
|
|
655
|
-
return (s, i) =>
|
|
656
|
-
!n && (t.height >= l.PI_OVER_TWO || t.width >= 2 * l.PI_OVER_THREE)
|
|
657
|
-
? F.splitPolygonsOnEquator(s, e, o, i)
|
|
658
|
-
: s;
|
|
659
|
-
}
|
|
660
|
-
function se(t, e, o, n) {
|
|
661
|
-
if (e.height >= l.PI || e.width >= l.PI)
|
|
662
|
-
return dt.fromRectangle(e, void 0, Et);
|
|
663
|
-
let s = t,
|
|
664
|
-
i = K.fromPoints(s, o);
|
|
665
|
-
return F.computeBoundingRectangle(
|
|
666
|
-
i.plane.normal,
|
|
667
|
-
i.projectPointOntoPlane.bind(i),
|
|
668
|
-
s,
|
|
669
|
-
n,
|
|
670
|
-
Et,
|
|
671
|
-
);
|
|
672
|
-
}
|
|
673
|
-
G.createGeometry = function (t) {
|
|
674
|
-
let e = t._vertexFormat,
|
|
675
|
-
o = t._ellipsoid,
|
|
676
|
-
n = t._granularity,
|
|
677
|
-
s = t._stRotation,
|
|
678
|
-
i = t._polygonHierarchy,
|
|
679
|
-
r = t._perPositionHeight,
|
|
680
|
-
f = t._closeTop,
|
|
681
|
-
d = t._closeBottom,
|
|
682
|
-
p = t._arcType,
|
|
683
|
-
w = t._textureCoordinates,
|
|
684
|
-
a = P(w),
|
|
685
|
-
H = i.positions;
|
|
686
|
-
if (H.length < 3) return;
|
|
687
|
-
let x = t.rectangle,
|
|
688
|
-
j = F.polygonsFromHierarchy(i, a, ne(x, H, o), !r, o, re(x, o, p, r)),
|
|
689
|
-
C = j.hierarchy,
|
|
690
|
-
R = j.polygons,
|
|
691
|
-
B = function (m) {
|
|
692
|
-
return m;
|
|
693
|
-
},
|
|
694
|
-
u = a ? F.polygonsFromHierarchy(w, !0, B, !1, o).polygons : void 0;
|
|
695
|
-
if (C.length === 0) return;
|
|
696
|
-
let E = C[0].outerRing,
|
|
697
|
-
A = se(E, x, o, s),
|
|
698
|
-
v = [],
|
|
699
|
-
T = t._height,
|
|
700
|
-
y = t._extrudedHeight,
|
|
701
|
-
_ = t._perPositionHeightExtrude || !l.equalsEpsilon(T, y, 0, l.EPSILON2),
|
|
702
|
-
h = {
|
|
703
|
-
perPositionHeight: r,
|
|
704
|
-
vertexFormat: e,
|
|
705
|
-
geometry: void 0,
|
|
706
|
-
rotationAxis: oe(x, E, o).plane.normal,
|
|
707
|
-
projectTo2d: ie(x, E, o),
|
|
708
|
-
boundingRectangle: A,
|
|
709
|
-
ellipsoid: o,
|
|
710
|
-
stRotation: s,
|
|
711
|
-
textureCoordinates: void 0,
|
|
712
|
-
bottom: !1,
|
|
713
|
-
top: !0,
|
|
714
|
-
wall: !1,
|
|
715
|
-
extrude: !1,
|
|
716
|
-
arcType: p,
|
|
717
|
-
},
|
|
718
|
-
g;
|
|
719
|
-
if (_)
|
|
720
|
-
for (
|
|
721
|
-
h.extrude = !0,
|
|
722
|
-
h.top = f,
|
|
723
|
-
h.bottom = d,
|
|
724
|
-
h.shadowVolume = t._shadowVolume,
|
|
725
|
-
h.offsetAttribute = t._offsetAttribute,
|
|
726
|
-
g = 0;
|
|
727
|
-
g < R.length;
|
|
728
|
-
g++
|
|
729
|
-
) {
|
|
730
|
-
let m = qt(o, R[g], a ? u[g] : void 0, n, C[g], r, f, d, e, p),
|
|
731
|
-
I;
|
|
732
|
-
(f && d
|
|
733
|
-
? ((I = m.topAndBottom),
|
|
734
|
-
(h.geometry = F.scaleToGeodeticHeightExtruded(
|
|
735
|
-
I.geometry,
|
|
736
|
-
T,
|
|
737
|
-
y,
|
|
738
|
-
o,
|
|
739
|
-
r,
|
|
740
|
-
)))
|
|
741
|
-
: f
|
|
742
|
-
? ((I = m.topAndBottom),
|
|
743
|
-
(I.geometry.attributes.position.values = nt.scaleToGeodeticHeight(
|
|
744
|
-
I.geometry.attributes.position.values,
|
|
745
|
-
T,
|
|
746
|
-
o,
|
|
747
|
-
!r,
|
|
748
|
-
)),
|
|
749
|
-
(h.geometry = I.geometry))
|
|
750
|
-
: d &&
|
|
751
|
-
((I = m.topAndBottom),
|
|
752
|
-
(I.geometry.attributes.position.values = nt.scaleToGeodeticHeight(
|
|
753
|
-
I.geometry.attributes.position.values,
|
|
754
|
-
y,
|
|
755
|
-
o,
|
|
756
|
-
!0,
|
|
757
|
-
)),
|
|
758
|
-
(h.geometry = I.geometry)),
|
|
759
|
-
(f || d) && ((h.wall = !1), (I.geometry = pt(h)), v.push(I)));
|
|
760
|
-
let M = m.walls;
|
|
761
|
-
h.wall = !0;
|
|
762
|
-
for (let z = 0; z < M.length; z++) {
|
|
763
|
-
let N = M[z];
|
|
764
|
-
((h.geometry = F.scaleToGeodeticHeightExtruded(N.geometry, T, y, o, r)),
|
|
765
|
-
(N.geometry = pt(h)),
|
|
766
|
-
v.push(N));
|
|
767
|
-
}
|
|
768
|
-
}
|
|
769
|
-
else
|
|
770
|
-
for (g = 0; g < R.length; g++) {
|
|
771
|
-
let m = new st({
|
|
772
|
-
geometry: F.createGeometryFromPositions(
|
|
773
|
-
o,
|
|
774
|
-
R[g],
|
|
775
|
-
a ? u[g] : void 0,
|
|
776
|
-
n,
|
|
777
|
-
r,
|
|
778
|
-
e,
|
|
779
|
-
p,
|
|
780
|
-
),
|
|
781
|
-
});
|
|
782
|
-
if (
|
|
783
|
-
((m.geometry.attributes.position.values = nt.scaleToGeodeticHeight(
|
|
784
|
-
m.geometry.attributes.position.values,
|
|
785
|
-
T,
|
|
786
|
-
o,
|
|
787
|
-
!r,
|
|
788
|
-
)),
|
|
789
|
-
(h.geometry = m.geometry),
|
|
790
|
-
(m.geometry = pt(h)),
|
|
791
|
-
P(t._offsetAttribute))
|
|
792
|
-
) {
|
|
793
|
-
let I = m.geometry.attributes.position.values.length,
|
|
794
|
-
M = t._offsetAttribute === ht.NONE ? 0 : 1,
|
|
795
|
-
z = new Uint8Array(I / 3).fill(M);
|
|
796
|
-
m.geometry.attributes.applyOffset = new tt({
|
|
797
|
-
componentDatatype: $.UNSIGNED_BYTE,
|
|
798
|
-
componentsPerAttribute: 1,
|
|
799
|
-
values: z,
|
|
800
|
-
});
|
|
801
|
-
}
|
|
802
|
-
v.push(m);
|
|
803
|
-
}
|
|
804
|
-
let k = bt.combineInstances(v)[0];
|
|
805
|
-
((k.attributes.position.values = new Float64Array(
|
|
806
|
-
k.attributes.position.values,
|
|
807
|
-
)),
|
|
808
|
-
(k.indices = lt.createTypedArray(
|
|
809
|
-
k.attributes.position.values.length / 3,
|
|
810
|
-
k.indices,
|
|
811
|
-
)));
|
|
812
|
-
let Y = k.attributes,
|
|
813
|
-
J = Tt.fromVertices(Y.position.values);
|
|
814
|
-
return (
|
|
815
|
-
e.position || delete Y.position,
|
|
816
|
-
new mt({
|
|
817
|
-
attributes: Y,
|
|
818
|
-
indices: k.indices,
|
|
819
|
-
primitiveType: k.primitiveType,
|
|
820
|
-
boundingSphere: J,
|
|
821
|
-
offsetAttribute: t._offsetAttribute,
|
|
822
|
-
})
|
|
823
|
-
);
|
|
824
|
-
};
|
|
825
|
-
G.createShadowVolume = function (t, e, o) {
|
|
826
|
-
let n = t._granularity,
|
|
827
|
-
s = t._ellipsoid,
|
|
828
|
-
i = e(n, s),
|
|
829
|
-
r = o(n, s);
|
|
830
|
-
return new G({
|
|
831
|
-
polygonHierarchy: t._polygonHierarchy,
|
|
832
|
-
ellipsoid: s,
|
|
833
|
-
stRotation: t._stRotation,
|
|
834
|
-
granularity: n,
|
|
835
|
-
perPositionHeight: !1,
|
|
836
|
-
extrudedHeight: i,
|
|
837
|
-
height: r,
|
|
838
|
-
vertexFormat: Q.POSITION_ONLY,
|
|
839
|
-
shadowVolume: !0,
|
|
840
|
-
arcType: t._arcType,
|
|
841
|
-
});
|
|
842
|
-
};
|
|
843
|
-
function ae(t) {
|
|
844
|
-
let e = -t._stRotation;
|
|
845
|
-
if (e === 0) return [0, 0, 0, 1, 1, 0];
|
|
846
|
-
let o = t._ellipsoid,
|
|
847
|
-
n = t._polygonHierarchy.positions,
|
|
848
|
-
s = t.rectangle;
|
|
849
|
-
return mt._textureCoordinateRotationPoints(n, e, o, s);
|
|
850
|
-
}
|
|
851
|
-
Object.defineProperties(G.prototype, {
|
|
852
|
-
rectangle: {
|
|
853
|
-
get: function () {
|
|
854
|
-
if (!P(this._rectangle)) {
|
|
855
|
-
let t = this._polygonHierarchy.positions;
|
|
856
|
-
this._rectangle = G.computeRectangleFromPositions(
|
|
857
|
-
t,
|
|
858
|
-
this._ellipsoid,
|
|
859
|
-
this._arcType,
|
|
860
|
-
);
|
|
861
|
-
}
|
|
862
|
-
return this._rectangle;
|
|
863
|
-
},
|
|
864
|
-
},
|
|
865
|
-
textureCoordinateRotationPoints: {
|
|
866
|
-
get: function () {
|
|
867
|
-
return (
|
|
868
|
-
P(this._textureCoordinateRotationPoints) ||
|
|
869
|
-
(this._textureCoordinateRotationPoints = ae(this)),
|
|
870
|
-
this._textureCoordinateRotationPoints
|
|
871
|
-
);
|
|
872
|
-
},
|
|
873
|
-
},
|
|
874
|
-
});
|
|
875
|
-
var Pt = G;
|
|
876
|
-
function ce(t, e) {
|
|
877
|
-
return (
|
|
878
|
-
P(e) && (t = Pt.unpack(t, e)),
|
|
879
|
-
(t._ellipsoid = V.clone(t._ellipsoid)),
|
|
880
|
-
Pt.createGeometry(t)
|
|
881
|
-
);
|
|
882
|
-
}
|
|
883
|
-
var Xe = ce;
|
|
884
|
-
export { Xe as default };
|