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