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,485 +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 y } from "./chunk-ABGXSJNX.js";
|
|
27
|
-
import { d as j } from "./chunk-TMSETF7M.js";
|
|
28
|
-
import { b as d, h as L } from "./chunk-7Z5IIKOJ.js";
|
|
29
|
-
import { a as R } from "./chunk-KZNJOCYU.js";
|
|
30
|
-
import { a as s, b as W, c as T, d as q } from "./chunk-POASMU2N.js";
|
|
31
|
-
import { a as w } from "./chunk-R6KGAEF6.js";
|
|
32
|
-
import { a as P } from "./chunk-IUA6FAOZ.js";
|
|
33
|
-
import { a as A, b as z } from "./chunk-UH2WFNTA.js";
|
|
34
|
-
import { e as l } from "./chunk-PEYJTJPE.js";
|
|
35
|
-
function x(o, t) {
|
|
36
|
-
(z.typeOf.object("ellipsoid", o),
|
|
37
|
-
(this._ellipsoid = o),
|
|
38
|
-
(this._cameraPosition = new s()),
|
|
39
|
-
(this._cameraPositionInScaledSpace = new s()),
|
|
40
|
-
(this._distanceToLimbInScaledSpaceSquared = 0),
|
|
41
|
-
l(t) && (this.cameraPosition = t));
|
|
42
|
-
}
|
|
43
|
-
Object.defineProperties(x.prototype, {
|
|
44
|
-
ellipsoid: {
|
|
45
|
-
get: function () {
|
|
46
|
-
return this._ellipsoid;
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
cameraPosition: {
|
|
50
|
-
get: function () {
|
|
51
|
-
return this._cameraPosition;
|
|
52
|
-
},
|
|
53
|
-
set: function (o) {
|
|
54
|
-
let e = this._ellipsoid.transformPositionToScaledSpace(
|
|
55
|
-
o,
|
|
56
|
-
this._cameraPositionInScaledSpace,
|
|
57
|
-
),
|
|
58
|
-
a = s.magnitudeSquared(e) - 1;
|
|
59
|
-
(s.clone(o, this._cameraPosition),
|
|
60
|
-
(this._cameraPositionInScaledSpace = e),
|
|
61
|
-
(this._distanceToLimbInScaledSpaceSquared = a));
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
});
|
|
65
|
-
var U = new s();
|
|
66
|
-
x.prototype.isPointVisible = function (o) {
|
|
67
|
-
let e = this._ellipsoid.transformPositionToScaledSpace(o, U);
|
|
68
|
-
return F(
|
|
69
|
-
e,
|
|
70
|
-
this._cameraPositionInScaledSpace,
|
|
71
|
-
this._distanceToLimbInScaledSpaceSquared,
|
|
72
|
-
);
|
|
73
|
-
};
|
|
74
|
-
x.prototype.isScaledSpacePointVisible = function (o) {
|
|
75
|
-
return F(
|
|
76
|
-
o,
|
|
77
|
-
this._cameraPositionInScaledSpace,
|
|
78
|
-
this._distanceToLimbInScaledSpaceSquared,
|
|
79
|
-
);
|
|
80
|
-
};
|
|
81
|
-
var at = new s();
|
|
82
|
-
x.prototype.isScaledSpacePointVisiblePossiblyUnderEllipsoid = function (o, t) {
|
|
83
|
-
let e = this._ellipsoid,
|
|
84
|
-
a,
|
|
85
|
-
i;
|
|
86
|
-
return (
|
|
87
|
-
l(t) && t < 0 && e.minimumRadius > -t
|
|
88
|
-
? ((i = at),
|
|
89
|
-
(i.x = this._cameraPosition.x / (e.radii.x + t)),
|
|
90
|
-
(i.y = this._cameraPosition.y / (e.radii.y + t)),
|
|
91
|
-
(i.z = this._cameraPosition.z / (e.radii.z + t)),
|
|
92
|
-
(a = i.x * i.x + i.y * i.y + i.z * i.z - 1))
|
|
93
|
-
: ((i = this._cameraPositionInScaledSpace),
|
|
94
|
-
(a = this._distanceToLimbInScaledSpaceSquared)),
|
|
95
|
-
F(o, i, a)
|
|
96
|
-
);
|
|
97
|
-
};
|
|
98
|
-
x.prototype.computeHorizonCullingPoint = function (o, t, e) {
|
|
99
|
-
return Q(this._ellipsoid, o, t, e);
|
|
100
|
-
};
|
|
101
|
-
var v = q.clone(q.UNIT_SPHERE);
|
|
102
|
-
x.prototype.computeHorizonCullingPointPossiblyUnderEllipsoid = function (
|
|
103
|
-
o,
|
|
104
|
-
t,
|
|
105
|
-
e,
|
|
106
|
-
a,
|
|
107
|
-
) {
|
|
108
|
-
let i = Z(this._ellipsoid, e, v);
|
|
109
|
-
return Q(i, o, t, a);
|
|
110
|
-
};
|
|
111
|
-
x.prototype.computeHorizonCullingPointFromVertices = function (o, t, e, a, i) {
|
|
112
|
-
return J(this._ellipsoid, o, t, e, a, i);
|
|
113
|
-
};
|
|
114
|
-
x.prototype.computeHorizonCullingPointFromVerticesPossiblyUnderEllipsoid =
|
|
115
|
-
function (o, t, e, a, i, c) {
|
|
116
|
-
let n = Z(this._ellipsoid, i, v);
|
|
117
|
-
return J(n, o, t, e, a, c);
|
|
118
|
-
};
|
|
119
|
-
var nt = [];
|
|
120
|
-
x.prototype.computeHorizonCullingPointFromRectangle = function (o, t, e) {
|
|
121
|
-
z.typeOf.object("rectangle", o);
|
|
122
|
-
let a = L.subsample(o, t, 0, nt),
|
|
123
|
-
i = j.fromPoints(a);
|
|
124
|
-
if (!(s.magnitude(i.center) < 0.1 * t.minimumRadius))
|
|
125
|
-
return this.computeHorizonCullingPoint(i.center, a, e);
|
|
126
|
-
};
|
|
127
|
-
var st = new s();
|
|
128
|
-
function Z(o, t, e) {
|
|
129
|
-
if (l(t) && t < 0 && o.minimumRadius > -t) {
|
|
130
|
-
let a = s.fromElements(o.radii.x + t, o.radii.y + t, o.radii.z + t, st);
|
|
131
|
-
o = q.fromCartesian3(a, e);
|
|
132
|
-
}
|
|
133
|
-
return o;
|
|
134
|
-
}
|
|
135
|
-
function Q(o, t, e, a) {
|
|
136
|
-
(z.typeOf.object("directionToPoint", t),
|
|
137
|
-
z.defined("positions", e),
|
|
138
|
-
l(a) || (a = new s()));
|
|
139
|
-
let i = Y(o, t),
|
|
140
|
-
c = 0;
|
|
141
|
-
for (let n = 0, r = e.length; n < r; ++n) {
|
|
142
|
-
let m = e[n],
|
|
143
|
-
h = K(o, m, i);
|
|
144
|
-
if (h < 0) return;
|
|
145
|
-
c = Math.max(c, h);
|
|
146
|
-
}
|
|
147
|
-
return X(i, c, a);
|
|
148
|
-
}
|
|
149
|
-
var M = new s();
|
|
150
|
-
function J(o, t, e, a, i, c) {
|
|
151
|
-
(z.typeOf.object("directionToPoint", t),
|
|
152
|
-
z.defined("vertices", e),
|
|
153
|
-
z.typeOf.number("stride", a),
|
|
154
|
-
l(c) || (c = new s()),
|
|
155
|
-
(a = P(a, 3)),
|
|
156
|
-
(i = P(i, s.ZERO)));
|
|
157
|
-
let n = Y(o, t),
|
|
158
|
-
r = 0;
|
|
159
|
-
for (let m = 0, h = e.length; m < h; m += a) {
|
|
160
|
-
((M.x = e[m] + i.x), (M.y = e[m + 1] + i.y), (M.z = e[m + 2] + i.z));
|
|
161
|
-
let u = K(o, M, n);
|
|
162
|
-
if (u < 0) return;
|
|
163
|
-
r = Math.max(r, u);
|
|
164
|
-
}
|
|
165
|
-
return X(n, r, c);
|
|
166
|
-
}
|
|
167
|
-
function F(o, t, e) {
|
|
168
|
-
let a = t,
|
|
169
|
-
i = e,
|
|
170
|
-
c = s.subtract(o, a, U),
|
|
171
|
-
n = -s.dot(c, a);
|
|
172
|
-
return !(i < 0 ? n > 0 : n > i && (n * n) / s.magnitudeSquared(c) > i);
|
|
173
|
-
}
|
|
174
|
-
var ct = new s(),
|
|
175
|
-
rt = new s();
|
|
176
|
-
function K(o, t, e) {
|
|
177
|
-
let a = o.transformPositionToScaledSpace(t, ct),
|
|
178
|
-
i = s.magnitudeSquared(a),
|
|
179
|
-
c = Math.sqrt(i),
|
|
180
|
-
n = s.divideByScalar(a, c, rt);
|
|
181
|
-
((i = Math.max(1, i)), (c = Math.max(1, c)));
|
|
182
|
-
let r = s.dot(n, e),
|
|
183
|
-
m = s.magnitude(s.cross(n, e, n)),
|
|
184
|
-
h = 1 / c,
|
|
185
|
-
u = Math.sqrt(i - 1) * h;
|
|
186
|
-
return 1 / (r * h - m * u);
|
|
187
|
-
}
|
|
188
|
-
function X(o, t, e) {
|
|
189
|
-
if (!(t <= 0 || t === 1 / 0 || t !== t)) return s.multiplyByScalar(o, t, e);
|
|
190
|
-
}
|
|
191
|
-
var D = new s();
|
|
192
|
-
function Y(o, t) {
|
|
193
|
-
return s.equals(t, s.ZERO)
|
|
194
|
-
? t
|
|
195
|
-
: (o.transformPositionToScaledSpace(t, D), s.normalize(D, D));
|
|
196
|
-
}
|
|
197
|
-
var Pt = x;
|
|
198
|
-
var O = {};
|
|
199
|
-
O.getHeight = function (o, t, e) {
|
|
200
|
-
if (!Number.isFinite(t)) throw new A("scale must be a finite number.");
|
|
201
|
-
if (!Number.isFinite(e))
|
|
202
|
-
throw new A("relativeHeight must be a finite number.");
|
|
203
|
-
return (o - e) * t + e;
|
|
204
|
-
};
|
|
205
|
-
var mt = new W();
|
|
206
|
-
O.getPosition = function (o, t, e, a, i) {
|
|
207
|
-
let c = t.cartesianToCartographic(o, mt);
|
|
208
|
-
if (!l(c)) return s.clone(o, i);
|
|
209
|
-
let n = O.getHeight(c.height, e, a);
|
|
210
|
-
return s.fromRadians(c.longitude, c.latitude, n, t, i);
|
|
211
|
-
};
|
|
212
|
-
var $ = O;
|
|
213
|
-
var dt = { NONE: 0, BITS12: 1 },
|
|
214
|
-
S = Object.freeze(dt);
|
|
215
|
-
var C = new s(),
|
|
216
|
-
lt = new s(),
|
|
217
|
-
f = new T(),
|
|
218
|
-
V = new d(),
|
|
219
|
-
ht = new d(),
|
|
220
|
-
pt = Math.pow(2, 12);
|
|
221
|
-
function p(o, t, e, a, i, c, n, r, m, h) {
|
|
222
|
-
let u = S.NONE,
|
|
223
|
-
g,
|
|
224
|
-
N;
|
|
225
|
-
if (l(t) && l(e) && l(a) && l(i)) {
|
|
226
|
-
let E = t.minimum,
|
|
227
|
-
I = t.maximum,
|
|
228
|
-
_ = s.subtract(I, E, lt),
|
|
229
|
-
tt = a - e;
|
|
230
|
-
(Math.max(s.maximumComponent(_), tt) < pt - 1
|
|
231
|
-
? (u = S.BITS12)
|
|
232
|
-
: (u = S.NONE),
|
|
233
|
-
(g = d.inverseTransformation(i, new d())));
|
|
234
|
-
let ot = s.negate(E, C);
|
|
235
|
-
d.multiply(d.fromTranslation(ot, V), g, g);
|
|
236
|
-
let b = C;
|
|
237
|
-
((b.x = 1 / _.x),
|
|
238
|
-
(b.y = 1 / _.y),
|
|
239
|
-
(b.z = 1 / _.z),
|
|
240
|
-
d.multiply(d.fromScale(b, V), g, g),
|
|
241
|
-
(N = d.clone(i)),
|
|
242
|
-
d.setTranslation(N, s.ZERO, N),
|
|
243
|
-
(i = d.clone(i, new d())));
|
|
244
|
-
let et = d.fromTranslation(E, V),
|
|
245
|
-
it = d.fromScale(_, ht),
|
|
246
|
-
k = d.multiply(et, it, V);
|
|
247
|
-
(d.multiply(i, k, i), d.multiply(N, k, N));
|
|
248
|
-
}
|
|
249
|
-
((this.quantization = u),
|
|
250
|
-
(this.minimumHeight = e),
|
|
251
|
-
(this.maximumHeight = a),
|
|
252
|
-
(this.center = s.clone(o)),
|
|
253
|
-
(this.toScaledENU = g),
|
|
254
|
-
(this.fromScaledENU = i),
|
|
255
|
-
(this.matrix = N),
|
|
256
|
-
(this.hasVertexNormals = c),
|
|
257
|
-
(this.hasWebMercatorT = P(n, !1)),
|
|
258
|
-
(this.hasGeodeticSurfaceNormals = P(r, !1)),
|
|
259
|
-
(this.exaggeration = P(m, 1)),
|
|
260
|
-
(this.exaggerationRelativeHeight = P(h, 0)),
|
|
261
|
-
(this.stride = 0),
|
|
262
|
-
(this._offsetGeodeticSurfaceNormal = 0),
|
|
263
|
-
(this._offsetVertexNormal = 0),
|
|
264
|
-
this._calculateStrideAndOffsets());
|
|
265
|
-
}
|
|
266
|
-
p.prototype.encode = function (o, t, e, a, i, c, n, r) {
|
|
267
|
-
let m = a.x,
|
|
268
|
-
h = a.y;
|
|
269
|
-
if (this.quantization === S.BITS12) {
|
|
270
|
-
((e = d.multiplyByPoint(this.toScaledENU, e, C)),
|
|
271
|
-
(e.x = w.clamp(e.x, 0, 1)),
|
|
272
|
-
(e.y = w.clamp(e.y, 0, 1)),
|
|
273
|
-
(e.z = w.clamp(e.z, 0, 1)));
|
|
274
|
-
let u = this.maximumHeight - this.minimumHeight,
|
|
275
|
-
g = w.clamp((i - this.minimumHeight) / u, 0, 1);
|
|
276
|
-
T.fromElements(e.x, e.y, f);
|
|
277
|
-
let N = y.compressTextureCoordinates(f);
|
|
278
|
-
T.fromElements(e.z, g, f);
|
|
279
|
-
let E = y.compressTextureCoordinates(f);
|
|
280
|
-
T.fromElements(m, h, f);
|
|
281
|
-
let I = y.compressTextureCoordinates(f);
|
|
282
|
-
if (((o[t++] = N), (o[t++] = E), (o[t++] = I), this.hasWebMercatorT)) {
|
|
283
|
-
T.fromElements(n, 0, f);
|
|
284
|
-
let _ = y.compressTextureCoordinates(f);
|
|
285
|
-
o[t++] = _;
|
|
286
|
-
}
|
|
287
|
-
} else
|
|
288
|
-
(s.subtract(e, this.center, C),
|
|
289
|
-
(o[t++] = C.x),
|
|
290
|
-
(o[t++] = C.y),
|
|
291
|
-
(o[t++] = C.z),
|
|
292
|
-
(o[t++] = i),
|
|
293
|
-
(o[t++] = m),
|
|
294
|
-
(o[t++] = h),
|
|
295
|
-
this.hasWebMercatorT && (o[t++] = n));
|
|
296
|
-
return (
|
|
297
|
-
this.hasVertexNormals && (o[t++] = y.octPackFloat(c)),
|
|
298
|
-
this.hasGeodeticSurfaceNormals &&
|
|
299
|
-
((o[t++] = r.x), (o[t++] = r.y), (o[t++] = r.z)),
|
|
300
|
-
t
|
|
301
|
-
);
|
|
302
|
-
};
|
|
303
|
-
var ut = new s(),
|
|
304
|
-
B = new s();
|
|
305
|
-
p.prototype.addGeodeticSurfaceNormals = function (o, t, e) {
|
|
306
|
-
if (this.hasGeodeticSurfaceNormals) return;
|
|
307
|
-
let a = this.stride,
|
|
308
|
-
i = o.length / a;
|
|
309
|
-
((this.hasGeodeticSurfaceNormals = !0), this._calculateStrideAndOffsets());
|
|
310
|
-
let c = this.stride;
|
|
311
|
-
for (let n = 0; n < i; n++) {
|
|
312
|
-
for (let u = 0; u < a; u++) {
|
|
313
|
-
let g = n * a + u,
|
|
314
|
-
N = n * c + u;
|
|
315
|
-
t[N] = o[g];
|
|
316
|
-
}
|
|
317
|
-
let r = this.decodePosition(t, n, ut),
|
|
318
|
-
m = e.geodeticSurfaceNormal(r, B),
|
|
319
|
-
h = n * c + this._offsetGeodeticSurfaceNormal;
|
|
320
|
-
((t[h] = m.x), (t[h + 1] = m.y), (t[h + 2] = m.z));
|
|
321
|
-
}
|
|
322
|
-
};
|
|
323
|
-
p.prototype.removeGeodeticSurfaceNormals = function (o, t) {
|
|
324
|
-
if (!this.hasGeodeticSurfaceNormals) return;
|
|
325
|
-
let e = this.stride,
|
|
326
|
-
a = o.length / e;
|
|
327
|
-
((this.hasGeodeticSurfaceNormals = !1), this._calculateStrideAndOffsets());
|
|
328
|
-
let i = this.stride;
|
|
329
|
-
for (let c = 0; c < a; c++)
|
|
330
|
-
for (let n = 0; n < i; n++) {
|
|
331
|
-
let r = c * e + n,
|
|
332
|
-
m = c * i + n;
|
|
333
|
-
t[m] = o[r];
|
|
334
|
-
}
|
|
335
|
-
};
|
|
336
|
-
p.prototype.decodePosition = function (o, t, e) {
|
|
337
|
-
if (
|
|
338
|
-
(l(e) || (e = new s()), (t *= this.stride), this.quantization === S.BITS12)
|
|
339
|
-
) {
|
|
340
|
-
let a = y.decompressTextureCoordinates(o[t], f);
|
|
341
|
-
((e.x = a.x), (e.y = a.y));
|
|
342
|
-
let i = y.decompressTextureCoordinates(o[t + 1], f);
|
|
343
|
-
return ((e.z = i.x), d.multiplyByPoint(this.fromScaledENU, e, e));
|
|
344
|
-
}
|
|
345
|
-
return (
|
|
346
|
-
(e.x = o[t]),
|
|
347
|
-
(e.y = o[t + 1]),
|
|
348
|
-
(e.z = o[t + 2]),
|
|
349
|
-
s.add(e, this.center, e)
|
|
350
|
-
);
|
|
351
|
-
};
|
|
352
|
-
p.prototype.getExaggeratedPosition = function (o, t, e) {
|
|
353
|
-
e = this.decodePosition(o, t, e);
|
|
354
|
-
let a = this.exaggeration,
|
|
355
|
-
i = this.exaggerationRelativeHeight;
|
|
356
|
-
if (a !== 1 && this.hasGeodeticSurfaceNormals) {
|
|
357
|
-
let n = this.decodeGeodeticSurfaceNormal(o, t, B),
|
|
358
|
-
r = this.decodeHeight(o, t),
|
|
359
|
-
m = $.getHeight(r, a, i) - r;
|
|
360
|
-
((e.x += n.x * m), (e.y += n.y * m), (e.z += n.z * m));
|
|
361
|
-
}
|
|
362
|
-
return e;
|
|
363
|
-
};
|
|
364
|
-
p.prototype.decodeTextureCoordinates = function (o, t, e) {
|
|
365
|
-
return (
|
|
366
|
-
l(e) || (e = new T()),
|
|
367
|
-
(t *= this.stride),
|
|
368
|
-
this.quantization === S.BITS12
|
|
369
|
-
? y.decompressTextureCoordinates(o[t + 2], e)
|
|
370
|
-
: T.fromElements(o[t + 4], o[t + 5], e)
|
|
371
|
-
);
|
|
372
|
-
};
|
|
373
|
-
p.prototype.decodeHeight = function (o, t) {
|
|
374
|
-
return (
|
|
375
|
-
(t *= this.stride),
|
|
376
|
-
this.quantization === S.BITS12
|
|
377
|
-
? y.decompressTextureCoordinates(o[t + 1], f).y *
|
|
378
|
-
(this.maximumHeight - this.minimumHeight) +
|
|
379
|
-
this.minimumHeight
|
|
380
|
-
: o[t + 3]
|
|
381
|
-
);
|
|
382
|
-
};
|
|
383
|
-
p.prototype.decodeWebMercatorT = function (o, t) {
|
|
384
|
-
return (
|
|
385
|
-
(t *= this.stride),
|
|
386
|
-
this.quantization === S.BITS12
|
|
387
|
-
? y.decompressTextureCoordinates(o[t + 3], f).x
|
|
388
|
-
: o[t + 6]
|
|
389
|
-
);
|
|
390
|
-
};
|
|
391
|
-
p.prototype.getOctEncodedNormal = function (o, t, e) {
|
|
392
|
-
t = t * this.stride + this._offsetVertexNormal;
|
|
393
|
-
let a = o[t] / 256,
|
|
394
|
-
i = Math.floor(a),
|
|
395
|
-
c = (a - i) * 256;
|
|
396
|
-
return T.fromElements(i, c, e);
|
|
397
|
-
};
|
|
398
|
-
p.prototype.decodeGeodeticSurfaceNormal = function (o, t, e) {
|
|
399
|
-
return (
|
|
400
|
-
(t = t * this.stride + this._offsetGeodeticSurfaceNormal),
|
|
401
|
-
(e.x = o[t]),
|
|
402
|
-
(e.y = o[t + 1]),
|
|
403
|
-
(e.z = o[t + 2]),
|
|
404
|
-
e
|
|
405
|
-
);
|
|
406
|
-
};
|
|
407
|
-
p.prototype._calculateStrideAndOffsets = function () {
|
|
408
|
-
let o = 0;
|
|
409
|
-
switch (this.quantization) {
|
|
410
|
-
case S.BITS12:
|
|
411
|
-
o += 3;
|
|
412
|
-
break;
|
|
413
|
-
default:
|
|
414
|
-
o += 6;
|
|
415
|
-
}
|
|
416
|
-
(this.hasWebMercatorT && (o += 1),
|
|
417
|
-
this.hasVertexNormals && ((this._offsetVertexNormal = o), (o += 1)),
|
|
418
|
-
this.hasGeodeticSurfaceNormals &&
|
|
419
|
-
((this._offsetGeodeticSurfaceNormal = o), (o += 3)),
|
|
420
|
-
(this.stride = o));
|
|
421
|
-
};
|
|
422
|
-
var G = {
|
|
423
|
-
position3DAndHeight: 0,
|
|
424
|
-
textureCoordAndEncodedNormals: 1,
|
|
425
|
-
geodeticSurfaceNormal: 2,
|
|
426
|
-
},
|
|
427
|
-
H = { compressed0: 0, compressed1: 1, geodeticSurfaceNormal: 2 };
|
|
428
|
-
p.prototype.getAttributes = function (o) {
|
|
429
|
-
let t = R.FLOAT,
|
|
430
|
-
e = R.getSizeInBytes(t),
|
|
431
|
-
a = this.stride * e,
|
|
432
|
-
i = 0,
|
|
433
|
-
c = [];
|
|
434
|
-
function n(r, m) {
|
|
435
|
-
(c.push({
|
|
436
|
-
index: r,
|
|
437
|
-
vertexBuffer: o,
|
|
438
|
-
componentDatatype: t,
|
|
439
|
-
componentsPerAttribute: m,
|
|
440
|
-
offsetInBytes: i,
|
|
441
|
-
strideInBytes: a,
|
|
442
|
-
}),
|
|
443
|
-
(i += m * e));
|
|
444
|
-
}
|
|
445
|
-
if (this.quantization === S.NONE) {
|
|
446
|
-
n(G.position3DAndHeight, 4);
|
|
447
|
-
let r = 2;
|
|
448
|
-
((r += this.hasWebMercatorT ? 1 : 0),
|
|
449
|
-
(r += this.hasVertexNormals ? 1 : 0),
|
|
450
|
-
n(G.textureCoordAndEncodedNormals, r),
|
|
451
|
-
this.hasGeodeticSurfaceNormals && n(G.geodeticSurfaceNormal, 3));
|
|
452
|
-
} else {
|
|
453
|
-
let r = this.hasWebMercatorT || this.hasVertexNormals,
|
|
454
|
-
m = this.hasWebMercatorT && this.hasVertexNormals;
|
|
455
|
-
(n(H.compressed0, r ? 4 : 3),
|
|
456
|
-
m && n(H.compressed1, 1),
|
|
457
|
-
this.hasGeodeticSurfaceNormals && n(H.geodeticSurfaceNormal, 3));
|
|
458
|
-
}
|
|
459
|
-
return c;
|
|
460
|
-
};
|
|
461
|
-
p.prototype.getAttributeLocations = function () {
|
|
462
|
-
return this.quantization === S.NONE ? G : H;
|
|
463
|
-
};
|
|
464
|
-
p.clone = function (o, t) {
|
|
465
|
-
if (l(o))
|
|
466
|
-
return (
|
|
467
|
-
l(t) || (t = new p()),
|
|
468
|
-
(t.quantization = o.quantization),
|
|
469
|
-
(t.minimumHeight = o.minimumHeight),
|
|
470
|
-
(t.maximumHeight = o.maximumHeight),
|
|
471
|
-
(t.center = s.clone(o.center)),
|
|
472
|
-
(t.toScaledENU = d.clone(o.toScaledENU)),
|
|
473
|
-
(t.fromScaledENU = d.clone(o.fromScaledENU)),
|
|
474
|
-
(t.matrix = d.clone(o.matrix)),
|
|
475
|
-
(t.hasVertexNormals = o.hasVertexNormals),
|
|
476
|
-
(t.hasWebMercatorT = o.hasWebMercatorT),
|
|
477
|
-
(t.hasGeodeticSurfaceNormals = o.hasGeodeticSurfaceNormals),
|
|
478
|
-
(t.exaggeration = o.exaggeration),
|
|
479
|
-
(t.exaggerationRelativeHeight = o.exaggerationRelativeHeight),
|
|
480
|
-
t._calculateStrideAndOffsets(),
|
|
481
|
-
t
|
|
482
|
-
);
|
|
483
|
-
};
|
|
484
|
-
var Wt = p;
|
|
485
|
-
export { Pt as a, Wt as b };
|
|
@@ -1,76 +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 c } from "./chunk-POASMU2N.js";
|
|
27
|
-
import { b as t } from "./chunk-UH2WFNTA.js";
|
|
28
|
-
import { e as g } from "./chunk-PEYJTJPE.js";
|
|
29
|
-
function f() {
|
|
30
|
-
((this.high = c.clone(c.ZERO)), (this.low = c.clone(c.ZERO)));
|
|
31
|
-
}
|
|
32
|
-
f.encode = function (n, o) {
|
|
33
|
-
(t.typeOf.number("value", n), g(o) || (o = { high: 0, low: 0 }));
|
|
34
|
-
let h;
|
|
35
|
-
return (
|
|
36
|
-
n >= 0
|
|
37
|
-
? ((h = Math.floor(n / 65536) * 65536), (o.high = h), (o.low = n - h))
|
|
38
|
-
: ((h = Math.floor(-n / 65536) * 65536), (o.high = -h), (o.low = n + h)),
|
|
39
|
-
o
|
|
40
|
-
);
|
|
41
|
-
};
|
|
42
|
-
var e = { high: 0, low: 0 };
|
|
43
|
-
f.fromCartesian = function (n, o) {
|
|
44
|
-
(t.typeOf.object("cartesian", n), g(o) || (o = new f()));
|
|
45
|
-
let h = o.high,
|
|
46
|
-
i = o.low;
|
|
47
|
-
return (
|
|
48
|
-
f.encode(n.x, e),
|
|
49
|
-
(h.x = e.high),
|
|
50
|
-
(i.x = e.low),
|
|
51
|
-
f.encode(n.y, e),
|
|
52
|
-
(h.y = e.high),
|
|
53
|
-
(i.y = e.low),
|
|
54
|
-
f.encode(n.z, e),
|
|
55
|
-
(h.z = e.high),
|
|
56
|
-
(i.z = e.low),
|
|
57
|
-
o
|
|
58
|
-
);
|
|
59
|
-
};
|
|
60
|
-
var m = new f();
|
|
61
|
-
f.writeElements = function (n, o, h) {
|
|
62
|
-
(t.defined("cartesianArray", o),
|
|
63
|
-
t.typeOf.number("index", h),
|
|
64
|
-
t.typeOf.number.greaterThanOrEquals("index", h, 0),
|
|
65
|
-
f.fromCartesian(n, m));
|
|
66
|
-
let i = m.high,
|
|
67
|
-
w = m.low;
|
|
68
|
-
((o[h] = i.x),
|
|
69
|
-
(o[h + 1] = i.y),
|
|
70
|
-
(o[h + 2] = i.z),
|
|
71
|
-
(o[h + 3] = w.x),
|
|
72
|
-
(o[h + 4] = w.y),
|
|
73
|
-
(o[h + 5] = w.z));
|
|
74
|
-
};
|
|
75
|
-
var O = f;
|
|
76
|
-
export { O as a };
|
|
@@ -1,91 +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 h } from "./chunk-Q6L7X3LP.js";
|
|
27
|
-
import { a as n, c as y, e as a } from "./chunk-POASMU2N.js";
|
|
28
|
-
import { b as f } from "./chunk-UH2WFNTA.js";
|
|
29
|
-
var x = {},
|
|
30
|
-
b = new n(),
|
|
31
|
-
P = new n(),
|
|
32
|
-
B = new n(),
|
|
33
|
-
M = new n(),
|
|
34
|
-
w = new h();
|
|
35
|
-
x.validOutline = function (i) {
|
|
36
|
-
f.defined("positions", i);
|
|
37
|
-
let o = h.fromPoints(i, w).halfAxes,
|
|
38
|
-
e = a.getColumn(o, 0, P),
|
|
39
|
-
r = a.getColumn(o, 1, B),
|
|
40
|
-
t = a.getColumn(o, 2, M),
|
|
41
|
-
u = n.magnitude(e),
|
|
42
|
-
s = n.magnitude(r),
|
|
43
|
-
l = n.magnitude(t);
|
|
44
|
-
return !((u === 0 && (s === 0 || l === 0)) || (s === 0 && l === 0));
|
|
45
|
-
};
|
|
46
|
-
x.computeProjectTo2DArguments = function (i, c, o, e) {
|
|
47
|
-
(f.defined("positions", i),
|
|
48
|
-
f.defined("centerResult", c),
|
|
49
|
-
f.defined("planeAxis1Result", o),
|
|
50
|
-
f.defined("planeAxis2Result", e));
|
|
51
|
-
let r = h.fromPoints(i, w),
|
|
52
|
-
t = r.halfAxes,
|
|
53
|
-
u = a.getColumn(t, 0, P),
|
|
54
|
-
s = a.getColumn(t, 1, B),
|
|
55
|
-
l = a.getColumn(t, 2, M),
|
|
56
|
-
A = n.magnitude(u),
|
|
57
|
-
d = n.magnitude(s),
|
|
58
|
-
g = n.magnitude(l),
|
|
59
|
-
m = Math.min(A, d, g);
|
|
60
|
-
if ((A === 0 && (d === 0 || g === 0)) || (d === 0 && g === 0)) return !1;
|
|
61
|
-
let p, C;
|
|
62
|
-
return (
|
|
63
|
-
(m === d || m === g) && (p = u),
|
|
64
|
-
m === A ? (p = s) : m === g && (C = s),
|
|
65
|
-
(m === A || m === d) && (C = l),
|
|
66
|
-
n.normalize(p, o),
|
|
67
|
-
n.normalize(C, e),
|
|
68
|
-
n.clone(r.center, c),
|
|
69
|
-
!0
|
|
70
|
-
);
|
|
71
|
-
};
|
|
72
|
-
function z(i, c, o, e, r) {
|
|
73
|
-
let t = n.subtract(i, c, b),
|
|
74
|
-
u = n.dot(o, t),
|
|
75
|
-
s = n.dot(e, t);
|
|
76
|
-
return y.fromElements(u, s, r);
|
|
77
|
-
}
|
|
78
|
-
x.createProjectPointsTo2DFunction = function (i, c, o) {
|
|
79
|
-
return function (e) {
|
|
80
|
-
let r = new Array(e.length);
|
|
81
|
-
for (let t = 0; t < e.length; t++) r[t] = z(e[t], i, c, o);
|
|
82
|
-
return r;
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
x.createProjectPointTo2DFunction = function (i, c, o) {
|
|
86
|
-
return function (e, r) {
|
|
87
|
-
return z(e, i, c, o, r);
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
var O = x;
|
|
91
|
-
export { O as a };
|
|
@@ -1,42 +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 { b as t } from "./chunk-7Z5IIKOJ.js";
|
|
27
|
-
import { a as r } from "./chunk-IUA6FAOZ.js";
|
|
28
|
-
import { a as m } from "./chunk-UH2WFNTA.js";
|
|
29
|
-
import { e as i } from "./chunk-PEYJTJPE.js";
|
|
30
|
-
function d(e) {
|
|
31
|
-
if (((e = r(e, r.EMPTY_OBJECT)), !i(e.geometry)))
|
|
32
|
-
throw new m("options.geometry is required.");
|
|
33
|
-
((this.geometry = e.geometry),
|
|
34
|
-
(this.modelMatrix = t.clone(r(e.modelMatrix, t.IDENTITY))),
|
|
35
|
-
(this.id = e.id),
|
|
36
|
-
(this.pickPrimitive = e.pickPrimitive),
|
|
37
|
-
(this.attributes = r(e.attributes, {})),
|
|
38
|
-
(this.westHemisphereGeometry = void 0),
|
|
39
|
-
(this.eastHemisphereGeometry = void 0));
|
|
40
|
-
}
|
|
41
|
-
var s = d;
|
|
42
|
-
export { s as a };
|