create-swdg-frontend 0.1.7 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -13
- package/bin/index.js +3 -244
- package/lib/argv.js +43 -0
- package/lib/cli.js +141 -0
- package/lib/constants.js +24 -0
- package/lib/gis.js +92 -0
- package/lib/manifest.js +23 -0
- package/lib/prompts.js +55 -0
- package/lib/scaffold.js +118 -0
- package/package.json +6 -2
- package/scripts/sync-template.js +120 -0
- package/scripts/validate-template.mjs +74 -0
- package/stubs/tsconfig.node.json +11 -0
- package/stubs/types-env.d.ts +9 -0
- package/stubs/vite.config.ts +64 -0
- package/template/.env.example +6 -0
- package/template/.github/workflows/ci.yml +23 -0
- package/template/.github/workflows/release.yml +69 -0
- package/template/.stylelintrc.json +7 -1
- package/template/README.md +95 -32
- package/template/auto-imports.d.ts +10 -0
- package/template/docs/MAINTAINER.md +77 -0
- package/template/docs/ONBOARDING.md +284 -0
- package/template/docs/TESTING.md +104 -0
- package/template/package.json +48 -41
- package/template/pnpm-lock.yaml +6360 -0
- package/template/scripts/gen-api.cjs +20 -7
- package/template/scripts/release.mjs +22 -28
- package/template/scripts/set-release-version.mjs +46 -0
- package/template/scripts/test-pipeline.mjs +85 -0
- package/template/scripts/test-scaffold.mjs +197 -0
- package/template/scripts/test-template.mjs +52 -0
- package/template/scripts/verify.mjs +28 -0
- package/template/scripts/vite-plugin-cesium-dev.ts +56 -0
- package/template/src/api/README.md +4 -0
- package/template/src/components/Body/index.vue +65 -35
- package/template/src/components/CesiumViewer/index.vue +36 -0
- package/template/src/components/Header/index.vue +16 -5
- package/template/src/components/OnboardingDeck/index.vue +449 -0
- package/template/src/data/onboardingSlides.ts +208 -0
- package/template/src/main.ts +1 -0
- package/template/src/router/index.ts +20 -14
- package/template/src/router/routeUtils.ts +13 -0
- package/template/src/styles/shell.css +232 -0
- package/template/src/utils/axios-middleware.js +1 -1
- package/template/src/utils/cesium/index.ts +71 -0
- package/template/src/utils/composables/useFeatureGis.ts +24 -0
- package/template/src/views/examples/cesium/index.vue +85 -0
- package/template/src/views/examples/guide/index.vue +42 -0
- package/template/src/views/examples/test/index.vue +63 -0
- package/template/src/views/index.vue +2 -3
- package/template/tests/README.md +1 -0
- package/template/tests/unit/onboardingSlides.test.ts +20 -0
- package/template/tests/unit/router.utils.test.ts +21 -0
- package/template/tests/unit/scaffold.lib.test.ts +44 -0
- package/template/tests/unit/useFeatureGis.test.ts +14 -0
- package/template/tsconfig.json +17 -17
- package/template/tsconfig.node.json +1 -1
- package/template/types/env.d.ts +13 -0
- package/template/vite.config.ts +26 -5
- package/template/vitest.config.ts +13 -0
- package/template/.env +0 -1
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_0.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_1.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_10.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_11.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_12.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_13.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_14.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_15.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_16.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_17.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_18.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_19.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_2.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_20.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_21.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_22.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_23.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_24.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_25.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_26.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_27.json +0 -438
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_3.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_4.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_5.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_6.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_7.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_8.json +0 -1012
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_9.json +0 -1012
- package/template/public/Cesium1.119/Assets/Images/bing_maps_credit.png +0 -0
- package/template/public/Cesium1.119/Assets/Images/cesium_credit.png +0 -0
- package/template/public/Cesium1.119/Assets/Images/google_earth_credit.png +0 -0
- package/template/public/Cesium1.119/Assets/Images/ion-credit.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/LensFlare/DirtMask.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/LensFlare/StarBurst.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/0/0/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/0/1/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/0/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/0/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/1/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/1/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/2/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/2/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/3/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/3/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/tilemapresource.xml +0 -14
- package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_mx.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_my.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_mz.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_px.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_py.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_pz.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/airfield.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/airport.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/alcohol-shop.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/america-football.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/art-gallery.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/bakery.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/bank.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/bar.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/baseball.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/basketball.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/beer.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/bicycle.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/building.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/bus.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/cafe.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/camera.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/campsite.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/car.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/cemetery.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/cesium.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/chemist.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/cinema.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/circle-stroked.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/circle.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/city.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/clothing-store.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/college.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/commercial.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/cricket.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/cross.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/dam.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/danger.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/disability.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/dog-park.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/embassy.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/emergency-telephone.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/entrance.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/farm.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/fast-food.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/ferry.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/fire-station.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/fuel.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/garden.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/gift.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/golf.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/grocery.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/hairdresser.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/harbor.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/heart.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/heliport.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/hospital.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/ice-cream.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/industrial.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/land-use.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/laundry.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/library.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/lighthouse.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/lodging.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/logging.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/london-underground.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/marker-stroked.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/marker.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/minefield.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/mobilephone.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/monument.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/museum.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/music.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/oil-well.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/park.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/park2.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/parking-garage.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/parking.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/pharmacy.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/pitch.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/place-of-worship.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/playground.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/police.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/polling-place.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/post.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/prison.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/rail-above.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/rail-light.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/rail-metro.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/rail-underground.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/rail.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/religious-christian.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/religious-jewish.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/religious-muslim.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/restaurant.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/roadblock.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/rocket.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/school.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/scooter.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/shop.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/skiing.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/slaughterhouse.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/soccer.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/square-stroked.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/square.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/star-stroked.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/star.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/suitcase.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/swimming.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/telephone.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/tennis.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/theatre.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/toilets.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/town-hall.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/town.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/triangle-stroked.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/triangle.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/village.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/warehouse.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/waste-basket.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/water.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/wetland.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/zoo.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/moonSmall.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/pin.svg +0 -1
- package/template/public/Cesium1.119/Assets/Textures/waterNormals.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/waterNormalsSmall.jpg +0 -0
- package/template/public/Cesium1.119/Assets/approximateTerrainHeights.json +0 -10924
- package/template/public/Cesium1.119/Cesium.js +0 -185772
- package/template/public/Cesium1.119/ThirdParty/Workers/package.json +0 -3
- package/template/public/Cesium1.119/ThirdParty/Workers/pako_deflate.min.js +0 -1681
- package/template/public/Cesium1.119/ThirdParty/Workers/pako_inflate.min.js +0 -1489
- package/template/public/Cesium1.119/ThirdParty/Workers/z-worker-pako.js +0 -1070
- package/template/public/Cesium1.119/ThirdParty/basis_transcoder.wasm +0 -0
- package/template/public/Cesium1.119/ThirdParty/draco_decoder.wasm +0 -0
- package/template/public/Cesium1.119/ThirdParty/google-earth-dbroot-parser.js +0 -11424
- package/template/public/Cesium1.119/Widgets/Animation/Animation.css +0 -127
- package/template/public/Cesium1.119/Widgets/Animation/lighter.css +0 -78
- package/template/public/Cesium1.119/Widgets/BaseLayerPicker/BaseLayerPicker.css +0 -112
- package/template/public/Cesium1.119/Widgets/BaseLayerPicker/lighter.css +0 -28
- package/template/public/Cesium1.119/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css +0 -104
- package/template/public/Cesium1.119/Widgets/CesiumInspector/CesiumInspector.css +0 -115
- package/template/public/Cesium1.119/Widgets/CesiumWidget/CesiumWidget.css +0 -119
- package/template/public/Cesium1.119/Widgets/CesiumWidget/lighter.css +0 -14
- package/template/public/Cesium1.119/Widgets/FullscreenButton/FullscreenButton.css +0 -8
- package/template/public/Cesium1.119/Widgets/Geocoder/Geocoder.css +0 -72
- package/template/public/Cesium1.119/Widgets/Geocoder/lighter.css +0 -17
- package/template/public/Cesium1.119/Widgets/I3SBuildingSceneLayerExplorer/I3SBuildingSceneLayerExplorer.css +0 -27
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldHillshade.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldImagery.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldOcean.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/bingAerial.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/bingAerialLabels.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/bingRoads.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/blueMarble.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/earthAtNight.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapQuestOpenStreetMap.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapboxSatellite.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapboxStreets.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapboxTerrain.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/naturalEarthII.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/openStreetMap.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/sentinel-2.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stadiaAlidadeSmooth.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stadiaAlidadeSmoothDark.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stamenToner.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stamenWatercolor.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/Mouse.svg +0 -84
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/MouseLeft.svg +0 -76
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/MouseMiddle.svg +0 -76
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/MouseRight.svg +0 -76
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/Touch.svg +0 -120
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchDrag.svg +0 -129
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchRotate.svg +0 -76
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchTilt.svg +0 -135
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchZoom.svg +0 -74
- package/template/public/Cesium1.119/Widgets/Images/TerrainProviders/CesiumWorldTerrain.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/TerrainProviders/Ellipsoid.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/TimelineIcons.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/info-loading.gif +0 -0
- package/template/public/Cesium1.119/Widgets/InfoBox/InfoBox.css +0 -94
- package/template/public/Cesium1.119/Widgets/InfoBox/InfoBoxDescription.css +0 -178
- package/template/public/Cesium1.119/Widgets/NavigationHelpButton/NavigationHelpButton.css +0 -95
- package/template/public/Cesium1.119/Widgets/NavigationHelpButton/lighter.css +0 -38
- package/template/public/Cesium1.119/Widgets/PerformanceWatchdog/PerformanceWatchdog.css +0 -15
- package/template/public/Cesium1.119/Widgets/ProjectionPicker/ProjectionPicker.css +0 -46
- package/template/public/Cesium1.119/Widgets/SceneModePicker/SceneModePicker.css +0 -72
- package/template/public/Cesium1.119/Widgets/SelectionIndicator/SelectionIndicator.css +0 -22
- package/template/public/Cesium1.119/Widgets/Timeline/Timeline.css +0 -103
- package/template/public/Cesium1.119/Widgets/Timeline/lighter.css +0 -18
- package/template/public/Cesium1.119/Widgets/VRButton/VRButton.css +0 -8
- package/template/public/Cesium1.119/Widgets/Viewer/Viewer.css +0 -107
- package/template/public/Cesium1.119/Widgets/VoxelInspector/VoxelInspector.css +0 -18
- package/template/public/Cesium1.119/Widgets/lighter.css +0 -246
- package/template/public/Cesium1.119/Widgets/lighterShared.css +0 -46
- package/template/public/Cesium1.119/Widgets/shared.css +0 -103
- package/template/public/Cesium1.119/Widgets/widgets.css +0 -1376
- package/template/public/Cesium1.119/Workers/chunk-3C7WC463.js +0 -611
- package/template/public/Cesium1.119/Workers/chunk-3JW36LZF.js +0 -166
- package/template/public/Cesium1.119/Workers/chunk-4BTGX3WJ.js +0 -264
- package/template/public/Cesium1.119/Workers/chunk-4WRMLZA7.js +0 -128
- package/template/public/Cesium1.119/Workers/chunk-7Z5IIKOJ.js +0 -8046
- package/template/public/Cesium1.119/Workers/chunk-ABGXSJNX.js +0 -341
- package/template/public/Cesium1.119/Workers/chunk-AMQUWUD4.js +0 -269
- package/template/public/Cesium1.119/Workers/chunk-ATPDRNKI.js +0 -28
- package/template/public/Cesium1.119/Workers/chunk-BMHPVZ4H.js +0 -199
- package/template/public/Cesium1.119/Workers/chunk-CBEO3SHS.js +0 -1102
- package/template/public/Cesium1.119/Workers/chunk-CV7DLCWG.js +0 -485
- package/template/public/Cesium1.119/Workers/chunk-DQO6B4EQ.js +0 -76
- package/template/public/Cesium1.119/Workers/chunk-ED3TLP6D.js +0 -91
- package/template/public/Cesium1.119/Workers/chunk-EFZKO5RU.js +0 -42
- package/template/public/Cesium1.119/Workers/chunk-F5IHREXR.js +0 -2678
- package/template/public/Cesium1.119/Workers/chunk-FKRG4HDY.js +0 -516
- package/template/public/Cesium1.119/Workers/chunk-FYOYUPXG.js +0 -399
- package/template/public/Cesium1.119/Workers/chunk-GFN7NNSJ.js +0 -65
- package/template/public/Cesium1.119/Workers/chunk-HEEMUCG6.js +0 -92
- package/template/public/Cesium1.119/Workers/chunk-HSWA4OEL.js +0 -672
- package/template/public/Cesium1.119/Workers/chunk-IAC5XVZV.js +0 -287
- package/template/public/Cesium1.119/Workers/chunk-II4VNKYR.js +0 -50
- package/template/public/Cesium1.119/Workers/chunk-ILGBPNP6.js +0 -28
- package/template/public/Cesium1.119/Workers/chunk-IRH46BDL.js +0 -124
- package/template/public/Cesium1.119/Workers/chunk-IUA6FAOZ.js +0 -31
- package/template/public/Cesium1.119/Workers/chunk-K4ASOM65.js +0 -331
- package/template/public/Cesium1.119/Workers/chunk-KCIZBVXL.js +0 -258
- package/template/public/Cesium1.119/Workers/chunk-KF5NF354.js +0 -162
- package/template/public/Cesium1.119/Workers/chunk-KRKI6AAO.js +0 -773
- package/template/public/Cesium1.119/Workers/chunk-KZNJOCYU.js +0 -162
- package/template/public/Cesium1.119/Workers/chunk-O5IJ3OGP.js +0 -857
- package/template/public/Cesium1.119/Workers/chunk-OO23RBLX.js +0 -183
- package/template/public/Cesium1.119/Workers/chunk-P37AI2DW.js +0 -85
- package/template/public/Cesium1.119/Workers/chunk-PDMQLSBL.js +0 -108
- package/template/public/Cesium1.119/Workers/chunk-PEYJTJPE.js +0 -73
- package/template/public/Cesium1.119/Workers/chunk-POASMU2N.js +0 -2372
- package/template/public/Cesium1.119/Workers/chunk-PXCJYT2S.js +0 -73
- package/template/public/Cesium1.119/Workers/chunk-Q6L7X3LP.js +0 -538
- package/template/public/Cesium1.119/Workers/chunk-QB3MDM4J.js +0 -1670
- package/template/public/Cesium1.119/Workers/chunk-R6KGAEF6.js +0 -392
- package/template/public/Cesium1.119/Workers/chunk-RXTBM4OI.js +0 -57
- package/template/public/Cesium1.119/Workers/chunk-SB224QGV.js +0 -72
- package/template/public/Cesium1.119/Workers/chunk-T6BE4RZK.js +0 -37
- package/template/public/Cesium1.119/Workers/chunk-TAMCUKAR.js +0 -814
- package/template/public/Cesium1.119/Workers/chunk-TMSETF7M.js +0 -579
- package/template/public/Cesium1.119/Workers/chunk-TOGHF3VN.js +0 -376
- package/template/public/Cesium1.119/Workers/chunk-UH2WFNTA.js +0 -111
- package/template/public/Cesium1.119/Workers/chunk-V7JEDBOE.js +0 -573
- package/template/public/Cesium1.119/Workers/chunk-VBIROZR5.js +0 -633
- package/template/public/Cesium1.119/Workers/chunk-W23CU777.js +0 -271
- package/template/public/Cesium1.119/Workers/chunk-X5IHHI6X.js +0 -173
- package/template/public/Cesium1.119/Workers/chunk-XHX2UPDO.js +0 -217
- package/template/public/Cesium1.119/Workers/combineGeometry.js +0 -53
- package/template/public/Cesium1.119/Workers/createBoxGeometry.js +0 -45
- package/template/public/Cesium1.119/Workers/createBoxOutlineGeometry.js +0 -189
- package/template/public/Cesium1.119/Workers/createCircleGeometry.js +0 -148
- package/template/public/Cesium1.119/Workers/createCircleOutlineGeometry.js +0 -105
- package/template/public/Cesium1.119/Workers/createCoplanarPolygonGeometry.js +0 -293
- package/template/public/Cesium1.119/Workers/createCoplanarPolygonOutlineGeometry.js +0 -143
- package/template/public/Cesium1.119/Workers/createCorridorGeometry.js +0 -830
- package/template/public/Cesium1.119/Workers/createCorridorOutlineGeometry.js +0 -417
- package/template/public/Cesium1.119/Workers/createCylinderGeometry.js +0 -47
- package/template/public/Cesium1.119/Workers/createCylinderOutlineGeometry.js +0 -170
- package/template/public/Cesium1.119/Workers/createEllipseGeometry.js +0 -58
- package/template/public/Cesium1.119/Workers/createEllipseOutlineGeometry.js +0 -51
- package/template/public/Cesium1.119/Workers/createEllipsoidGeometry.js +0 -46
- package/template/public/Cesium1.119/Workers/createEllipsoidOutlineGeometry.js +0 -45
- package/template/public/Cesium1.119/Workers/createFrustumGeometry.js +0 -45
- package/template/public/Cesium1.119/Workers/createFrustumOutlineGeometry.js +0 -164
- package/template/public/Cesium1.119/Workers/createGeometry.js +0 -159
- package/template/public/Cesium1.119/Workers/createGroundPolylineGeometry.js +0 -911
- package/template/public/Cesium1.119/Workers/createPlaneGeometry.js +0 -185
- package/template/public/Cesium1.119/Workers/createPlaneOutlineGeometry.js +0 -93
- package/template/public/Cesium1.119/Workers/createPolygonGeometry.js +0 -884
- package/template/public/Cesium1.119/Workers/createPolygonOutlineGeometry.js +0 -359
- package/template/public/Cesium1.119/Workers/createPolylineGeometry.js +0 -349
- package/template/public/Cesium1.119/Workers/createPolylineVolumeGeometry.js +0 -262
- package/template/public/Cesium1.119/Workers/createPolylineVolumeOutlineGeometry.js +0 -177
- package/template/public/Cesium1.119/Workers/createRectangleGeometry.js +0 -787
- package/template/public/Cesium1.119/Workers/createRectangleOutlineGeometry.js +0 -299
- package/template/public/Cesium1.119/Workers/createSimplePolylineGeometry.js +0 -294
- package/template/public/Cesium1.119/Workers/createSphereGeometry.js +0 -84
- package/template/public/Cesium1.119/Workers/createSphereOutlineGeometry.js +0 -83
- package/template/public/Cesium1.119/Workers/createTaskProcessorWorker.js +0 -28
- package/template/public/Cesium1.119/Workers/createVectorTileClampedPolylines.js +0 -289
- package/template/public/Cesium1.119/Workers/createVectorTileGeometries.js +0 -258
- package/template/public/Cesium1.119/Workers/createVectorTilePoints.js +0 -79
- package/template/public/Cesium1.119/Workers/createVectorTilePolygons.js +0 -275
- package/template/public/Cesium1.119/Workers/createVectorTilePolylines.js +0 -176
- package/template/public/Cesium1.119/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +0 -375
- package/template/public/Cesium1.119/Workers/createVerticesFromHeightmap.js +0 -1772
- package/template/public/Cesium1.119/Workers/createVerticesFromQuantizedTerrainMesh.js +0 -425
- package/template/public/Cesium1.119/Workers/createWallGeometry.js +0 -320
- package/template/public/Cesium1.119/Workers/createWallOutlineGeometry.js +0 -229
- package/template/public/Cesium1.119/Workers/decodeDraco.js +0 -227
- package/template/public/Cesium1.119/Workers/decodeGoogleEarthEnterprisePacket.js +0 -1836
- package/template/public/Cesium1.119/Workers/decodeI3S.js +0 -924
- package/template/public/Cesium1.119/Workers/transcodeKTX2.js +0 -3180
- package/template/public/Cesium1.119/Workers/transferTypedArrayTest.js +0 -34
- package/template/public/Cesium1.119/Workers/upsampleQuantizedTerrainMesh.js +0 -534
- package/template/public/Cesium1.119/index.cjs +0 -185632
- package/template/public/Cesium1.119/index.js +0 -182874
- package/template/src/views/Test/index.vue +0 -56
- package/template/tests/unit/example.test.ts +0 -7
|
@@ -1,1102 +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 A } from "./chunk-HEEMUCG6.js";
|
|
27
|
-
import { a as Q } from "./chunk-PDMQLSBL.js";
|
|
28
|
-
import { a as ae } from "./chunk-T6BE4RZK.js";
|
|
29
|
-
import { b as oe, c as re, d as J } from "./chunk-X5IHHI6X.js";
|
|
30
|
-
import { b as V, d as ie } from "./chunk-TMSETF7M.js";
|
|
31
|
-
import { a as b, b as O, f as N } from "./chunk-7Z5IIKOJ.js";
|
|
32
|
-
import { a as H } from "./chunk-KZNJOCYU.js";
|
|
33
|
-
import { a as r, e as u } from "./chunk-POASMU2N.js";
|
|
34
|
-
import { a as P } from "./chunk-R6KGAEF6.js";
|
|
35
|
-
import { a as m } from "./chunk-IUA6FAOZ.js";
|
|
36
|
-
import { a as w, b as F } from "./chunk-UH2WFNTA.js";
|
|
37
|
-
import { e as a } from "./chunk-PEYJTJPE.js";
|
|
38
|
-
function q(e) {
|
|
39
|
-
this.planes = m(e, []);
|
|
40
|
-
}
|
|
41
|
-
var X = [new r(), new r(), new r()];
|
|
42
|
-
r.clone(r.UNIT_X, X[0]);
|
|
43
|
-
r.clone(r.UNIT_Y, X[1]);
|
|
44
|
-
r.clone(r.UNIT_Z, X[2]);
|
|
45
|
-
var E = new r(),
|
|
46
|
-
de = new r(),
|
|
47
|
-
fe = new Q(new r(1, 0, 0), 0);
|
|
48
|
-
q.fromBoundingSphere = function (e, t) {
|
|
49
|
-
if (!a(e)) throw new w("boundingSphere is required.");
|
|
50
|
-
a(t) || (t = new q());
|
|
51
|
-
let n = X.length,
|
|
52
|
-
f = t.planes;
|
|
53
|
-
f.length = 2 * n;
|
|
54
|
-
let p = e.center,
|
|
55
|
-
_ = e.radius,
|
|
56
|
-
s = 0;
|
|
57
|
-
for (let y = 0; y < n; ++y) {
|
|
58
|
-
let i = X[y],
|
|
59
|
-
c = f[s],
|
|
60
|
-
d = f[s + 1];
|
|
61
|
-
(a(c) || (c = f[s] = new b()),
|
|
62
|
-
a(d) || (d = f[s + 1] = new b()),
|
|
63
|
-
r.multiplyByScalar(i, -_, E),
|
|
64
|
-
r.add(p, E, E),
|
|
65
|
-
(c.x = i.x),
|
|
66
|
-
(c.y = i.y),
|
|
67
|
-
(c.z = i.z),
|
|
68
|
-
(c.w = -r.dot(i, E)),
|
|
69
|
-
r.multiplyByScalar(i, _, E),
|
|
70
|
-
r.add(p, E, E),
|
|
71
|
-
(d.x = -i.x),
|
|
72
|
-
(d.y = -i.y),
|
|
73
|
-
(d.z = -i.z),
|
|
74
|
-
(d.w = -r.dot(r.negate(i, de), E)),
|
|
75
|
-
(s += 2));
|
|
76
|
-
}
|
|
77
|
-
return t;
|
|
78
|
-
};
|
|
79
|
-
q.prototype.computeVisibility = function (e) {
|
|
80
|
-
if (!a(e)) throw new w("boundingVolume is required.");
|
|
81
|
-
let t = this.planes,
|
|
82
|
-
n = !1;
|
|
83
|
-
for (let f = 0, p = t.length; f < p; ++f) {
|
|
84
|
-
let _ = e.intersectPlane(Q.fromCartesian4(t[f], fe));
|
|
85
|
-
if (_ === V.OUTSIDE) return V.OUTSIDE;
|
|
86
|
-
_ === V.INTERSECTING && (n = !0);
|
|
87
|
-
}
|
|
88
|
-
return n ? V.INTERSECTING : V.INSIDE;
|
|
89
|
-
};
|
|
90
|
-
q.prototype.computeVisibilityWithPlaneMask = function (e, t) {
|
|
91
|
-
if (!a(e)) throw new w("boundingVolume is required.");
|
|
92
|
-
if (!a(t)) throw new w("parentPlaneMask is required.");
|
|
93
|
-
if (t === q.MASK_OUTSIDE || t === q.MASK_INSIDE) return t;
|
|
94
|
-
let n = q.MASK_INSIDE,
|
|
95
|
-
f = this.planes;
|
|
96
|
-
for (let p = 0, _ = f.length; p < _; ++p) {
|
|
97
|
-
let s = p < 31 ? 1 << p : 0;
|
|
98
|
-
if (p < 31 && !(t & s)) continue;
|
|
99
|
-
let y = e.intersectPlane(Q.fromCartesian4(f[p], fe));
|
|
100
|
-
if (y === V.OUTSIDE) return q.MASK_OUTSIDE;
|
|
101
|
-
y === V.INTERSECTING && (n |= s);
|
|
102
|
-
}
|
|
103
|
-
return n;
|
|
104
|
-
};
|
|
105
|
-
q.MASK_OUTSIDE = 4294967295;
|
|
106
|
-
q.MASK_INSIDE = 0;
|
|
107
|
-
q.MASK_INDETERMINATE = 2147483647;
|
|
108
|
-
var $ = q;
|
|
109
|
-
function k(e) {
|
|
110
|
-
((e = m(e, m.EMPTY_OBJECT)),
|
|
111
|
-
(this.left = e.left),
|
|
112
|
-
(this._left = void 0),
|
|
113
|
-
(this.right = e.right),
|
|
114
|
-
(this._right = void 0),
|
|
115
|
-
(this.top = e.top),
|
|
116
|
-
(this._top = void 0),
|
|
117
|
-
(this.bottom = e.bottom),
|
|
118
|
-
(this._bottom = void 0),
|
|
119
|
-
(this.near = m(e.near, 1)),
|
|
120
|
-
(this._near = this.near),
|
|
121
|
-
(this.far = m(e.far, 5e8)),
|
|
122
|
-
(this._far = this.far),
|
|
123
|
-
(this._cullingVolume = new $()),
|
|
124
|
-
(this._orthographicMatrix = new O()));
|
|
125
|
-
}
|
|
126
|
-
function ce(e) {
|
|
127
|
-
if (
|
|
128
|
-
!a(e.right) ||
|
|
129
|
-
!a(e.left) ||
|
|
130
|
-
!a(e.top) ||
|
|
131
|
-
!a(e.bottom) ||
|
|
132
|
-
!a(e.near) ||
|
|
133
|
-
!a(e.far)
|
|
134
|
-
)
|
|
135
|
-
throw new w(
|
|
136
|
-
"right, left, top, bottom, near, or far parameters are not set.",
|
|
137
|
-
);
|
|
138
|
-
if (
|
|
139
|
-
e.top !== e._top ||
|
|
140
|
-
e.bottom !== e._bottom ||
|
|
141
|
-
e.left !== e._left ||
|
|
142
|
-
e.right !== e._right ||
|
|
143
|
-
e.near !== e._near ||
|
|
144
|
-
e.far !== e._far
|
|
145
|
-
) {
|
|
146
|
-
if (e.left > e.right) throw new w("right must be greater than left.");
|
|
147
|
-
if (e.bottom > e.top) throw new w("top must be greater than bottom.");
|
|
148
|
-
if (e.near <= 0 || e.near > e.far)
|
|
149
|
-
throw new w("near must be greater than zero and less than far.");
|
|
150
|
-
((e._left = e.left),
|
|
151
|
-
(e._right = e.right),
|
|
152
|
-
(e._top = e.top),
|
|
153
|
-
(e._bottom = e.bottom),
|
|
154
|
-
(e._near = e.near),
|
|
155
|
-
(e._far = e.far),
|
|
156
|
-
(e._orthographicMatrix = O.computeOrthographicOffCenter(
|
|
157
|
-
e.left,
|
|
158
|
-
e.right,
|
|
159
|
-
e.bottom,
|
|
160
|
-
e.top,
|
|
161
|
-
e.near,
|
|
162
|
-
e.far,
|
|
163
|
-
e._orthographicMatrix,
|
|
164
|
-
)));
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
Object.defineProperties(k.prototype, {
|
|
168
|
-
projectionMatrix: {
|
|
169
|
-
get: function () {
|
|
170
|
-
return (ce(this), this._orthographicMatrix);
|
|
171
|
-
},
|
|
172
|
-
},
|
|
173
|
-
});
|
|
174
|
-
var me = new r(),
|
|
175
|
-
ye = new r(),
|
|
176
|
-
ge = new r(),
|
|
177
|
-
ee = new r();
|
|
178
|
-
k.prototype.computeCullingVolume = function (e, t, n) {
|
|
179
|
-
if (!a(e)) throw new w("position is required.");
|
|
180
|
-
if (!a(t)) throw new w("direction is required.");
|
|
181
|
-
if (!a(n)) throw new w("up is required.");
|
|
182
|
-
let f = this._cullingVolume.planes,
|
|
183
|
-
p = this.top,
|
|
184
|
-
_ = this.bottom,
|
|
185
|
-
s = this.right,
|
|
186
|
-
y = this.left,
|
|
187
|
-
i = this.near,
|
|
188
|
-
c = this.far,
|
|
189
|
-
d = r.cross(t, n, me);
|
|
190
|
-
r.normalize(d, d);
|
|
191
|
-
let g = ye;
|
|
192
|
-
(r.multiplyByScalar(t, i, g), r.add(e, g, g));
|
|
193
|
-
let l = ge;
|
|
194
|
-
(r.multiplyByScalar(d, y, l), r.add(g, l, l));
|
|
195
|
-
let o = f[0];
|
|
196
|
-
return (
|
|
197
|
-
a(o) || (o = f[0] = new b()),
|
|
198
|
-
(o.x = d.x),
|
|
199
|
-
(o.y = d.y),
|
|
200
|
-
(o.z = d.z),
|
|
201
|
-
(o.w = -r.dot(d, l)),
|
|
202
|
-
r.multiplyByScalar(d, s, l),
|
|
203
|
-
r.add(g, l, l),
|
|
204
|
-
(o = f[1]),
|
|
205
|
-
a(o) || (o = f[1] = new b()),
|
|
206
|
-
(o.x = -d.x),
|
|
207
|
-
(o.y = -d.y),
|
|
208
|
-
(o.z = -d.z),
|
|
209
|
-
(o.w = -r.dot(r.negate(d, ee), l)),
|
|
210
|
-
r.multiplyByScalar(n, _, l),
|
|
211
|
-
r.add(g, l, l),
|
|
212
|
-
(o = f[2]),
|
|
213
|
-
a(o) || (o = f[2] = new b()),
|
|
214
|
-
(o.x = n.x),
|
|
215
|
-
(o.y = n.y),
|
|
216
|
-
(o.z = n.z),
|
|
217
|
-
(o.w = -r.dot(n, l)),
|
|
218
|
-
r.multiplyByScalar(n, p, l),
|
|
219
|
-
r.add(g, l, l),
|
|
220
|
-
(o = f[3]),
|
|
221
|
-
a(o) || (o = f[3] = new b()),
|
|
222
|
-
(o.x = -n.x),
|
|
223
|
-
(o.y = -n.y),
|
|
224
|
-
(o.z = -n.z),
|
|
225
|
-
(o.w = -r.dot(r.negate(n, ee), l)),
|
|
226
|
-
(o = f[4]),
|
|
227
|
-
a(o) || (o = f[4] = new b()),
|
|
228
|
-
(o.x = t.x),
|
|
229
|
-
(o.y = t.y),
|
|
230
|
-
(o.z = t.z),
|
|
231
|
-
(o.w = -r.dot(t, g)),
|
|
232
|
-
r.multiplyByScalar(t, c, l),
|
|
233
|
-
r.add(e, l, l),
|
|
234
|
-
(o = f[5]),
|
|
235
|
-
a(o) || (o = f[5] = new b()),
|
|
236
|
-
(o.x = -t.x),
|
|
237
|
-
(o.y = -t.y),
|
|
238
|
-
(o.z = -t.z),
|
|
239
|
-
(o.w = -r.dot(r.negate(t, ee), l)),
|
|
240
|
-
this._cullingVolume
|
|
241
|
-
);
|
|
242
|
-
};
|
|
243
|
-
k.prototype.getPixelDimensions = function (e, t, n, f, p) {
|
|
244
|
-
if ((ce(this), !a(e) || !a(t)))
|
|
245
|
-
throw new w(
|
|
246
|
-
"Both drawingBufferWidth and drawingBufferHeight are required.",
|
|
247
|
-
);
|
|
248
|
-
if (e <= 0) throw new w("drawingBufferWidth must be greater than zero.");
|
|
249
|
-
if (t <= 0) throw new w("drawingBufferHeight must be greater than zero.");
|
|
250
|
-
if (!a(n)) throw new w("distance is required.");
|
|
251
|
-
if (!a(f)) throw new w("pixelRatio is required.");
|
|
252
|
-
if (f <= 0) throw new w("pixelRatio must be greater than zero.");
|
|
253
|
-
if (!a(p)) throw new w("A result object is required.");
|
|
254
|
-
let _ = this.right - this.left,
|
|
255
|
-
s = this.top - this.bottom,
|
|
256
|
-
y = (f * _) / e,
|
|
257
|
-
i = (f * s) / t;
|
|
258
|
-
return ((p.x = y), (p.y = i), p);
|
|
259
|
-
};
|
|
260
|
-
k.prototype.clone = function (e) {
|
|
261
|
-
return (
|
|
262
|
-
a(e) || (e = new k()),
|
|
263
|
-
(e.left = this.left),
|
|
264
|
-
(e.right = this.right),
|
|
265
|
-
(e.top = this.top),
|
|
266
|
-
(e.bottom = this.bottom),
|
|
267
|
-
(e.near = this.near),
|
|
268
|
-
(e.far = this.far),
|
|
269
|
-
(e._left = void 0),
|
|
270
|
-
(e._right = void 0),
|
|
271
|
-
(e._top = void 0),
|
|
272
|
-
(e._bottom = void 0),
|
|
273
|
-
(e._near = void 0),
|
|
274
|
-
(e._far = void 0),
|
|
275
|
-
e
|
|
276
|
-
);
|
|
277
|
-
};
|
|
278
|
-
k.prototype.equals = function (e) {
|
|
279
|
-
return (
|
|
280
|
-
a(e) &&
|
|
281
|
-
e instanceof k &&
|
|
282
|
-
this.right === e.right &&
|
|
283
|
-
this.left === e.left &&
|
|
284
|
-
this.top === e.top &&
|
|
285
|
-
this.bottom === e.bottom &&
|
|
286
|
-
this.near === e.near &&
|
|
287
|
-
this.far === e.far
|
|
288
|
-
);
|
|
289
|
-
};
|
|
290
|
-
k.prototype.equalsEpsilon = function (e, t, n) {
|
|
291
|
-
return (
|
|
292
|
-
e === this ||
|
|
293
|
-
(a(e) &&
|
|
294
|
-
e instanceof k &&
|
|
295
|
-
P.equalsEpsilon(this.right, e.right, t, n) &&
|
|
296
|
-
P.equalsEpsilon(this.left, e.left, t, n) &&
|
|
297
|
-
P.equalsEpsilon(this.top, e.top, t, n) &&
|
|
298
|
-
P.equalsEpsilon(this.bottom, e.bottom, t, n) &&
|
|
299
|
-
P.equalsEpsilon(this.near, e.near, t, n) &&
|
|
300
|
-
P.equalsEpsilon(this.far, e.far, t, n))
|
|
301
|
-
);
|
|
302
|
-
};
|
|
303
|
-
var he = k;
|
|
304
|
-
function v(e) {
|
|
305
|
-
((e = m(e, m.EMPTY_OBJECT)),
|
|
306
|
-
(this._offCenterFrustum = new he()),
|
|
307
|
-
(this.width = e.width),
|
|
308
|
-
(this._width = void 0),
|
|
309
|
-
(this.aspectRatio = e.aspectRatio),
|
|
310
|
-
(this._aspectRatio = void 0),
|
|
311
|
-
(this.near = m(e.near, 1)),
|
|
312
|
-
(this._near = this.near),
|
|
313
|
-
(this.far = m(e.far, 5e8)),
|
|
314
|
-
(this._far = this.far));
|
|
315
|
-
}
|
|
316
|
-
v.packedLength = 4;
|
|
317
|
-
v.pack = function (e, t, n) {
|
|
318
|
-
return (
|
|
319
|
-
F.typeOf.object("value", e),
|
|
320
|
-
F.defined("array", t),
|
|
321
|
-
(n = m(n, 0)),
|
|
322
|
-
(t[n++] = e.width),
|
|
323
|
-
(t[n++] = e.aspectRatio),
|
|
324
|
-
(t[n++] = e.near),
|
|
325
|
-
(t[n] = e.far),
|
|
326
|
-
t
|
|
327
|
-
);
|
|
328
|
-
};
|
|
329
|
-
v.unpack = function (e, t, n) {
|
|
330
|
-
return (
|
|
331
|
-
F.defined("array", e),
|
|
332
|
-
(t = m(t, 0)),
|
|
333
|
-
a(n) || (n = new v()),
|
|
334
|
-
(n.width = e[t++]),
|
|
335
|
-
(n.aspectRatio = e[t++]),
|
|
336
|
-
(n.near = e[t++]),
|
|
337
|
-
(n.far = e[t]),
|
|
338
|
-
n
|
|
339
|
-
);
|
|
340
|
-
};
|
|
341
|
-
function j(e) {
|
|
342
|
-
if (!a(e.width) || !a(e.aspectRatio) || !a(e.near) || !a(e.far))
|
|
343
|
-
throw new w("width, aspectRatio, near, or far parameters are not set.");
|
|
344
|
-
let t = e._offCenterFrustum;
|
|
345
|
-
if (
|
|
346
|
-
e.width !== e._width ||
|
|
347
|
-
e.aspectRatio !== e._aspectRatio ||
|
|
348
|
-
e.near !== e._near ||
|
|
349
|
-
e.far !== e._far
|
|
350
|
-
) {
|
|
351
|
-
if (e.aspectRatio < 0) throw new w("aspectRatio must be positive.");
|
|
352
|
-
if (e.near < 0 || e.near > e.far)
|
|
353
|
-
throw new w("near must be greater than zero and less than far.");
|
|
354
|
-
((e._aspectRatio = e.aspectRatio),
|
|
355
|
-
(e._width = e.width),
|
|
356
|
-
(e._near = e.near),
|
|
357
|
-
(e._far = e.far));
|
|
358
|
-
let n = 1 / e.aspectRatio;
|
|
359
|
-
((t.right = e.width * 0.5),
|
|
360
|
-
(t.left = -t.right),
|
|
361
|
-
(t.top = n * t.right),
|
|
362
|
-
(t.bottom = -t.top),
|
|
363
|
-
(t.near = e.near),
|
|
364
|
-
(t.far = e.far));
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
Object.defineProperties(v.prototype, {
|
|
368
|
-
projectionMatrix: {
|
|
369
|
-
get: function () {
|
|
370
|
-
return (j(this), this._offCenterFrustum.projectionMatrix);
|
|
371
|
-
},
|
|
372
|
-
},
|
|
373
|
-
offCenterFrustum: {
|
|
374
|
-
get: function () {
|
|
375
|
-
return (j(this), this._offCenterFrustum);
|
|
376
|
-
},
|
|
377
|
-
},
|
|
378
|
-
});
|
|
379
|
-
v.prototype.computeCullingVolume = function (e, t, n) {
|
|
380
|
-
return (j(this), this._offCenterFrustum.computeCullingVolume(e, t, n));
|
|
381
|
-
};
|
|
382
|
-
v.prototype.getPixelDimensions = function (e, t, n, f, p) {
|
|
383
|
-
return (j(this), this._offCenterFrustum.getPixelDimensions(e, t, n, f, p));
|
|
384
|
-
};
|
|
385
|
-
v.prototype.clone = function (e) {
|
|
386
|
-
return (
|
|
387
|
-
a(e) || (e = new v()),
|
|
388
|
-
(e.aspectRatio = this.aspectRatio),
|
|
389
|
-
(e.width = this.width),
|
|
390
|
-
(e.near = this.near),
|
|
391
|
-
(e.far = this.far),
|
|
392
|
-
(e._aspectRatio = void 0),
|
|
393
|
-
(e._width = void 0),
|
|
394
|
-
(e._near = void 0),
|
|
395
|
-
(e._far = void 0),
|
|
396
|
-
this._offCenterFrustum.clone(e._offCenterFrustum),
|
|
397
|
-
e
|
|
398
|
-
);
|
|
399
|
-
};
|
|
400
|
-
v.prototype.equals = function (e) {
|
|
401
|
-
return !a(e) || !(e instanceof v)
|
|
402
|
-
? !1
|
|
403
|
-
: (j(this),
|
|
404
|
-
j(e),
|
|
405
|
-
this.width === e.width &&
|
|
406
|
-
this.aspectRatio === e.aspectRatio &&
|
|
407
|
-
this._offCenterFrustum.equals(e._offCenterFrustum));
|
|
408
|
-
};
|
|
409
|
-
v.prototype.equalsEpsilon = function (e, t, n) {
|
|
410
|
-
return !a(e) || !(e instanceof v)
|
|
411
|
-
? !1
|
|
412
|
-
: (j(this),
|
|
413
|
-
j(e),
|
|
414
|
-
P.equalsEpsilon(this.width, e.width, t, n) &&
|
|
415
|
-
P.equalsEpsilon(this.aspectRatio, e.aspectRatio, t, n) &&
|
|
416
|
-
this._offCenterFrustum.equalsEpsilon(e._offCenterFrustum, t, n));
|
|
417
|
-
};
|
|
418
|
-
var B = v;
|
|
419
|
-
function S(e) {
|
|
420
|
-
((e = m(e, m.EMPTY_OBJECT)),
|
|
421
|
-
(this.left = e.left),
|
|
422
|
-
(this._left = void 0),
|
|
423
|
-
(this.right = e.right),
|
|
424
|
-
(this._right = void 0),
|
|
425
|
-
(this.top = e.top),
|
|
426
|
-
(this._top = void 0),
|
|
427
|
-
(this.bottom = e.bottom),
|
|
428
|
-
(this._bottom = void 0),
|
|
429
|
-
(this.near = m(e.near, 1)),
|
|
430
|
-
(this._near = this.near),
|
|
431
|
-
(this.far = m(e.far, 5e8)),
|
|
432
|
-
(this._far = this.far),
|
|
433
|
-
(this._cullingVolume = new $()),
|
|
434
|
-
(this._perspectiveMatrix = new O()),
|
|
435
|
-
(this._infinitePerspective = new O()));
|
|
436
|
-
}
|
|
437
|
-
function te(e) {
|
|
438
|
-
if (
|
|
439
|
-
!a(e.right) ||
|
|
440
|
-
!a(e.left) ||
|
|
441
|
-
!a(e.top) ||
|
|
442
|
-
!a(e.bottom) ||
|
|
443
|
-
!a(e.near) ||
|
|
444
|
-
!a(e.far)
|
|
445
|
-
)
|
|
446
|
-
throw new w(
|
|
447
|
-
"right, left, top, bottom, near, or far parameters are not set.",
|
|
448
|
-
);
|
|
449
|
-
let t = e.top,
|
|
450
|
-
n = e.bottom,
|
|
451
|
-
f = e.right,
|
|
452
|
-
p = e.left,
|
|
453
|
-
_ = e.near,
|
|
454
|
-
s = e.far;
|
|
455
|
-
if (
|
|
456
|
-
t !== e._top ||
|
|
457
|
-
n !== e._bottom ||
|
|
458
|
-
p !== e._left ||
|
|
459
|
-
f !== e._right ||
|
|
460
|
-
_ !== e._near ||
|
|
461
|
-
s !== e._far
|
|
462
|
-
) {
|
|
463
|
-
if (e.near <= 0 || e.near > e.far)
|
|
464
|
-
throw new w("near must be greater than zero and less than far.");
|
|
465
|
-
((e._left = p),
|
|
466
|
-
(e._right = f),
|
|
467
|
-
(e._top = t),
|
|
468
|
-
(e._bottom = n),
|
|
469
|
-
(e._near = _),
|
|
470
|
-
(e._far = s),
|
|
471
|
-
(e._perspectiveMatrix = O.computePerspectiveOffCenter(
|
|
472
|
-
p,
|
|
473
|
-
f,
|
|
474
|
-
n,
|
|
475
|
-
t,
|
|
476
|
-
_,
|
|
477
|
-
s,
|
|
478
|
-
e._perspectiveMatrix,
|
|
479
|
-
)),
|
|
480
|
-
(e._infinitePerspective = O.computeInfinitePerspectiveOffCenter(
|
|
481
|
-
p,
|
|
482
|
-
f,
|
|
483
|
-
n,
|
|
484
|
-
t,
|
|
485
|
-
_,
|
|
486
|
-
e._infinitePerspective,
|
|
487
|
-
)));
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
Object.defineProperties(S.prototype, {
|
|
491
|
-
projectionMatrix: {
|
|
492
|
-
get: function () {
|
|
493
|
-
return (te(this), this._perspectiveMatrix);
|
|
494
|
-
},
|
|
495
|
-
},
|
|
496
|
-
infiniteProjectionMatrix: {
|
|
497
|
-
get: function () {
|
|
498
|
-
return (te(this), this._infinitePerspective);
|
|
499
|
-
},
|
|
500
|
-
},
|
|
501
|
-
});
|
|
502
|
-
var Ce = new r(),
|
|
503
|
-
be = new r(),
|
|
504
|
-
Pe = new r(),
|
|
505
|
-
Oe = new r();
|
|
506
|
-
S.prototype.computeCullingVolume = function (e, t, n) {
|
|
507
|
-
if (!a(e)) throw new w("position is required.");
|
|
508
|
-
if (!a(t)) throw new w("direction is required.");
|
|
509
|
-
if (!a(n)) throw new w("up is required.");
|
|
510
|
-
let f = this._cullingVolume.planes,
|
|
511
|
-
p = this.top,
|
|
512
|
-
_ = this.bottom,
|
|
513
|
-
s = this.right,
|
|
514
|
-
y = this.left,
|
|
515
|
-
i = this.near,
|
|
516
|
-
c = this.far,
|
|
517
|
-
d = r.cross(t, n, Ce),
|
|
518
|
-
g = be;
|
|
519
|
-
(r.multiplyByScalar(t, i, g), r.add(e, g, g));
|
|
520
|
-
let l = Pe;
|
|
521
|
-
(r.multiplyByScalar(t, c, l), r.add(e, l, l));
|
|
522
|
-
let o = Oe;
|
|
523
|
-
(r.multiplyByScalar(d, y, o),
|
|
524
|
-
r.add(g, o, o),
|
|
525
|
-
r.subtract(o, e, o),
|
|
526
|
-
r.normalize(o, o),
|
|
527
|
-
r.cross(o, n, o),
|
|
528
|
-
r.normalize(o, o));
|
|
529
|
-
let h = f[0];
|
|
530
|
-
return (
|
|
531
|
-
a(h) || (h = f[0] = new b()),
|
|
532
|
-
(h.x = o.x),
|
|
533
|
-
(h.y = o.y),
|
|
534
|
-
(h.z = o.z),
|
|
535
|
-
(h.w = -r.dot(o, e)),
|
|
536
|
-
r.multiplyByScalar(d, s, o),
|
|
537
|
-
r.add(g, o, o),
|
|
538
|
-
r.subtract(o, e, o),
|
|
539
|
-
r.cross(n, o, o),
|
|
540
|
-
r.normalize(o, o),
|
|
541
|
-
(h = f[1]),
|
|
542
|
-
a(h) || (h = f[1] = new b()),
|
|
543
|
-
(h.x = o.x),
|
|
544
|
-
(h.y = o.y),
|
|
545
|
-
(h.z = o.z),
|
|
546
|
-
(h.w = -r.dot(o, e)),
|
|
547
|
-
r.multiplyByScalar(n, _, o),
|
|
548
|
-
r.add(g, o, o),
|
|
549
|
-
r.subtract(o, e, o),
|
|
550
|
-
r.cross(d, o, o),
|
|
551
|
-
r.normalize(o, o),
|
|
552
|
-
(h = f[2]),
|
|
553
|
-
a(h) || (h = f[2] = new b()),
|
|
554
|
-
(h.x = o.x),
|
|
555
|
-
(h.y = o.y),
|
|
556
|
-
(h.z = o.z),
|
|
557
|
-
(h.w = -r.dot(o, e)),
|
|
558
|
-
r.multiplyByScalar(n, p, o),
|
|
559
|
-
r.add(g, o, o),
|
|
560
|
-
r.subtract(o, e, o),
|
|
561
|
-
r.cross(o, d, o),
|
|
562
|
-
r.normalize(o, o),
|
|
563
|
-
(h = f[3]),
|
|
564
|
-
a(h) || (h = f[3] = new b()),
|
|
565
|
-
(h.x = o.x),
|
|
566
|
-
(h.y = o.y),
|
|
567
|
-
(h.z = o.z),
|
|
568
|
-
(h.w = -r.dot(o, e)),
|
|
569
|
-
(h = f[4]),
|
|
570
|
-
a(h) || (h = f[4] = new b()),
|
|
571
|
-
(h.x = t.x),
|
|
572
|
-
(h.y = t.y),
|
|
573
|
-
(h.z = t.z),
|
|
574
|
-
(h.w = -r.dot(t, g)),
|
|
575
|
-
r.negate(t, o),
|
|
576
|
-
(h = f[5]),
|
|
577
|
-
a(h) || (h = f[5] = new b()),
|
|
578
|
-
(h.x = o.x),
|
|
579
|
-
(h.y = o.y),
|
|
580
|
-
(h.z = o.z),
|
|
581
|
-
(h.w = -r.dot(o, l)),
|
|
582
|
-
this._cullingVolume
|
|
583
|
-
);
|
|
584
|
-
};
|
|
585
|
-
S.prototype.getPixelDimensions = function (e, t, n, f, p) {
|
|
586
|
-
if ((te(this), !a(e) || !a(t)))
|
|
587
|
-
throw new w(
|
|
588
|
-
"Both drawingBufferWidth and drawingBufferHeight are required.",
|
|
589
|
-
);
|
|
590
|
-
if (e <= 0) throw new w("drawingBufferWidth must be greater than zero.");
|
|
591
|
-
if (t <= 0) throw new w("drawingBufferHeight must be greater than zero.");
|
|
592
|
-
if (!a(n)) throw new w("distance is required.");
|
|
593
|
-
if (!a(f)) throw new w("pixelRatio is required");
|
|
594
|
-
if (f <= 0) throw new w("pixelRatio must be greater than zero.");
|
|
595
|
-
if (!a(p)) throw new w("A result object is required.");
|
|
596
|
-
let _ = 1 / this.near,
|
|
597
|
-
s = this.top * _,
|
|
598
|
-
y = (2 * f * n * s) / t;
|
|
599
|
-
s = this.right * _;
|
|
600
|
-
let i = (2 * f * n * s) / e;
|
|
601
|
-
return ((p.x = i), (p.y = y), p);
|
|
602
|
-
};
|
|
603
|
-
S.prototype.clone = function (e) {
|
|
604
|
-
return (
|
|
605
|
-
a(e) || (e = new S()),
|
|
606
|
-
(e.right = this.right),
|
|
607
|
-
(e.left = this.left),
|
|
608
|
-
(e.top = this.top),
|
|
609
|
-
(e.bottom = this.bottom),
|
|
610
|
-
(e.near = this.near),
|
|
611
|
-
(e.far = this.far),
|
|
612
|
-
(e._left = void 0),
|
|
613
|
-
(e._right = void 0),
|
|
614
|
-
(e._top = void 0),
|
|
615
|
-
(e._bottom = void 0),
|
|
616
|
-
(e._near = void 0),
|
|
617
|
-
(e._far = void 0),
|
|
618
|
-
e
|
|
619
|
-
);
|
|
620
|
-
};
|
|
621
|
-
S.prototype.equals = function (e) {
|
|
622
|
-
return (
|
|
623
|
-
a(e) &&
|
|
624
|
-
e instanceof S &&
|
|
625
|
-
this.right === e.right &&
|
|
626
|
-
this.left === e.left &&
|
|
627
|
-
this.top === e.top &&
|
|
628
|
-
this.bottom === e.bottom &&
|
|
629
|
-
this.near === e.near &&
|
|
630
|
-
this.far === e.far
|
|
631
|
-
);
|
|
632
|
-
};
|
|
633
|
-
S.prototype.equalsEpsilon = function (e, t, n) {
|
|
634
|
-
return (
|
|
635
|
-
e === this ||
|
|
636
|
-
(a(e) &&
|
|
637
|
-
e instanceof S &&
|
|
638
|
-
P.equalsEpsilon(this.right, e.right, t, n) &&
|
|
639
|
-
P.equalsEpsilon(this.left, e.left, t, n) &&
|
|
640
|
-
P.equalsEpsilon(this.top, e.top, t, n) &&
|
|
641
|
-
P.equalsEpsilon(this.bottom, e.bottom, t, n) &&
|
|
642
|
-
P.equalsEpsilon(this.near, e.near, t, n) &&
|
|
643
|
-
P.equalsEpsilon(this.far, e.far, t, n))
|
|
644
|
-
);
|
|
645
|
-
};
|
|
646
|
-
var pe = S;
|
|
647
|
-
function R(e) {
|
|
648
|
-
((e = m(e, m.EMPTY_OBJECT)),
|
|
649
|
-
(this._offCenterFrustum = new pe()),
|
|
650
|
-
(this.fov = e.fov),
|
|
651
|
-
(this._fov = void 0),
|
|
652
|
-
(this._fovy = void 0),
|
|
653
|
-
(this._sseDenominator = void 0),
|
|
654
|
-
(this.aspectRatio = e.aspectRatio),
|
|
655
|
-
(this._aspectRatio = void 0),
|
|
656
|
-
(this.near = m(e.near, 1)),
|
|
657
|
-
(this._near = this.near),
|
|
658
|
-
(this.far = m(e.far, 5e8)),
|
|
659
|
-
(this._far = this.far),
|
|
660
|
-
(this.xOffset = m(e.xOffset, 0)),
|
|
661
|
-
(this._xOffset = this.xOffset),
|
|
662
|
-
(this.yOffset = m(e.yOffset, 0)),
|
|
663
|
-
(this._yOffset = this.yOffset));
|
|
664
|
-
}
|
|
665
|
-
R.packedLength = 6;
|
|
666
|
-
R.pack = function (e, t, n) {
|
|
667
|
-
return (
|
|
668
|
-
F.typeOf.object("value", e),
|
|
669
|
-
F.defined("array", t),
|
|
670
|
-
(n = m(n, 0)),
|
|
671
|
-
(t[n++] = e.fov),
|
|
672
|
-
(t[n++] = e.aspectRatio),
|
|
673
|
-
(t[n++] = e.near),
|
|
674
|
-
(t[n++] = e.far),
|
|
675
|
-
(t[n++] = e.xOffset),
|
|
676
|
-
(t[n] = e.yOffset),
|
|
677
|
-
t
|
|
678
|
-
);
|
|
679
|
-
};
|
|
680
|
-
R.unpack = function (e, t, n) {
|
|
681
|
-
return (
|
|
682
|
-
F.defined("array", e),
|
|
683
|
-
(t = m(t, 0)),
|
|
684
|
-
a(n) || (n = new R()),
|
|
685
|
-
(n.fov = e[t++]),
|
|
686
|
-
(n.aspectRatio = e[t++]),
|
|
687
|
-
(n.near = e[t++]),
|
|
688
|
-
(n.far = e[t++]),
|
|
689
|
-
(n.xOffset = e[t++]),
|
|
690
|
-
(n.yOffset = e[t]),
|
|
691
|
-
n
|
|
692
|
-
);
|
|
693
|
-
};
|
|
694
|
-
function T(e) {
|
|
695
|
-
if (!a(e.fov) || !a(e.aspectRatio) || !a(e.near) || !a(e.far))
|
|
696
|
-
throw new w("fov, aspectRatio, near, or far parameters are not set.");
|
|
697
|
-
let t = e._offCenterFrustum;
|
|
698
|
-
if (
|
|
699
|
-
e.fov !== e._fov ||
|
|
700
|
-
e.aspectRatio !== e._aspectRatio ||
|
|
701
|
-
e.near !== e._near ||
|
|
702
|
-
e.far !== e._far ||
|
|
703
|
-
e.xOffset !== e._xOffset ||
|
|
704
|
-
e.yOffset !== e._yOffset
|
|
705
|
-
) {
|
|
706
|
-
if (e.fov < 0 || e.fov >= Math.PI)
|
|
707
|
-
throw new w("fov must be in the range [0, PI).");
|
|
708
|
-
if (e.aspectRatio < 0) throw new w("aspectRatio must be positive.");
|
|
709
|
-
if (e.near < 0 || e.near > e.far)
|
|
710
|
-
throw new w("near must be greater than zero and less than far.");
|
|
711
|
-
((e._aspectRatio = e.aspectRatio),
|
|
712
|
-
(e._fov = e.fov),
|
|
713
|
-
(e._fovy =
|
|
714
|
-
e.aspectRatio <= 1
|
|
715
|
-
? e.fov
|
|
716
|
-
: Math.atan(Math.tan(e.fov * 0.5) / e.aspectRatio) * 2),
|
|
717
|
-
(e._near = e.near),
|
|
718
|
-
(e._far = e.far),
|
|
719
|
-
(e._sseDenominator = 2 * Math.tan(0.5 * e._fovy)),
|
|
720
|
-
(e._xOffset = e.xOffset),
|
|
721
|
-
(e._yOffset = e.yOffset),
|
|
722
|
-
(t.top = e.near * Math.tan(0.5 * e._fovy)),
|
|
723
|
-
(t.bottom = -t.top),
|
|
724
|
-
(t.right = e.aspectRatio * t.top),
|
|
725
|
-
(t.left = -t.right),
|
|
726
|
-
(t.near = e.near),
|
|
727
|
-
(t.far = e.far),
|
|
728
|
-
(t.right += e.xOffset),
|
|
729
|
-
(t.left += e.xOffset),
|
|
730
|
-
(t.top += e.yOffset),
|
|
731
|
-
(t.bottom += e.yOffset));
|
|
732
|
-
}
|
|
733
|
-
}
|
|
734
|
-
Object.defineProperties(R.prototype, {
|
|
735
|
-
projectionMatrix: {
|
|
736
|
-
get: function () {
|
|
737
|
-
return (T(this), this._offCenterFrustum.projectionMatrix);
|
|
738
|
-
},
|
|
739
|
-
},
|
|
740
|
-
infiniteProjectionMatrix: {
|
|
741
|
-
get: function () {
|
|
742
|
-
return (T(this), this._offCenterFrustum.infiniteProjectionMatrix);
|
|
743
|
-
},
|
|
744
|
-
},
|
|
745
|
-
fovy: {
|
|
746
|
-
get: function () {
|
|
747
|
-
return (T(this), this._fovy);
|
|
748
|
-
},
|
|
749
|
-
},
|
|
750
|
-
sseDenominator: {
|
|
751
|
-
get: function () {
|
|
752
|
-
return (T(this), this._sseDenominator);
|
|
753
|
-
},
|
|
754
|
-
},
|
|
755
|
-
offCenterFrustum: {
|
|
756
|
-
get: function () {
|
|
757
|
-
return (T(this), this._offCenterFrustum);
|
|
758
|
-
},
|
|
759
|
-
},
|
|
760
|
-
});
|
|
761
|
-
R.prototype.computeCullingVolume = function (e, t, n) {
|
|
762
|
-
return (T(this), this._offCenterFrustum.computeCullingVolume(e, t, n));
|
|
763
|
-
};
|
|
764
|
-
R.prototype.getPixelDimensions = function (e, t, n, f, p) {
|
|
765
|
-
return (T(this), this._offCenterFrustum.getPixelDimensions(e, t, n, f, p));
|
|
766
|
-
};
|
|
767
|
-
R.prototype.clone = function (e) {
|
|
768
|
-
return (
|
|
769
|
-
a(e) || (e = new R()),
|
|
770
|
-
(e.aspectRatio = this.aspectRatio),
|
|
771
|
-
(e.fov = this.fov),
|
|
772
|
-
(e.near = this.near),
|
|
773
|
-
(e.far = this.far),
|
|
774
|
-
(e._aspectRatio = void 0),
|
|
775
|
-
(e._fov = void 0),
|
|
776
|
-
(e._near = void 0),
|
|
777
|
-
(e._far = void 0),
|
|
778
|
-
this._offCenterFrustum.clone(e._offCenterFrustum),
|
|
779
|
-
e
|
|
780
|
-
);
|
|
781
|
-
};
|
|
782
|
-
R.prototype.equals = function (e) {
|
|
783
|
-
return !a(e) || !(e instanceof R)
|
|
784
|
-
? !1
|
|
785
|
-
: (T(this),
|
|
786
|
-
T(e),
|
|
787
|
-
this.fov === e.fov &&
|
|
788
|
-
this.aspectRatio === e.aspectRatio &&
|
|
789
|
-
this._offCenterFrustum.equals(e._offCenterFrustum));
|
|
790
|
-
};
|
|
791
|
-
R.prototype.equalsEpsilon = function (e, t, n) {
|
|
792
|
-
return !a(e) || !(e instanceof R)
|
|
793
|
-
? !1
|
|
794
|
-
: (T(this),
|
|
795
|
-
T(e),
|
|
796
|
-
P.equalsEpsilon(this.fov, e.fov, t, n) &&
|
|
797
|
-
P.equalsEpsilon(this.aspectRatio, e.aspectRatio, t, n) &&
|
|
798
|
-
this._offCenterFrustum.equalsEpsilon(e._offCenterFrustum, t, n));
|
|
799
|
-
};
|
|
800
|
-
var L = R;
|
|
801
|
-
var I = 0,
|
|
802
|
-
Fe = 1;
|
|
803
|
-
function Y(e) {
|
|
804
|
-
(F.typeOf.object("options", e),
|
|
805
|
-
F.typeOf.object("options.frustum", e.frustum),
|
|
806
|
-
F.typeOf.object("options.origin", e.origin),
|
|
807
|
-
F.typeOf.object("options.orientation", e.orientation));
|
|
808
|
-
let t = e.frustum,
|
|
809
|
-
n = e.orientation,
|
|
810
|
-
f = e.origin,
|
|
811
|
-
p = m(e.vertexFormat, A.DEFAULT),
|
|
812
|
-
_ = m(e._drawNearPlane, !0),
|
|
813
|
-
s,
|
|
814
|
-
y;
|
|
815
|
-
(t instanceof L
|
|
816
|
-
? ((s = I), (y = L.packedLength))
|
|
817
|
-
: t instanceof B && ((s = Fe), (y = B.packedLength)),
|
|
818
|
-
(this._frustumType = s),
|
|
819
|
-
(this._frustum = t.clone()),
|
|
820
|
-
(this._origin = r.clone(f)),
|
|
821
|
-
(this._orientation = N.clone(n)),
|
|
822
|
-
(this._drawNearPlane = _),
|
|
823
|
-
(this._vertexFormat = p),
|
|
824
|
-
(this._workerName = "createFrustumGeometry"),
|
|
825
|
-
(this.packedLength =
|
|
826
|
-
2 + y + r.packedLength + N.packedLength + A.packedLength));
|
|
827
|
-
}
|
|
828
|
-
Y.pack = function (e, t, n) {
|
|
829
|
-
(F.typeOf.object("value", e), F.defined("array", t), (n = m(n, 0)));
|
|
830
|
-
let f = e._frustumType,
|
|
831
|
-
p = e._frustum;
|
|
832
|
-
return (
|
|
833
|
-
(t[n++] = f),
|
|
834
|
-
f === I
|
|
835
|
-
? (L.pack(p, t, n), (n += L.packedLength))
|
|
836
|
-
: (B.pack(p, t, n), (n += B.packedLength)),
|
|
837
|
-
r.pack(e._origin, t, n),
|
|
838
|
-
(n += r.packedLength),
|
|
839
|
-
N.pack(e._orientation, t, n),
|
|
840
|
-
(n += N.packedLength),
|
|
841
|
-
A.pack(e._vertexFormat, t, n),
|
|
842
|
-
(n += A.packedLength),
|
|
843
|
-
(t[n] = e._drawNearPlane ? 1 : 0),
|
|
844
|
-
t
|
|
845
|
-
);
|
|
846
|
-
};
|
|
847
|
-
var xe = new L(),
|
|
848
|
-
ze = new B(),
|
|
849
|
-
ve = new N(),
|
|
850
|
-
Re = new r(),
|
|
851
|
-
qe = new A();
|
|
852
|
-
Y.unpack = function (e, t, n) {
|
|
853
|
-
(F.defined("array", e), (t = m(t, 0)));
|
|
854
|
-
let f = e[t++],
|
|
855
|
-
p;
|
|
856
|
-
f === I
|
|
857
|
-
? ((p = L.unpack(e, t, xe)), (t += L.packedLength))
|
|
858
|
-
: ((p = B.unpack(e, t, ze)), (t += B.packedLength));
|
|
859
|
-
let _ = r.unpack(e, t, Re);
|
|
860
|
-
t += r.packedLength;
|
|
861
|
-
let s = N.unpack(e, t, ve);
|
|
862
|
-
t += N.packedLength;
|
|
863
|
-
let y = A.unpack(e, t, qe);
|
|
864
|
-
t += A.packedLength;
|
|
865
|
-
let i = e[t] === 1;
|
|
866
|
-
if (!a(n))
|
|
867
|
-
return new Y({
|
|
868
|
-
frustum: p,
|
|
869
|
-
origin: _,
|
|
870
|
-
orientation: s,
|
|
871
|
-
vertexFormat: y,
|
|
872
|
-
_drawNearPlane: i,
|
|
873
|
-
});
|
|
874
|
-
let c = f === n._frustumType ? n._frustum : void 0;
|
|
875
|
-
return (
|
|
876
|
-
(n._frustum = p.clone(c)),
|
|
877
|
-
(n._frustumType = f),
|
|
878
|
-
(n._origin = r.clone(_, n._origin)),
|
|
879
|
-
(n._orientation = N.clone(s, n._orientation)),
|
|
880
|
-
(n._vertexFormat = A.clone(y, n._vertexFormat)),
|
|
881
|
-
(n._drawNearPlane = i),
|
|
882
|
-
n
|
|
883
|
-
);
|
|
884
|
-
};
|
|
885
|
-
function W(e, t, n, f, p, _, s, y) {
|
|
886
|
-
let i = (e / 3) * 2;
|
|
887
|
-
for (let c = 0; c < 4; ++c)
|
|
888
|
-
(a(t) && ((t[e] = _.x), (t[e + 1] = _.y), (t[e + 2] = _.z)),
|
|
889
|
-
a(n) && ((n[e] = s.x), (n[e + 1] = s.y), (n[e + 2] = s.z)),
|
|
890
|
-
a(f) && ((f[e] = y.x), (f[e + 1] = y.y), (f[e + 2] = y.z)),
|
|
891
|
-
(e += 3));
|
|
892
|
-
((p[i] = 0),
|
|
893
|
-
(p[i + 1] = 0),
|
|
894
|
-
(p[i + 2] = 1),
|
|
895
|
-
(p[i + 3] = 0),
|
|
896
|
-
(p[i + 4] = 1),
|
|
897
|
-
(p[i + 5] = 1),
|
|
898
|
-
(p[i + 6] = 0),
|
|
899
|
-
(p[i + 7] = 1));
|
|
900
|
-
}
|
|
901
|
-
var Te = new u(),
|
|
902
|
-
Me = new O(),
|
|
903
|
-
ne = new O(),
|
|
904
|
-
se = new r(),
|
|
905
|
-
le = new r(),
|
|
906
|
-
we = new r(),
|
|
907
|
-
ke = new r(),
|
|
908
|
-
Se = new r(),
|
|
909
|
-
De = new r(),
|
|
910
|
-
U = new Array(3),
|
|
911
|
-
Z = new Array(4);
|
|
912
|
-
Z[0] = new b(-1, -1, 1, 1);
|
|
913
|
-
Z[1] = new b(1, -1, 1, 1);
|
|
914
|
-
Z[2] = new b(1, 1, 1, 1);
|
|
915
|
-
Z[3] = new b(-1, 1, 1, 1);
|
|
916
|
-
var _e = new Array(4);
|
|
917
|
-
for (let e = 0; e < 4; ++e) _e[e] = new b();
|
|
918
|
-
Y._computeNearFarPlanes = function (e, t, n, f, p, _, s, y) {
|
|
919
|
-
let i = u.fromQuaternion(t, Te),
|
|
920
|
-
c = m(_, se),
|
|
921
|
-
d = m(s, le),
|
|
922
|
-
g = m(y, we);
|
|
923
|
-
((c = u.getColumn(i, 0, c)),
|
|
924
|
-
(d = u.getColumn(i, 1, d)),
|
|
925
|
-
(g = u.getColumn(i, 2, g)),
|
|
926
|
-
r.normalize(c, c),
|
|
927
|
-
r.normalize(d, d),
|
|
928
|
-
r.normalize(g, g),
|
|
929
|
-
r.negate(c, c));
|
|
930
|
-
let l = O.computeView(e, g, d, c, Me),
|
|
931
|
-
o,
|
|
932
|
-
h,
|
|
933
|
-
M = f.projectionMatrix;
|
|
934
|
-
if (n === I) {
|
|
935
|
-
let x = O.multiply(M, l, ne);
|
|
936
|
-
h = O.inverse(x, ne);
|
|
937
|
-
} else o = O.inverseTransformation(l, ne);
|
|
938
|
-
a(h)
|
|
939
|
-
? ((U[0] = f.near), (U[1] = f.far))
|
|
940
|
-
: ((U[0] = 0), (U[1] = f.near), (U[2] = f.far));
|
|
941
|
-
for (let x = 0; x < 2; ++x)
|
|
942
|
-
for (let z = 0; z < 4; ++z) {
|
|
943
|
-
let C = b.clone(Z[z], _e[z]);
|
|
944
|
-
if (a(h)) {
|
|
945
|
-
C = O.multiplyByVector(h, C, C);
|
|
946
|
-
let D = 1 / C.w;
|
|
947
|
-
(r.multiplyByScalar(C, D, C), r.subtract(C, e, C), r.normalize(C, C));
|
|
948
|
-
let K = r.dot(g, C);
|
|
949
|
-
(r.multiplyByScalar(C, U[x] / K, C), r.add(C, e, C));
|
|
950
|
-
} else {
|
|
951
|
-
let D = f.offCenterFrustum;
|
|
952
|
-
a(D) && (f = D);
|
|
953
|
-
let K = U[x],
|
|
954
|
-
G = U[x + 1];
|
|
955
|
-
((C.x = (C.x * (f.right - f.left) + f.left + f.right) * 0.5),
|
|
956
|
-
(C.y = (C.y * (f.top - f.bottom) + f.bottom + f.top) * 0.5),
|
|
957
|
-
(C.z = (C.z * (K - G) - K - G) * 0.5),
|
|
958
|
-
(C.w = 1),
|
|
959
|
-
O.multiplyByVector(o, C, C));
|
|
960
|
-
}
|
|
961
|
-
((p[12 * x + z * 3] = C.x),
|
|
962
|
-
(p[12 * x + z * 3 + 1] = C.y),
|
|
963
|
-
(p[12 * x + z * 3 + 2] = C.z));
|
|
964
|
-
}
|
|
965
|
-
};
|
|
966
|
-
Y.createGeometry = function (e) {
|
|
967
|
-
let t = e._frustumType,
|
|
968
|
-
n = e._frustum,
|
|
969
|
-
f = e._origin,
|
|
970
|
-
p = e._orientation,
|
|
971
|
-
_ = e._drawNearPlane,
|
|
972
|
-
s = e._vertexFormat,
|
|
973
|
-
y = _ ? 6 : 5,
|
|
974
|
-
i = new Float64Array(3 * 4 * 6);
|
|
975
|
-
Y._computeNearFarPlanes(f, p, t, n, i);
|
|
976
|
-
let c = 3 * 4 * 2;
|
|
977
|
-
((i[c] = i[3 * 4]),
|
|
978
|
-
(i[c + 1] = i[3 * 4 + 1]),
|
|
979
|
-
(i[c + 2] = i[3 * 4 + 2]),
|
|
980
|
-
(i[c + 3] = i[0]),
|
|
981
|
-
(i[c + 4] = i[1]),
|
|
982
|
-
(i[c + 5] = i[2]),
|
|
983
|
-
(i[c + 6] = i[3 * 3]),
|
|
984
|
-
(i[c + 7] = i[3 * 3 + 1]),
|
|
985
|
-
(i[c + 8] = i[3 * 3 + 2]),
|
|
986
|
-
(i[c + 9] = i[3 * 7]),
|
|
987
|
-
(i[c + 10] = i[3 * 7 + 1]),
|
|
988
|
-
(i[c + 11] = i[3 * 7 + 2]),
|
|
989
|
-
(c += 3 * 4),
|
|
990
|
-
(i[c] = i[3 * 5]),
|
|
991
|
-
(i[c + 1] = i[3 * 5 + 1]),
|
|
992
|
-
(i[c + 2] = i[3 * 5 + 2]),
|
|
993
|
-
(i[c + 3] = i[3]),
|
|
994
|
-
(i[c + 4] = i[4]),
|
|
995
|
-
(i[c + 5] = i[5]),
|
|
996
|
-
(i[c + 6] = i[0]),
|
|
997
|
-
(i[c + 7] = i[1]),
|
|
998
|
-
(i[c + 8] = i[2]),
|
|
999
|
-
(i[c + 9] = i[3 * 4]),
|
|
1000
|
-
(i[c + 10] = i[3 * 4 + 1]),
|
|
1001
|
-
(i[c + 11] = i[3 * 4 + 2]),
|
|
1002
|
-
(c += 3 * 4),
|
|
1003
|
-
(i[c] = i[3]),
|
|
1004
|
-
(i[c + 1] = i[4]),
|
|
1005
|
-
(i[c + 2] = i[5]),
|
|
1006
|
-
(i[c + 3] = i[3 * 5]),
|
|
1007
|
-
(i[c + 4] = i[3 * 5 + 1]),
|
|
1008
|
-
(i[c + 5] = i[3 * 5 + 2]),
|
|
1009
|
-
(i[c + 6] = i[3 * 6]),
|
|
1010
|
-
(i[c + 7] = i[3 * 6 + 1]),
|
|
1011
|
-
(i[c + 8] = i[3 * 6 + 2]),
|
|
1012
|
-
(i[c + 9] = i[3 * 2]),
|
|
1013
|
-
(i[c + 10] = i[3 * 2 + 1]),
|
|
1014
|
-
(i[c + 11] = i[3 * 2 + 2]),
|
|
1015
|
-
(c += 3 * 4),
|
|
1016
|
-
(i[c] = i[3 * 2]),
|
|
1017
|
-
(i[c + 1] = i[3 * 2 + 1]),
|
|
1018
|
-
(i[c + 2] = i[3 * 2 + 2]),
|
|
1019
|
-
(i[c + 3] = i[3 * 6]),
|
|
1020
|
-
(i[c + 4] = i[3 * 6 + 1]),
|
|
1021
|
-
(i[c + 5] = i[3 * 6 + 2]),
|
|
1022
|
-
(i[c + 6] = i[3 * 7]),
|
|
1023
|
-
(i[c + 7] = i[3 * 7 + 1]),
|
|
1024
|
-
(i[c + 8] = i[3 * 7 + 2]),
|
|
1025
|
-
(i[c + 9] = i[3 * 3]),
|
|
1026
|
-
(i[c + 10] = i[3 * 3 + 1]),
|
|
1027
|
-
(i[c + 11] = i[3 * 3 + 2]),
|
|
1028
|
-
_ || (i = i.subarray(3 * 4)));
|
|
1029
|
-
let d = new ae({
|
|
1030
|
-
position: new J({
|
|
1031
|
-
componentDatatype: H.DOUBLE,
|
|
1032
|
-
componentsPerAttribute: 3,
|
|
1033
|
-
values: i,
|
|
1034
|
-
}),
|
|
1035
|
-
});
|
|
1036
|
-
if (a(s.normal) || a(s.tangent) || a(s.bitangent) || a(s.st)) {
|
|
1037
|
-
let l = a(s.normal) ? new Float32Array(12 * y) : void 0,
|
|
1038
|
-
o = a(s.tangent) ? new Float32Array(3 * 4 * y) : void 0,
|
|
1039
|
-
h = a(s.bitangent) ? new Float32Array(3 * 4 * y) : void 0,
|
|
1040
|
-
M = a(s.st) ? new Float32Array(2 * 4 * y) : void 0,
|
|
1041
|
-
x = se,
|
|
1042
|
-
z = le,
|
|
1043
|
-
C = we,
|
|
1044
|
-
D = r.negate(x, ke),
|
|
1045
|
-
K = r.negate(z, Se),
|
|
1046
|
-
G = r.negate(C, De);
|
|
1047
|
-
((c = 0),
|
|
1048
|
-
_ && (W(c, l, o, h, M, G, x, z), (c += 3 * 4)),
|
|
1049
|
-
W(c, l, o, h, M, C, D, z),
|
|
1050
|
-
(c += 3 * 4),
|
|
1051
|
-
W(c, l, o, h, M, D, G, z),
|
|
1052
|
-
(c += 3 * 4),
|
|
1053
|
-
W(c, l, o, h, M, K, G, D),
|
|
1054
|
-
(c += 3 * 4),
|
|
1055
|
-
W(c, l, o, h, M, x, C, z),
|
|
1056
|
-
(c += 3 * 4),
|
|
1057
|
-
W(c, l, o, h, M, z, C, D),
|
|
1058
|
-
a(l) &&
|
|
1059
|
-
(d.normal = new J({
|
|
1060
|
-
componentDatatype: H.FLOAT,
|
|
1061
|
-
componentsPerAttribute: 3,
|
|
1062
|
-
values: l,
|
|
1063
|
-
})),
|
|
1064
|
-
a(o) &&
|
|
1065
|
-
(d.tangent = new J({
|
|
1066
|
-
componentDatatype: H.FLOAT,
|
|
1067
|
-
componentsPerAttribute: 3,
|
|
1068
|
-
values: o,
|
|
1069
|
-
})),
|
|
1070
|
-
a(h) &&
|
|
1071
|
-
(d.bitangent = new J({
|
|
1072
|
-
componentDatatype: H.FLOAT,
|
|
1073
|
-
componentsPerAttribute: 3,
|
|
1074
|
-
values: h,
|
|
1075
|
-
})),
|
|
1076
|
-
a(M) &&
|
|
1077
|
-
(d.st = new J({
|
|
1078
|
-
componentDatatype: H.FLOAT,
|
|
1079
|
-
componentsPerAttribute: 2,
|
|
1080
|
-
values: M,
|
|
1081
|
-
})));
|
|
1082
|
-
}
|
|
1083
|
-
let g = new Uint16Array(6 * y);
|
|
1084
|
-
for (let l = 0; l < y; ++l) {
|
|
1085
|
-
let o = l * 6,
|
|
1086
|
-
h = l * 4;
|
|
1087
|
-
((g[o] = h),
|
|
1088
|
-
(g[o + 1] = h + 1),
|
|
1089
|
-
(g[o + 2] = h + 2),
|
|
1090
|
-
(g[o + 3] = h),
|
|
1091
|
-
(g[o + 4] = h + 2),
|
|
1092
|
-
(g[o + 5] = h + 3));
|
|
1093
|
-
}
|
|
1094
|
-
return new re({
|
|
1095
|
-
attributes: d,
|
|
1096
|
-
indices: g,
|
|
1097
|
-
primitiveType: oe.TRIANGLES,
|
|
1098
|
-
boundingSphere: ie.fromVertices(i),
|
|
1099
|
-
});
|
|
1100
|
-
};
|
|
1101
|
-
var Et = Y;
|
|
1102
|
-
export { B as a, L as b, Et as c };
|