@vcmap/ui 5.0.0-rc.9 → 5.0.1
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 +90 -106
- package/app.config.json +3 -0
- package/build/.eslintrc +3 -0
- package/build/build.js +302 -162
- package/build/buildCesium.js +39 -19
- package/build/buildHelpers.js +279 -87
- package/build/buildPreview.js +16 -6
- package/build/bundle.js +57 -0
- package/build/commonViteConfig.js +6 -15
- package/build/determineHost.js +17 -4
- package/build/generateOLLib.js +15 -18
- package/build/getPluginProxies.js +35 -3
- package/build/info/conf.json +21 -19
- package/build/info/publish.js +16 -5
- package/config/aerowest.config.json +47 -54
- package/config/base.config.json +607 -662
- package/config/codes.config.json +401 -0
- package/config/dev.config.json +460 -14
- package/config/graphFeatureInfo.config.json +141 -0
- package/config/projects.config.json +29 -0
- package/config/www.config.json +1843 -0
- package/dist/assets/@mdi/font/LICENSE +20 -0
- package/dist/assets/@mdi/font/css/materialdesignicons.css.map +16 -0
- package/dist/assets/@mdi/font/css/materialdesignicons.min.e3f476.css +3 -0
- package/dist/assets/@mdi/font/fonts/materialdesignicons-webfont.woff2 +0 -0
- package/dist/assets/cesium/ThirdParty/Workers/basis_transcoder.js +21 -0
- package/dist/assets/cesium/ThirdParty/Workers/package.json +1 -0
- package/dist/assets/cesium/ThirdParty/Workers/pako_deflate.min.js +2 -0
- package/dist/assets/cesium/ThirdParty/Workers/pako_inflate.min.js +2 -0
- package/dist/assets/cesium/ThirdParty/Workers/z-worker-pako.js +1 -0
- package/dist/assets/cesium/ThirdParty/basis_transcoder.wasm +0 -0
- package/dist/assets/cesium/ThirdParty/draco_decoder.wasm +0 -0
- package/dist/assets/cesium/ThirdParty/google-earth-dbroot-parser.js +8337 -0
- package/dist/assets/cesium/Workers/chunk-227AJNOA.js +59 -0
- package/dist/assets/cesium/Workers/chunk-2R5O53JW.js +157 -0
- package/dist/assets/cesium/Workers/chunk-34YUDLRP.js +781 -0
- package/dist/assets/cesium/Workers/chunk-3W63OHNJ.js +100 -0
- package/dist/assets/cesium/Workers/chunk-4MFFIWUA.js +163 -0
- package/dist/assets/cesium/Workers/chunk-66QLLS45.js +218 -0
- package/dist/assets/cesium/Workers/chunk-6BTKZDRG.js +77 -0
- package/dist/assets/cesium/Workers/chunk-A4JVFBQ3.js +101 -0
- package/dist/assets/cesium/Workers/chunk-ABADGKYE.js +58 -0
- package/dist/assets/cesium/Workers/chunk-AFFLIKOH.js +353 -0
- package/dist/assets/cesium/Workers/chunk-AHKEZ2OE.js +629 -0
- package/dist/assets/cesium/Workers/chunk-C3SXRKRW.js +476 -0
- package/dist/assets/cesium/Workers/chunk-CCFQRR6D.js +55 -0
- package/dist/assets/cesium/Workers/chunk-CHHNOC2C.js +1860 -0
- package/dist/assets/cesium/Workers/chunk-CTELOFLA.js +196 -0
- package/dist/assets/cesium/Workers/chunk-DUHWWBQQ.js +3273 -0
- package/dist/assets/cesium/Workers/chunk-EW2GWJYB.js +44 -0
- package/dist/assets/cesium/Workers/chunk-GLZBE3ML.js +421 -0
- package/dist/assets/cesium/Workers/chunk-HARLBUOL.js +236 -0
- package/dist/assets/cesium/Workers/chunk-HQF437NJ.js +117 -0
- package/dist/assets/cesium/Workers/chunk-IPA4EACJ.js +368 -0
- package/dist/assets/cesium/Workers/chunk-J3JY6I2C.js +1009 -0
- package/dist/assets/cesium/Workers/chunk-JB2LWGH4.js +390 -0
- package/dist/assets/cesium/Workers/chunk-JS3AW5BK.js +634 -0
- package/dist/assets/cesium/Workers/chunk-K36FEYS7.js +452 -0
- package/dist/assets/cesium/Workers/chunk-KD4Y7CZL.js +400 -0
- package/dist/assets/cesium/Workers/chunk-KTJSNCK4.js +842 -0
- package/dist/assets/cesium/Workers/chunk-LLUNNUJV.js +258 -0
- package/dist/assets/cesium/Workers/chunk-MPAZH4BF.js +37 -0
- package/dist/assets/cesium/Workers/chunk-MYZB7C4T.js +1258 -0
- package/dist/assets/cesium/Workers/chunk-N3JIFFX2.js +501 -0
- package/dist/assets/cesium/Workers/chunk-O5AMBQ36.js +430 -0
- package/dist/assets/cesium/Workers/chunk-OAVNIRB4.js +124 -0
- package/dist/assets/cesium/Workers/chunk-OYFCF4PL.js +171 -0
- package/dist/assets/cesium/Workers/chunk-OZJDGN5F.js +1477 -0
- package/dist/assets/cesium/Workers/chunk-PCJWUS4M.js +2041 -0
- package/dist/assets/cesium/Workers/chunk-PFQBCKBM.js +8644 -0
- package/dist/assets/cesium/Workers/chunk-QIKODV5G.js +305 -0
- package/dist/assets/cesium/Workers/chunk-QJ3DFBH3.js +73 -0
- package/dist/assets/cesium/Workers/chunk-QMEMZIJI.js +138 -0
- package/dist/assets/cesium/Workers/chunk-QT3MPEMI.js +102 -0
- package/dist/assets/cesium/Workers/chunk-RP2A7BR5.js +289 -0
- package/dist/assets/cesium/Workers/chunk-RW6LU2CJ.js +138 -0
- package/dist/assets/cesium/Workers/chunk-TFC6TZ3S.js +757 -0
- package/dist/assets/cesium/Workers/chunk-V3NGATMV.js +693 -0
- package/dist/assets/cesium/Workers/chunk-VLGOATD6.js +1075 -0
- package/dist/assets/cesium/Workers/chunk-WXTV4ATB.js +39 -0
- package/dist/assets/cesium/Workers/chunk-X4SU25DT.js +302 -0
- package/dist/assets/cesium/Workers/chunk-XTY7B2N6.js +2716 -0
- package/dist/assets/cesium/Workers/chunk-XY7MGBKC.js +513 -0
- package/dist/assets/cesium/Workers/chunk-Z24VKNDO.js +834 -0
- package/dist/assets/cesium/Workers/chunk-ZA25DG4Y.js +684 -0
- package/dist/assets/cesium/Workers/chunk-ZFOBYDGF.js +73 -0
- package/dist/assets/cesium/Workers/combineGeometry.js +67 -1
- package/dist/assets/cesium/Workers/createBoxGeometry.js +57 -1
- package/dist/assets/cesium/Workers/createBoxOutlineGeometry.js +234 -1
- package/dist/assets/cesium/Workers/createCircleGeometry.js +196 -1
- package/dist/assets/cesium/Workers/createCircleOutlineGeometry.js +146 -1
- package/dist/assets/cesium/Workers/createCoplanarPolygonGeometry.js +506 -1
- package/dist/assets/cesium/Workers/createCoplanarPolygonOutlineGeometry.js +224 -1
- package/dist/assets/cesium/Workers/createCorridorGeometry.js +1262 -1
- package/dist/assets/cesium/Workers/createCorridorOutlineGeometry.js +567 -1
- package/dist/assets/cesium/Workers/createCylinderGeometry.js +59 -1
- package/dist/assets/cesium/Workers/createCylinderOutlineGeometry.js +231 -1
- package/dist/assets/cesium/Workers/createEllipseGeometry.js +70 -1
- package/dist/assets/cesium/Workers/createEllipseOutlineGeometry.js +63 -1
- package/dist/assets/cesium/Workers/createEllipsoidGeometry.js +58 -1
- package/dist/assets/cesium/Workers/createEllipsoidOutlineGeometry.js +60 -1
- package/dist/assets/cesium/Workers/createFrustumGeometry.js +57 -1
- package/dist/assets/cesium/Workers/createFrustumOutlineGeometry.js +234 -1
- package/dist/assets/cesium/Workers/createGeometry.js +150 -1
- package/dist/assets/cesium/Workers/createGroundPolylineGeometry.js +1607 -1
- package/dist/assets/cesium/Workers/createPlaneGeometry.js +223 -1
- package/dist/assets/cesium/Workers/createPlaneOutlineGeometry.js +123 -1
- package/dist/assets/cesium/Workers/createPolygonGeometry.js +1134 -1
- package/dist/assets/cesium/Workers/createPolygonOutlineGeometry.js +542 -1
- package/dist/assets/cesium/Workers/createPolylineGeometry.js +495 -1
- package/dist/assets/cesium/Workers/createPolylineVolumeGeometry.js +379 -1
- package/dist/assets/cesium/Workers/createPolylineVolumeOutlineGeometry.js +277 -1
- package/dist/assets/cesium/Workers/createRectangleGeometry.js +1273 -1
- package/dist/assets/cesium/Workers/createRectangleOutlineGeometry.js +480 -1
- package/dist/assets/cesium/Workers/createSimplePolylineGeometry.js +399 -1
- package/dist/assets/cesium/Workers/createSphereGeometry.js +117 -1
- package/dist/assets/cesium/Workers/createSphereOutlineGeometry.js +117 -1
- package/dist/assets/cesium/Workers/createTaskProcessorWorker.js +32 -1
- package/dist/assets/cesium/Workers/createVectorTileClampedPolylines.js +492 -1
- package/dist/assets/cesium/Workers/createVectorTileGeometries.js +386 -1
- package/dist/assets/cesium/Workers/createVectorTilePoints.js +112 -1
- package/dist/assets/cesium/Workers/createVectorTilePolygons.js +384 -1
- package/dist/assets/cesium/Workers/createVectorTilePolylines.js +262 -1
- package/dist/assets/cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +568 -1
- package/dist/assets/cesium/Workers/createVerticesFromHeightmap.js +2277 -3
- package/dist/assets/cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +745 -1
- package/dist/assets/cesium/Workers/createWallGeometry.js +489 -1
- package/dist/assets/cesium/Workers/createWallOutlineGeometry.js +337 -1
- package/dist/assets/cesium/Workers/decodeDraco.js +369 -1
- package/dist/assets/cesium/Workers/decodeGoogleEarthEnterprisePacket.js +2650 -1
- package/dist/assets/cesium/Workers/decodeI3S.js +835 -0
- package/dist/assets/cesium/Workers/transcodeKTX2.js +3425 -1
- package/dist/assets/cesium/Workers/transferTypedArrayTest.js +41 -1
- package/dist/assets/cesium/Workers/upsampleQuantizedTerrainMesh.js +818 -1
- package/dist/assets/cesium.888ef7.js +164897 -0
- package/dist/assets/cesium.js +1 -1
- package/dist/assets/core.860907.js +19286 -0
- package/dist/assets/core.js +1 -1
- package/dist/assets/favicon-128.4c4ce5.png +0 -0
- package/dist/assets/favicon-180.5b99c0.png +0 -0
- package/dist/assets/favicon-192.0e205e.png +0 -0
- package/dist/assets/favicon-32.6b9add.png +0 -0
- package/dist/assets/favicon.d5ec97.svg +10 -0
- package/dist/assets/font/OFL.txt +93 -0
- package/dist/assets/font/TitilliumWeb-Regular.9ca076.woff2 +0 -0
- package/dist/assets/index-f265c560.js +1 -0
- package/dist/assets/ol.5e8a90.js +60117 -0
- package/dist/assets/ol.js +1 -1
- package/dist/assets/style/icon-marker-blue.534e37.png +0 -0
- package/dist/assets/style/icon-marker-green.0b6a92.png +0 -0
- package/dist/assets/style/icon-marker-o-blue.7b6d62.png +0 -0
- package/dist/assets/style/icon-marker-o-green.c863c0.png +0 -0
- package/dist/assets/style/icon-marker-o-red.93ff58.png +0 -0
- package/dist/assets/style/icon-marker-o.036477.png +0 -0
- package/dist/assets/style/icon-marker-red.313d03.png +0 -0
- package/dist/assets/style/icon-marker.70960f.png +0 -0
- package/dist/assets/style/icon-pin-blue.7be369.png +0 -0
- package/dist/assets/style/icon-pin-green.cbb935.png +0 -0
- package/dist/assets/style/icon-pin-red.3f25b2.png +0 -0
- package/dist/assets/style/icon-pin.b7ce77.png +0 -0
- package/dist/assets/ui.7758a8.css +5 -0
- package/dist/assets/ui.7758a8.js +16909 -0
- package/dist/assets/ui.js +1 -1
- package/dist/assets/vue.9771b3.js +4911 -0
- package/dist/assets/vue.js +5 -1
- package/dist/assets/vuetify.2818ff.css +5 -0
- package/dist/assets/vuetify.2818ff.js +21262 -0
- package/dist/assets/vuetify.js +5 -2
- package/dist/index.html +90 -8
- package/index.html +111 -0
- package/index.js +171 -24
- package/lib/cesium.js +1 -1
- package/lib/core.js +1 -1
- package/lib/olLib.js +861 -843
- package/lib/ui.js +1 -1
- package/lib/vue.js +2 -1
- package/lib/vuetify.js +2 -2
- package/package.json +56 -36
- package/plugins/.eslintrc +9 -0
- package/plugins/@vcmap-show-case/README.md +28 -0
- package/plugins/@vcmap-show-case/buttons-example/README.md +4 -0
- package/plugins/@vcmap-show-case/buttons-example/package.json +5 -0
- package/plugins/@vcmap-show-case/buttons-example/src/ButtonsExample.vue +282 -0
- package/plugins/@vcmap-show-case/buttons-example/src/index.js +51 -0
- package/plugins/@vcmap-show-case/category-tester/README.md +3 -0
- package/plugins/@vcmap-show-case/category-tester/package.json +5 -0
- package/plugins/@vcmap-show-case/category-tester/src/CategoriesExample.vue +135 -0
- package/plugins/@vcmap-show-case/category-tester/src/CollectionComponentOptions.vue +209 -0
- package/plugins/@vcmap-show-case/category-tester/src/index.js +73 -0
- package/plugins/@vcmap-show-case/collection-manager-example/README.md +3 -0
- package/plugins/@vcmap-show-case/collection-manager-example/package.json +5 -0
- package/plugins/@vcmap-show-case/collection-manager-example/src/CollectionManagerExample.vue +182 -0
- package/plugins/@vcmap-show-case/collection-manager-example/src/index.js +79 -0
- package/plugins/@vcmap-show-case/config-editor/README.md +3 -0
- package/plugins/@vcmap-show-case/config-editor/package.json +5 -0
- package/plugins/@vcmap-show-case/config-editor/src/ConfigEditor.vue +62 -0
- package/plugins/@vcmap-show-case/config-editor/src/index.js +49 -0
- package/plugins/@vcmap-show-case/context-menu-tester/README.md +3 -0
- package/plugins/@vcmap-show-case/context-menu-tester/package.json +5 -0
- package/plugins/@vcmap-show-case/context-menu-tester/src/index.js +41 -0
- package/plugins/@vcmap-show-case/form-inputs-example/README.md +4 -0
- package/plugins/@vcmap-show-case/form-inputs-example/config.json +5 -0
- package/plugins/@vcmap-show-case/form-inputs-example/package.json +5 -0
- package/plugins/@vcmap-show-case/form-inputs-example/src/FormInputsExample.vue +516 -0
- package/plugins/@vcmap-show-case/form-inputs-example/src/exampleActions.js +36 -0
- package/plugins/{@vcmap/pluginExample → @vcmap-show-case/form-inputs-example/src}/index.js +119 -35
- package/plugins/{@vcmap/pluginExample → @vcmap-show-case/form-inputs-example/src}/validation.js +14 -2
- package/plugins/@vcmap-show-case/hello-world/README.md +31 -0
- package/plugins/@vcmap-show-case/hello-world/package.json +6 -0
- package/plugins/@vcmap-show-case/hello-world/plugin-assets/vcs_logo.png +0 -0
- package/plugins/@vcmap-show-case/hello-world/src/defaultOptions.js +4 -0
- package/plugins/@vcmap-show-case/hello-world/src/helloWorld.vue +69 -0
- package/plugins/@vcmap-show-case/hello-world/src/index.js +142 -0
- package/plugins/@vcmap-show-case/hello-world/tests/helloWorld.spec.js +53 -0
- package/plugins/@vcmap-show-case/icons-example/README.md +5 -0
- package/plugins/@vcmap-show-case/icons-example/package.json +5 -0
- package/plugins/@vcmap-show-case/icons-example/src/AllIconsComponent.vue +51 -0
- package/plugins/@vcmap-show-case/icons-example/src/index.js +46 -0
- package/plugins/@vcmap-show-case/list-example/README.md +3 -0
- package/plugins/@vcmap-show-case/list-example/package.json +5 -0
- package/plugins/@vcmap-show-case/list-example/src/ListExample.vue +411 -0
- package/plugins/@vcmap-show-case/list-example/src/index.js +46 -0
- package/plugins/@vcmap-show-case/notifier-tester/README.md +3 -0
- package/plugins/@vcmap-show-case/notifier-tester/package.json +5 -0
- package/plugins/@vcmap-show-case/notifier-tester/src/NotifierTester.vue +82 -0
- package/plugins/@vcmap-show-case/notifier-tester/src/index.js +42 -0
- package/plugins/@vcmap-show-case/plugin-editors/README.md +4 -0
- package/plugins/@vcmap-show-case/plugin-editors/package.json +5 -0
- package/plugins/@vcmap-show-case/plugin-editors/src/PluginEditors.vue +119 -0
- package/plugins/@vcmap-show-case/plugin-editors/src/index.js +41 -0
- package/plugins/@vcmap-show-case/project-selector/README.md +25 -0
- package/plugins/@vcmap-show-case/project-selector/config.json +15 -0
- package/plugins/{@vcmap → @vcmap-show-case}/project-selector/package.json +3 -4
- package/plugins/{@vcmap/project-selector/ContextsListComponent.vue → @vcmap-show-case/project-selector/src/ModulesListComponent.vue} +22 -19
- package/plugins/@vcmap-show-case/project-selector/src/ProjectSelectorComponent.vue +102 -0
- package/plugins/@vcmap-show-case/project-selector/src/de.json +10 -0
- package/plugins/@vcmap-show-case/project-selector/src/en.json +10 -0
- package/plugins/@vcmap-show-case/project-selector/src/index.js +269 -0
- package/plugins/@vcmap-show-case/simple-graph/README.md +71 -0
- package/plugins/@vcmap-show-case/simple-graph/package.json +11 -0
- package/plugins/@vcmap-show-case/simple-graph/src/SimpleGraphComponent.vue +59 -0
- package/plugins/@vcmap-show-case/simple-graph/src/index.js +17 -0
- package/plugins/@vcmap-show-case/simple-graph/src/simpleGraphView.js +78 -0
- package/plugins/@vcmap-show-case/style-input-example/README.md +4 -0
- package/plugins/@vcmap-show-case/style-input-example/package.json +5 -0
- package/plugins/@vcmap-show-case/style-input-example/src/StyleExample.vue +190 -0
- package/plugins/@vcmap-show-case/style-input-example/src/index.js +42 -0
- package/plugins/@vcmap-show-case/switch-map-callback-example/README.md +21 -0
- package/plugins/@vcmap-show-case/switch-map-callback-example/config.json +3 -0
- package/plugins/@vcmap-show-case/switch-map-callback-example/package.json +5 -0
- package/plugins/@vcmap-show-case/switch-map-callback-example/src/index.js +34 -0
- package/plugins/@vcmap-show-case/switch-map-callback-example/src/switchMapCallback.js +47 -0
- package/plugins/@vcmap-show-case/table-example/README.md +3 -0
- package/plugins/@vcmap-show-case/table-example/package.json +5 -0
- package/plugins/@vcmap-show-case/table-example/src/DataTableExample.vue +187 -0
- package/plugins/@vcmap-show-case/table-example/src/index.js +49 -0
- package/plugins/@vcmap-show-case/textfields-example/README.md +3 -0
- package/plugins/@vcmap-show-case/textfields-example/package.json +5 -0
- package/plugins/{example/mySuperComponent.vue → @vcmap-show-case/textfields-example/src/TextfieldsExample.vue} +13 -31
- package/plugins/@vcmap-show-case/textfields-example/src/index.js +64 -0
- package/plugins/{@vcmap → @vcmap-show-case}/theme-changer/README.md +5 -3
- package/plugins/@vcmap-show-case/theme-changer/config.json +69 -0
- package/plugins/@vcmap-show-case/theme-changer/package.json +11 -0
- package/plugins/{@vcmap/theme-changer → @vcmap-show-case/theme-changer/src}/ThemeChangerComponent.vue +36 -8
- package/plugins/{@vcmap/theme-changer → @vcmap-show-case/theme-changer/src}/index.js +14 -8
- package/plugins/@vcmap-show-case/vector-properties-example/package.json +5 -0
- package/plugins/@vcmap-show-case/vector-properties-example/src/VectorPropertiesExample.vue +128 -0
- package/plugins/@vcmap-show-case/vector-properties-example/src/index.js +40 -0
- package/plugins/@vcmap-show-case/window-tester/README.md +3 -0
- package/plugins/@vcmap-show-case/window-tester/package.json +5 -0
- package/plugins/@vcmap-show-case/window-tester/src/EmptyComponent.vue +18 -0
- package/plugins/@vcmap-show-case/window-tester/src/MyCustomHeader.vue +31 -0
- package/plugins/@vcmap-show-case/window-tester/src/WindowExample.vue +185 -0
- package/plugins/@vcmap-show-case/window-tester/src/WindowExampleContent.vue +18 -0
- package/plugins/@vcmap-show-case/window-tester/src/WindowExampleToggleChild.vue +45 -0
- package/plugins/@vcmap-show-case/window-tester/src/index.js +80 -0
- package/plugins/@vcmap-show-case/window-tester/src/toolboxData.js +288 -0
- package/plugins/@vcmap-show-case/wizard-example/README.md +3 -0
- package/plugins/@vcmap-show-case/wizard-example/package.json +5 -0
- package/plugins/@vcmap-show-case/wizard-example/src/WizardExample.vue +127 -0
- package/plugins/@vcmap-show-case/wizard-example/src/index.js +53 -0
- package/plugins/package.json +9 -2
- package/public/assets/@mdi/font/LICENSE +20 -0
- package/public/assets/@mdi/font/css/materialdesignicons.css.map +16 -0
- package/public/assets/@mdi/font/css/materialdesignicons.min.css +3 -0
- package/public/assets/@mdi/font/fonts/materialdesignicons-webfont.woff2 +0 -0
- package/public/assets/favicon-128.png +0 -0
- package/public/assets/favicon-180.png +0 -0
- package/public/assets/favicon-192.png +0 -0
- package/public/assets/favicon-32.png +0 -0
- package/public/assets/favicon.svg +10 -0
- package/public/assets/font/OFL.txt +93 -0
- package/public/assets/font/TitilliumWeb-Regular.woff2 +0 -0
- package/public/assets/style/icon-marker-blue.png +0 -0
- package/public/assets/style/icon-marker-green.png +0 -0
- package/public/assets/style/icon-marker-o-blue.png +0 -0
- package/public/assets/style/icon-marker-o-green.png +0 -0
- package/public/assets/style/icon-marker-o-red.png +0 -0
- package/public/assets/style/icon-marker-o.png +0 -0
- package/public/assets/style/icon-marker-red.png +0 -0
- package/public/assets/style/icon-marker.png +0 -0
- package/public/assets/style/icon-pin-blue.png +0 -0
- package/public/assets/style/icon-pin-green.png +0 -0
- package/public/assets/style/icon-pin-red.png +0 -0
- package/public/assets/style/icon-pin.png +0 -0
- package/src/actions/StyleSelector.vue +136 -0
- package/src/actions/actionHelper.js +203 -50
- package/src/actions/stateRefAction.js +2 -3
- package/src/application/VcsApp.vue +538 -98
- package/src/application/VcsAppWrapper.vue +32 -0
- package/src/application/VcsAttributions.vue +83 -0
- package/src/application/VcsAttributionsFooter.vue +83 -0
- package/src/application/VcsMap.vue +22 -5
- package/src/application/VcsNavbar.vue +217 -0
- package/src/application/VcsSettings.vue +98 -0
- package/src/application/attributionsHelper.js +162 -0
- package/src/callback/activateLayersCallback.js +54 -0
- package/src/callback/applyLayerStyleCallback.js +63 -0
- package/src/callback/deactivateLayersCallback.js +54 -0
- package/src/callback/goToViewpointCallback.js +54 -0
- package/src/callback/vcsCallback.js +66 -0
- package/src/components/ImageElementInjector.vue +24 -0
- package/src/components/buttons/VcsActionButtonList.vue +52 -22
- package/src/components/buttons/VcsButton.vue +60 -110
- package/src/components/buttons/VcsFormButton.vue +178 -0
- package/src/components/buttons/VcsToolButton.vue +161 -0
- package/src/components/form-inputs-controls/VcsCheckbox.vue +62 -20
- package/src/components/form-inputs-controls/VcsChipArrayInput.vue +290 -0
- package/src/components/form-inputs-controls/VcsDatePicker.vue +156 -0
- package/src/components/form-inputs-controls/VcsFormSection.vue +120 -16
- package/src/components/form-inputs-controls/VcsLabel.vue +29 -11
- package/src/components/form-inputs-controls/VcsRadio.vue +149 -0
- package/src/components/form-inputs-controls/VcsRadioGrid.vue +175 -0
- package/src/components/form-inputs-controls/VcsSelect.vue +164 -50
- package/src/components/form-inputs-controls/VcsSlider.vue +73 -0
- package/src/components/form-inputs-controls/VcsTextArea.vue +118 -68
- package/src/components/form-inputs-controls/VcsTextField.vue +238 -69
- package/src/components/form-inputs-controls/VcsWizard.vue +137 -0
- package/src/components/form-inputs-controls/VcsWizardStep.vue +161 -0
- package/src/components/form-inputs-controls/composables.js +31 -0
- package/src/components/form-output/VcsFormattedNumber.vue +28 -28
- package/src/{icons → components/icons}/+all.js +109 -5
- package/src/components/icons/2DAreaIcon.vue +58 -0
- package/src/components/icons/2DDistanceIcon.vue +24 -0
- package/src/components/icons/3DAreaIcon.vue +58 -0
- package/src/components/icons/3DDistanceIcon.vue +24 -0
- package/src/components/icons/3DHeightIcon.vue +24 -0
- package/src/components/icons/AngleIcon.vue +16 -0
- package/src/{icons → components/icons}/AssociationsIcon.vue +7 -4
- package/src/components/icons/AxisIcon.vue +35 -0
- package/src/components/icons/BoundingBoxIcon.vue +38 -0
- package/src/components/icons/CheckboxCheckedIcon.vue +12 -0
- package/src/components/icons/CheckboxIcon.vue +21 -0
- package/src/components/icons/CheckboxIndeterminateIcon.vue +10 -0
- package/src/components/icons/CircleIcon.vue +25 -0
- package/src/components/icons/ClippingHorizontalIcon.vue +18 -0
- package/src/components/icons/ClippingIcon.vue +17 -0
- package/src/components/icons/ClippingVerticalIcon.vue +18 -0
- package/src/components/icons/ColorPickerIcon.vue +17 -0
- package/src/{icons → components/icons}/ColorSwatchIcon.vue +6 -2
- package/src/{icons → components/icons}/CommentIcon.vue +6 -6
- package/src/components/icons/CompassIcon.vue +24 -0
- package/src/components/icons/ComponentsIcon.vue +18 -0
- package/src/components/icons/ConeIcon.vue +30 -0
- package/src/components/icons/DimensionsHouseIcon.vue +20 -0
- package/src/components/icons/EditIcon.vue +17 -0
- package/src/components/icons/EditVerticesIcon.vue +35 -0
- package/src/{icons → components/icons}/ElevationProfileIcon.vue +7 -14
- package/src/components/icons/ExportAreaIcon.vue +17 -0
- package/src/components/icons/ExportFlightIcon.vue +17 -0
- package/src/components/icons/ExportIcon.vue +24 -0
- package/src/components/icons/ExternalLinkIcon.vue +23 -0
- package/src/components/icons/EyeIcon.vue +17 -0
- package/src/components/icons/FastForwardIcon.vue +17 -0
- package/src/components/icons/FilterIcon.vue +18 -0
- package/src/components/icons/GlobalTerrainIcon.vue +19 -0
- package/src/components/icons/GlobeNatureIcon.vue +17 -0
- package/src/components/icons/GroundIcon.vue +27 -0
- package/src/{icons → components/icons}/HealthCareIndustriesIcon.vue +7 -12
- package/src/components/icons/HelpIcon.vue +17 -0
- package/src/components/icons/HideIcon.vue +25 -0
- package/src/components/icons/HomePointIcon.vue +17 -0
- package/src/{icons → components/icons}/HospitalsIcon.vue +7 -21
- package/src/components/icons/HouseIcon.vue +32 -0
- package/src/components/icons/ImportIcon.vue +18 -0
- package/src/components/icons/InfoIcon.vue +24 -0
- package/src/{icons → components/icons}/KebabIcon.vue +7 -5
- package/src/components/icons/LabelIcon.vue +23 -0
- package/src/{icons → components/icons}/LayersIcon.vue +7 -5
- package/src/components/icons/LegendIcon.vue +24 -0
- package/src/components/icons/LineIcon.vue +22 -0
- package/src/components/icons/LinkIcon.vue +17 -0
- package/src/components/icons/LogoutIcon.vue +17 -0
- package/src/components/icons/MapIcon.vue +18 -0
- package/src/{icons → components/icons}/MenuIcon.vue +7 -5
- package/src/components/icons/MinusIcon.vue +18 -0
- package/src/components/icons/ObjectAttributeIcon.vue +18 -0
- package/src/components/icons/ObjectSelectIcon.vue +18 -0
- package/src/components/icons/ObliqueViewIcon.vue +19 -0
- package/src/components/icons/PdfIcon.vue +19 -0
- package/src/components/icons/PedestrianIcon.vue +17 -0
- package/src/components/icons/PenIcon.vue +16 -0
- package/src/components/icons/PlayCircleIcon.vue +20 -0
- package/src/components/icons/PlusIcon.vue +18 -0
- package/src/components/icons/PoiIcon.vue +23 -0
- package/src/{icons/PolygonIcon.vue → components/icons/PointIcon.vue} +8 -6
- package/src/components/icons/PointSelectIcon.vue +18 -0
- package/src/components/icons/PresentationModeIcon.vue +17 -0
- package/src/{icons → components/icons}/ProgressIcon.vue +9 -7
- package/src/components/icons/QueryIcon.vue +39 -0
- package/src/components/icons/RectangleIcon.vue +24 -0
- package/src/components/icons/ReturnIcon.vue +17 -0
- package/src/components/icons/RewindIcon.vue +16 -0
- package/src/components/icons/RotateLeftIcon.vue +17 -0
- package/src/components/icons/RotateRightIcon.vue +17 -0
- package/src/components/icons/ScreenshotIcon.vue +53 -0
- package/src/components/icons/SearchIcon.vue +17 -0
- package/src/components/icons/ShadowIcon.vue +18 -0
- package/src/{icons → components/icons}/ShapesIcon.vue +13 -6
- package/src/components/icons/ShareIcon.vue +22 -0
- package/src/components/icons/SimpleCircleFilledIcon.vue +18 -0
- package/src/{icons → components/icons}/SimpleCircleHalfFilledIcon.vue +6 -2
- package/src/components/icons/SimpleCircleOutlinedIcon.vue +13 -0
- package/src/components/icons/SkipNextIcon.vue +18 -0
- package/src/components/icons/SkipPreviousIcon.vue +18 -0
- package/src/{icons → components/icons}/SplitViewIcon.vue +6 -6
- package/src/components/icons/TerrainBoxIcon.vue +19 -0
- package/src/components/icons/TextStyleIcon.vue +17 -0
- package/src/components/icons/ThreeDimensionsIcon.vue +17 -0
- package/src/components/icons/ToolsIcon.vue +16 -0
- package/src/components/icons/TouchIcon.vue +18 -0
- package/src/components/icons/TrashCanIcon.vue +18 -0
- package/src/components/icons/TriangleIcon.vue +16 -0
- package/src/components/icons/TwoDimensionsIcon.vue +18 -0
- package/src/components/icons/UploadIcon.vue +17 -0
- package/src/components/icons/UserProfileIcon.vue +17 -0
- package/src/components/icons/UserShareIcon.vue +16 -0
- package/src/components/icons/VideoRecorderIcon.vue +23 -0
- package/src/components/icons/ViewpointFlightIcon.vue +28 -0
- package/src/components/icons/ViewpointIcon.vue +28 -0
- package/src/components/icons/Viewshed360Icon.vue +18 -0
- package/src/components/icons/ViewshedConeIcon.vue +17 -0
- package/src/components/icons/ViewshedIcon.vue +18 -0
- package/src/components/icons/WalkingIcon.vue +17 -0
- package/src/components/icons/WallIcon.vue +22 -0
- package/src/components/icons/WandIcon.vue +123 -0
- package/src/components/lists/VcsActionList.vue +57 -25
- package/src/components/lists/VcsList.vue +593 -0
- package/src/components/lists/VcsTreeview.vue +45 -42
- package/src/components/lists/VcsTreeviewLeaf.vue +45 -69
- package/src/components/lists/VcsTreeviewSearchbar.vue +40 -48
- package/src/components/notification/VcsBadge.vue +6 -4
- package/src/components/notification/VcsHelp.vue +39 -0
- package/src/components/notification/VcsTooltip.vue +111 -105
- package/src/components/notification/validation.js +1 -1
- package/src/components/plugins/AbstractConfigEditor.vue +84 -0
- package/src/components/style/MenuWrapper.vue +140 -0
- package/src/components/style/VcsFillMenu.vue +61 -0
- package/src/components/style/VcsFillSelector.vue +45 -0
- package/src/components/style/VcsImageMenu.vue +83 -0
- package/src/components/style/VcsImageSelector.vue +986 -0
- package/src/components/style/VcsStrokeMenu.vue +73 -0
- package/src/components/style/VcsStrokeSelector.vue +88 -0
- package/src/components/style/VcsTextMenu.vue +81 -0
- package/src/components/style/VcsTextSelector.vue +269 -0
- package/src/components/style/VcsVectorStyleComponent.vue +114 -0
- package/src/components/style/composables.js +84 -0
- package/src/components/tables/VcsDataTable.vue +503 -0
- package/src/components/tables/VcsTable.vue +145 -0
- package/src/components/vector-properties/VcsVectorPropertiesComponent.vue +778 -0
- package/src/components/vector-properties/composables.js +93 -0
- package/src/contentTree/LayerTree.vue +18 -14
- package/src/contentTree/contentTreeCollection.js +109 -41
- package/src/contentTree/contentTreeItem.js +109 -43
- package/src/contentTree/groupContentTreeItem.js +46 -23
- package/src/contentTree/layerContentTreeItem.js +54 -23
- package/src/contentTree/layerGroupContentTreeItem.js +58 -26
- package/src/contentTree/nodeContentTreeItem.js +19 -8
- package/src/contentTree/obliqueCollectionContentTreeItem.js +51 -22
- package/src/contentTree/subContentTreeItem.js +14 -5
- package/src/contentTree/vcsObjectContentTreeItem.js +27 -16
- package/src/contentTree/viewpointContentTreeItem.js +121 -0
- package/src/downloadHelper.js +52 -0
- package/src/featureInfo/AddressBalloonComponent.vue +58 -0
- package/src/featureInfo/BalloonComponent.vue +193 -0
- package/src/featureInfo/abstractFeatureInfoView.js +346 -0
- package/src/featureInfo/addressBalloonFeatureInfoView.js +130 -0
- package/src/featureInfo/balloonFeatureInfoView.js +159 -0
- package/src/featureInfo/balloonHelper.js +172 -0
- package/src/featureInfo/featureInfo.js +525 -0
- package/src/featureInfo/featureInfoInteraction.js +48 -0
- package/src/featureInfo/iframeFeatureInfoView.js +97 -0
- package/src/featureInfo/tableFeatureInfoView.js +120 -0
- package/src/i18n/de.js +195 -0
- package/src/i18n/en.js +195 -0
- package/src/i18n/i18nCollection.js +137 -0
- package/src/init.js +121 -36
- package/src/legend/StyleLegendItem.vue +176 -0
- package/src/legend/VcsLegend.vue +140 -0
- package/src/legend/legendHelper.js +204 -0
- package/src/manager/buttonManager.js +35 -16
- package/src/manager/collectionManager/CollectionComponent.vue +140 -0
- package/src/manager/collectionManager/CollectionComponentList.vue +77 -0
- package/src/manager/collectionManager/CollectionComponentProvider.vue +39 -0
- package/src/manager/collectionManager/CollectionManager.vue +62 -0
- package/src/manager/collectionManager/categoryManager.js +83 -0
- package/src/manager/collectionManager/collectionComponent.js +470 -0
- package/src/manager/collectionManager/collectionManager.js +432 -0
- package/src/manager/contextMenu/ContextMenuComponent.vue +43 -0
- package/src/manager/contextMenu/contextMenuInteraction.js +47 -0
- package/src/manager/contextMenu/contextMenuManager.js +220 -0
- package/src/manager/navbarManager.js +47 -13
- package/src/manager/toolbox/GroupToolboxComponent.vue +128 -0
- package/src/manager/toolbox/SelectToolboxComponent.vue +144 -0
- package/src/manager/toolbox/ToolboxManager.vue +124 -102
- package/src/manager/toolbox/toolboxManager.js +257 -87
- package/src/manager/window/WindowComponent.vue +105 -85
- package/src/manager/window/WindowComponentHeader.vue +115 -24
- package/src/manager/window/WindowManager.vue +121 -55
- package/src/manager/window/windowHelper.js +465 -0
- package/src/manager/window/windowManager.js +298 -87
- package/src/navigation/{mapNavCompass.vue → MapNavCompass.vue} +31 -11
- package/src/navigation/MapNavigation.vue +276 -0
- package/src/navigation/ObliqueRotation.vue +69 -0
- package/src/navigation/{orientationToolsButton.vue → OrientationToolsButton.vue} +13 -12
- package/src/navigation/{tiltSlider.vue → TiltSlider.vue} +39 -16
- package/src/navigation/VcsCompass.vue +69 -0
- package/src/navigation/VcsZoomButton.vue +52 -0
- package/src/navigation/overviewMap.js +142 -104
- package/src/navigation/overviewMapClickedInteraction.js +6 -1
- package/src/notifier/NotifierComponent.vue +86 -0
- package/src/notifier/notifier.js +129 -0
- package/src/pluginHelper.js +148 -20
- package/src/search/ResultItem.vue +83 -0
- package/src/search/ResultsComponent.vue +103 -0
- package/src/search/SearchComponent.vue +116 -0
- package/src/search/search.js +342 -0
- package/src/setup.js +9 -10
- package/src/state.js +272 -0
- package/src/styles/_theming.scss +69 -21
- package/src/styles/_typography.scss +3 -6
- package/src/styles/main.scss +9 -0
- package/src/styles/shades.scss +4 -0
- package/src/styles/utils/_border.scss +1 -1
- package/src/styles/utils/_cursor.scss +4 -0
- package/src/styles/utils/_display.scss +1 -1
- package/src/styles/variables.scss +79 -11
- package/src/styles/vcsFont.scss +2 -5
- package/src/styles/vcsGrid.scss +9 -0
- package/src/uiConfig.js +83 -0
- package/src/vcsUiApp.js +508 -68
- package/src/vuePlugins/i18n.js +51 -13
- package/src/vuePlugins/vuetify.js +104 -43
- package/config/berlin.config.json +0 -529
- package/dist/assets/cesium/Workers/ArcType-fc72c06c.js +0 -1
- package/dist/assets/cesium/Workers/AttributeCompression-80665726.js +0 -1
- package/dist/assets/cesium/Workers/AxisAlignedBoundingBox-a655a4bc.js +0 -1
- package/dist/assets/cesium/Workers/BoundingRectangle-c3b79029.js +0 -1
- package/dist/assets/cesium/Workers/BoxGeometry-f8f9c981.js +0 -1
- package/dist/assets/cesium/Workers/Color-de06a177.js +0 -1
- package/dist/assets/cesium/Workers/ComponentDatatype-a15c9a19.js +0 -1
- package/dist/assets/cesium/Workers/CoplanarPolygonGeometryLibrary-48cdc26d.js +0 -1
- package/dist/assets/cesium/Workers/CorridorGeometryLibrary-ddc027d3.js +0 -1
- package/dist/assets/cesium/Workers/CylinderGeometry-82a8cbe6.js +0 -1
- package/dist/assets/cesium/Workers/CylinderGeometryLibrary-76cda53e.js +0 -1
- package/dist/assets/cesium/Workers/EllipseGeometry-32d55454.js +0 -1
- package/dist/assets/cesium/Workers/EllipseGeometryLibrary-b2ae188a.js +0 -1
- package/dist/assets/cesium/Workers/EllipseOutlineGeometry-f05a5a27.js +0 -1
- package/dist/assets/cesium/Workers/EllipsoidGeodesic-19e75e11.js +0 -1
- package/dist/assets/cesium/Workers/EllipsoidGeometry-7c99fc81.js +0 -1
- package/dist/assets/cesium/Workers/EllipsoidOutlineGeometry-21c243df.js +0 -1
- package/dist/assets/cesium/Workers/EllipsoidRhumbLine-6145377b.js +0 -1
- package/dist/assets/cesium/Workers/EllipsoidTangentPlane-a01286f6.js +0 -1
- package/dist/assets/cesium/Workers/EncodedCartesian3-d9f5c4a4.js +0 -1
- package/dist/assets/cesium/Workers/FrustumGeometry-17776af8.js +0 -1
- package/dist/assets/cesium/Workers/GeometryAttribute-89a520b9.js +0 -1
- package/dist/assets/cesium/Workers/GeometryAttributes-32b29525.js +0 -1
- package/dist/assets/cesium/Workers/GeometryInstance-4fbf16ba.js +0 -1
- package/dist/assets/cesium/Workers/GeometryOffsetAttribute-8c5e10db.js +0 -1
- package/dist/assets/cesium/Workers/GeometryPipeline-309fad76.js +0 -1
- package/dist/assets/cesium/Workers/IndexDatatype-f1dcdf35.js +0 -1
- package/dist/assets/cesium/Workers/IntersectionTests-58aa8f80.js +0 -1
- package/dist/assets/cesium/Workers/Matrix2-47e98d76.js +0 -1
- package/dist/assets/cesium/Workers/OrientedBoundingBox-fcb5b750.js +0 -1
- package/dist/assets/cesium/Workers/Plane-3f01019d.js +0 -1
- package/dist/assets/cesium/Workers/PolygonGeometryLibrary-0b29eb16.js +0 -1
- package/dist/assets/cesium/Workers/PolygonPipeline-a934c4dd.js +0 -1
- package/dist/assets/cesium/Workers/PolylinePipeline-8095c9bc.js +0 -1
- package/dist/assets/cesium/Workers/PolylineVolumeGeometryLibrary-67d12fff.js +0 -1
- package/dist/assets/cesium/Workers/PrimitivePipeline-980e44c5.js +0 -1
- package/dist/assets/cesium/Workers/RectangleGeometryLibrary-621c6de8.js +0 -1
- package/dist/assets/cesium/Workers/RuntimeError-8952249c.js +0 -1
- package/dist/assets/cesium/Workers/TerrainEncoding-f96552d5.js +0 -1
- package/dist/assets/cesium/Workers/Transforms-c8cb8f43.js +0 -39
- package/dist/assets/cesium/Workers/VertexFormat-a0b706b0.js +0 -1
- package/dist/assets/cesium/Workers/WallGeometryLibrary-c03d8479.js +0 -1
- package/dist/assets/cesium/Workers/WebGLConstants-508b9636.js +0 -1
- package/dist/assets/cesium/Workers/WebMercatorProjection-79b3214e.js +0 -1
- package/dist/assets/cesium/Workers/_commonjsHelpers-3aae1032-26891ab7.js +0 -1
- package/dist/assets/cesium/Workers/_rollup_plugin_ignore_empty_module_placeholder-57d574d0.js +0 -1
- package/dist/assets/cesium/Workers/arrayRemoveDuplicates-dc2f4046.js +0 -1
- package/dist/assets/cesium/Workers/cesiumWorkerBootstrapper.js +0 -6
- package/dist/assets/cesium/Workers/combine-3c023bda.js +0 -1
- package/dist/assets/cesium/Workers/defaultValue-81eec7ed.js +0 -1
- package/dist/assets/cesium.4e40f4.js +0 -9105
- package/dist/assets/core.edcf5e.js +0 -4
- package/dist/assets/index.60dea538.css +0 -1
- package/dist/assets/index.889d0f3a.js +0 -1
- package/dist/assets/ol.246fd4.js +0 -318
- package/dist/assets/ui.df4f6d.css +0 -1
- package/dist/assets/ui.df4f6d.js +0 -43
- package/dist/assets/vue-composition-api.a520f3.js +0 -14
- package/dist/assets/vue-composition-api.js +0 -2
- package/dist/assets/vue.2cee44.js +0 -9
- package/dist/assets/vuetify.cc817b.css +0 -5
- package/dist/assets/vuetify.cc817b.js +0 -48
- package/lib/vue-composition-api.js +0 -2
- package/map.config.json +0 -35
- package/plugins/@vcmap/pluginExample/config.json +0 -6
- package/plugins/@vcmap/pluginExample/package.json +0 -7
- package/plugins/@vcmap/pluginExample/pluginExampleComponent.vue +0 -374
- package/plugins/@vcmap/project-selector/ProjectSelectorComponent.vue +0 -81
- package/plugins/@vcmap/project-selector/README.md +0 -29
- package/plugins/@vcmap/project-selector/config.json +0 -15
- package/plugins/@vcmap/project-selector/index.js +0 -254
- package/plugins/@vcmap/theme-changer/config.json +0 -69
- package/plugins/@vcmap/theme-changer/package.json +0 -12
- package/plugins/buttonExamples/ButtonExamples.vue +0 -190
- package/plugins/buttonExamples/index.js +0 -41
- package/plugins/categoryTest/Categories.vue +0 -145
- package/plugins/categoryTest/Category.vue +0 -114
- package/plugins/categoryTest/ItemEditor.vue +0 -13
- package/plugins/categoryTest/index.js +0 -41
- package/plugins/example/index.js +0 -75
- package/plugins/test/allIconsComponent.vue +0 -34
- package/plugins/test/editor.vue +0 -63
- package/plugins/test/index.js +0 -116
- package/plugins/test/myCustomHeader.vue +0 -19
- package/plugins/test/toolbox-data.js +0 -129
- package/plugins/test/vcsContent.vue +0 -23
- package/plugins/test/windowManagerExample.vue +0 -143
- package/src/actions/styleSelector.vue +0 -90
- package/src/application/Navbar.vue +0 -130
- package/src/application/empty-cmp.vue +0 -6
- package/src/components/form-inputs-controls/VcsColorPicker.vue +0 -81
- package/src/contentTree/viewPointContentTreeItem.js +0 -107
- package/src/icons/2DAreaIcon.vue +0 -21
- package/src/icons/2DDistanceIcon.vue +0 -18
- package/src/icons/3DAreaIcon.vue +0 -21
- package/src/icons/3DDistanceIcon.vue +0 -18
- package/src/icons/3DHeightIcon.vue +0 -18
- package/src/icons/AngleIcon.vue +0 -8
- package/src/icons/AxisIcon.vue +0 -10
- package/src/icons/BoundingBoxIcon.vue +0 -15
- package/src/icons/CheckboxCheckedIcon.vue +0 -16
- package/src/icons/CheckboxIcon.vue +0 -23
- package/src/icons/CheckboxIndeterminateIcon.vue +0 -24
- package/src/icons/CircleIcon.vue +0 -10
- package/src/icons/CompassIcon.vue +0 -8
- package/src/icons/ComponentsIcon.vue +0 -7
- package/src/icons/ConeIcon.vue +0 -11
- package/src/icons/DimensionsHouseIcon.vue +0 -14
- package/src/icons/ExportAreaIcon.vue +0 -7
- package/src/icons/ExportFlightIcon.vue +0 -7
- package/src/icons/ExportIcon.vue +0 -8
- package/src/icons/ExternalLinkIcon.vue +0 -10
- package/src/icons/EyeIcon.vue +0 -7
- package/src/icons/FastForwardIcon.vue +0 -7
- package/src/icons/FilterIcon.vue +0 -8
- package/src/icons/GlobeNatureIcon.vue +0 -14
- package/src/icons/HelpIcon.vue +0 -7
- package/src/icons/HomePointIcon.vue +0 -8
- package/src/icons/HouseIcon.vue +0 -25
- package/src/icons/ImportIcon.vue +0 -8
- package/src/icons/InfoIcon.vue +0 -10
- package/src/icons/LabelIcon.vue +0 -7
- package/src/icons/LegendIcon.vue +0 -65
- package/src/icons/LineIcon.vue +0 -7
- package/src/icons/LinkIcon.vue +0 -7
- package/src/icons/MapIcon.vue +0 -8
- package/src/icons/MinusIcon.vue +0 -8
- package/src/icons/ObjectAttributeIcon.vue +0 -18
- package/src/icons/ObjectSelectIcon.vue +0 -8
- package/src/icons/ObliqueViewIcon.vue +0 -13
- package/src/icons/PdfIcon.vue +0 -10
- package/src/icons/PedestrianIcon.vue +0 -8
- package/src/icons/PenIcon.vue +0 -14
- package/src/icons/PlayCircleIcon.vue +0 -10
- package/src/icons/PlusIcon.vue +0 -9
- package/src/icons/PoiIcon.vue +0 -7
- package/src/icons/PointSelectIcon.vue +0 -7
- package/src/icons/PresentationModeIcon.vue +0 -7
- package/src/icons/QueryIcon.vue +0 -15
- package/src/icons/RectangleIcon.vue +0 -9
- package/src/icons/ReturnIcon.vue +0 -7
- package/src/icons/RewindIcon.vue +0 -6
- package/src/icons/SearchIcon.vue +0 -8
- package/src/icons/ShadowIcon.vue +0 -9
- package/src/icons/ShareIcon.vue +0 -22
- package/src/icons/SimpleCircleFilledIcon.vue +0 -15
- package/src/icons/SimpleCircleOutlinedIcon.vue +0 -15
- package/src/icons/SkipNextIcon.vue +0 -7
- package/src/icons/SkipPreviousIcon.vue +0 -9
- package/src/icons/TextStyleIcon.vue +0 -14
- package/src/icons/ThreeDimensionsIcon.vue +0 -7
- package/src/icons/ToolsIcon.vue +0 -35
- package/src/icons/TouchIcon.vue +0 -8
- package/src/icons/TrashCanIcon.vue +0 -7
- package/src/icons/TriangleIcon.vue +0 -15
- package/src/icons/TwoDimensionsIcon.vue +0 -8
- package/src/icons/UploadIcon.vue +0 -14
- package/src/icons/VideoRecorderIcon.vue +0 -14
- package/src/icons/WalkingIcon.vue +0 -7
- package/src/icons/WallIcon.vue +0 -14
- package/src/lang/de.js +0 -60
- package/src/lang/en.js +0 -53
- package/src/manager/toolbox/ToolboxGroupComponent.vue +0 -128
- package/src/navigation/mapNavigation.vue +0 -205
- package/src/navigation/obliqueRotation.vue +0 -48
- package/src/navigation/vcsCompass.vue +0 -144
- package/src/navigation/vcsZoomButton.vue +0 -27
- package/start.js +0 -3
- /package/src/{assets/logo-mobile.svg → logo-mobile.svg} +0 -0
- /package/src/{assets/logo.svg → logo.svg} +0 -0
@@ -1 +1,1134 @@
|
|
1
|
-
define(["./defaultValue-81eec7ed","./Matrix2-47e98d76","./ArcType-fc72c06c","./GeometryOffsetAttribute-8c5e10db","./BoundingRectangle-c3b79029","./Transforms-c8cb8f43","./RuntimeError-8952249c","./ComponentDatatype-a15c9a19","./EllipsoidGeodesic-19e75e11","./EllipsoidTangentPlane-a01286f6","./GeometryAttribute-89a520b9","./GeometryInstance-4fbf16ba","./GeometryPipeline-309fad76","./IndexDatatype-f1dcdf35","./PolygonGeometryLibrary-0b29eb16","./PolygonPipeline-a934c4dd","./VertexFormat-a0b706b0","./_commonjsHelpers-3aae1032-26891ab7","./combine-3c023bda","./WebGLConstants-508b9636","./AxisAlignedBoundingBox-a655a4bc","./IntersectionTests-58aa8f80","./Plane-3f01019d","./AttributeCompression-80665726","./EncodedCartesian3-d9f5c4a4","./arrayRemoveDuplicates-dc2f4046","./EllipsoidRhumbLine-6145377b","./GeometryAttributes-32b29525"],(function(t,e,o,i,n,r,a,s,l,c,u,p,m,y,g,d,h,f,b,_,P,x,C,w,T,I,A,E){"use strict";const v=new e.Cartographic,G=new e.Cartographic;function O(t,e,o,i){const n=i.cartesianToCartographic(t,v).height,r=i.cartesianToCartographic(e,G);r.height=n,i.cartographicToCartesian(r,e);const a=i.cartesianToCartographic(o,G);a.height=n-100,i.cartographicToCartesian(a,o)}const V=new n.BoundingRectangle,F=new e.Cartesian3,D=new e.Cartesian3,L=new e.Cartesian3,N=new e.Cartesian3,H=new e.Cartesian3,R=new e.Cartesian3;let M=new e.Cartesian3,S=new e.Cartesian3,B=new e.Cartesian3;const k=new e.Cartesian2,z=new e.Cartesian2,W=new e.Cartesian3,Y=new r.Quaternion,U=new e.Matrix3,j=new e.Matrix3;function Q(o){const n=o.vertexFormat,a=o.geometry,l=o.shadowVolume,c=a.attributes.position.values;let p=c.length;const m=o.wall,y=o.top||m,g=o.bottom||m;if(n.st||n.normal||n.tangent||n.bitangent||l){const t=o.boundingRectangle,i=o.tangentPlane,d=o.ellipsoid,h=o.stRotation,f=o.perPositionHeight,b=k;b.x=t.x,b.y=t.y;const _=n.st?new Float32Array(p/3*2):void 0;let P;n.normal&&(P=f&&y&&!m?a.attributes.normal.values:new Float32Array(p));const x=n.tangent?new Float32Array(p):void 0,C=n.bitangent?new Float32Array(p):void 0,w=l?new Float32Array(p):void 0;let T=0,I=0,A=D,E=L,v=N,G=!0,V=U,Q=j;if(0!==h){let t=r.Quaternion.fromAxisAngle(i._plane.normal,h,Y);V=e.Matrix3.fromQuaternion(t,V),t=r.Quaternion.fromAxisAngle(i._plane.normal,-h,Y),Q=e.Matrix3.fromQuaternion(t,Q)}else V=e.Matrix3.clone(e.Matrix3.IDENTITY,V),Q=e.Matrix3.clone(e.Matrix3.IDENTITY,Q);let q=0,K=0;y&&g&&(q=p/2,K=p/3,p/=2);for(let r=0;r<p;r+=3){const a=e.Cartesian3.fromArray(c,r,W);if(n.st){let o=e.Matrix3.multiplyByVector(V,a,F);o=d.scaleToGeodeticSurface(o,o);const n=i.projectPointOntoPlane(o,z);e.Cartesian2.subtract(n,b,n);const r=s.CesiumMath.clamp(n.x/t.width,0,1),l=s.CesiumMath.clamp(n.y/t.height,0,1);g&&(_[T+K]=r,_[T+1+K]=l),y&&(_[T]=r,_[T+1]=l),T+=2}if(n.normal||n.tangent||n.bitangent||l){const t=I+1,i=I+2;if(m){if(r+3<p){const t=e.Cartesian3.fromArray(c,r+3,H);if(G){const o=e.Cartesian3.fromArray(c,r+p,R);f&&O(a,t,o,d),e.Cartesian3.subtract(t,a,t),e.Cartesian3.subtract(o,a,o),A=e.Cartesian3.normalize(e.Cartesian3.cross(o,t,A),A),G=!1}e.Cartesian3.equalsEpsilon(t,a,s.CesiumMath.EPSILON10)&&(G=!0)}(n.tangent||n.bitangent)&&(v=d.geodeticSurfaceNormal(a,v),n.tangent&&(E=e.Cartesian3.normalize(e.Cartesian3.cross(v,A,E),E)))}else A=d.geodeticSurfaceNormal(a,A),(n.tangent||n.bitangent)&&(f&&(M=e.Cartesian3.fromArray(P,I,M),S=e.Cartesian3.cross(e.Cartesian3.UNIT_Z,M,S),S=e.Cartesian3.normalize(e.Matrix3.multiplyByVector(Q,S,S),S),n.bitangent&&(B=e.Cartesian3.normalize(e.Cartesian3.cross(M,S,B),B))),E=e.Cartesian3.cross(e.Cartesian3.UNIT_Z,A,E),E=e.Cartesian3.normalize(e.Matrix3.multiplyByVector(Q,E,E),E),n.bitangent&&(v=e.Cartesian3.normalize(e.Cartesian3.cross(A,E,v),v)));n.normal&&(o.wall?(P[I+q]=A.x,P[t+q]=A.y,P[i+q]=A.z):g&&(P[I+q]=-A.x,P[t+q]=-A.y,P[i+q]=-A.z),(y&&!f||m)&&(P[I]=A.x,P[t]=A.y,P[i]=A.z)),l&&(m&&(A=d.geodeticSurfaceNormal(a,A)),w[I+q]=-A.x,w[t+q]=-A.y,w[i+q]=-A.z),n.tangent&&(o.wall?(x[I+q]=E.x,x[t+q]=E.y,x[i+q]=E.z):g&&(x[I+q]=-E.x,x[t+q]=-E.y,x[i+q]=-E.z),y&&(f?(x[I]=S.x,x[t]=S.y,x[i]=S.z):(x[I]=E.x,x[t]=E.y,x[i]=E.z))),n.bitangent&&(g&&(C[I+q]=v.x,C[t+q]=v.y,C[i+q]=v.z),y&&(f?(C[I]=B.x,C[t]=B.y,C[i]=B.z):(C[I]=v.x,C[t]=v.y,C[i]=v.z))),I+=3}}n.st&&(a.attributes.st=new u.GeometryAttribute({componentDatatype:s.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:_})),n.normal&&(a.attributes.normal=new u.GeometryAttribute({componentDatatype:s.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:P})),n.tangent&&(a.attributes.tangent=new u.GeometryAttribute({componentDatatype:s.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:x})),n.bitangent&&(a.attributes.bitangent=new u.GeometryAttribute({componentDatatype:s.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:C})),l&&(a.attributes.extrudeDirection=new u.GeometryAttribute({componentDatatype:s.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:w}))}if(o.extrude&&t.defined(o.offsetAttribute)){const t=c.length/3;let e=new Uint8Array(t);if(o.offsetAttribute===i.GeometryOffsetAttribute.TOP)y&&g||m?e=i.arrayFill(e,1,0,t/2):y&&(e=i.arrayFill(e,1));else{const t=o.offsetAttribute===i.GeometryOffsetAttribute.NONE?0:1;e=i.arrayFill(e,t)}a.attributes.applyOffset=new u.GeometryAttribute({componentDatatype:s.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:e})}return a}const q=new e.Cartographic,K=new e.Cartographic,Z={westOverIDL:0,eastOverIDL:0};let J=new l.EllipsoidGeodesic;function X(i,n,r,a,c){if(c=t.defaultValue(c,new e.Rectangle),!t.defined(i)||i.length<3)return c.west=0,c.north=0,c.south=0,c.east=0,c;if(r===o.ArcType.RHUMB)return e.Rectangle.fromCartesianArray(i,n,c);J.ellipsoid.equals(n)||(J=new l.EllipsoidGeodesic(void 0,void 0,n)),c.west=Number.POSITIVE_INFINITY,c.east=Number.NEGATIVE_INFINITY,c.south=Number.POSITIVE_INFINITY,c.north=Number.NEGATIVE_INFINITY,Z.westOverIDL=Number.POSITIVE_INFINITY,Z.eastOverIDL=Number.NEGATIVE_INFINITY;const u=1/s.CesiumMath.chordLength(a,n.maximumRadius),p=i.length;let m,y=n.cartesianToCartographic(i[0],K),g=q;for(let t=1;t<p;t++)m=g,g=y,y=n.cartesianToCartographic(i[t],m),J.setEndPoints(g,y),tt(J,u,c,Z);return m=g,g=y,y=n.cartesianToCartographic(i[0],m),J.setEndPoints(g,y),tt(J,u,c,Z),c.east-c.west>Z.eastOverIDL-Z.westOverIDL&&(c.west=Z.westOverIDL,c.east=Z.eastOverIDL,c.east>s.CesiumMath.PI&&(c.east=c.east-s.CesiumMath.TWO_PI),c.west>s.CesiumMath.PI&&(c.west=c.west-s.CesiumMath.TWO_PI)),c}const $=new e.Cartographic;function tt(t,e,o,i){const n=t.surfaceDistance,r=Math.ceil(n*e),a=r>0?n/(r-1):Number.POSITIVE_INFINITY;let l=0;for(let e=0;e<r;e++){const e=t.interpolateUsingSurfaceDistance(l,$);l+=a;const n=e.longitude,r=e.latitude;o.west=Math.min(o.west,n),o.east=Math.max(o.east,n),o.south=Math.min(o.south,r),o.north=Math.max(o.north,r);const c=n>=0?n:n+s.CesiumMath.TWO_PI;i.westOverIDL=Math.min(i.westOverIDL,c),i.eastOverIDL=Math.max(i.eastOverIDL,c)}}const et=[];function ot(t,e,o,i,n,r,a,s,l){const u={walls:[]};let m;if(r||a){const i=g.PolygonGeometryLibrary.createGeometryFromPositions(t,e,o,n,s,l),c=i.attributes.position.values,d=i.indices;let h,f;if(r&&a){const t=c.concat(c);h=t.length/3,f=y.IndexDatatype.createTypedArray(h,2*d.length),f.set(d);const e=d.length,o=h/2;for(m=0;m<e;m+=3){const t=f[m]+o,i=f[m+1]+o,n=f[m+2]+o;f[m+e]=n,f[m+1+e]=i,f[m+2+e]=t}if(i.attributes.position.values=t,n&&s.normal){const e=i.attributes.normal.values;i.attributes.normal.values=new Float32Array(t.length),i.attributes.normal.values.set(e)}i.indices=f}else if(a){for(h=c.length/3,f=y.IndexDatatype.createTypedArray(h,d.length),m=0;m<d.length;m+=3)f[m]=d[m+2],f[m+1]=d[m+1],f[m+2]=d[m];i.indices=f}u.topAndBottom=new p.GeometryInstance({geometry:i})}let h=i.outerRing,f=c.EllipsoidTangentPlane.fromPoints(h,t),b=f.projectPointsOntoPlane(h,et),_=d.PolygonPipeline.computeWindingOrder2D(b);_===d.WindingOrder.CLOCKWISE&&(h=h.slice().reverse());let P=g.PolygonGeometryLibrary.computeWallGeometry(h,t,o,n,l);u.walls.push(new p.GeometryInstance({geometry:P}));const x=i.holes;for(m=0;m<x.length;m++){let e=x[m];f=c.EllipsoidTangentPlane.fromPoints(e,t),b=f.projectPointsOntoPlane(e,et),_=d.PolygonPipeline.computeWindingOrder2D(b),_===d.WindingOrder.COUNTER_CLOCKWISE&&(e=e.slice().reverse()),P=g.PolygonGeometryLibrary.computeWallGeometry(e,t,o,n,l),u.walls.push(new p.GeometryInstance({geometry:P}))}return u}function it(i){const n=i.polygonHierarchy,r=t.defaultValue(i.vertexFormat,h.VertexFormat.DEFAULT),a=t.defaultValue(i.ellipsoid,e.Ellipsoid.WGS84),l=t.defaultValue(i.granularity,s.CesiumMath.RADIANS_PER_DEGREE),c=t.defaultValue(i.stRotation,0),u=t.defaultValue(i.perPositionHeight,!1),p=u&&t.defined(i.extrudedHeight);let m=t.defaultValue(i.height,0),y=t.defaultValue(i.extrudedHeight,m);if(!p){const t=Math.max(m,y);y=Math.min(m,y),m=t}this._vertexFormat=h.VertexFormat.clone(r),this._ellipsoid=e.Ellipsoid.clone(a),this._granularity=l,this._stRotation=c,this._height=m,this._extrudedHeight=y,this._closeTop=t.defaultValue(i.closeTop,!0),this._closeBottom=t.defaultValue(i.closeBottom,!0),this._polygonHierarchy=n,this._perPositionHeight=u,this._perPositionHeightExtrude=p,this._shadowVolume=t.defaultValue(i.shadowVolume,!1),this._workerName="createPolygonGeometry",this._offsetAttribute=i.offsetAttribute,this._arcType=t.defaultValue(i.arcType,o.ArcType.GEODESIC),this._rectangle=void 0,this._textureCoordinateRotationPoints=void 0,this.packedLength=g.PolygonGeometryLibrary.computeHierarchyPackedLength(n)+e.Ellipsoid.packedLength+h.VertexFormat.packedLength+12}it.fromPositions=function(e){return new it({polygonHierarchy:{positions:(e=t.defaultValue(e,t.defaultValue.EMPTY_OBJECT)).positions},height:e.height,extrudedHeight:e.extrudedHeight,vertexFormat:e.vertexFormat,stRotation:e.stRotation,ellipsoid:e.ellipsoid,granularity:e.granularity,perPositionHeight:e.perPositionHeight,closeTop:e.closeTop,closeBottom:e.closeBottom,offsetAttribute:e.offsetAttribute,arcType:e.arcType})},it.pack=function(o,i,n){return n=t.defaultValue(n,0),n=g.PolygonGeometryLibrary.packPolygonHierarchy(o._polygonHierarchy,i,n),e.Ellipsoid.pack(o._ellipsoid,i,n),n+=e.Ellipsoid.packedLength,h.VertexFormat.pack(o._vertexFormat,i,n),n+=h.VertexFormat.packedLength,i[n++]=o._height,i[n++]=o._extrudedHeight,i[n++]=o._granularity,i[n++]=o._stRotation,i[n++]=o._perPositionHeightExtrude?1:0,i[n++]=o._perPositionHeight?1:0,i[n++]=o._closeTop?1:0,i[n++]=o._closeBottom?1:0,i[n++]=o._shadowVolume?1:0,i[n++]=t.defaultValue(o._offsetAttribute,-1),i[n++]=o._arcType,i[n]=o.packedLength,i};const nt=e.Ellipsoid.clone(e.Ellipsoid.UNIT_SPHERE),rt=new h.VertexFormat,at={polygonHierarchy:{}};return it.unpack=function(o,i,n){i=t.defaultValue(i,0);const r=g.PolygonGeometryLibrary.unpackPolygonHierarchy(o,i);i=r.startingIndex,delete r.startingIndex;const a=e.Ellipsoid.unpack(o,i,nt);i+=e.Ellipsoid.packedLength;const s=h.VertexFormat.unpack(o,i,rt);i+=h.VertexFormat.packedLength;const l=o[i++],c=o[i++],u=o[i++],p=o[i++],m=1===o[i++],y=1===o[i++],d=1===o[i++],f=1===o[i++],b=1===o[i++],_=o[i++],P=o[i++],x=o[i];return t.defined(n)||(n=new it(at)),n._polygonHierarchy=r,n._ellipsoid=e.Ellipsoid.clone(a,n._ellipsoid),n._vertexFormat=h.VertexFormat.clone(s,n._vertexFormat),n._height=l,n._extrudedHeight=c,n._granularity=u,n._stRotation=p,n._perPositionHeightExtrude=m,n._perPositionHeight=y,n._closeTop=d,n._closeBottom=f,n._shadowVolume=b,n._offsetAttribute=-1===_?void 0:_,n._arcType=P,n.packedLength=x,n},it.computeRectangle=function(i,n){const r=t.defaultValue(i.granularity,s.CesiumMath.RADIANS_PER_DEGREE),a=t.defaultValue(i.arcType,o.ArcType.GEODESIC),l=i.polygonHierarchy,c=t.defaultValue(i.ellipsoid,e.Ellipsoid.WGS84);return X(l.positions,c,a,r,n)},it.createGeometry=function(e){const o=e._vertexFormat,n=e._ellipsoid,a=e._granularity,l=e._stRotation,h=e._polygonHierarchy,f=e._perPositionHeight,b=e._closeTop,_=e._closeBottom,P=e._arcType;let x=h.positions;if(x.length<3)return;const C=c.EllipsoidTangentPlane.fromPoints(x,n),w=g.PolygonGeometryLibrary.polygonsFromHierarchy(h,C.projectPointsOntoPlane.bind(C),!f,n),T=w.hierarchy,I=w.polygons;if(0===T.length)return;x=T[0].outerRing;const A=g.PolygonGeometryLibrary.computeBoundingRectangle(C.plane.normal,C.projectPointOntoPlane.bind(C),x,l,V),E=[],v=e._height,G=e._extrudedHeight,O={perPositionHeight:f,vertexFormat:o,geometry:void 0,tangentPlane:C,boundingRectangle:A,ellipsoid:n,stRotation:l,bottom:!1,top:!0,wall:!1,extrude:!1,arcType:P};let F;if(e._perPositionHeightExtrude||!s.CesiumMath.equalsEpsilon(v,G,0,s.CesiumMath.EPSILON2))for(O.extrude=!0,O.top=b,O.bottom=_,O.shadowVolume=e._shadowVolume,O.offsetAttribute=e._offsetAttribute,F=0;F<I.length;F++){const t=ot(n,I[F],a,T[F],f,b,_,o,P);let e;b&&_?(e=t.topAndBottom,O.geometry=g.PolygonGeometryLibrary.scaleToGeodeticHeightExtruded(e.geometry,v,G,n,f)):b?(e=t.topAndBottom,e.geometry.attributes.position.values=d.PolygonPipeline.scaleToGeodeticHeight(e.geometry.attributes.position.values,v,n,!f),O.geometry=e.geometry):_&&(e=t.topAndBottom,e.geometry.attributes.position.values=d.PolygonPipeline.scaleToGeodeticHeight(e.geometry.attributes.position.values,G,n,!0),O.geometry=e.geometry),(b||_)&&(O.wall=!1,e.geometry=Q(O),E.push(e));const i=t.walls;O.wall=!0;for(let t=0;t<i.length;t++){const e=i[t];O.geometry=g.PolygonGeometryLibrary.scaleToGeodeticHeightExtruded(e.geometry,v,G,n,f),e.geometry=Q(O),E.push(e)}}else for(F=0;F<I.length;F++){const r=new p.GeometryInstance({geometry:g.PolygonGeometryLibrary.createGeometryFromPositions(n,I[F],a,f,o,P)});if(r.geometry.attributes.position.values=d.PolygonPipeline.scaleToGeodeticHeight(r.geometry.attributes.position.values,v,n,!f),O.geometry=r.geometry,r.geometry=Q(O),t.defined(e._offsetAttribute)){const t=r.geometry.attributes.position.values.length,o=new Uint8Array(t/3),n=e._offsetAttribute===i.GeometryOffsetAttribute.NONE?0:1;i.arrayFill(o,n),r.geometry.attributes.applyOffset=new u.GeometryAttribute({componentDatatype:s.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:o})}E.push(r)}const D=m.GeometryPipeline.combineInstances(E)[0];D.attributes.position.values=new Float64Array(D.attributes.position.values),D.indices=y.IndexDatatype.createTypedArray(D.attributes.position.values.length/3,D.indices);const L=D.attributes,N=r.BoundingSphere.fromVertices(L.position.values);return o.position||delete L.position,new u.Geometry({attributes:L,indices:D.indices,primitiveType:D.primitiveType,boundingSphere:N,offsetAttribute:e._offsetAttribute})},it.createShadowVolume=function(t,e,o){const i=t._granularity,n=t._ellipsoid,r=e(i,n),a=o(i,n);return new it({polygonHierarchy:t._polygonHierarchy,ellipsoid:n,stRotation:t._stRotation,granularity:i,perPositionHeight:!1,extrudedHeight:r,height:a,vertexFormat:h.VertexFormat.POSITION_ONLY,shadowVolume:!0,arcType:t._arcType})},Object.defineProperties(it.prototype,{rectangle:{get:function(){if(!t.defined(this._rectangle)){const t=this._polygonHierarchy.positions;this._rectangle=X(t,this._ellipsoid,this._arcType,this._granularity)}return this._rectangle}},textureCoordinateRotationPoints:{get:function(){return t.defined(this._textureCoordinateRotationPoints)||(this._textureCoordinateRotationPoints=function(t){const e=-t._stRotation;if(0===e)return[0,0,0,1,1,0];const o=t._ellipsoid,i=t._polygonHierarchy.positions,n=t.rectangle;return u.Geometry._textureCoordinateRotationPoints(i,e,o,n)}(this)),this._textureCoordinateRotationPoints}}}),function(o,i){return t.defined(i)&&(o=it.unpack(o,i)),o._ellipsoid=e.Ellipsoid.clone(o._ellipsoid),it.createGeometry(o)}}));
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.109.3
|
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 {
|
27
|
+
BoundingRectangle_default
|
28
|
+
} from "./chunk-66QLLS45.js";
|
29
|
+
import {
|
30
|
+
PolygonGeometryLibrary_default
|
31
|
+
} from "./chunk-KTJSNCK4.js";
|
32
|
+
import {
|
33
|
+
ArcType_default
|
34
|
+
} from "./chunk-CCFQRR6D.js";
|
35
|
+
import {
|
36
|
+
GeometryInstance_default
|
37
|
+
} from "./chunk-227AJNOA.js";
|
38
|
+
import {
|
39
|
+
GeometryPipeline_default
|
40
|
+
} from "./chunk-XTY7B2N6.js";
|
41
|
+
import "./chunk-O5AMBQ36.js";
|
42
|
+
import "./chunk-QT3MPEMI.js";
|
43
|
+
import {
|
44
|
+
EllipsoidGeodesic_default
|
45
|
+
} from "./chunk-AFFLIKOH.js";
|
46
|
+
import {
|
47
|
+
GeometryOffsetAttribute_default
|
48
|
+
} from "./chunk-MPAZH4BF.js";
|
49
|
+
import {
|
50
|
+
VertexFormat_default
|
51
|
+
} from "./chunk-QMEMZIJI.js";
|
52
|
+
import {
|
53
|
+
EllipsoidTangentPlane_default
|
54
|
+
} from "./chunk-RP2A7BR5.js";
|
55
|
+
import "./chunk-2R5O53JW.js";
|
56
|
+
import {
|
57
|
+
PolygonPipeline_default,
|
58
|
+
WindingOrder_default
|
59
|
+
} from "./chunk-J3JY6I2C.js";
|
60
|
+
import "./chunk-3W63OHNJ.js";
|
61
|
+
import "./chunk-K36FEYS7.js";
|
62
|
+
import "./chunk-MYZB7C4T.js";
|
63
|
+
import "./chunk-OYFCF4PL.js";
|
64
|
+
import {
|
65
|
+
IndexDatatype_default
|
66
|
+
} from "./chunk-RW6LU2CJ.js";
|
67
|
+
import "./chunk-EW2GWJYB.js";
|
68
|
+
import {
|
69
|
+
GeometryAttribute_default,
|
70
|
+
Geometry_default
|
71
|
+
} from "./chunk-X4SU25DT.js";
|
72
|
+
import {
|
73
|
+
BoundingSphere_default,
|
74
|
+
Quaternion_default
|
75
|
+
} from "./chunk-PFQBCKBM.js";
|
76
|
+
import "./chunk-QJ3DFBH3.js";
|
77
|
+
import {
|
78
|
+
Cartesian2_default,
|
79
|
+
Rectangle_default
|
80
|
+
} from "./chunk-DUHWWBQQ.js";
|
81
|
+
import {
|
82
|
+
ComponentDatatype_default
|
83
|
+
} from "./chunk-LLUNNUJV.js";
|
84
|
+
import {
|
85
|
+
Cartesian3_default,
|
86
|
+
Cartographic_default,
|
87
|
+
Ellipsoid_default,
|
88
|
+
Matrix3_default
|
89
|
+
} from "./chunk-PCJWUS4M.js";
|
90
|
+
import {
|
91
|
+
Math_default
|
92
|
+
} from "./chunk-N3JIFFX2.js";
|
93
|
+
import "./chunk-AHKEZ2OE.js";
|
94
|
+
import "./chunk-ABADGKYE.js";
|
95
|
+
import {
|
96
|
+
defaultValue_default
|
97
|
+
} from "./chunk-WXTV4ATB.js";
|
98
|
+
import {
|
99
|
+
Check_default,
|
100
|
+
DeveloperError_default
|
101
|
+
} from "./chunk-4MFFIWUA.js";
|
102
|
+
import {
|
103
|
+
defined_default
|
104
|
+
} from "./chunk-6BTKZDRG.js";
|
105
|
+
|
106
|
+
// packages/engine/Source/Core/PolygonGeometry.js
|
107
|
+
var scratchCarto1 = new Cartographic_default();
|
108
|
+
var scratchCarto2 = new Cartographic_default();
|
109
|
+
function adjustPosHeightsForNormal(position, p1, p2, ellipsoid) {
|
110
|
+
const carto1 = ellipsoid.cartesianToCartographic(position, scratchCarto1);
|
111
|
+
const height = carto1.height;
|
112
|
+
const p1Carto = ellipsoid.cartesianToCartographic(p1, scratchCarto2);
|
113
|
+
p1Carto.height = height;
|
114
|
+
ellipsoid.cartographicToCartesian(p1Carto, p1);
|
115
|
+
const p2Carto = ellipsoid.cartesianToCartographic(p2, scratchCarto2);
|
116
|
+
p2Carto.height = height - 100;
|
117
|
+
ellipsoid.cartographicToCartesian(p2Carto, p2);
|
118
|
+
}
|
119
|
+
var scratchBoundingRectangle = new BoundingRectangle_default();
|
120
|
+
var scratchPosition = new Cartesian3_default();
|
121
|
+
var scratchNormal = new Cartesian3_default();
|
122
|
+
var scratchTangent = new Cartesian3_default();
|
123
|
+
var scratchBitangent = new Cartesian3_default();
|
124
|
+
var p1Scratch = new Cartesian3_default();
|
125
|
+
var p2Scratch = new Cartesian3_default();
|
126
|
+
var scratchPerPosNormal = new Cartesian3_default();
|
127
|
+
var scratchPerPosTangent = new Cartesian3_default();
|
128
|
+
var scratchPerPosBitangent = new Cartesian3_default();
|
129
|
+
var appendTextureCoordinatesOrigin = new Cartesian2_default();
|
130
|
+
var appendTextureCoordinatesCartesian2 = new Cartesian2_default();
|
131
|
+
var appendTextureCoordinatesCartesian3 = new Cartesian3_default();
|
132
|
+
var appendTextureCoordinatesQuaternion = new Quaternion_default();
|
133
|
+
var appendTextureCoordinatesMatrix3 = new Matrix3_default();
|
134
|
+
var tangentMatrixScratch = new Matrix3_default();
|
135
|
+
function computeAttributes(options) {
|
136
|
+
const vertexFormat = options.vertexFormat;
|
137
|
+
const geometry = options.geometry;
|
138
|
+
const shadowVolume = options.shadowVolume;
|
139
|
+
const flatPositions = geometry.attributes.position.values;
|
140
|
+
const flatTexcoords = defined_default(geometry.attributes.st) ? geometry.attributes.st.values : void 0;
|
141
|
+
let length = flatPositions.length;
|
142
|
+
const wall = options.wall;
|
143
|
+
const top = options.top || wall;
|
144
|
+
const bottom = options.bottom || wall;
|
145
|
+
if (vertexFormat.st || vertexFormat.normal || vertexFormat.tangent || vertexFormat.bitangent || shadowVolume) {
|
146
|
+
const boundingRectangle = options.boundingRectangle;
|
147
|
+
const tangentPlane = options.tangentPlane;
|
148
|
+
const ellipsoid = options.ellipsoid;
|
149
|
+
const stRotation = options.stRotation;
|
150
|
+
const perPositionHeight = options.perPositionHeight;
|
151
|
+
const origin = appendTextureCoordinatesOrigin;
|
152
|
+
origin.x = boundingRectangle.x;
|
153
|
+
origin.y = boundingRectangle.y;
|
154
|
+
const textureCoordinates = vertexFormat.st ? new Float32Array(2 * (length / 3)) : void 0;
|
155
|
+
let normals;
|
156
|
+
if (vertexFormat.normal) {
|
157
|
+
if (perPositionHeight && top && !wall) {
|
158
|
+
normals = geometry.attributes.normal.values;
|
159
|
+
} else {
|
160
|
+
normals = new Float32Array(length);
|
161
|
+
}
|
162
|
+
}
|
163
|
+
const tangents = vertexFormat.tangent ? new Float32Array(length) : void 0;
|
164
|
+
const bitangents = vertexFormat.bitangent ? new Float32Array(length) : void 0;
|
165
|
+
const extrudeNormals = shadowVolume ? new Float32Array(length) : void 0;
|
166
|
+
let textureCoordIndex = 0;
|
167
|
+
let attrIndex = 0;
|
168
|
+
let normal = scratchNormal;
|
169
|
+
let tangent = scratchTangent;
|
170
|
+
let bitangent = scratchBitangent;
|
171
|
+
let recomputeNormal = true;
|
172
|
+
let textureMatrix = appendTextureCoordinatesMatrix3;
|
173
|
+
let tangentRotationMatrix = tangentMatrixScratch;
|
174
|
+
if (stRotation !== 0) {
|
175
|
+
let rotation = Quaternion_default.fromAxisAngle(
|
176
|
+
tangentPlane._plane.normal,
|
177
|
+
stRotation,
|
178
|
+
appendTextureCoordinatesQuaternion
|
179
|
+
);
|
180
|
+
textureMatrix = Matrix3_default.fromQuaternion(rotation, textureMatrix);
|
181
|
+
rotation = Quaternion_default.fromAxisAngle(
|
182
|
+
tangentPlane._plane.normal,
|
183
|
+
-stRotation,
|
184
|
+
appendTextureCoordinatesQuaternion
|
185
|
+
);
|
186
|
+
tangentRotationMatrix = Matrix3_default.fromQuaternion(
|
187
|
+
rotation,
|
188
|
+
tangentRotationMatrix
|
189
|
+
);
|
190
|
+
} else {
|
191
|
+
textureMatrix = Matrix3_default.clone(Matrix3_default.IDENTITY, textureMatrix);
|
192
|
+
tangentRotationMatrix = Matrix3_default.clone(
|
193
|
+
Matrix3_default.IDENTITY,
|
194
|
+
tangentRotationMatrix
|
195
|
+
);
|
196
|
+
}
|
197
|
+
let bottomOffset = 0;
|
198
|
+
let bottomOffset2 = 0;
|
199
|
+
if (top && bottom) {
|
200
|
+
bottomOffset = length / 2;
|
201
|
+
bottomOffset2 = length / 3;
|
202
|
+
length /= 2;
|
203
|
+
}
|
204
|
+
for (let i = 0; i < length; i += 3) {
|
205
|
+
const position = Cartesian3_default.fromArray(
|
206
|
+
flatPositions,
|
207
|
+
i,
|
208
|
+
appendTextureCoordinatesCartesian3
|
209
|
+
);
|
210
|
+
if (vertexFormat.st) {
|
211
|
+
if (!defined_default(flatTexcoords)) {
|
212
|
+
let p = Matrix3_default.multiplyByVector(
|
213
|
+
textureMatrix,
|
214
|
+
position,
|
215
|
+
scratchPosition
|
216
|
+
);
|
217
|
+
p = ellipsoid.scaleToGeodeticSurface(p, p);
|
218
|
+
const st = tangentPlane.projectPointOntoPlane(
|
219
|
+
p,
|
220
|
+
appendTextureCoordinatesCartesian2
|
221
|
+
);
|
222
|
+
Cartesian2_default.subtract(st, origin, st);
|
223
|
+
const stx = Math_default.clamp(st.x / boundingRectangle.width, 0, 1);
|
224
|
+
const sty = Math_default.clamp(st.y / boundingRectangle.height, 0, 1);
|
225
|
+
if (bottom) {
|
226
|
+
textureCoordinates[textureCoordIndex + bottomOffset2] = stx;
|
227
|
+
textureCoordinates[textureCoordIndex + 1 + bottomOffset2] = sty;
|
228
|
+
}
|
229
|
+
if (top) {
|
230
|
+
textureCoordinates[textureCoordIndex] = stx;
|
231
|
+
textureCoordinates[textureCoordIndex + 1] = sty;
|
232
|
+
}
|
233
|
+
textureCoordIndex += 2;
|
234
|
+
}
|
235
|
+
}
|
236
|
+
if (vertexFormat.normal || vertexFormat.tangent || vertexFormat.bitangent || shadowVolume) {
|
237
|
+
const attrIndex1 = attrIndex + 1;
|
238
|
+
const attrIndex2 = attrIndex + 2;
|
239
|
+
if (wall) {
|
240
|
+
if (i + 3 < length) {
|
241
|
+
const p1 = Cartesian3_default.fromArray(flatPositions, i + 3, p1Scratch);
|
242
|
+
if (recomputeNormal) {
|
243
|
+
const p2 = Cartesian3_default.fromArray(
|
244
|
+
flatPositions,
|
245
|
+
i + length,
|
246
|
+
p2Scratch
|
247
|
+
);
|
248
|
+
if (perPositionHeight) {
|
249
|
+
adjustPosHeightsForNormal(position, p1, p2, ellipsoid);
|
250
|
+
}
|
251
|
+
Cartesian3_default.subtract(p1, position, p1);
|
252
|
+
Cartesian3_default.subtract(p2, position, p2);
|
253
|
+
normal = Cartesian3_default.normalize(
|
254
|
+
Cartesian3_default.cross(p2, p1, normal),
|
255
|
+
normal
|
256
|
+
);
|
257
|
+
recomputeNormal = false;
|
258
|
+
}
|
259
|
+
if (Cartesian3_default.equalsEpsilon(p1, position, Math_default.EPSILON10)) {
|
260
|
+
recomputeNormal = true;
|
261
|
+
}
|
262
|
+
}
|
263
|
+
if (vertexFormat.tangent || vertexFormat.bitangent) {
|
264
|
+
bitangent = ellipsoid.geodeticSurfaceNormal(position, bitangent);
|
265
|
+
if (vertexFormat.tangent) {
|
266
|
+
tangent = Cartesian3_default.normalize(
|
267
|
+
Cartesian3_default.cross(bitangent, normal, tangent),
|
268
|
+
tangent
|
269
|
+
);
|
270
|
+
}
|
271
|
+
}
|
272
|
+
} else {
|
273
|
+
normal = ellipsoid.geodeticSurfaceNormal(position, normal);
|
274
|
+
if (vertexFormat.tangent || vertexFormat.bitangent) {
|
275
|
+
if (perPositionHeight) {
|
276
|
+
scratchPerPosNormal = Cartesian3_default.fromArray(
|
277
|
+
normals,
|
278
|
+
attrIndex,
|
279
|
+
scratchPerPosNormal
|
280
|
+
);
|
281
|
+
scratchPerPosTangent = Cartesian3_default.cross(
|
282
|
+
Cartesian3_default.UNIT_Z,
|
283
|
+
scratchPerPosNormal,
|
284
|
+
scratchPerPosTangent
|
285
|
+
);
|
286
|
+
scratchPerPosTangent = Cartesian3_default.normalize(
|
287
|
+
Matrix3_default.multiplyByVector(
|
288
|
+
tangentRotationMatrix,
|
289
|
+
scratchPerPosTangent,
|
290
|
+
scratchPerPosTangent
|
291
|
+
),
|
292
|
+
scratchPerPosTangent
|
293
|
+
);
|
294
|
+
if (vertexFormat.bitangent) {
|
295
|
+
scratchPerPosBitangent = Cartesian3_default.normalize(
|
296
|
+
Cartesian3_default.cross(
|
297
|
+
scratchPerPosNormal,
|
298
|
+
scratchPerPosTangent,
|
299
|
+
scratchPerPosBitangent
|
300
|
+
),
|
301
|
+
scratchPerPosBitangent
|
302
|
+
);
|
303
|
+
}
|
304
|
+
}
|
305
|
+
tangent = Cartesian3_default.cross(Cartesian3_default.UNIT_Z, normal, tangent);
|
306
|
+
tangent = Cartesian3_default.normalize(
|
307
|
+
Matrix3_default.multiplyByVector(tangentRotationMatrix, tangent, tangent),
|
308
|
+
tangent
|
309
|
+
);
|
310
|
+
if (vertexFormat.bitangent) {
|
311
|
+
bitangent = Cartesian3_default.normalize(
|
312
|
+
Cartesian3_default.cross(normal, tangent, bitangent),
|
313
|
+
bitangent
|
314
|
+
);
|
315
|
+
}
|
316
|
+
}
|
317
|
+
}
|
318
|
+
if (vertexFormat.normal) {
|
319
|
+
if (options.wall) {
|
320
|
+
normals[attrIndex + bottomOffset] = normal.x;
|
321
|
+
normals[attrIndex1 + bottomOffset] = normal.y;
|
322
|
+
normals[attrIndex2 + bottomOffset] = normal.z;
|
323
|
+
} else if (bottom) {
|
324
|
+
normals[attrIndex + bottomOffset] = -normal.x;
|
325
|
+
normals[attrIndex1 + bottomOffset] = -normal.y;
|
326
|
+
normals[attrIndex2 + bottomOffset] = -normal.z;
|
327
|
+
}
|
328
|
+
if (top && !perPositionHeight || wall) {
|
329
|
+
normals[attrIndex] = normal.x;
|
330
|
+
normals[attrIndex1] = normal.y;
|
331
|
+
normals[attrIndex2] = normal.z;
|
332
|
+
}
|
333
|
+
}
|
334
|
+
if (shadowVolume) {
|
335
|
+
if (wall) {
|
336
|
+
normal = ellipsoid.geodeticSurfaceNormal(position, normal);
|
337
|
+
}
|
338
|
+
extrudeNormals[attrIndex + bottomOffset] = -normal.x;
|
339
|
+
extrudeNormals[attrIndex1 + bottomOffset] = -normal.y;
|
340
|
+
extrudeNormals[attrIndex2 + bottomOffset] = -normal.z;
|
341
|
+
}
|
342
|
+
if (vertexFormat.tangent) {
|
343
|
+
if (options.wall) {
|
344
|
+
tangents[attrIndex + bottomOffset] = tangent.x;
|
345
|
+
tangents[attrIndex1 + bottomOffset] = tangent.y;
|
346
|
+
tangents[attrIndex2 + bottomOffset] = tangent.z;
|
347
|
+
} else if (bottom) {
|
348
|
+
tangents[attrIndex + bottomOffset] = -tangent.x;
|
349
|
+
tangents[attrIndex1 + bottomOffset] = -tangent.y;
|
350
|
+
tangents[attrIndex2 + bottomOffset] = -tangent.z;
|
351
|
+
}
|
352
|
+
if (top) {
|
353
|
+
if (perPositionHeight) {
|
354
|
+
tangents[attrIndex] = scratchPerPosTangent.x;
|
355
|
+
tangents[attrIndex1] = scratchPerPosTangent.y;
|
356
|
+
tangents[attrIndex2] = scratchPerPosTangent.z;
|
357
|
+
} else {
|
358
|
+
tangents[attrIndex] = tangent.x;
|
359
|
+
tangents[attrIndex1] = tangent.y;
|
360
|
+
tangents[attrIndex2] = tangent.z;
|
361
|
+
}
|
362
|
+
}
|
363
|
+
}
|
364
|
+
if (vertexFormat.bitangent) {
|
365
|
+
if (bottom) {
|
366
|
+
bitangents[attrIndex + bottomOffset] = bitangent.x;
|
367
|
+
bitangents[attrIndex1 + bottomOffset] = bitangent.y;
|
368
|
+
bitangents[attrIndex2 + bottomOffset] = bitangent.z;
|
369
|
+
}
|
370
|
+
if (top) {
|
371
|
+
if (perPositionHeight) {
|
372
|
+
bitangents[attrIndex] = scratchPerPosBitangent.x;
|
373
|
+
bitangents[attrIndex1] = scratchPerPosBitangent.y;
|
374
|
+
bitangents[attrIndex2] = scratchPerPosBitangent.z;
|
375
|
+
} else {
|
376
|
+
bitangents[attrIndex] = bitangent.x;
|
377
|
+
bitangents[attrIndex1] = bitangent.y;
|
378
|
+
bitangents[attrIndex2] = bitangent.z;
|
379
|
+
}
|
380
|
+
}
|
381
|
+
}
|
382
|
+
attrIndex += 3;
|
383
|
+
}
|
384
|
+
}
|
385
|
+
if (vertexFormat.st && !defined_default(flatTexcoords)) {
|
386
|
+
geometry.attributes.st = new GeometryAttribute_default({
|
387
|
+
componentDatatype: ComponentDatatype_default.FLOAT,
|
388
|
+
componentsPerAttribute: 2,
|
389
|
+
values: textureCoordinates
|
390
|
+
});
|
391
|
+
}
|
392
|
+
if (vertexFormat.normal) {
|
393
|
+
geometry.attributes.normal = new GeometryAttribute_default({
|
394
|
+
componentDatatype: ComponentDatatype_default.FLOAT,
|
395
|
+
componentsPerAttribute: 3,
|
396
|
+
values: normals
|
397
|
+
});
|
398
|
+
}
|
399
|
+
if (vertexFormat.tangent) {
|
400
|
+
geometry.attributes.tangent = new GeometryAttribute_default({
|
401
|
+
componentDatatype: ComponentDatatype_default.FLOAT,
|
402
|
+
componentsPerAttribute: 3,
|
403
|
+
values: tangents
|
404
|
+
});
|
405
|
+
}
|
406
|
+
if (vertexFormat.bitangent) {
|
407
|
+
geometry.attributes.bitangent = new GeometryAttribute_default({
|
408
|
+
componentDatatype: ComponentDatatype_default.FLOAT,
|
409
|
+
componentsPerAttribute: 3,
|
410
|
+
values: bitangents
|
411
|
+
});
|
412
|
+
}
|
413
|
+
if (shadowVolume) {
|
414
|
+
geometry.attributes.extrudeDirection = new GeometryAttribute_default({
|
415
|
+
componentDatatype: ComponentDatatype_default.FLOAT,
|
416
|
+
componentsPerAttribute: 3,
|
417
|
+
values: extrudeNormals
|
418
|
+
});
|
419
|
+
}
|
420
|
+
}
|
421
|
+
if (options.extrude && defined_default(options.offsetAttribute)) {
|
422
|
+
const size = flatPositions.length / 3;
|
423
|
+
let offsetAttribute = new Uint8Array(size);
|
424
|
+
if (options.offsetAttribute === GeometryOffsetAttribute_default.TOP) {
|
425
|
+
if (top && bottom || wall) {
|
426
|
+
offsetAttribute = offsetAttribute.fill(1, 0, size / 2);
|
427
|
+
} else if (top) {
|
428
|
+
offsetAttribute = offsetAttribute.fill(1);
|
429
|
+
}
|
430
|
+
} else {
|
431
|
+
const offsetValue = options.offsetAttribute === GeometryOffsetAttribute_default.NONE ? 0 : 1;
|
432
|
+
offsetAttribute = offsetAttribute.fill(offsetValue);
|
433
|
+
}
|
434
|
+
geometry.attributes.applyOffset = new GeometryAttribute_default({
|
435
|
+
componentDatatype: ComponentDatatype_default.UNSIGNED_BYTE,
|
436
|
+
componentsPerAttribute: 1,
|
437
|
+
values: offsetAttribute
|
438
|
+
});
|
439
|
+
}
|
440
|
+
return geometry;
|
441
|
+
}
|
442
|
+
var startCartographicScratch = new Cartographic_default();
|
443
|
+
var endCartographicScratch = new Cartographic_default();
|
444
|
+
var idlCross = {
|
445
|
+
westOverIDL: 0,
|
446
|
+
eastOverIDL: 0
|
447
|
+
};
|
448
|
+
var ellipsoidGeodesic = new EllipsoidGeodesic_default();
|
449
|
+
function computeRectangle(positions, ellipsoid, arcType, granularity, result) {
|
450
|
+
result = defaultValue_default(result, new Rectangle_default());
|
451
|
+
if (!defined_default(positions) || positions.length < 3) {
|
452
|
+
result.west = 0;
|
453
|
+
result.north = 0;
|
454
|
+
result.south = 0;
|
455
|
+
result.east = 0;
|
456
|
+
return result;
|
457
|
+
}
|
458
|
+
if (arcType === ArcType_default.RHUMB) {
|
459
|
+
return Rectangle_default.fromCartesianArray(positions, ellipsoid, result);
|
460
|
+
}
|
461
|
+
if (!ellipsoidGeodesic.ellipsoid.equals(ellipsoid)) {
|
462
|
+
ellipsoidGeodesic = new EllipsoidGeodesic_default(void 0, void 0, ellipsoid);
|
463
|
+
}
|
464
|
+
result.west = Number.POSITIVE_INFINITY;
|
465
|
+
result.east = Number.NEGATIVE_INFINITY;
|
466
|
+
result.south = Number.POSITIVE_INFINITY;
|
467
|
+
result.north = Number.NEGATIVE_INFINITY;
|
468
|
+
idlCross.westOverIDL = Number.POSITIVE_INFINITY;
|
469
|
+
idlCross.eastOverIDL = Number.NEGATIVE_INFINITY;
|
470
|
+
const inverseChordLength = 1 / Math_default.chordLength(granularity, ellipsoid.maximumRadius);
|
471
|
+
const positionsLength = positions.length;
|
472
|
+
let endCartographic = ellipsoid.cartesianToCartographic(
|
473
|
+
positions[0],
|
474
|
+
endCartographicScratch
|
475
|
+
);
|
476
|
+
let startCartographic = startCartographicScratch;
|
477
|
+
let swap;
|
478
|
+
for (let i = 1; i < positionsLength; i++) {
|
479
|
+
swap = startCartographic;
|
480
|
+
startCartographic = endCartographic;
|
481
|
+
endCartographic = ellipsoid.cartesianToCartographic(positions[i], swap);
|
482
|
+
ellipsoidGeodesic.setEndPoints(startCartographic, endCartographic);
|
483
|
+
interpolateAndGrowRectangle(
|
484
|
+
ellipsoidGeodesic,
|
485
|
+
inverseChordLength,
|
486
|
+
result,
|
487
|
+
idlCross
|
488
|
+
);
|
489
|
+
}
|
490
|
+
swap = startCartographic;
|
491
|
+
startCartographic = endCartographic;
|
492
|
+
endCartographic = ellipsoid.cartesianToCartographic(positions[0], swap);
|
493
|
+
ellipsoidGeodesic.setEndPoints(startCartographic, endCartographic);
|
494
|
+
interpolateAndGrowRectangle(
|
495
|
+
ellipsoidGeodesic,
|
496
|
+
inverseChordLength,
|
497
|
+
result,
|
498
|
+
idlCross
|
499
|
+
);
|
500
|
+
if (result.east - result.west > idlCross.eastOverIDL - idlCross.westOverIDL) {
|
501
|
+
result.west = idlCross.westOverIDL;
|
502
|
+
result.east = idlCross.eastOverIDL;
|
503
|
+
if (result.east > Math_default.PI) {
|
504
|
+
result.east = result.east - Math_default.TWO_PI;
|
505
|
+
}
|
506
|
+
if (result.west > Math_default.PI) {
|
507
|
+
result.west = result.west - Math_default.TWO_PI;
|
508
|
+
}
|
509
|
+
}
|
510
|
+
return result;
|
511
|
+
}
|
512
|
+
var interpolatedCartographicScratch = new Cartographic_default();
|
513
|
+
function interpolateAndGrowRectangle(ellipsoidGeodesic2, inverseChordLength, result, idlCross2) {
|
514
|
+
const segmentLength = ellipsoidGeodesic2.surfaceDistance;
|
515
|
+
const numPoints = Math.ceil(segmentLength * inverseChordLength);
|
516
|
+
const subsegmentDistance = numPoints > 0 ? segmentLength / (numPoints - 1) : Number.POSITIVE_INFINITY;
|
517
|
+
let interpolationDistance = 0;
|
518
|
+
for (let i = 0; i < numPoints; i++) {
|
519
|
+
const interpolatedCartographic = ellipsoidGeodesic2.interpolateUsingSurfaceDistance(
|
520
|
+
interpolationDistance,
|
521
|
+
interpolatedCartographicScratch
|
522
|
+
);
|
523
|
+
interpolationDistance += subsegmentDistance;
|
524
|
+
const longitude = interpolatedCartographic.longitude;
|
525
|
+
const latitude = interpolatedCartographic.latitude;
|
526
|
+
result.west = Math.min(result.west, longitude);
|
527
|
+
result.east = Math.max(result.east, longitude);
|
528
|
+
result.south = Math.min(result.south, latitude);
|
529
|
+
result.north = Math.max(result.north, latitude);
|
530
|
+
const lonAdjusted = longitude >= 0 ? longitude : longitude + Math_default.TWO_PI;
|
531
|
+
idlCross2.westOverIDL = Math.min(idlCross2.westOverIDL, lonAdjusted);
|
532
|
+
idlCross2.eastOverIDL = Math.max(idlCross2.eastOverIDL, lonAdjusted);
|
533
|
+
}
|
534
|
+
}
|
535
|
+
var createGeometryFromPositionsExtrudedPositions = [];
|
536
|
+
function createGeometryFromPositionsExtruded(ellipsoid, polygon, textureCoordinates, granularity, hierarchy, perPositionHeight, closeTop, closeBottom, vertexFormat, arcType) {
|
537
|
+
const geos = {
|
538
|
+
walls: []
|
539
|
+
};
|
540
|
+
let i;
|
541
|
+
if (closeTop || closeBottom) {
|
542
|
+
const topGeo = PolygonGeometryLibrary_default.createGeometryFromPositions(
|
543
|
+
ellipsoid,
|
544
|
+
polygon,
|
545
|
+
textureCoordinates,
|
546
|
+
granularity,
|
547
|
+
perPositionHeight,
|
548
|
+
vertexFormat,
|
549
|
+
arcType
|
550
|
+
);
|
551
|
+
const edgePoints = topGeo.attributes.position.values;
|
552
|
+
const indices = topGeo.indices;
|
553
|
+
let numPositions;
|
554
|
+
let newIndices;
|
555
|
+
if (closeTop && closeBottom) {
|
556
|
+
const topBottomPositions = edgePoints.concat(edgePoints);
|
557
|
+
numPositions = topBottomPositions.length / 3;
|
558
|
+
newIndices = IndexDatatype_default.createTypedArray(
|
559
|
+
numPositions,
|
560
|
+
indices.length * 2
|
561
|
+
);
|
562
|
+
newIndices.set(indices);
|
563
|
+
const ilength = indices.length;
|
564
|
+
const length = numPositions / 2;
|
565
|
+
for (i = 0; i < ilength; i += 3) {
|
566
|
+
const i0 = newIndices[i] + length;
|
567
|
+
const i1 = newIndices[i + 1] + length;
|
568
|
+
const i2 = newIndices[i + 2] + length;
|
569
|
+
newIndices[i + ilength] = i2;
|
570
|
+
newIndices[i + 1 + ilength] = i1;
|
571
|
+
newIndices[i + 2 + ilength] = i0;
|
572
|
+
}
|
573
|
+
topGeo.attributes.position.values = topBottomPositions;
|
574
|
+
if (perPositionHeight && vertexFormat.normal) {
|
575
|
+
const normals = topGeo.attributes.normal.values;
|
576
|
+
topGeo.attributes.normal.values = new Float32Array(
|
577
|
+
topBottomPositions.length
|
578
|
+
);
|
579
|
+
topGeo.attributes.normal.values.set(normals);
|
580
|
+
}
|
581
|
+
if (vertexFormat.st && defined_default(textureCoordinates)) {
|
582
|
+
const texcoords = topGeo.attributes.st.values;
|
583
|
+
topGeo.attributes.st.values = new Float32Array(numPositions * 2);
|
584
|
+
topGeo.attributes.st.values = texcoords.concat(texcoords);
|
585
|
+
}
|
586
|
+
topGeo.indices = newIndices;
|
587
|
+
} else if (closeBottom) {
|
588
|
+
numPositions = edgePoints.length / 3;
|
589
|
+
newIndices = IndexDatatype_default.createTypedArray(numPositions, indices.length);
|
590
|
+
for (i = 0; i < indices.length; i += 3) {
|
591
|
+
newIndices[i] = indices[i + 2];
|
592
|
+
newIndices[i + 1] = indices[i + 1];
|
593
|
+
newIndices[i + 2] = indices[i];
|
594
|
+
}
|
595
|
+
topGeo.indices = newIndices;
|
596
|
+
}
|
597
|
+
geos.topAndBottom = new GeometryInstance_default({
|
598
|
+
geometry: topGeo
|
599
|
+
});
|
600
|
+
}
|
601
|
+
let outerRing = hierarchy.outerRing;
|
602
|
+
let tangentPlane = EllipsoidTangentPlane_default.fromPoints(outerRing, ellipsoid);
|
603
|
+
let positions2D = tangentPlane.projectPointsOntoPlane(
|
604
|
+
outerRing,
|
605
|
+
createGeometryFromPositionsExtrudedPositions
|
606
|
+
);
|
607
|
+
let windingOrder = PolygonPipeline_default.computeWindingOrder2D(positions2D);
|
608
|
+
if (windingOrder === WindingOrder_default.CLOCKWISE) {
|
609
|
+
outerRing = outerRing.slice().reverse();
|
610
|
+
}
|
611
|
+
let wallGeo = PolygonGeometryLibrary_default.computeWallGeometry(
|
612
|
+
outerRing,
|
613
|
+
textureCoordinates,
|
614
|
+
ellipsoid,
|
615
|
+
granularity,
|
616
|
+
perPositionHeight,
|
617
|
+
arcType
|
618
|
+
);
|
619
|
+
geos.walls.push(
|
620
|
+
new GeometryInstance_default({
|
621
|
+
geometry: wallGeo
|
622
|
+
})
|
623
|
+
);
|
624
|
+
const holes = hierarchy.holes;
|
625
|
+
for (i = 0; i < holes.length; i++) {
|
626
|
+
let hole = holes[i];
|
627
|
+
tangentPlane = EllipsoidTangentPlane_default.fromPoints(hole, ellipsoid);
|
628
|
+
positions2D = tangentPlane.projectPointsOntoPlane(
|
629
|
+
hole,
|
630
|
+
createGeometryFromPositionsExtrudedPositions
|
631
|
+
);
|
632
|
+
windingOrder = PolygonPipeline_default.computeWindingOrder2D(positions2D);
|
633
|
+
if (windingOrder === WindingOrder_default.COUNTER_CLOCKWISE) {
|
634
|
+
hole = hole.slice().reverse();
|
635
|
+
}
|
636
|
+
wallGeo = PolygonGeometryLibrary_default.computeWallGeometry(
|
637
|
+
hole,
|
638
|
+
textureCoordinates,
|
639
|
+
ellipsoid,
|
640
|
+
granularity,
|
641
|
+
perPositionHeight,
|
642
|
+
arcType
|
643
|
+
);
|
644
|
+
geos.walls.push(
|
645
|
+
new GeometryInstance_default({
|
646
|
+
geometry: wallGeo
|
647
|
+
})
|
648
|
+
);
|
649
|
+
}
|
650
|
+
return geos;
|
651
|
+
}
|
652
|
+
function PolygonGeometry(options) {
|
653
|
+
Check_default.typeOf.object("options", options);
|
654
|
+
Check_default.typeOf.object("options.polygonHierarchy", options.polygonHierarchy);
|
655
|
+
if (defined_default(options.perPositionHeight) && options.perPositionHeight && defined_default(options.height)) {
|
656
|
+
throw new DeveloperError_default(
|
657
|
+
"Cannot use both options.perPositionHeight and options.height"
|
658
|
+
);
|
659
|
+
}
|
660
|
+
if (defined_default(options.arcType) && options.arcType !== ArcType_default.GEODESIC && options.arcType !== ArcType_default.RHUMB) {
|
661
|
+
throw new DeveloperError_default(
|
662
|
+
"Invalid arcType. Valid options are ArcType.GEODESIC and ArcType.RHUMB."
|
663
|
+
);
|
664
|
+
}
|
665
|
+
const polygonHierarchy = options.polygonHierarchy;
|
666
|
+
const vertexFormat = defaultValue_default(options.vertexFormat, VertexFormat_default.DEFAULT);
|
667
|
+
const ellipsoid = defaultValue_default(options.ellipsoid, Ellipsoid_default.WGS84);
|
668
|
+
const granularity = defaultValue_default(
|
669
|
+
options.granularity,
|
670
|
+
Math_default.RADIANS_PER_DEGREE
|
671
|
+
);
|
672
|
+
const stRotation = defaultValue_default(options.stRotation, 0);
|
673
|
+
const textureCoordinates = options.textureCoordinates;
|
674
|
+
const perPositionHeight = defaultValue_default(options.perPositionHeight, false);
|
675
|
+
const perPositionHeightExtrude = perPositionHeight && defined_default(options.extrudedHeight);
|
676
|
+
let height = defaultValue_default(options.height, 0);
|
677
|
+
let extrudedHeight = defaultValue_default(options.extrudedHeight, height);
|
678
|
+
if (!perPositionHeightExtrude) {
|
679
|
+
const h = Math.max(height, extrudedHeight);
|
680
|
+
extrudedHeight = Math.min(height, extrudedHeight);
|
681
|
+
height = h;
|
682
|
+
}
|
683
|
+
this._vertexFormat = VertexFormat_default.clone(vertexFormat);
|
684
|
+
this._ellipsoid = Ellipsoid_default.clone(ellipsoid);
|
685
|
+
this._granularity = granularity;
|
686
|
+
this._stRotation = stRotation;
|
687
|
+
this._height = height;
|
688
|
+
this._extrudedHeight = extrudedHeight;
|
689
|
+
this._closeTop = defaultValue_default(options.closeTop, true);
|
690
|
+
this._closeBottom = defaultValue_default(options.closeBottom, true);
|
691
|
+
this._polygonHierarchy = polygonHierarchy;
|
692
|
+
this._perPositionHeight = perPositionHeight;
|
693
|
+
this._perPositionHeightExtrude = perPositionHeightExtrude;
|
694
|
+
this._shadowVolume = defaultValue_default(options.shadowVolume, false);
|
695
|
+
this._workerName = "createPolygonGeometry";
|
696
|
+
this._offsetAttribute = options.offsetAttribute;
|
697
|
+
this._arcType = defaultValue_default(options.arcType, ArcType_default.GEODESIC);
|
698
|
+
this._rectangle = void 0;
|
699
|
+
this._textureCoordinateRotationPoints = void 0;
|
700
|
+
this._textureCoordinates = textureCoordinates;
|
701
|
+
this.packedLength = PolygonGeometryLibrary_default.computeHierarchyPackedLength(
|
702
|
+
polygonHierarchy,
|
703
|
+
Cartesian3_default
|
704
|
+
) + Ellipsoid_default.packedLength + VertexFormat_default.packedLength + (textureCoordinates ? PolygonGeometryLibrary_default.computeHierarchyPackedLength(
|
705
|
+
textureCoordinates,
|
706
|
+
Cartesian2_default
|
707
|
+
) : 1) + 12;
|
708
|
+
}
|
709
|
+
PolygonGeometry.fromPositions = function(options) {
|
710
|
+
options = defaultValue_default(options, defaultValue_default.EMPTY_OBJECT);
|
711
|
+
Check_default.defined("options.positions", options.positions);
|
712
|
+
const newOptions = {
|
713
|
+
polygonHierarchy: {
|
714
|
+
positions: options.positions
|
715
|
+
},
|
716
|
+
height: options.height,
|
717
|
+
extrudedHeight: options.extrudedHeight,
|
718
|
+
vertexFormat: options.vertexFormat,
|
719
|
+
stRotation: options.stRotation,
|
720
|
+
ellipsoid: options.ellipsoid,
|
721
|
+
granularity: options.granularity,
|
722
|
+
perPositionHeight: options.perPositionHeight,
|
723
|
+
closeTop: options.closeTop,
|
724
|
+
closeBottom: options.closeBottom,
|
725
|
+
offsetAttribute: options.offsetAttribute,
|
726
|
+
arcType: options.arcType,
|
727
|
+
textureCoordinates: options.textureCoordinates
|
728
|
+
};
|
729
|
+
return new PolygonGeometry(newOptions);
|
730
|
+
};
|
731
|
+
PolygonGeometry.pack = function(value, array, startingIndex) {
|
732
|
+
Check_default.typeOf.object("value", value);
|
733
|
+
Check_default.defined("array", array);
|
734
|
+
startingIndex = defaultValue_default(startingIndex, 0);
|
735
|
+
startingIndex = PolygonGeometryLibrary_default.packPolygonHierarchy(
|
736
|
+
value._polygonHierarchy,
|
737
|
+
array,
|
738
|
+
startingIndex,
|
739
|
+
Cartesian3_default
|
740
|
+
);
|
741
|
+
Ellipsoid_default.pack(value._ellipsoid, array, startingIndex);
|
742
|
+
startingIndex += Ellipsoid_default.packedLength;
|
743
|
+
VertexFormat_default.pack(value._vertexFormat, array, startingIndex);
|
744
|
+
startingIndex += VertexFormat_default.packedLength;
|
745
|
+
array[startingIndex++] = value._height;
|
746
|
+
array[startingIndex++] = value._extrudedHeight;
|
747
|
+
array[startingIndex++] = value._granularity;
|
748
|
+
array[startingIndex++] = value._stRotation;
|
749
|
+
array[startingIndex++] = value._perPositionHeightExtrude ? 1 : 0;
|
750
|
+
array[startingIndex++] = value._perPositionHeight ? 1 : 0;
|
751
|
+
array[startingIndex++] = value._closeTop ? 1 : 0;
|
752
|
+
array[startingIndex++] = value._closeBottom ? 1 : 0;
|
753
|
+
array[startingIndex++] = value._shadowVolume ? 1 : 0;
|
754
|
+
array[startingIndex++] = defaultValue_default(value._offsetAttribute, -1);
|
755
|
+
array[startingIndex++] = value._arcType;
|
756
|
+
if (defined_default(value._textureCoordinates)) {
|
757
|
+
startingIndex = PolygonGeometryLibrary_default.packPolygonHierarchy(
|
758
|
+
value._textureCoordinates,
|
759
|
+
array,
|
760
|
+
startingIndex,
|
761
|
+
Cartesian2_default
|
762
|
+
);
|
763
|
+
} else {
|
764
|
+
array[startingIndex++] = -1;
|
765
|
+
}
|
766
|
+
array[startingIndex++] = value.packedLength;
|
767
|
+
return array;
|
768
|
+
};
|
769
|
+
var scratchEllipsoid = Ellipsoid_default.clone(Ellipsoid_default.UNIT_SPHERE);
|
770
|
+
var scratchVertexFormat = new VertexFormat_default();
|
771
|
+
var dummyOptions = {
|
772
|
+
polygonHierarchy: {}
|
773
|
+
};
|
774
|
+
PolygonGeometry.unpack = function(array, startingIndex, result) {
|
775
|
+
Check_default.defined("array", array);
|
776
|
+
startingIndex = defaultValue_default(startingIndex, 0);
|
777
|
+
const polygonHierarchy = PolygonGeometryLibrary_default.unpackPolygonHierarchy(
|
778
|
+
array,
|
779
|
+
startingIndex,
|
780
|
+
Cartesian3_default
|
781
|
+
);
|
782
|
+
startingIndex = polygonHierarchy.startingIndex;
|
783
|
+
delete polygonHierarchy.startingIndex;
|
784
|
+
const ellipsoid = Ellipsoid_default.unpack(array, startingIndex, scratchEllipsoid);
|
785
|
+
startingIndex += Ellipsoid_default.packedLength;
|
786
|
+
const vertexFormat = VertexFormat_default.unpack(
|
787
|
+
array,
|
788
|
+
startingIndex,
|
789
|
+
scratchVertexFormat
|
790
|
+
);
|
791
|
+
startingIndex += VertexFormat_default.packedLength;
|
792
|
+
const height = array[startingIndex++];
|
793
|
+
const extrudedHeight = array[startingIndex++];
|
794
|
+
const granularity = array[startingIndex++];
|
795
|
+
const stRotation = array[startingIndex++];
|
796
|
+
const perPositionHeightExtrude = array[startingIndex++] === 1;
|
797
|
+
const perPositionHeight = array[startingIndex++] === 1;
|
798
|
+
const closeTop = array[startingIndex++] === 1;
|
799
|
+
const closeBottom = array[startingIndex++] === 1;
|
800
|
+
const shadowVolume = array[startingIndex++] === 1;
|
801
|
+
const offsetAttribute = array[startingIndex++];
|
802
|
+
const arcType = array[startingIndex++];
|
803
|
+
const textureCoordinates = array[startingIndex] === -1 ? void 0 : PolygonGeometryLibrary_default.unpackPolygonHierarchy(
|
804
|
+
array,
|
805
|
+
startingIndex,
|
806
|
+
Cartesian2_default
|
807
|
+
);
|
808
|
+
if (defined_default(textureCoordinates)) {
|
809
|
+
startingIndex = textureCoordinates.startingIndex;
|
810
|
+
delete textureCoordinates.startingIndex;
|
811
|
+
} else {
|
812
|
+
startingIndex++;
|
813
|
+
}
|
814
|
+
const packedLength = array[startingIndex++];
|
815
|
+
if (!defined_default(result)) {
|
816
|
+
result = new PolygonGeometry(dummyOptions);
|
817
|
+
}
|
818
|
+
result._polygonHierarchy = polygonHierarchy;
|
819
|
+
result._ellipsoid = Ellipsoid_default.clone(ellipsoid, result._ellipsoid);
|
820
|
+
result._vertexFormat = VertexFormat_default.clone(vertexFormat, result._vertexFormat);
|
821
|
+
result._height = height;
|
822
|
+
result._extrudedHeight = extrudedHeight;
|
823
|
+
result._granularity = granularity;
|
824
|
+
result._stRotation = stRotation;
|
825
|
+
result._perPositionHeightExtrude = perPositionHeightExtrude;
|
826
|
+
result._perPositionHeight = perPositionHeight;
|
827
|
+
result._closeTop = closeTop;
|
828
|
+
result._closeBottom = closeBottom;
|
829
|
+
result._shadowVolume = shadowVolume;
|
830
|
+
result._offsetAttribute = offsetAttribute === -1 ? void 0 : offsetAttribute;
|
831
|
+
result._arcType = arcType;
|
832
|
+
result._textureCoordinates = textureCoordinates;
|
833
|
+
result.packedLength = packedLength;
|
834
|
+
return result;
|
835
|
+
};
|
836
|
+
PolygonGeometry.computeRectangle = function(options, result) {
|
837
|
+
Check_default.typeOf.object("options", options);
|
838
|
+
Check_default.typeOf.object("options.polygonHierarchy", options.polygonHierarchy);
|
839
|
+
const granularity = defaultValue_default(
|
840
|
+
options.granularity,
|
841
|
+
Math_default.RADIANS_PER_DEGREE
|
842
|
+
);
|
843
|
+
const arcType = defaultValue_default(options.arcType, ArcType_default.GEODESIC);
|
844
|
+
if (arcType !== ArcType_default.GEODESIC && arcType !== ArcType_default.RHUMB) {
|
845
|
+
throw new DeveloperError_default(
|
846
|
+
"Invalid arcType. Valid options are ArcType.GEODESIC and ArcType.RHUMB."
|
847
|
+
);
|
848
|
+
}
|
849
|
+
const polygonHierarchy = options.polygonHierarchy;
|
850
|
+
const ellipsoid = defaultValue_default(options.ellipsoid, Ellipsoid_default.WGS84);
|
851
|
+
return computeRectangle(
|
852
|
+
polygonHierarchy.positions,
|
853
|
+
ellipsoid,
|
854
|
+
arcType,
|
855
|
+
granularity,
|
856
|
+
result
|
857
|
+
);
|
858
|
+
};
|
859
|
+
PolygonGeometry.createGeometry = function(polygonGeometry) {
|
860
|
+
const vertexFormat = polygonGeometry._vertexFormat;
|
861
|
+
const ellipsoid = polygonGeometry._ellipsoid;
|
862
|
+
const granularity = polygonGeometry._granularity;
|
863
|
+
const stRotation = polygonGeometry._stRotation;
|
864
|
+
const polygonHierarchy = polygonGeometry._polygonHierarchy;
|
865
|
+
const perPositionHeight = polygonGeometry._perPositionHeight;
|
866
|
+
const closeTop = polygonGeometry._closeTop;
|
867
|
+
const closeBottom = polygonGeometry._closeBottom;
|
868
|
+
const arcType = polygonGeometry._arcType;
|
869
|
+
const textureCoordinates = polygonGeometry._textureCoordinates;
|
870
|
+
const hasTextureCoordinates = defined_default(textureCoordinates);
|
871
|
+
let outerPositions = polygonHierarchy.positions;
|
872
|
+
if (outerPositions.length < 3) {
|
873
|
+
return;
|
874
|
+
}
|
875
|
+
const tangentPlane = EllipsoidTangentPlane_default.fromPoints(
|
876
|
+
outerPositions,
|
877
|
+
ellipsoid
|
878
|
+
);
|
879
|
+
const results = PolygonGeometryLibrary_default.polygonsFromHierarchy(
|
880
|
+
polygonHierarchy,
|
881
|
+
hasTextureCoordinates,
|
882
|
+
tangentPlane.projectPointsOntoPlane.bind(tangentPlane),
|
883
|
+
!perPositionHeight,
|
884
|
+
ellipsoid
|
885
|
+
);
|
886
|
+
const hierarchy = results.hierarchy;
|
887
|
+
const polygons = results.polygons;
|
888
|
+
const dummyFunction = function(identity) {
|
889
|
+
return identity;
|
890
|
+
};
|
891
|
+
const textureCoordinatePolygons = hasTextureCoordinates ? PolygonGeometryLibrary_default.polygonsFromHierarchy(
|
892
|
+
textureCoordinates,
|
893
|
+
true,
|
894
|
+
dummyFunction,
|
895
|
+
false
|
896
|
+
).polygons : void 0;
|
897
|
+
if (hierarchy.length === 0) {
|
898
|
+
return;
|
899
|
+
}
|
900
|
+
outerPositions = hierarchy[0].outerRing;
|
901
|
+
const boundingRectangle = PolygonGeometryLibrary_default.computeBoundingRectangle(
|
902
|
+
tangentPlane.plane.normal,
|
903
|
+
tangentPlane.projectPointOntoPlane.bind(tangentPlane),
|
904
|
+
outerPositions,
|
905
|
+
stRotation,
|
906
|
+
scratchBoundingRectangle
|
907
|
+
);
|
908
|
+
const geometries = [];
|
909
|
+
const height = polygonGeometry._height;
|
910
|
+
const extrudedHeight = polygonGeometry._extrudedHeight;
|
911
|
+
const extrude = polygonGeometry._perPositionHeightExtrude || !Math_default.equalsEpsilon(height, extrudedHeight, 0, Math_default.EPSILON2);
|
912
|
+
const options = {
|
913
|
+
perPositionHeight,
|
914
|
+
vertexFormat,
|
915
|
+
geometry: void 0,
|
916
|
+
tangentPlane,
|
917
|
+
boundingRectangle,
|
918
|
+
ellipsoid,
|
919
|
+
stRotation,
|
920
|
+
textureCoordinates: void 0,
|
921
|
+
bottom: false,
|
922
|
+
top: true,
|
923
|
+
wall: false,
|
924
|
+
extrude: false,
|
925
|
+
arcType
|
926
|
+
};
|
927
|
+
let i;
|
928
|
+
if (extrude) {
|
929
|
+
options.extrude = true;
|
930
|
+
options.top = closeTop;
|
931
|
+
options.bottom = closeBottom;
|
932
|
+
options.shadowVolume = polygonGeometry._shadowVolume;
|
933
|
+
options.offsetAttribute = polygonGeometry._offsetAttribute;
|
934
|
+
for (i = 0; i < polygons.length; i++) {
|
935
|
+
const splitGeometry = createGeometryFromPositionsExtruded(
|
936
|
+
ellipsoid,
|
937
|
+
polygons[i],
|
938
|
+
hasTextureCoordinates ? textureCoordinatePolygons[i] : void 0,
|
939
|
+
granularity,
|
940
|
+
hierarchy[i],
|
941
|
+
perPositionHeight,
|
942
|
+
closeTop,
|
943
|
+
closeBottom,
|
944
|
+
vertexFormat,
|
945
|
+
arcType
|
946
|
+
);
|
947
|
+
let topAndBottom;
|
948
|
+
if (closeTop && closeBottom) {
|
949
|
+
topAndBottom = splitGeometry.topAndBottom;
|
950
|
+
options.geometry = PolygonGeometryLibrary_default.scaleToGeodeticHeightExtruded(
|
951
|
+
topAndBottom.geometry,
|
952
|
+
height,
|
953
|
+
extrudedHeight,
|
954
|
+
ellipsoid,
|
955
|
+
perPositionHeight
|
956
|
+
);
|
957
|
+
} else if (closeTop) {
|
958
|
+
topAndBottom = splitGeometry.topAndBottom;
|
959
|
+
topAndBottom.geometry.attributes.position.values = PolygonPipeline_default.scaleToGeodeticHeight(
|
960
|
+
topAndBottom.geometry.attributes.position.values,
|
961
|
+
height,
|
962
|
+
ellipsoid,
|
963
|
+
!perPositionHeight
|
964
|
+
);
|
965
|
+
options.geometry = topAndBottom.geometry;
|
966
|
+
} else if (closeBottom) {
|
967
|
+
topAndBottom = splitGeometry.topAndBottom;
|
968
|
+
topAndBottom.geometry.attributes.position.values = PolygonPipeline_default.scaleToGeodeticHeight(
|
969
|
+
topAndBottom.geometry.attributes.position.values,
|
970
|
+
extrudedHeight,
|
971
|
+
ellipsoid,
|
972
|
+
true
|
973
|
+
);
|
974
|
+
options.geometry = topAndBottom.geometry;
|
975
|
+
}
|
976
|
+
if (closeTop || closeBottom) {
|
977
|
+
options.wall = false;
|
978
|
+
topAndBottom.geometry = computeAttributes(options);
|
979
|
+
geometries.push(topAndBottom);
|
980
|
+
}
|
981
|
+
const walls = splitGeometry.walls;
|
982
|
+
options.wall = true;
|
983
|
+
for (let k = 0; k < walls.length; k++) {
|
984
|
+
const wall = walls[k];
|
985
|
+
options.geometry = PolygonGeometryLibrary_default.scaleToGeodeticHeightExtruded(
|
986
|
+
wall.geometry,
|
987
|
+
height,
|
988
|
+
extrudedHeight,
|
989
|
+
ellipsoid,
|
990
|
+
perPositionHeight
|
991
|
+
);
|
992
|
+
wall.geometry = computeAttributes(options);
|
993
|
+
geometries.push(wall);
|
994
|
+
}
|
995
|
+
}
|
996
|
+
} else {
|
997
|
+
for (i = 0; i < polygons.length; i++) {
|
998
|
+
const geometryInstance = new GeometryInstance_default({
|
999
|
+
geometry: PolygonGeometryLibrary_default.createGeometryFromPositions(
|
1000
|
+
ellipsoid,
|
1001
|
+
polygons[i],
|
1002
|
+
hasTextureCoordinates ? textureCoordinatePolygons[i] : void 0,
|
1003
|
+
granularity,
|
1004
|
+
perPositionHeight,
|
1005
|
+
vertexFormat,
|
1006
|
+
arcType
|
1007
|
+
)
|
1008
|
+
});
|
1009
|
+
geometryInstance.geometry.attributes.position.values = PolygonPipeline_default.scaleToGeodeticHeight(
|
1010
|
+
geometryInstance.geometry.attributes.position.values,
|
1011
|
+
height,
|
1012
|
+
ellipsoid,
|
1013
|
+
!perPositionHeight
|
1014
|
+
);
|
1015
|
+
options.geometry = geometryInstance.geometry;
|
1016
|
+
geometryInstance.geometry = computeAttributes(options);
|
1017
|
+
if (defined_default(polygonGeometry._offsetAttribute)) {
|
1018
|
+
const length = geometryInstance.geometry.attributes.position.values.length;
|
1019
|
+
const offsetValue = polygonGeometry._offsetAttribute === GeometryOffsetAttribute_default.NONE ? 0 : 1;
|
1020
|
+
const applyOffset = new Uint8Array(length / 3).fill(offsetValue);
|
1021
|
+
geometryInstance.geometry.attributes.applyOffset = new GeometryAttribute_default(
|
1022
|
+
{
|
1023
|
+
componentDatatype: ComponentDatatype_default.UNSIGNED_BYTE,
|
1024
|
+
componentsPerAttribute: 1,
|
1025
|
+
values: applyOffset
|
1026
|
+
}
|
1027
|
+
);
|
1028
|
+
}
|
1029
|
+
geometries.push(geometryInstance);
|
1030
|
+
}
|
1031
|
+
}
|
1032
|
+
const geometry = GeometryPipeline_default.combineInstances(geometries)[0];
|
1033
|
+
geometry.attributes.position.values = new Float64Array(
|
1034
|
+
geometry.attributes.position.values
|
1035
|
+
);
|
1036
|
+
geometry.indices = IndexDatatype_default.createTypedArray(
|
1037
|
+
geometry.attributes.position.values.length / 3,
|
1038
|
+
geometry.indices
|
1039
|
+
);
|
1040
|
+
const attributes = geometry.attributes;
|
1041
|
+
const boundingSphere = BoundingSphere_default.fromVertices(
|
1042
|
+
attributes.position.values
|
1043
|
+
);
|
1044
|
+
if (!vertexFormat.position) {
|
1045
|
+
delete attributes.position;
|
1046
|
+
}
|
1047
|
+
return new Geometry_default({
|
1048
|
+
attributes,
|
1049
|
+
indices: geometry.indices,
|
1050
|
+
primitiveType: geometry.primitiveType,
|
1051
|
+
boundingSphere,
|
1052
|
+
offsetAttribute: polygonGeometry._offsetAttribute
|
1053
|
+
});
|
1054
|
+
};
|
1055
|
+
PolygonGeometry.createShadowVolume = function(polygonGeometry, minHeightFunc, maxHeightFunc) {
|
1056
|
+
const granularity = polygonGeometry._granularity;
|
1057
|
+
const ellipsoid = polygonGeometry._ellipsoid;
|
1058
|
+
const minHeight = minHeightFunc(granularity, ellipsoid);
|
1059
|
+
const maxHeight = maxHeightFunc(granularity, ellipsoid);
|
1060
|
+
return new PolygonGeometry({
|
1061
|
+
polygonHierarchy: polygonGeometry._polygonHierarchy,
|
1062
|
+
ellipsoid,
|
1063
|
+
stRotation: polygonGeometry._stRotation,
|
1064
|
+
granularity,
|
1065
|
+
perPositionHeight: false,
|
1066
|
+
extrudedHeight: minHeight,
|
1067
|
+
height: maxHeight,
|
1068
|
+
vertexFormat: VertexFormat_default.POSITION_ONLY,
|
1069
|
+
shadowVolume: true,
|
1070
|
+
arcType: polygonGeometry._arcType
|
1071
|
+
});
|
1072
|
+
};
|
1073
|
+
function textureCoordinateRotationPoints(polygonGeometry) {
|
1074
|
+
const stRotation = -polygonGeometry._stRotation;
|
1075
|
+
if (stRotation === 0) {
|
1076
|
+
return [0, 0, 0, 1, 1, 0];
|
1077
|
+
}
|
1078
|
+
const ellipsoid = polygonGeometry._ellipsoid;
|
1079
|
+
const positions = polygonGeometry._polygonHierarchy.positions;
|
1080
|
+
const boundingRectangle = polygonGeometry.rectangle;
|
1081
|
+
return Geometry_default._textureCoordinateRotationPoints(
|
1082
|
+
positions,
|
1083
|
+
stRotation,
|
1084
|
+
ellipsoid,
|
1085
|
+
boundingRectangle
|
1086
|
+
);
|
1087
|
+
}
|
1088
|
+
Object.defineProperties(PolygonGeometry.prototype, {
|
1089
|
+
/**
|
1090
|
+
* @private
|
1091
|
+
*/
|
1092
|
+
rectangle: {
|
1093
|
+
get: function() {
|
1094
|
+
if (!defined_default(this._rectangle)) {
|
1095
|
+
const positions = this._polygonHierarchy.positions;
|
1096
|
+
this._rectangle = computeRectangle(
|
1097
|
+
positions,
|
1098
|
+
this._ellipsoid,
|
1099
|
+
this._arcType,
|
1100
|
+
this._granularity
|
1101
|
+
);
|
1102
|
+
}
|
1103
|
+
return this._rectangle;
|
1104
|
+
}
|
1105
|
+
},
|
1106
|
+
/**
|
1107
|
+
* For remapping texture coordinates when rendering PolygonGeometries as GroundPrimitives.
|
1108
|
+
* @private
|
1109
|
+
*/
|
1110
|
+
textureCoordinateRotationPoints: {
|
1111
|
+
get: function() {
|
1112
|
+
if (!defined_default(this._textureCoordinateRotationPoints)) {
|
1113
|
+
this._textureCoordinateRotationPoints = textureCoordinateRotationPoints(
|
1114
|
+
this
|
1115
|
+
);
|
1116
|
+
}
|
1117
|
+
return this._textureCoordinateRotationPoints;
|
1118
|
+
}
|
1119
|
+
}
|
1120
|
+
});
|
1121
|
+
var PolygonGeometry_default = PolygonGeometry;
|
1122
|
+
|
1123
|
+
// packages/engine/Source/Workers/createPolygonGeometry.js
|
1124
|
+
function createPolygonGeometry(polygonGeometry, offset) {
|
1125
|
+
if (defined_default(offset)) {
|
1126
|
+
polygonGeometry = PolygonGeometry_default.unpack(polygonGeometry, offset);
|
1127
|
+
}
|
1128
|
+
polygonGeometry._ellipsoid = Ellipsoid_default.clone(polygonGeometry._ellipsoid);
|
1129
|
+
return PolygonGeometry_default.createGeometry(polygonGeometry);
|
1130
|
+
}
|
1131
|
+
var createPolygonGeometry_default = createPolygonGeometry;
|
1132
|
+
export {
|
1133
|
+
createPolygonGeometry_default as default
|
1134
|
+
};
|