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