@vcmap/ui 6.0.0-rc.1 → 6.0.0-rc.10
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/build/build.js +40 -60
- package/build/buildHelpers.js +63 -20
- package/build/buildTypes.js +9 -5
- package/build/bundle.js +1 -1
- package/build/info/conf.json +1 -1
- package/build/info/publish.js +25 -31
- package/build/lintTypes.js +5 -0
- package/config/aerowest.config.json +12 -2
- package/config/base.config.json +22 -17
- package/config/dev.config.json +164 -4
- package/config/projects.config.json +3 -1
- package/config/solar.config.json +65 -0
- package/config/splashscreen.config.json +45 -0
- package/config/theming.config.json +68 -0
- package/config/www.config.json +39 -23
- package/dist/.htaccess +7 -0
- package/dist/assets/@mdi/font/README.md +25 -0
- package/dist/assets/@mdi/font/css/materialdesignicons.min-680621ca.css +3 -0
- package/dist/assets/@mdi/font/css/materialdesignicons.min.css.map +16 -0
- package/dist/assets/@mdi/font/fonts/materialdesignicons-webfont.woff2 +0 -0
- package/dist/assets/cesium/Assets/approximateTerrainHeights.json +1 -1
- package/dist/assets/cesium/ThirdParty/Workers/z-worker-pako.js +1 -1
- package/dist/assets/cesium/Workers/{chunk-JB2LWGH4.js → chunk-2LOWCAMW.js} +14 -14
- package/dist/assets/cesium/Workers/{chunk-Z24VKNDO.js → chunk-2PTKXHJB.js} +12 -12
- package/dist/assets/cesium/Workers/{chunk-AHKEZ2OE.js → chunk-3HQMMUPU.js} +1 -1
- package/dist/assets/cesium/Workers/{chunk-V3NGATMV.js → chunk-3IFRSGEY.js} +11 -13
- package/dist/assets/cesium/Workers/{chunk-66QLLS45.js → chunk-44QAAS4P.js} +11 -9
- package/dist/assets/cesium/Workers/{chunk-TFC6TZ3S.js → chunk-56EDBCGT.js} +33 -22
- package/dist/assets/cesium/Workers/{chunk-3W63OHNJ.js → chunk-57H6I3SV.js} +5 -5
- package/dist/assets/cesium/Workers/{chunk-PFQBCKBM.js → chunk-6SQMLVGV.js} +5206 -3483
- package/dist/assets/cesium/Workers/{chunk-OZJDGN5F.js → chunk-7YIOHQWH.js} +16 -16
- package/dist/assets/cesium/Workers/{chunk-XTY7B2N6.js → chunk-7ZZ5LMZY.js} +17 -16
- package/dist/assets/cesium/Workers/{chunk-HARLBUOL.js → chunk-BVKITG4N.js} +11 -8
- package/dist/assets/cesium/Workers/{chunk-AFFLIKOH.js → chunk-C3EQ27WF.js} +7 -7
- package/dist/assets/cesium/Workers/{chunk-RW6LU2CJ.js → chunk-C4WPMOKT.js} +6 -5
- package/dist/assets/cesium/Workers/{chunk-OYFCF4PL.js → chunk-EDLRS3AW.js} +6 -6
- package/dist/assets/cesium/Workers/{chunk-C3SXRKRW.js → chunk-EJVGYGLF.js} +7 -7
- package/dist/assets/cesium/Workers/{chunk-PCJWUS4M.js → chunk-FFLMY4TE.js} +830 -14
- package/dist/assets/cesium/Workers/{chunk-MPAZH4BF.js → chunk-GBT7MJ6X.js} +1 -1
- package/dist/assets/cesium/Workers/{chunk-ZA25DG4Y.js → chunk-HJMNR3GC.js} +11 -11
- package/dist/assets/cesium/Workers/{chunk-JS3AW5BK.js → chunk-HP5XLODI.js} +6 -6
- package/dist/assets/cesium/Workers/{chunk-34YUDLRP.js → chunk-IBRIWOCM.js} +13 -13
- package/dist/assets/cesium/Workers/{chunk-XY7MGBKC.js → chunk-IZGUQO6Q.js} +14 -16
- package/dist/assets/cesium/Workers/{chunk-KTJSNCK4.js → chunk-IZJ42N4W.js} +230 -20
- package/dist/assets/cesium/Workers/{chunk-QMEMZIJI.js → chunk-JBSKHTNX.js} +4 -4
- package/dist/assets/cesium/Workers/{chunk-QIKODV5G.js → chunk-JISPSEF3.js} +4 -4
- package/dist/assets/cesium/Workers/{chunk-K36FEYS7.js → chunk-JSQJDZI4.js} +16 -12
- package/dist/assets/cesium/Workers/{chunk-X4SU25DT.js → chunk-JXVLNVXC.js} +10 -12
- package/dist/assets/cesium/Workers/chunk-KHZNBFOH.js +963 -0
- package/dist/assets/cesium/Workers/{chunk-KD4Y7CZL.js → chunk-L5GODJAR.js} +15 -17
- package/dist/assets/cesium/Workers/{chunk-O5AMBQ36.js → chunk-LJ2JQHJT.js} +13 -8
- package/dist/assets/cesium/Workers/{chunk-ABADGKYE.js → chunk-LLAF3CPH.js} +2 -2
- package/dist/assets/cesium/Workers/{chunk-CHHNOC2C.js → chunk-M24KHENR.js} +95 -155
- package/dist/assets/cesium/Workers/{chunk-2R5O53JW.js → chunk-NDDI2LWR.js} +6 -6
- package/dist/assets/cesium/Workers/{chunk-QT3MPEMI.js → chunk-NGZJIN5Z.js} +4 -4
- package/dist/assets/cesium/Workers/{chunk-ZFOBYDGF.js → chunk-O72GZTSE.js} +2 -2
- package/dist/assets/cesium/Workers/{chunk-IPA4EACJ.js → chunk-OPP2SKMA.js} +12 -12
- package/dist/assets/cesium/Workers/{chunk-4MFFIWUA.js → chunk-P6TRGU3S.js} +2 -2
- package/dist/assets/cesium/Workers/{chunk-GLZBE3ML.js → chunk-QN6TBED4.js} +13 -13
- package/dist/assets/cesium/Workers/{chunk-MYZB7C4T.js → chunk-QQOZO7KO.js} +10 -10
- package/dist/assets/cesium/Workers/{chunk-HQF437NJ.js → chunk-RJM36CNY.js} +6 -6
- package/dist/assets/cesium/Workers/{chunk-CTELOFLA.js → chunk-RTJKHZWU.js} +6 -6
- package/dist/assets/cesium/Workers/{chunk-J3JY6I2C.js → chunk-TI3TRKIC.js} +425 -489
- package/dist/assets/cesium/Workers/{chunk-OAVNIRB4.js → chunk-TK5IIG2F.js} +5 -7
- package/dist/assets/cesium/Workers/{chunk-WXTV4ATB.js → chunk-U5HSOKPQ.js} +1 -1
- package/dist/assets/cesium/Workers/{chunk-N3JIFFX2.js → chunk-WGDFYAGC.js} +5 -6
- package/dist/assets/cesium/Workers/{chunk-EW2GWJYB.js → chunk-X7IQYYHF.js} +2 -2
- package/dist/assets/cesium/Workers/{chunk-LLUNNUJV.js → chunk-XIUSRWL6.js} +9 -5
- package/dist/assets/cesium/Workers/{chunk-CCFQRR6D.js → chunk-XWOUPGUF.js} +1 -1
- package/dist/assets/cesium/Workers/{chunk-6BTKZDRG.js → chunk-YCDZX5LS.js} +3 -5
- package/dist/assets/cesium/Workers/{chunk-RP2A7BR5.js → chunk-YK3QIKY7.js} +12 -14
- package/dist/assets/cesium/Workers/{chunk-227AJNOA.js → chunk-YSIJTJ7N.js} +5 -5
- package/dist/assets/cesium/Workers/{chunk-A4JVFBQ3.js → chunk-Z2QP3CXW.js} +2 -2
- package/dist/assets/cesium/Workers/{chunk-VLGOATD6.js → chunk-ZVUUPJEM.js} +22 -22
- package/dist/assets/cesium/Workers/combineGeometry.js +22 -23
- package/dist/assets/cesium/Workers/createBoxGeometry.js +16 -17
- package/dist/assets/cesium/Workers/createBoxOutlineGeometry.js +14 -15
- package/dist/assets/cesium/Workers/createCircleGeometry.js +29 -26
- package/dist/assets/cesium/Workers/createCircleOutlineGeometry.js +17 -18
- package/dist/assets/cesium/Workers/createCoplanarPolygonGeometry.js +35 -36
- package/dist/assets/cesium/Workers/createCoplanarPolygonOutlineGeometry.js +29 -30
- package/dist/assets/cesium/Workers/createCorridorGeometry.js +29 -30
- package/dist/assets/cesium/Workers/createCorridorOutlineGeometry.js +27 -28
- package/dist/assets/cesium/Workers/createCylinderGeometry.js +18 -19
- package/dist/assets/cesium/Workers/createCylinderOutlineGeometry.js +17 -19
- package/dist/assets/cesium/Workers/createEllipseGeometry.js +24 -25
- package/dist/assets/cesium/Workers/createEllipseOutlineGeometry.js +17 -18
- package/dist/assets/cesium/Workers/createEllipsoidGeometry.js +17 -18
- package/dist/assets/cesium/Workers/createEllipsoidOutlineGeometry.js +16 -17
- package/dist/assets/cesium/Workers/createFrustumGeometry.js +16 -17
- package/dist/assets/cesium/Workers/createFrustumOutlineGeometry.js +18 -18
- package/dist/assets/cesium/Workers/createGeometry.js +52 -33
- package/dist/assets/cesium/Workers/createGroundPolylineGeometry.js +28 -29
- package/dist/assets/cesium/Workers/createPlaneGeometry.js +14 -15
- package/dist/assets/cesium/Workers/createPlaneOutlineGeometry.js +13 -14
- package/dist/assets/cesium/Workers/createPolygonGeometry.js +451 -176
- package/dist/assets/cesium/Workers/createPolygonOutlineGeometry.js +29 -30
- package/dist/assets/cesium/Workers/createPolylineGeometry.js +24 -25
- package/dist/assets/cesium/Workers/createPolylineVolumeGeometry.js +31 -33
- package/dist/assets/cesium/Workers/createPolylineVolumeOutlineGeometry.js +27 -29
- package/dist/assets/cesium/Workers/createRectangleGeometry.js +30 -31
- package/dist/assets/cesium/Workers/createRectangleOutlineGeometry.js +21 -24
- package/dist/assets/cesium/Workers/createSimplePolylineGeometry.js +22 -23
- package/dist/assets/cesium/Workers/createSphereGeometry.js +17 -18
- package/dist/assets/cesium/Workers/createSphereOutlineGeometry.js +16 -17
- package/dist/assets/cesium/Workers/createTaskProcessorWorker.js +3 -3
- package/dist/assets/cesium/Workers/createVectorTileClampedPolylines.js +14 -16
- package/dist/assets/cesium/Workers/createVectorTileGeometries.js +22 -23
- package/dist/assets/cesium/Workers/createVectorTilePoints.js +12 -12
- package/dist/assets/cesium/Workers/createVectorTilePolygons.js +20 -21
- package/dist/assets/cesium/Workers/createVectorTilePolylines.js +14 -16
- package/dist/assets/cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +24 -25
- package/dist/assets/cesium/Workers/createVerticesFromHeightmap.js +29 -26
- package/dist/assets/cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +19 -21
- package/dist/assets/cesium/Workers/createWallGeometry.js +23 -24
- package/dist/assets/cesium/Workers/createWallOutlineGeometry.js +22 -23
- package/dist/assets/cesium/Workers/decodeDraco.js +11 -11
- package/dist/assets/cesium/Workers/decodeGoogleEarthEnterprisePacket.js +35 -19
- package/dist/assets/cesium/Workers/decodeI3S.js +600 -92
- package/dist/assets/cesium/Workers/transcodeKTX2.js +58 -93
- package/dist/assets/cesium/Workers/transferTypedArrayTest.js +1 -1
- package/dist/assets/cesium/Workers/upsampleQuantizedTerrainMesh.js +21 -22
- package/dist/assets/{cesium.6b12b4.js → cesium-9ea5ba6e.js} +73315 -68035
- package/dist/assets/cesium.js +1 -1
- package/dist/assets/{core.074b78.js → core-9b003470.js} +7135 -5664
- package/dist/assets/core.js +1 -1
- package/dist/assets/{ol.8b2e3a.js → ol-8373d6ac.js} +43066 -44325
- package/dist/assets/ol.js +1 -1
- package/dist/assets/ui-163311a7.css +1 -0
- package/dist/assets/{ui.715986.js → ui-163311a7.js} +14696 -13170
- package/dist/assets/ui.js +1 -1
- package/dist/assets/vue-0f6dd813.js +6083 -0
- package/dist/assets/vue.js +1 -1
- package/dist/assets/{vuetify.28d881.css → vuetify-e2c4b35c.css} +2 -2
- package/dist/assets/{vuetify.28d881.js → vuetify-e2c4b35c.js} +8699 -8824
- package/dist/assets/vuetify.js +1 -1
- package/dist/index.html +11 -10
- package/index.d.ts +36 -20
- package/index.html +5 -5
- package/index.js +20 -10
- package/lib/olLib.js +90 -23
- package/package.json +25 -23
- package/plugins/@vcmap-show-case/custom-icons-example/README.md +3 -0
- package/plugins/@vcmap-show-case/custom-icons-example/assets/imageExample.png +0 -0
- package/plugins/@vcmap-show-case/custom-icons-example/assets/svgExample.svg +1 -0
- package/plugins/@vcmap-show-case/custom-icons-example/package.json +5 -0
- package/plugins/@vcmap-show-case/custom-icons-example/src/CustomIconsExample.vue +90 -0
- package/plugins/@vcmap-show-case/custom-icons-example/src/index.js +45 -0
- package/plugins/@vcmap-show-case/flight-component-example/src/FlightExample.vue +41 -1
- package/plugins/@vcmap-show-case/form-inputs-example/src/FormInputsExample.vue +73 -34
- package/plugins/@vcmap-show-case/form-inputs-example/src/exampleActions.js +7 -11
- package/plugins/@vcmap-show-case/form-inputs-example/src/index.js +2 -2
- package/plugins/@vcmap-show-case/list-example/src/ListExample.vue +50 -96
- package/plugins/@vcmap-show-case/plugin-editors/src/PluginEditors.vue +14 -11
- package/plugins/@vcmap-show-case/project-selector/src/ModulesListComponent.vue +18 -11
- package/plugins/@vcmap-show-case/search-example/src/index.js +1 -0
- package/plugins/@vcmap-show-case/search-example/src/searchImpl.js +35 -5
- package/plugins/@vcmap-show-case/style-input-example/src/StyleExample.vue +29 -90
- package/plugins/@vcmap-show-case/theming-example/README.md +3 -0
- package/plugins/@vcmap-show-case/theming-example/package.json +5 -0
- package/plugins/@vcmap-show-case/theming-example/src/ThemingExample.vue +116 -0
- package/plugins/@vcmap-show-case/theming-example/src/index.js +53 -0
- package/plugins/@vcmap-show-case/toolbox-example/src/index.js +2 -1
- package/plugins/@vcmap-show-case/vector-properties-example/src/GeometrySettings.vue +420 -0
- package/plugins/@vcmap-show-case/vector-properties-example/src/LayoutHandler.vue +97 -0
- package/plugins/@vcmap-show-case/vector-properties-example/src/TerrainSettings.vue +90 -0
- package/plugins/@vcmap-show-case/vector-properties-example/src/VectorPropertiesExample.vue +86 -70
- package/plugins/@vcmap-show-case/vector-properties-example/src/index.js +34 -1
- package/plugins/@vcmap-show-case/vector-properties-example/src/lib.js +294 -0
- package/plugins/@vcmap-show-case/wizard-example/src/WizardExample.vue +40 -54
- package/plugins/package.json +23 -21
- package/public/assets/@mdi/font/README.md +25 -0
- package/public/assets/@mdi/font/css/materialdesignicons.min.css +2 -2
- package/public/assets/@mdi/font/css/materialdesignicons.min.css.map +16 -0
- package/public/assets/@mdi/font/fonts/materialdesignicons-webfont.woff2 +0 -0
- package/src/actions/StyleSelector.vue +37 -21
- package/src/actions/StyleSelector.vue.d.ts +5 -5
- package/src/actions/actionHelper.d.ts +4 -11
- package/src/actions/actionHelper.js +35 -27
- package/src/actions/flightActions.js +44 -23
- package/src/actions/listActions.d.ts +5 -12
- package/src/actions/listActions.js +6 -22
- package/src/actions/stateRefAction.js +2 -2
- package/src/application/VcsApp.vue +196 -85
- package/src/application/VcsApp.vue.d.ts +309 -4
- package/src/application/VcsAppWrapper.vue +1 -1
- package/src/application/VcsAttributions.vue +4 -15
- package/src/application/VcsAttributionsFooter.vue +28 -18
- package/src/application/VcsAttributionsFooter.vue.d.ts +1 -1
- package/src/application/VcsContainer.vue +27 -10
- package/src/application/VcsContainer.vue.d.ts +248 -0
- package/src/application/VcsMainMap.vue +8 -8
- package/src/application/VcsMainMap.vue.d.ts +2 -2
- package/src/application/VcsMap.vue +1 -0
- package/src/application/VcsNavbar.vue +15 -3
- package/src/application/VcsNavbar.vue.d.ts +2 -1
- package/src/application/VcsPositionDisplay.vue +10 -25
- package/src/application/VcsPositionDisplay.vue.d.ts +0 -1
- package/src/application/VcsSettings.vue +11 -18
- package/src/application/VcsSplashScreen.vue +43 -55
- package/src/application/VcsSplashScreen.vue.d.ts +4 -6
- package/src/application/VcsTextPage.vue +13 -44
- package/src/application/VcsTextPage.vue.d.ts +4 -8
- package/src/application/VcsTextPageFooter.vue +26 -41
- package/src/application/attributionsHelper.d.ts +20 -22
- package/src/application/attributionsHelper.js +14 -10
- package/src/callback/vcsCallback.d.ts +2 -2
- package/src/callback/vcsCallback.js +1 -1
- package/src/components/buttons/VcsActionButtonList.vue +66 -7
- package/src/components/buttons/VcsActionButtonList.vue.d.ts +28 -0
- package/src/components/buttons/VcsButton.vue +8 -10
- package/src/components/buttons/VcsButton.vue.d.ts +4 -4
- package/src/components/buttons/VcsFormButton.vue +9 -9
- package/src/components/buttons/VcsFormButton.vue.d.ts +3 -3
- package/src/components/buttons/VcsToolButton.vue +9 -7
- package/src/components/buttons/VcsToolButton.vue.d.ts +5 -5
- package/src/components/composables.d.ts +14 -2
- package/src/components/composables.js +106 -4
- package/src/components/extent/VcsExtent.vue +11 -7
- package/src/components/extent/VcsExtent.vue.d.ts +1 -0
- package/src/components/extent/VcsExtentEditor.vue +2 -1
- package/src/components/flight/VcsFlightAnchorsComponent.vue +64 -36
- package/src/components/flight/VcsFlightComponent.vue +25 -30
- package/src/components/flight/VcsFlightComponent.vue.d.ts +1 -0
- package/src/components/flight/VcsFlightEditor.vue +1 -0
- package/src/components/flight/VcsFlightPlayer.vue +47 -19
- package/src/components/form-inputs-controls/VcsCheckbox.vue +32 -13
- package/src/components/form-inputs-controls/VcsCheckbox.vue.d.ts +10 -0
- package/src/components/form-inputs-controls/VcsChipArrayInput.vue +14 -17
- package/src/components/form-inputs-controls/VcsChipArrayInput.vue.d.ts +2 -4
- package/src/components/form-inputs-controls/VcsCoordinate.vue +17 -5
- package/src/components/form-inputs-controls/VcsCoordinate.vue.d.ts +5 -2
- package/src/components/form-inputs-controls/VcsDatePicker.vue +53 -59
- package/src/components/form-inputs-controls/VcsDatePicker.vue.d.ts +2 -64
- package/src/components/form-inputs-controls/VcsFileInput.vue +18 -19
- package/src/components/form-inputs-controls/VcsFileInput.vue.d.ts +1 -0
- package/src/components/form-inputs-controls/VcsLabel.vue +65 -3
- package/src/components/form-inputs-controls/VcsLabel.vue.d.ts +32 -1
- package/src/components/form-inputs-controls/VcsRadio.vue +26 -10
- package/src/components/form-inputs-controls/VcsRadio.vue.d.ts +2 -0
- package/src/components/form-inputs-controls/VcsSelect.vue +47 -47
- package/src/components/form-inputs-controls/VcsSelect.vue.d.ts +9 -6
- package/src/components/form-inputs-controls/VcsSlider.vue +53 -15
- package/src/components/form-inputs-controls/VcsSlider.vue.d.ts +26 -2
- package/src/components/form-inputs-controls/VcsTextArea.vue +56 -40
- package/src/components/form-inputs-controls/VcsTextArea.vue.d.ts +1 -0
- package/src/components/form-inputs-controls/VcsTextField.vue +46 -16
- package/src/components/form-inputs-controls/VcsTextField.vue.d.ts +12 -1
- package/src/components/form-inputs-controls/VcsWizard.vue +89 -112
- package/src/components/form-inputs-controls/VcsWizard.vue.d.ts +3 -13
- package/src/components/form-inputs-controls/VcsWizardStep.vue +78 -58
- package/src/components/form-inputs-controls/VcsWizardStep.vue.d.ts +24 -11
- package/src/components/form-inputs-controls/vcsTextField.scss +21 -13
- package/src/components/form-output/VcsFormattedNumber.vue +46 -14
- package/src/components/form-output/VcsFormattedNumber.vue.d.ts +27 -0
- package/src/components/form-output/VcsMarkdown.vue +56 -0
- package/src/{application/VcsCustomScreen.vue.d.ts → components/form-output/VcsMarkdown.vue.d.ts} +7 -5
- package/src/components/form-output/markdownHelper.d.ts +30 -0
- package/src/components/form-output/markdownHelper.js +398 -0
- package/src/components/import/VcsFileDrop.vue +9 -6
- package/src/components/import/VcsImportComponent.vue +12 -8
- package/src/components/import/VcsImportComponent.vue.d.ts +1 -2
- package/src/components/lists/VcsActionList.vue +50 -34
- package/src/components/lists/VcsActionList.vue.d.ts +3 -1
- package/src/components/lists/VcsList.vue +105 -192
- package/src/components/lists/VcsList.vue.d.ts +18 -66
- package/src/components/lists/VcsListItemComponent.vue +216 -0
- package/src/components/lists/VcsListItemComponent.vue.d.ts +83 -0
- package/src/components/lists/VcsTreeview.vue +119 -26
- package/src/components/lists/VcsTreeview.vue.d.ts +26 -3
- package/src/components/lists/VcsTreeviewSearchbar.vue +17 -6
- package/src/components/lists/VcsTreeviewSearchbar.vue.d.ts +3 -1
- package/src/components/lists/VcsTreeviewTitle.vue +40 -0
- package/src/components/modelHelper.d.ts +21 -8
- package/src/components/modelHelper.js +50 -8
- package/src/components/notification/VcsBadge.vue +2 -2
- package/src/components/notification/VcsHelp.vue +6 -7
- package/src/components/notification/VcsHelp.vue.d.ts +0 -8
- package/src/components/notification/VcsHelpTooltip.vue +48 -0
- package/src/components/notification/VcsHelpTooltip.vue.d.ts +25 -0
- package/src/components/plugins/AbstractConfigEditor.vue +2 -23
- package/src/components/plugins/AbstractConfigEditor.vue.d.ts +6 -29
- package/src/components/section/VcsExpansionPanel.vue +111 -0
- package/src/components/section/VcsExpansionPanel.vue.d.ts +19 -0
- package/src/components/{form-inputs-controls → section}/VcsFormSection.vue +13 -7
- package/src/components/{form-inputs-controls → section}/VcsFormSection.vue.d.ts +2 -3
- package/src/components/style/MenuWrapper.vue +25 -27
- package/src/components/style/MenuWrapper.vue.d.ts +4 -4
- package/src/components/style/VcsFeatureStyleComponent.vue +1 -0
- package/src/components/style/VcsFillMenu.vue +10 -16
- package/src/components/style/VcsFillMenu.vue.d.ts +0 -18
- package/src/components/style/VcsFillSelector.vue +14 -16
- package/src/components/style/VcsImageMenu.vue +9 -25
- package/src/components/style/VcsImageMenu.vue.d.ts +0 -27
- package/src/components/style/VcsImageSelector.vue +115 -172
- package/src/components/style/VcsImageSelector.vue.d.ts +16 -15
- package/src/components/style/VcsStrokeMenu.vue +9 -15
- package/src/components/style/VcsStrokeMenu.vue.d.ts +0 -18
- package/src/components/style/VcsStrokeSelector.vue +17 -21
- package/src/components/style/VcsStrokeSelector.vue.d.ts +1 -0
- package/src/components/style/VcsTextMenu.vue +12 -14
- package/src/components/style/VcsTextMenu.vue.d.ts +0 -9
- package/src/components/style/VcsTextSelector.vue +80 -96
- package/src/components/style/VcsTextSelector.vue.d.ts +20 -22
- package/src/components/style/VcsVectorStyleComponent.vue +9 -20
- package/src/components/style/VcsVectorStyleComponent.vue.d.ts +1 -1
- package/src/components/style/composables.d.ts +0 -14
- package/src/components/style/composables.js +0 -49
- package/src/components/tables/VcsDataTable.vue +43 -33
- package/src/components/tables/VcsDataTable.vue.d.ts +2 -1
- package/src/components/tables/VcsTable.vue +46 -62
- package/src/components/tables/VcsTable.vue.d.ts +30 -17
- package/src/components/tables/VcsTableCell.vue +72 -0
- package/src/components/tables/VcsTableCell.vue.d.ts +13 -0
- package/src/components/vector-properties/VcsFeatureEditingWindow.vue +87 -51
- package/src/components/vector-properties/VcsFeatureEditingWindow.vue.d.ts +9 -7
- package/src/components/vector-properties/VcsFeatureTransforms.vue +45 -6
- package/src/components/vector-properties/VcsFeatureTransforms.vue.d.ts +2 -1
- package/src/components/vector-properties/VcsVectorPropertiesComponent.vue +541 -596
- package/src/components/vector-properties/VcsVectorPropertiesComponent.vue.d.ts +222 -24
- package/src/components/viewpoint/VcsViewpointComponent.vue +36 -20
- package/src/components/viewpoint/VcsViewpointComponent.vue.d.ts +1 -0
- package/src/components/viewpoint/VcsViewpointEditor.vue +3 -1
- package/src/contentTree/LayerTree.vue +10 -28
- package/src/contentTree/LayerTree.vue.d.ts +1 -1
- package/src/contentTree/contentTreeCollection.d.ts +1 -0
- package/src/contentTree/contentTreeCollection.js +45 -11
- package/src/contentTree/contentTreeItem.d.ts +4 -4
- package/src/contentTree/contentTreeItem.js +8 -8
- package/src/contentTree/layerContentTreeItem.d.ts +8 -5
- package/src/contentTree/layerContentTreeItem.js +48 -34
- package/src/contentTree/layerGroupContentTreeItem.d.ts +7 -1
- package/src/contentTree/layerGroupContentTreeItem.js +22 -3
- package/src/contentTree/obliqueCollectionContentTreeItem.js +6 -1
- package/src/featureInfo/AddressBalloonComponent.vue +1 -1
- package/src/featureInfo/BalloonComponent.vue +33 -26
- package/src/featureInfo/BalloonComponent.vue.d.ts +1 -0
- package/src/featureInfo/IframeComponent.vue +6 -1
- package/src/featureInfo/MarkdownBalloonComponent.vue +5 -3
- package/src/featureInfo/MarkdownBalloonComponent.vue.d.ts +2 -2
- package/src/featureInfo/abstractFeatureInfoView.d.ts +19 -4
- package/src/featureInfo/abstractFeatureInfoView.js +38 -13
- package/src/featureInfo/balloonHelper.js +1 -1
- package/src/featureInfo/featureInfo.d.ts +7 -7
- package/src/featureInfo/featureInfo.js +59 -41
- package/src/featureInfo/iframeFeatureInfoView.d.ts +8 -2
- package/src/featureInfo/iframeFeatureInfoView.js +15 -5
- package/src/featureInfo/markdownBalloonFeatureInfoView.d.ts +1 -1
- package/src/featureInfo/markdownBalloonFeatureInfoView.js +5 -5
- package/src/featureInfo/markdownFeatureInfoView.d.ts +1 -1
- package/src/featureInfo/markdownFeatureInfoView.js +9 -11
- package/src/featureInfo/tableFeatureInfoView.js +13 -4
- package/src/i18n/de.d.ts +59 -32
- package/src/i18n/de.js +28 -5
- package/src/i18n/en.d.ts +59 -32
- package/src/i18n/en.js +25 -2
- package/src/i18n/i18nCollection.d.ts +9 -15
- package/src/i18n/i18nCollection.js +3 -3
- package/src/init.d.ts +5 -38
- package/src/init.js +19 -18
- package/src/legend/StyleLegendItem.vue +4 -9
- package/src/legend/VcsLegend.vue +33 -55
- package/src/legend/VcsLegend.vue.d.ts +1 -0
- package/src/manager/buttonManager.js +4 -4
- package/src/manager/collectionManager/CollectionComponent.vue +18 -42
- package/src/manager/collectionManager/CollectionComponent.vue.d.ts +4 -2
- package/src/manager/collectionManager/CollectionComponentContent.vue +7 -6
- package/src/manager/collectionManager/CollectionComponentContent.vue.d.ts +3 -1
- package/src/manager/collectionManager/CollectionComponentList.vue +11 -9
- package/src/manager/collectionManager/CollectionComponentList.vue.d.ts +6 -4
- package/src/manager/collectionManager/CollectionComponentProvider.vue +1 -1
- package/src/manager/collectionManager/CollectionComponentStandalone.vue +3 -2
- package/src/manager/collectionManager/CollectionManager.vue +1 -1
- package/src/manager/collectionManager/categoryManager.d.ts +1 -1
- package/src/manager/collectionManager/collectionComponentClass.d.ts +3 -3
- package/src/manager/collectionManager/collectionComponentClass.js +16 -15
- package/src/manager/collectionManager/collectionManager.d.ts +1 -1
- package/src/manager/collectionManager/collectionManager.js +10 -10
- package/src/manager/collectionManager/editorCollectionComponentClass.js +11 -8
- package/src/manager/contextMenu/ContextMenuComponent.vue +1 -1
- package/src/manager/contextMenu/contextMenuManager.js +2 -2
- package/src/manager/navbarManager.js +2 -2
- package/src/manager/panel/PanelComponent.vue +2 -9
- package/src/manager/panel/PanelManagerComponent.vue +9 -5
- package/src/manager/panel/panelHelper.js +3 -3
- package/src/manager/panel/panelManager.d.ts +9 -1
- package/src/manager/panel/panelManager.js +18 -6
- package/src/manager/toolbox/GroupToolboxComponent.vue +13 -7
- package/src/manager/toolbox/GroupToolboxComponent.vue.d.ts +1 -0
- package/src/manager/toolbox/SelectToolboxComponent.vue +13 -8
- package/src/manager/toolbox/SelectToolboxComponent.vue.d.ts +1 -0
- package/src/manager/toolbox/{ToolboxManager.vue → ToolboxManagerComponent.vue} +28 -8
- package/src/manager/toolbox/{ToolboxManager.vue.d.ts → ToolboxManagerComponent.vue.d.ts} +1 -0
- package/src/manager/toolbox/toolboxManager.js +10 -10
- package/src/manager/window/WindowComponent.vue +13 -9
- package/src/manager/window/WindowComponentHeader.vue +33 -9
- package/src/manager/window/WindowComponentHeader.vue.d.ts +3 -0
- package/src/manager/window/WindowManager.vue +6 -3
- package/src/manager/window/windowManager.d.ts +71 -15
- package/src/manager/window/windowManager.js +32 -11
- package/src/navigation/MapNavigation.vue +52 -9
- package/src/navigation/ObliqueRotation.vue +2 -2
- package/src/navigation/OrientationToolsButton.vue +37 -26
- package/src/navigation/OrientationToolsButton.vue.d.ts +5 -1
- package/src/navigation/TiltSlider.vue +82 -88
- package/src/navigation/TiltSlider.vue.d.ts +10 -7
- package/src/navigation/VcsCompass.vue +17 -11
- package/src/navigation/VcsCompass.vue.d.ts +2 -0
- package/src/navigation/VcsZoomButton.vue +1 -1
- package/src/navigation/locatorHelper.js +4 -22
- package/src/navigation/overviewMap.js +5 -2
- package/src/notifier/NotifierComponent.vue +19 -16
- package/src/obliqueFallbackWarnings.d.ts +5 -0
- package/src/obliqueFallbackWarnings.js +54 -0
- package/src/search/ResultItem.vue +18 -6
- package/src/search/ResultsComponent.vue +32 -21
- package/src/search/ResultsComponent.vue.d.ts +2 -1
- package/src/search/SearchComponent.vue +14 -16
- package/src/search/SearchComponent.vue.d.ts +1 -0
- package/src/search/search.js +2 -2
- package/src/siteConfig.js +9 -9
- package/src/state.js +4 -4
- package/src/styles/_typography.scss +1 -2
- package/src/styles/main.scss +0 -4
- package/src/styles/vcsList.scss +1 -1
- package/src/uiConfig.d.ts +323 -7
- package/src/uiConfig.js +31 -17
- package/src/vcsUiApp.d.ts +90 -80
- package/src/vcsUiApp.js +61 -41
- package/src/vuePlugins/i18n.js +8 -0
- package/src/vuePlugins/vuetify.d.ts +88 -60
- package/src/vuePlugins/vuetify.js +134 -20
- package/dist/assets/@mdi/font/css/materialdesignicons.css.map +0 -16
- package/dist/assets/@mdi/font/css/materialdesignicons.min.e3f476.css +0 -3
- package/dist/assets/cesium/Workers/chunk-DUHWWBQQ.js +0 -3273
- package/dist/assets/cesium/Workers/chunk-QJ3DFBH3.js +0 -73
- package/dist/assets/index-ca7EmZ3d.js +0 -1
- package/dist/assets/ui.715986.css +0 -1
- package/dist/assets/vue.0f2c53.js +0 -6096
- package/plugins/@vcmap-show-case/theme-changer/README.md +0 -23
- package/plugins/@vcmap-show-case/theme-changer/config.json +0 -69
- package/plugins/@vcmap-show-case/theme-changer/package.json +0 -11
- package/plugins/@vcmap-show-case/theme-changer/src/ThemeChangerComponent.vue +0 -120
- package/plugins/@vcmap-show-case/theme-changer/src/index.js +0 -108
- package/public/assets/@mdi/font/css/materialdesignicons.css.map +0 -16
- package/src/application/VcsCustomScreen.vue +0 -45
- package/src/application/markdownHelper.d.ts +0 -12
- package/src/application/markdownHelper.js +0 -85
- package/src/components/lists/VcsTreeviewLeaf.vue +0 -83
- package/src/components/notification/VcsTooltip.vue +0 -156
- package/src/components/notification/VcsTooltip.vue.d.ts +0 -27
- package/src/components/vector-properties/composables.d.ts +0 -33
- package/src/components/vector-properties/composables.js +0 -100
- package/src/featureInfo/MarkdownComponent.vue +0 -16
- package/src/featureInfo/MarkdownComponent.vue.d.ts +0 -7
- package/src/styles/_theming.scss +0 -73
- package/src/styles/settings.scss +0 -6
- package/src/styles/shades.scss +0 -4
- package/src/styles/variables.scss +0 -140
- package/src/styles/vcsFont.scss +0 -2
- package/src/styles/vcsGrid.scss +0 -3
- /package/dist/assets/{favicon-128.4c4ce5.png → favicon-128-4c4ce5df.png} +0 -0
- /package/dist/assets/{favicon-180.5b99c0.png → favicon-180-4c4ce5df.png} +0 -0
- /package/dist/assets/{favicon-192.0e205e.png → favicon-192-4c4ce5df.png} +0 -0
- /package/dist/assets/{favicon-32.6b9add.png → favicon-32-4c4ce5df.png} +0 -0
- /package/dist/assets/{favicon.d5ec97.svg → favicon-4c4ce5df.svg} +0 -0
- /package/dist/assets/font/{TitilliumWeb-Regular.9ca076.woff2 → TitilliumWeb-Regular-9ca076be.woff2} +0 -0
- /package/dist/assets/style/{icon-marker.70960f.png → icon-marker-70960f05.png} +0 -0
- /package/dist/assets/style/{icon-marker-blue.534e37.png → icon-marker-blue-534e374b.png} +0 -0
- /package/dist/assets/style/{icon-marker-green.0b6a92.png → icon-marker-green-0b6a92bc.png} +0 -0
- /package/dist/assets/style/{icon-marker-o.036477.png → icon-marker-o-036477fa.png} +0 -0
- /package/dist/assets/style/{icon-marker-o-blue.7b6d62.png → icon-marker-o-blue-7b6d6279.png} +0 -0
- /package/dist/assets/style/{icon-marker-o-green.c863c0.png → icon-marker-o-green-c863c0fa.png} +0 -0
- /package/dist/assets/style/{icon-marker-o-red.93ff58.png → icon-marker-o-red-93ff58df.png} +0 -0
- /package/dist/assets/style/{icon-marker-red.313d03.png → icon-marker-red-313d03e8.png} +0 -0
- /package/dist/assets/style/{icon-pin.b7ce77.png → icon-pin-b7ce771e.png} +0 -0
- /package/dist/assets/style/{icon-pin-blue.7be369.png → icon-pin-blue-7be369a3.png} +0 -0
- /package/dist/assets/style/{icon-pin-green.cbb935.png → icon-pin-green-cbb935fe.png} +0 -0
- /package/dist/assets/style/{icon-pin-red.3f25b2.png → icon-pin-red-3f25b245.png} +0 -0
- /package/public/assets/{favicon-128.png → favicon-128-4c4ce5df.png} +0 -0
- /package/public/assets/{favicon-180.png → favicon-180-4c4ce5df.png} +0 -0
- /package/public/assets/{favicon-192.png → favicon-192-4c4ce5df.png} +0 -0
- /package/public/assets/{favicon-32.png → favicon-32-4c4ce5df.png} +0 -0
- /package/public/assets/{favicon.svg → favicon-4c4ce5df.svg} +0 -0
- /package/src/components/lists/{VcsTreeviewLeaf.vue.d.ts → VcsTreeviewTitle.vue.d.ts} +0 -0
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* @license
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
-
* Version 1.
|
4
|
+
* Version 1.121.2
|
5
5
|
*
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
7
7
|
*
|
@@ -25,17 +25,17 @@
|
|
25
25
|
|
26
26
|
import {
|
27
27
|
Math_default
|
28
|
-
} from "./chunk-
|
28
|
+
} from "./chunk-WGDFYAGC.js";
|
29
29
|
import {
|
30
30
|
defaultValue_default
|
31
|
-
} from "./chunk-
|
31
|
+
} from "./chunk-U5HSOKPQ.js";
|
32
32
|
import {
|
33
33
|
Check_default,
|
34
34
|
DeveloperError_default
|
35
|
-
} from "./chunk-
|
35
|
+
} from "./chunk-P6TRGU3S.js";
|
36
36
|
import {
|
37
37
|
defined_default
|
38
|
-
} from "./chunk-
|
38
|
+
} from "./chunk-YCDZX5LS.js";
|
39
39
|
|
40
40
|
// packages/engine/Source/Core/Cartesian3.js
|
41
41
|
function Cartesian3(x, y, z) {
|
@@ -396,7 +396,7 @@ Cartesian3.fromDegrees = function(longitude, latitude, height, ellipsoid, result
|
|
396
396
|
};
|
397
397
|
var scratchN = new Cartesian3();
|
398
398
|
var scratchK = new Cartesian3();
|
399
|
-
|
399
|
+
Cartesian3._ellipsoidRadiiSquared = new Cartesian3(
|
400
400
|
6378137 * 6378137,
|
401
401
|
6378137 * 6378137,
|
402
402
|
6356752314245179e-9 * 6356752314245179e-9
|
@@ -405,7 +405,7 @@ Cartesian3.fromRadians = function(longitude, latitude, height, ellipsoid, result
|
|
405
405
|
Check_default.typeOf.number("longitude", longitude);
|
406
406
|
Check_default.typeOf.number("latitude", latitude);
|
407
407
|
height = defaultValue_default(height, 0);
|
408
|
-
const radiiSquared = defined_default(ellipsoid) ?
|
408
|
+
const radiiSquared = !defined_default(ellipsoid) ? Cartesian3._ellipsoidRadiiSquared : ellipsoid.radiiSquared;
|
409
409
|
const cosLatitude = Math.cos(latitude);
|
410
410
|
scratchN.x = cosLatitude * Math.cos(longitude);
|
411
411
|
scratchN.y = cosLatitude * Math.sin(longitude);
|
@@ -667,21 +667,21 @@ Cartographic.fromDegrees = function(longitude, latitude, height, result) {
|
|
667
667
|
var cartesianToCartographicN = new Cartesian3_default();
|
668
668
|
var cartesianToCartographicP = new Cartesian3_default();
|
669
669
|
var cartesianToCartographicH = new Cartesian3_default();
|
670
|
-
|
670
|
+
Cartographic._ellipsoidOneOverRadii = new Cartesian3_default(
|
671
671
|
1 / 6378137,
|
672
672
|
1 / 6378137,
|
673
673
|
1 / 6356752314245179e-9
|
674
674
|
);
|
675
|
-
|
675
|
+
Cartographic._ellipsoidOneOverRadiiSquared = new Cartesian3_default(
|
676
676
|
1 / (6378137 * 6378137),
|
677
677
|
1 / (6378137 * 6378137),
|
678
678
|
1 / (6356752314245179e-9 * 6356752314245179e-9)
|
679
679
|
);
|
680
|
-
|
680
|
+
Cartographic._ellipsoidCenterToleranceSquared = Math_default.EPSILON1;
|
681
681
|
Cartographic.fromCartesian = function(cartesian, ellipsoid, result) {
|
682
|
-
const oneOverRadii = defined_default(ellipsoid) ? ellipsoid.oneOverRadii :
|
683
|
-
const oneOverRadiiSquared = defined_default(ellipsoid) ? ellipsoid.oneOverRadiiSquared :
|
684
|
-
const centerToleranceSquared = defined_default(ellipsoid) ? ellipsoid._centerToleranceSquared :
|
682
|
+
const oneOverRadii = defined_default(ellipsoid) ? ellipsoid.oneOverRadii : Cartographic._ellipsoidOneOverRadii;
|
683
|
+
const oneOverRadiiSquared = defined_default(ellipsoid) ? ellipsoid.oneOverRadiiSquared : Cartographic._ellipsoidOneOverRadiiSquared;
|
684
|
+
const centerToleranceSquared = defined_default(ellipsoid) ? ellipsoid._centerToleranceSquared : Cartographic._ellipsoidCenterToleranceSquared;
|
685
685
|
const p = scaleToGeodeticSurface_default(
|
686
686
|
cartesian,
|
687
687
|
oneOverRadii,
|
@@ -758,6 +758,302 @@ Cartographic.prototype.toString = function() {
|
|
758
758
|
};
|
759
759
|
var Cartographic_default = Cartographic;
|
760
760
|
|
761
|
+
// packages/engine/Source/Core/Cartesian2.js
|
762
|
+
function Cartesian2(x, y) {
|
763
|
+
this.x = defaultValue_default(x, 0);
|
764
|
+
this.y = defaultValue_default(y, 0);
|
765
|
+
}
|
766
|
+
Cartesian2.fromElements = function(x, y, result) {
|
767
|
+
if (!defined_default(result)) {
|
768
|
+
return new Cartesian2(x, y);
|
769
|
+
}
|
770
|
+
result.x = x;
|
771
|
+
result.y = y;
|
772
|
+
return result;
|
773
|
+
};
|
774
|
+
Cartesian2.clone = function(cartesian, result) {
|
775
|
+
if (!defined_default(cartesian)) {
|
776
|
+
return void 0;
|
777
|
+
}
|
778
|
+
if (!defined_default(result)) {
|
779
|
+
return new Cartesian2(cartesian.x, cartesian.y);
|
780
|
+
}
|
781
|
+
result.x = cartesian.x;
|
782
|
+
result.y = cartesian.y;
|
783
|
+
return result;
|
784
|
+
};
|
785
|
+
Cartesian2.fromCartesian3 = Cartesian2.clone;
|
786
|
+
Cartesian2.fromCartesian4 = Cartesian2.clone;
|
787
|
+
Cartesian2.packedLength = 2;
|
788
|
+
Cartesian2.pack = function(value, array, startingIndex) {
|
789
|
+
Check_default.typeOf.object("value", value);
|
790
|
+
Check_default.defined("array", array);
|
791
|
+
startingIndex = defaultValue_default(startingIndex, 0);
|
792
|
+
array[startingIndex++] = value.x;
|
793
|
+
array[startingIndex] = value.y;
|
794
|
+
return array;
|
795
|
+
};
|
796
|
+
Cartesian2.unpack = function(array, startingIndex, result) {
|
797
|
+
Check_default.defined("array", array);
|
798
|
+
startingIndex = defaultValue_default(startingIndex, 0);
|
799
|
+
if (!defined_default(result)) {
|
800
|
+
result = new Cartesian2();
|
801
|
+
}
|
802
|
+
result.x = array[startingIndex++];
|
803
|
+
result.y = array[startingIndex];
|
804
|
+
return result;
|
805
|
+
};
|
806
|
+
Cartesian2.packArray = function(array, result) {
|
807
|
+
Check_default.defined("array", array);
|
808
|
+
const length = array.length;
|
809
|
+
const resultLength = length * 2;
|
810
|
+
if (!defined_default(result)) {
|
811
|
+
result = new Array(resultLength);
|
812
|
+
} else if (!Array.isArray(result) && result.length !== resultLength) {
|
813
|
+
throw new DeveloperError_default(
|
814
|
+
"If result is a typed array, it must have exactly array.length * 2 elements"
|
815
|
+
);
|
816
|
+
} else if (result.length !== resultLength) {
|
817
|
+
result.length = resultLength;
|
818
|
+
}
|
819
|
+
for (let i = 0; i < length; ++i) {
|
820
|
+
Cartesian2.pack(array[i], result, i * 2);
|
821
|
+
}
|
822
|
+
return result;
|
823
|
+
};
|
824
|
+
Cartesian2.unpackArray = function(array, result) {
|
825
|
+
Check_default.defined("array", array);
|
826
|
+
Check_default.typeOf.number.greaterThanOrEquals("array.length", array.length, 2);
|
827
|
+
if (array.length % 2 !== 0) {
|
828
|
+
throw new DeveloperError_default("array length must be a multiple of 2.");
|
829
|
+
}
|
830
|
+
const length = array.length;
|
831
|
+
if (!defined_default(result)) {
|
832
|
+
result = new Array(length / 2);
|
833
|
+
} else {
|
834
|
+
result.length = length / 2;
|
835
|
+
}
|
836
|
+
for (let i = 0; i < length; i += 2) {
|
837
|
+
const index = i / 2;
|
838
|
+
result[index] = Cartesian2.unpack(array, i, result[index]);
|
839
|
+
}
|
840
|
+
return result;
|
841
|
+
};
|
842
|
+
Cartesian2.fromArray = Cartesian2.unpack;
|
843
|
+
Cartesian2.maximumComponent = function(cartesian) {
|
844
|
+
Check_default.typeOf.object("cartesian", cartesian);
|
845
|
+
return Math.max(cartesian.x, cartesian.y);
|
846
|
+
};
|
847
|
+
Cartesian2.minimumComponent = function(cartesian) {
|
848
|
+
Check_default.typeOf.object("cartesian", cartesian);
|
849
|
+
return Math.min(cartesian.x, cartesian.y);
|
850
|
+
};
|
851
|
+
Cartesian2.minimumByComponent = function(first, second, result) {
|
852
|
+
Check_default.typeOf.object("first", first);
|
853
|
+
Check_default.typeOf.object("second", second);
|
854
|
+
Check_default.typeOf.object("result", result);
|
855
|
+
result.x = Math.min(first.x, second.x);
|
856
|
+
result.y = Math.min(first.y, second.y);
|
857
|
+
return result;
|
858
|
+
};
|
859
|
+
Cartesian2.maximumByComponent = function(first, second, result) {
|
860
|
+
Check_default.typeOf.object("first", first);
|
861
|
+
Check_default.typeOf.object("second", second);
|
862
|
+
Check_default.typeOf.object("result", result);
|
863
|
+
result.x = Math.max(first.x, second.x);
|
864
|
+
result.y = Math.max(first.y, second.y);
|
865
|
+
return result;
|
866
|
+
};
|
867
|
+
Cartesian2.clamp = function(value, min, max, result) {
|
868
|
+
Check_default.typeOf.object("value", value);
|
869
|
+
Check_default.typeOf.object("min", min);
|
870
|
+
Check_default.typeOf.object("max", max);
|
871
|
+
Check_default.typeOf.object("result", result);
|
872
|
+
const x = Math_default.clamp(value.x, min.x, max.x);
|
873
|
+
const y = Math_default.clamp(value.y, min.y, max.y);
|
874
|
+
result.x = x;
|
875
|
+
result.y = y;
|
876
|
+
return result;
|
877
|
+
};
|
878
|
+
Cartesian2.magnitudeSquared = function(cartesian) {
|
879
|
+
Check_default.typeOf.object("cartesian", cartesian);
|
880
|
+
return cartesian.x * cartesian.x + cartesian.y * cartesian.y;
|
881
|
+
};
|
882
|
+
Cartesian2.magnitude = function(cartesian) {
|
883
|
+
return Math.sqrt(Cartesian2.magnitudeSquared(cartesian));
|
884
|
+
};
|
885
|
+
var distanceScratch2 = new Cartesian2();
|
886
|
+
Cartesian2.distance = function(left, right) {
|
887
|
+
Check_default.typeOf.object("left", left);
|
888
|
+
Check_default.typeOf.object("right", right);
|
889
|
+
Cartesian2.subtract(left, right, distanceScratch2);
|
890
|
+
return Cartesian2.magnitude(distanceScratch2);
|
891
|
+
};
|
892
|
+
Cartesian2.distanceSquared = function(left, right) {
|
893
|
+
Check_default.typeOf.object("left", left);
|
894
|
+
Check_default.typeOf.object("right", right);
|
895
|
+
Cartesian2.subtract(left, right, distanceScratch2);
|
896
|
+
return Cartesian2.magnitudeSquared(distanceScratch2);
|
897
|
+
};
|
898
|
+
Cartesian2.normalize = function(cartesian, result) {
|
899
|
+
Check_default.typeOf.object("cartesian", cartesian);
|
900
|
+
Check_default.typeOf.object("result", result);
|
901
|
+
const magnitude = Cartesian2.magnitude(cartesian);
|
902
|
+
result.x = cartesian.x / magnitude;
|
903
|
+
result.y = cartesian.y / magnitude;
|
904
|
+
if (isNaN(result.x) || isNaN(result.y)) {
|
905
|
+
throw new DeveloperError_default("normalized result is not a number");
|
906
|
+
}
|
907
|
+
return result;
|
908
|
+
};
|
909
|
+
Cartesian2.dot = function(left, right) {
|
910
|
+
Check_default.typeOf.object("left", left);
|
911
|
+
Check_default.typeOf.object("right", right);
|
912
|
+
return left.x * right.x + left.y * right.y;
|
913
|
+
};
|
914
|
+
Cartesian2.cross = function(left, right) {
|
915
|
+
Check_default.typeOf.object("left", left);
|
916
|
+
Check_default.typeOf.object("right", right);
|
917
|
+
return left.x * right.y - left.y * right.x;
|
918
|
+
};
|
919
|
+
Cartesian2.multiplyComponents = function(left, right, result) {
|
920
|
+
Check_default.typeOf.object("left", left);
|
921
|
+
Check_default.typeOf.object("right", right);
|
922
|
+
Check_default.typeOf.object("result", result);
|
923
|
+
result.x = left.x * right.x;
|
924
|
+
result.y = left.y * right.y;
|
925
|
+
return result;
|
926
|
+
};
|
927
|
+
Cartesian2.divideComponents = function(left, right, result) {
|
928
|
+
Check_default.typeOf.object("left", left);
|
929
|
+
Check_default.typeOf.object("right", right);
|
930
|
+
Check_default.typeOf.object("result", result);
|
931
|
+
result.x = left.x / right.x;
|
932
|
+
result.y = left.y / right.y;
|
933
|
+
return result;
|
934
|
+
};
|
935
|
+
Cartesian2.add = function(left, right, result) {
|
936
|
+
Check_default.typeOf.object("left", left);
|
937
|
+
Check_default.typeOf.object("right", right);
|
938
|
+
Check_default.typeOf.object("result", result);
|
939
|
+
result.x = left.x + right.x;
|
940
|
+
result.y = left.y + right.y;
|
941
|
+
return result;
|
942
|
+
};
|
943
|
+
Cartesian2.subtract = function(left, right, result) {
|
944
|
+
Check_default.typeOf.object("left", left);
|
945
|
+
Check_default.typeOf.object("right", right);
|
946
|
+
Check_default.typeOf.object("result", result);
|
947
|
+
result.x = left.x - right.x;
|
948
|
+
result.y = left.y - right.y;
|
949
|
+
return result;
|
950
|
+
};
|
951
|
+
Cartesian2.multiplyByScalar = function(cartesian, scalar, result) {
|
952
|
+
Check_default.typeOf.object("cartesian", cartesian);
|
953
|
+
Check_default.typeOf.number("scalar", scalar);
|
954
|
+
Check_default.typeOf.object("result", result);
|
955
|
+
result.x = cartesian.x * scalar;
|
956
|
+
result.y = cartesian.y * scalar;
|
957
|
+
return result;
|
958
|
+
};
|
959
|
+
Cartesian2.divideByScalar = function(cartesian, scalar, result) {
|
960
|
+
Check_default.typeOf.object("cartesian", cartesian);
|
961
|
+
Check_default.typeOf.number("scalar", scalar);
|
962
|
+
Check_default.typeOf.object("result", result);
|
963
|
+
result.x = cartesian.x / scalar;
|
964
|
+
result.y = cartesian.y / scalar;
|
965
|
+
return result;
|
966
|
+
};
|
967
|
+
Cartesian2.negate = function(cartesian, result) {
|
968
|
+
Check_default.typeOf.object("cartesian", cartesian);
|
969
|
+
Check_default.typeOf.object("result", result);
|
970
|
+
result.x = -cartesian.x;
|
971
|
+
result.y = -cartesian.y;
|
972
|
+
return result;
|
973
|
+
};
|
974
|
+
Cartesian2.abs = function(cartesian, result) {
|
975
|
+
Check_default.typeOf.object("cartesian", cartesian);
|
976
|
+
Check_default.typeOf.object("result", result);
|
977
|
+
result.x = Math.abs(cartesian.x);
|
978
|
+
result.y = Math.abs(cartesian.y);
|
979
|
+
return result;
|
980
|
+
};
|
981
|
+
var lerpScratch2 = new Cartesian2();
|
982
|
+
Cartesian2.lerp = function(start, end, t, result) {
|
983
|
+
Check_default.typeOf.object("start", start);
|
984
|
+
Check_default.typeOf.object("end", end);
|
985
|
+
Check_default.typeOf.number("t", t);
|
986
|
+
Check_default.typeOf.object("result", result);
|
987
|
+
Cartesian2.multiplyByScalar(end, t, lerpScratch2);
|
988
|
+
result = Cartesian2.multiplyByScalar(start, 1 - t, result);
|
989
|
+
return Cartesian2.add(lerpScratch2, result, result);
|
990
|
+
};
|
991
|
+
var angleBetweenScratch3 = new Cartesian2();
|
992
|
+
var angleBetweenScratch22 = new Cartesian2();
|
993
|
+
Cartesian2.angleBetween = function(left, right) {
|
994
|
+
Check_default.typeOf.object("left", left);
|
995
|
+
Check_default.typeOf.object("right", right);
|
996
|
+
Cartesian2.normalize(left, angleBetweenScratch3);
|
997
|
+
Cartesian2.normalize(right, angleBetweenScratch22);
|
998
|
+
return Math_default.acosClamped(
|
999
|
+
Cartesian2.dot(angleBetweenScratch3, angleBetweenScratch22)
|
1000
|
+
);
|
1001
|
+
};
|
1002
|
+
var mostOrthogonalAxisScratch2 = new Cartesian2();
|
1003
|
+
Cartesian2.mostOrthogonalAxis = function(cartesian, result) {
|
1004
|
+
Check_default.typeOf.object("cartesian", cartesian);
|
1005
|
+
Check_default.typeOf.object("result", result);
|
1006
|
+
const f = Cartesian2.normalize(cartesian, mostOrthogonalAxisScratch2);
|
1007
|
+
Cartesian2.abs(f, f);
|
1008
|
+
if (f.x <= f.y) {
|
1009
|
+
result = Cartesian2.clone(Cartesian2.UNIT_X, result);
|
1010
|
+
} else {
|
1011
|
+
result = Cartesian2.clone(Cartesian2.UNIT_Y, result);
|
1012
|
+
}
|
1013
|
+
return result;
|
1014
|
+
};
|
1015
|
+
Cartesian2.equals = function(left, right) {
|
1016
|
+
return left === right || defined_default(left) && defined_default(right) && left.x === right.x && left.y === right.y;
|
1017
|
+
};
|
1018
|
+
Cartesian2.equalsArray = function(cartesian, array, offset) {
|
1019
|
+
return cartesian.x === array[offset] && cartesian.y === array[offset + 1];
|
1020
|
+
};
|
1021
|
+
Cartesian2.equalsEpsilon = function(left, right, relativeEpsilon, absoluteEpsilon) {
|
1022
|
+
return left === right || defined_default(left) && defined_default(right) && Math_default.equalsEpsilon(
|
1023
|
+
left.x,
|
1024
|
+
right.x,
|
1025
|
+
relativeEpsilon,
|
1026
|
+
absoluteEpsilon
|
1027
|
+
) && Math_default.equalsEpsilon(
|
1028
|
+
left.y,
|
1029
|
+
right.y,
|
1030
|
+
relativeEpsilon,
|
1031
|
+
absoluteEpsilon
|
1032
|
+
);
|
1033
|
+
};
|
1034
|
+
Cartesian2.ZERO = Object.freeze(new Cartesian2(0, 0));
|
1035
|
+
Cartesian2.ONE = Object.freeze(new Cartesian2(1, 1));
|
1036
|
+
Cartesian2.UNIT_X = Object.freeze(new Cartesian2(1, 0));
|
1037
|
+
Cartesian2.UNIT_Y = Object.freeze(new Cartesian2(0, 1));
|
1038
|
+
Cartesian2.prototype.clone = function(result) {
|
1039
|
+
return Cartesian2.clone(this, result);
|
1040
|
+
};
|
1041
|
+
Cartesian2.prototype.equals = function(right) {
|
1042
|
+
return Cartesian2.equals(this, right);
|
1043
|
+
};
|
1044
|
+
Cartesian2.prototype.equalsEpsilon = function(right, relativeEpsilon, absoluteEpsilon) {
|
1045
|
+
return Cartesian2.equalsEpsilon(
|
1046
|
+
this,
|
1047
|
+
right,
|
1048
|
+
relativeEpsilon,
|
1049
|
+
absoluteEpsilon
|
1050
|
+
);
|
1051
|
+
};
|
1052
|
+
Cartesian2.prototype.toString = function() {
|
1053
|
+
return `(${this.x}, ${this.y})`;
|
1054
|
+
};
|
1055
|
+
var Cartesian2_default = Cartesian2;
|
1056
|
+
|
761
1057
|
// packages/engine/Source/Core/Ellipsoid.js
|
762
1058
|
function initialize(ellipsoid, x, y, z) {
|
763
1059
|
x = defaultValue_default(x, 0);
|
@@ -920,6 +1216,35 @@ Ellipsoid.MOON = Object.freeze(
|
|
920
1216
|
Math_default.LUNAR_RADIUS
|
921
1217
|
)
|
922
1218
|
);
|
1219
|
+
Ellipsoid._default = Ellipsoid.WGS84;
|
1220
|
+
Object.defineProperties(Ellipsoid, {
|
1221
|
+
/**
|
1222
|
+
* The default ellipsoid used when not otherwise specified.
|
1223
|
+
* @memberof Ellipsoid
|
1224
|
+
* @type {Ellipsoid}
|
1225
|
+
* @example
|
1226
|
+
* Cesium.Ellipsoid.default = Cesium.Ellipsoid.MOON;
|
1227
|
+
*
|
1228
|
+
* // Apollo 11 landing site
|
1229
|
+
* const position = Cesium.Cartesian3.fromRadians(
|
1230
|
+
* 0.67416,
|
1231
|
+
* 23.47315,
|
1232
|
+
* );
|
1233
|
+
*/
|
1234
|
+
default: {
|
1235
|
+
get: function() {
|
1236
|
+
return Ellipsoid._default;
|
1237
|
+
},
|
1238
|
+
set: function(value) {
|
1239
|
+
Check_default.typeOf.object("value", value);
|
1240
|
+
Ellipsoid._default = value;
|
1241
|
+
Cartesian3_default._ellipsoidRadiiSquared = value.radiiSquared;
|
1242
|
+
Cartographic_default._ellipsoidOneOverRadii = value.oneOverRadii;
|
1243
|
+
Cartographic_default._ellipsoidOneOverRadiiSquared = value.oneOverRadiiSquared;
|
1244
|
+
Cartographic_default._ellipsoidCenterToleranceSquared = value._centerToleranceSquared;
|
1245
|
+
}
|
1246
|
+
}
|
1247
|
+
});
|
923
1248
|
Ellipsoid.prototype.clone = function(result) {
|
924
1249
|
return Ellipsoid.clone(this, result);
|
925
1250
|
};
|
@@ -955,6 +1280,10 @@ Ellipsoid.prototype.geodeticSurfaceNormalCartographic = function(cartographic, r
|
|
955
1280
|
return Cartesian3_default.normalize(result, result);
|
956
1281
|
};
|
957
1282
|
Ellipsoid.prototype.geodeticSurfaceNormal = function(cartesian, result) {
|
1283
|
+
Check_default.typeOf.object("cartesian", cartesian);
|
1284
|
+
if (isNaN(cartesian.x) || isNaN(cartesian.y) || isNaN(cartesian.z)) {
|
1285
|
+
throw new DeveloperError_default("cartesian has a NaN component");
|
1286
|
+
}
|
958
1287
|
if (Cartesian3_default.equalsEpsilon(cartesian, Cartesian3_default.ZERO, Math_default.EPSILON14)) {
|
959
1288
|
return void 0;
|
960
1289
|
}
|
@@ -1096,6 +1425,29 @@ Ellipsoid.prototype.getSurfaceNormalIntersectionWithZAxis = function(position, b
|
|
1096
1425
|
}
|
1097
1426
|
return result;
|
1098
1427
|
};
|
1428
|
+
var scratchEndpoint = new Cartesian3_default();
|
1429
|
+
Ellipsoid.prototype.getLocalCurvature = function(surfacePosition, result) {
|
1430
|
+
Check_default.typeOf.object("surfacePosition", surfacePosition);
|
1431
|
+
if (!defined_default(result)) {
|
1432
|
+
result = new Cartesian2_default();
|
1433
|
+
}
|
1434
|
+
const primeVerticalEndpoint = this.getSurfaceNormalIntersectionWithZAxis(
|
1435
|
+
surfacePosition,
|
1436
|
+
0,
|
1437
|
+
scratchEndpoint
|
1438
|
+
);
|
1439
|
+
const primeVerticalRadius = Cartesian3_default.distance(
|
1440
|
+
surfacePosition,
|
1441
|
+
primeVerticalEndpoint
|
1442
|
+
);
|
1443
|
+
const radiusRatio = this.minimumRadius * primeVerticalRadius / this.maximumRadius ** 2;
|
1444
|
+
const meridionalRadius = primeVerticalRadius * radiusRatio ** 2;
|
1445
|
+
return Cartesian2_default.fromElements(
|
1446
|
+
1 / primeVerticalRadius,
|
1447
|
+
1 / meridionalRadius,
|
1448
|
+
result
|
1449
|
+
);
|
1450
|
+
};
|
1099
1451
|
var abscissas = [
|
1100
1452
|
0.14887433898163,
|
1101
1453
|
0.43339539412925,
|
@@ -2033,9 +2385,473 @@ Matrix3.prototype.toString = function() {
|
|
2033
2385
|
};
|
2034
2386
|
var Matrix3_default = Matrix3;
|
2035
2387
|
|
2388
|
+
// packages/engine/Source/Core/Fullscreen.js
|
2389
|
+
var _supportsFullscreen;
|
2390
|
+
var _names = {
|
2391
|
+
requestFullscreen: void 0,
|
2392
|
+
exitFullscreen: void 0,
|
2393
|
+
fullscreenEnabled: void 0,
|
2394
|
+
fullscreenElement: void 0,
|
2395
|
+
fullscreenchange: void 0,
|
2396
|
+
fullscreenerror: void 0
|
2397
|
+
};
|
2398
|
+
var Fullscreen = {};
|
2399
|
+
Object.defineProperties(Fullscreen, {
|
2400
|
+
/**
|
2401
|
+
* The element that is currently fullscreen, if any. To simply check if the
|
2402
|
+
* browser is in fullscreen mode or not, use {@link Fullscreen#fullscreen}.
|
2403
|
+
* @memberof Fullscreen
|
2404
|
+
* @type {object}
|
2405
|
+
* @readonly
|
2406
|
+
*/
|
2407
|
+
element: {
|
2408
|
+
get: function() {
|
2409
|
+
if (!Fullscreen.supportsFullscreen()) {
|
2410
|
+
return void 0;
|
2411
|
+
}
|
2412
|
+
return document[_names.fullscreenElement];
|
2413
|
+
}
|
2414
|
+
},
|
2415
|
+
/**
|
2416
|
+
* The name of the event on the document that is fired when fullscreen is
|
2417
|
+
* entered or exited. This event name is intended for use with addEventListener.
|
2418
|
+
* In your event handler, to determine if the browser is in fullscreen mode or not,
|
2419
|
+
* use {@link Fullscreen#fullscreen}.
|
2420
|
+
* @memberof Fullscreen
|
2421
|
+
* @type {string}
|
2422
|
+
* @readonly
|
2423
|
+
*/
|
2424
|
+
changeEventName: {
|
2425
|
+
get: function() {
|
2426
|
+
if (!Fullscreen.supportsFullscreen()) {
|
2427
|
+
return void 0;
|
2428
|
+
}
|
2429
|
+
return _names.fullscreenchange;
|
2430
|
+
}
|
2431
|
+
},
|
2432
|
+
/**
|
2433
|
+
* The name of the event that is fired when a fullscreen error
|
2434
|
+
* occurs. This event name is intended for use with addEventListener.
|
2435
|
+
* @memberof Fullscreen
|
2436
|
+
* @type {string}
|
2437
|
+
* @readonly
|
2438
|
+
*/
|
2439
|
+
errorEventName: {
|
2440
|
+
get: function() {
|
2441
|
+
if (!Fullscreen.supportsFullscreen()) {
|
2442
|
+
return void 0;
|
2443
|
+
}
|
2444
|
+
return _names.fullscreenerror;
|
2445
|
+
}
|
2446
|
+
},
|
2447
|
+
/**
|
2448
|
+
* Determine whether the browser will allow an element to be made fullscreen, or not.
|
2449
|
+
* For example, by default, iframes cannot go fullscreen unless the containing page
|
2450
|
+
* adds an "allowfullscreen" attribute (or prefixed equivalent).
|
2451
|
+
* @memberof Fullscreen
|
2452
|
+
* @type {boolean}
|
2453
|
+
* @readonly
|
2454
|
+
*/
|
2455
|
+
enabled: {
|
2456
|
+
get: function() {
|
2457
|
+
if (!Fullscreen.supportsFullscreen()) {
|
2458
|
+
return void 0;
|
2459
|
+
}
|
2460
|
+
return document[_names.fullscreenEnabled];
|
2461
|
+
}
|
2462
|
+
},
|
2463
|
+
/**
|
2464
|
+
* Determines if the browser is currently in fullscreen mode.
|
2465
|
+
* @memberof Fullscreen
|
2466
|
+
* @type {boolean}
|
2467
|
+
* @readonly
|
2468
|
+
*/
|
2469
|
+
fullscreen: {
|
2470
|
+
get: function() {
|
2471
|
+
if (!Fullscreen.supportsFullscreen()) {
|
2472
|
+
return void 0;
|
2473
|
+
}
|
2474
|
+
return Fullscreen.element !== null;
|
2475
|
+
}
|
2476
|
+
}
|
2477
|
+
});
|
2478
|
+
Fullscreen.supportsFullscreen = function() {
|
2479
|
+
if (defined_default(_supportsFullscreen)) {
|
2480
|
+
return _supportsFullscreen;
|
2481
|
+
}
|
2482
|
+
_supportsFullscreen = false;
|
2483
|
+
const body = document.body;
|
2484
|
+
if (typeof body.requestFullscreen === "function") {
|
2485
|
+
_names.requestFullscreen = "requestFullscreen";
|
2486
|
+
_names.exitFullscreen = "exitFullscreen";
|
2487
|
+
_names.fullscreenEnabled = "fullscreenEnabled";
|
2488
|
+
_names.fullscreenElement = "fullscreenElement";
|
2489
|
+
_names.fullscreenchange = "fullscreenchange";
|
2490
|
+
_names.fullscreenerror = "fullscreenerror";
|
2491
|
+
_supportsFullscreen = true;
|
2492
|
+
return _supportsFullscreen;
|
2493
|
+
}
|
2494
|
+
const prefixes = ["webkit", "moz", "o", "ms", "khtml"];
|
2495
|
+
let name;
|
2496
|
+
for (let i = 0, len = prefixes.length; i < len; ++i) {
|
2497
|
+
const prefix = prefixes[i];
|
2498
|
+
name = `${prefix}RequestFullscreen`;
|
2499
|
+
if (typeof body[name] === "function") {
|
2500
|
+
_names.requestFullscreen = name;
|
2501
|
+
_supportsFullscreen = true;
|
2502
|
+
} else {
|
2503
|
+
name = `${prefix}RequestFullScreen`;
|
2504
|
+
if (typeof body[name] === "function") {
|
2505
|
+
_names.requestFullscreen = name;
|
2506
|
+
_supportsFullscreen = true;
|
2507
|
+
}
|
2508
|
+
}
|
2509
|
+
name = `${prefix}ExitFullscreen`;
|
2510
|
+
if (typeof document[name] === "function") {
|
2511
|
+
_names.exitFullscreen = name;
|
2512
|
+
} else {
|
2513
|
+
name = `${prefix}CancelFullScreen`;
|
2514
|
+
if (typeof document[name] === "function") {
|
2515
|
+
_names.exitFullscreen = name;
|
2516
|
+
}
|
2517
|
+
}
|
2518
|
+
name = `${prefix}FullscreenEnabled`;
|
2519
|
+
if (document[name] !== void 0) {
|
2520
|
+
_names.fullscreenEnabled = name;
|
2521
|
+
} else {
|
2522
|
+
name = `${prefix}FullScreenEnabled`;
|
2523
|
+
if (document[name] !== void 0) {
|
2524
|
+
_names.fullscreenEnabled = name;
|
2525
|
+
}
|
2526
|
+
}
|
2527
|
+
name = `${prefix}FullscreenElement`;
|
2528
|
+
if (document[name] !== void 0) {
|
2529
|
+
_names.fullscreenElement = name;
|
2530
|
+
} else {
|
2531
|
+
name = `${prefix}FullScreenElement`;
|
2532
|
+
if (document[name] !== void 0) {
|
2533
|
+
_names.fullscreenElement = name;
|
2534
|
+
}
|
2535
|
+
}
|
2536
|
+
name = `${prefix}fullscreenchange`;
|
2537
|
+
if (document[`on${name}`] !== void 0) {
|
2538
|
+
if (prefix === "ms") {
|
2539
|
+
name = "MSFullscreenChange";
|
2540
|
+
}
|
2541
|
+
_names.fullscreenchange = name;
|
2542
|
+
}
|
2543
|
+
name = `${prefix}fullscreenerror`;
|
2544
|
+
if (document[`on${name}`] !== void 0) {
|
2545
|
+
if (prefix === "ms") {
|
2546
|
+
name = "MSFullscreenError";
|
2547
|
+
}
|
2548
|
+
_names.fullscreenerror = name;
|
2549
|
+
}
|
2550
|
+
}
|
2551
|
+
return _supportsFullscreen;
|
2552
|
+
};
|
2553
|
+
Fullscreen.requestFullscreen = function(element, vrDevice) {
|
2554
|
+
if (!Fullscreen.supportsFullscreen()) {
|
2555
|
+
return;
|
2556
|
+
}
|
2557
|
+
element[_names.requestFullscreen]({ vrDisplay: vrDevice });
|
2558
|
+
};
|
2559
|
+
Fullscreen.exitFullscreen = function() {
|
2560
|
+
if (!Fullscreen.supportsFullscreen()) {
|
2561
|
+
return;
|
2562
|
+
}
|
2563
|
+
document[_names.exitFullscreen]();
|
2564
|
+
};
|
2565
|
+
Fullscreen._names = _names;
|
2566
|
+
var Fullscreen_default = Fullscreen;
|
2567
|
+
|
2568
|
+
// packages/engine/Source/Core/FeatureDetection.js
|
2569
|
+
var theNavigator;
|
2570
|
+
if (typeof navigator !== "undefined") {
|
2571
|
+
theNavigator = navigator;
|
2572
|
+
} else {
|
2573
|
+
theNavigator = {};
|
2574
|
+
}
|
2575
|
+
function extractVersion(versionString) {
|
2576
|
+
const parts = versionString.split(".");
|
2577
|
+
for (let i = 0, len = parts.length; i < len; ++i) {
|
2578
|
+
parts[i] = parseInt(parts[i], 10);
|
2579
|
+
}
|
2580
|
+
return parts;
|
2581
|
+
}
|
2582
|
+
var isChromeResult;
|
2583
|
+
var chromeVersionResult;
|
2584
|
+
function isChrome() {
|
2585
|
+
if (!defined_default(isChromeResult)) {
|
2586
|
+
isChromeResult = false;
|
2587
|
+
if (!isEdge()) {
|
2588
|
+
const fields = / Chrome\/([\.0-9]+)/.exec(theNavigator.userAgent);
|
2589
|
+
if (fields !== null) {
|
2590
|
+
isChromeResult = true;
|
2591
|
+
chromeVersionResult = extractVersion(fields[1]);
|
2592
|
+
}
|
2593
|
+
}
|
2594
|
+
}
|
2595
|
+
return isChromeResult;
|
2596
|
+
}
|
2597
|
+
function chromeVersion() {
|
2598
|
+
return isChrome() && chromeVersionResult;
|
2599
|
+
}
|
2600
|
+
var isSafariResult;
|
2601
|
+
var safariVersionResult;
|
2602
|
+
function isSafari() {
|
2603
|
+
if (!defined_default(isSafariResult)) {
|
2604
|
+
isSafariResult = false;
|
2605
|
+
if (!isChrome() && !isEdge() && / Safari\/[\.0-9]+/.test(theNavigator.userAgent)) {
|
2606
|
+
const fields = / Version\/([\.0-9]+)/.exec(theNavigator.userAgent);
|
2607
|
+
if (fields !== null) {
|
2608
|
+
isSafariResult = true;
|
2609
|
+
safariVersionResult = extractVersion(fields[1]);
|
2610
|
+
}
|
2611
|
+
}
|
2612
|
+
}
|
2613
|
+
return isSafariResult;
|
2614
|
+
}
|
2615
|
+
function safariVersion() {
|
2616
|
+
return isSafari() && safariVersionResult;
|
2617
|
+
}
|
2618
|
+
var isWebkitResult;
|
2619
|
+
var webkitVersionResult;
|
2620
|
+
function isWebkit() {
|
2621
|
+
if (!defined_default(isWebkitResult)) {
|
2622
|
+
isWebkitResult = false;
|
2623
|
+
const fields = / AppleWebKit\/([\.0-9]+)(\+?)/.exec(theNavigator.userAgent);
|
2624
|
+
if (fields !== null) {
|
2625
|
+
isWebkitResult = true;
|
2626
|
+
webkitVersionResult = extractVersion(fields[1]);
|
2627
|
+
webkitVersionResult.isNightly = !!fields[2];
|
2628
|
+
}
|
2629
|
+
}
|
2630
|
+
return isWebkitResult;
|
2631
|
+
}
|
2632
|
+
function webkitVersion() {
|
2633
|
+
return isWebkit() && webkitVersionResult;
|
2634
|
+
}
|
2635
|
+
var isInternetExplorerResult;
|
2636
|
+
var internetExplorerVersionResult;
|
2637
|
+
function isInternetExplorer() {
|
2638
|
+
if (!defined_default(isInternetExplorerResult)) {
|
2639
|
+
isInternetExplorerResult = false;
|
2640
|
+
let fields;
|
2641
|
+
if (theNavigator.appName === "Microsoft Internet Explorer") {
|
2642
|
+
fields = /MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(theNavigator.userAgent);
|
2643
|
+
if (fields !== null) {
|
2644
|
+
isInternetExplorerResult = true;
|
2645
|
+
internetExplorerVersionResult = extractVersion(fields[1]);
|
2646
|
+
}
|
2647
|
+
} else if (theNavigator.appName === "Netscape") {
|
2648
|
+
fields = /Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(
|
2649
|
+
theNavigator.userAgent
|
2650
|
+
);
|
2651
|
+
if (fields !== null) {
|
2652
|
+
isInternetExplorerResult = true;
|
2653
|
+
internetExplorerVersionResult = extractVersion(fields[1]);
|
2654
|
+
}
|
2655
|
+
}
|
2656
|
+
}
|
2657
|
+
return isInternetExplorerResult;
|
2658
|
+
}
|
2659
|
+
function internetExplorerVersion() {
|
2660
|
+
return isInternetExplorer() && internetExplorerVersionResult;
|
2661
|
+
}
|
2662
|
+
var isEdgeResult;
|
2663
|
+
var edgeVersionResult;
|
2664
|
+
function isEdge() {
|
2665
|
+
if (!defined_default(isEdgeResult)) {
|
2666
|
+
isEdgeResult = false;
|
2667
|
+
const fields = / Edg\/([\.0-9]+)/.exec(theNavigator.userAgent);
|
2668
|
+
if (fields !== null) {
|
2669
|
+
isEdgeResult = true;
|
2670
|
+
edgeVersionResult = extractVersion(fields[1]);
|
2671
|
+
}
|
2672
|
+
}
|
2673
|
+
return isEdgeResult;
|
2674
|
+
}
|
2675
|
+
function edgeVersion() {
|
2676
|
+
return isEdge() && edgeVersionResult;
|
2677
|
+
}
|
2678
|
+
var isFirefoxResult;
|
2679
|
+
var firefoxVersionResult;
|
2680
|
+
function isFirefox() {
|
2681
|
+
if (!defined_default(isFirefoxResult)) {
|
2682
|
+
isFirefoxResult = false;
|
2683
|
+
const fields = /Firefox\/([\.0-9]+)/.exec(theNavigator.userAgent);
|
2684
|
+
if (fields !== null) {
|
2685
|
+
isFirefoxResult = true;
|
2686
|
+
firefoxVersionResult = extractVersion(fields[1]);
|
2687
|
+
}
|
2688
|
+
}
|
2689
|
+
return isFirefoxResult;
|
2690
|
+
}
|
2691
|
+
var isWindowsResult;
|
2692
|
+
function isWindows() {
|
2693
|
+
if (!defined_default(isWindowsResult)) {
|
2694
|
+
isWindowsResult = /Windows/i.test(theNavigator.appVersion);
|
2695
|
+
}
|
2696
|
+
return isWindowsResult;
|
2697
|
+
}
|
2698
|
+
var isIPadOrIOSResult;
|
2699
|
+
function isIPadOrIOS() {
|
2700
|
+
if (!defined_default(isIPadOrIOSResult)) {
|
2701
|
+
isIPadOrIOSResult = navigator.platform === "iPhone" || navigator.platform === "iPod" || navigator.platform === "iPad";
|
2702
|
+
}
|
2703
|
+
return isIPadOrIOSResult;
|
2704
|
+
}
|
2705
|
+
function firefoxVersion() {
|
2706
|
+
return isFirefox() && firefoxVersionResult;
|
2707
|
+
}
|
2708
|
+
var hasPointerEvents;
|
2709
|
+
function supportsPointerEvents() {
|
2710
|
+
if (!defined_default(hasPointerEvents)) {
|
2711
|
+
hasPointerEvents = typeof PointerEvent !== "undefined" && (!defined_default(theNavigator.pointerEnabled) || theNavigator.pointerEnabled);
|
2712
|
+
}
|
2713
|
+
return hasPointerEvents;
|
2714
|
+
}
|
2715
|
+
var imageRenderingValueResult;
|
2716
|
+
var supportsImageRenderingPixelatedResult;
|
2717
|
+
function supportsImageRenderingPixelated() {
|
2718
|
+
if (!defined_default(supportsImageRenderingPixelatedResult)) {
|
2719
|
+
const canvas = document.createElement("canvas");
|
2720
|
+
canvas.setAttribute(
|
2721
|
+
"style",
|
2722
|
+
"image-rendering: -moz-crisp-edges;image-rendering: pixelated;"
|
2723
|
+
);
|
2724
|
+
const tmp = canvas.style.imageRendering;
|
2725
|
+
supportsImageRenderingPixelatedResult = defined_default(tmp) && tmp !== "";
|
2726
|
+
if (supportsImageRenderingPixelatedResult) {
|
2727
|
+
imageRenderingValueResult = tmp;
|
2728
|
+
}
|
2729
|
+
}
|
2730
|
+
return supportsImageRenderingPixelatedResult;
|
2731
|
+
}
|
2732
|
+
function imageRenderingValue() {
|
2733
|
+
return supportsImageRenderingPixelated() ? imageRenderingValueResult : void 0;
|
2734
|
+
}
|
2735
|
+
function supportsWebP() {
|
2736
|
+
if (!supportsWebP.initialized) {
|
2737
|
+
throw new DeveloperError_default(
|
2738
|
+
"You must call FeatureDetection.supportsWebP.initialize and wait for the promise to resolve before calling FeatureDetection.supportsWebP"
|
2739
|
+
);
|
2740
|
+
}
|
2741
|
+
return supportsWebP._result;
|
2742
|
+
}
|
2743
|
+
supportsWebP._promise = void 0;
|
2744
|
+
supportsWebP._result = void 0;
|
2745
|
+
supportsWebP.initialize = function() {
|
2746
|
+
if (defined_default(supportsWebP._promise)) {
|
2747
|
+
return supportsWebP._promise;
|
2748
|
+
}
|
2749
|
+
supportsWebP._promise = new Promise((resolve) => {
|
2750
|
+
const image = new Image();
|
2751
|
+
image.onload = function() {
|
2752
|
+
supportsWebP._result = image.width > 0 && image.height > 0;
|
2753
|
+
resolve(supportsWebP._result);
|
2754
|
+
};
|
2755
|
+
image.onerror = function() {
|
2756
|
+
supportsWebP._result = false;
|
2757
|
+
resolve(supportsWebP._result);
|
2758
|
+
};
|
2759
|
+
image.src = "data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA";
|
2760
|
+
});
|
2761
|
+
return supportsWebP._promise;
|
2762
|
+
};
|
2763
|
+
Object.defineProperties(supportsWebP, {
|
2764
|
+
initialized: {
|
2765
|
+
get: function() {
|
2766
|
+
return defined_default(supportsWebP._result);
|
2767
|
+
}
|
2768
|
+
}
|
2769
|
+
});
|
2770
|
+
var typedArrayTypes = [];
|
2771
|
+
if (typeof ArrayBuffer !== "undefined") {
|
2772
|
+
typedArrayTypes.push(
|
2773
|
+
Int8Array,
|
2774
|
+
Uint8Array,
|
2775
|
+
Int16Array,
|
2776
|
+
Uint16Array,
|
2777
|
+
Int32Array,
|
2778
|
+
Uint32Array,
|
2779
|
+
Float32Array,
|
2780
|
+
Float64Array
|
2781
|
+
);
|
2782
|
+
if (typeof Uint8ClampedArray !== "undefined") {
|
2783
|
+
typedArrayTypes.push(Uint8ClampedArray);
|
2784
|
+
}
|
2785
|
+
if (typeof Uint8ClampedArray !== "undefined") {
|
2786
|
+
typedArrayTypes.push(Uint8ClampedArray);
|
2787
|
+
}
|
2788
|
+
if (typeof BigInt64Array !== "undefined") {
|
2789
|
+
typedArrayTypes.push(BigInt64Array);
|
2790
|
+
}
|
2791
|
+
if (typeof BigUint64Array !== "undefined") {
|
2792
|
+
typedArrayTypes.push(BigUint64Array);
|
2793
|
+
}
|
2794
|
+
}
|
2795
|
+
var FeatureDetection = {
|
2796
|
+
isChrome,
|
2797
|
+
chromeVersion,
|
2798
|
+
isSafari,
|
2799
|
+
safariVersion,
|
2800
|
+
isWebkit,
|
2801
|
+
webkitVersion,
|
2802
|
+
isInternetExplorer,
|
2803
|
+
internetExplorerVersion,
|
2804
|
+
isEdge,
|
2805
|
+
edgeVersion,
|
2806
|
+
isFirefox,
|
2807
|
+
firefoxVersion,
|
2808
|
+
isWindows,
|
2809
|
+
isIPadOrIOS,
|
2810
|
+
hardwareConcurrency: defaultValue_default(theNavigator.hardwareConcurrency, 3),
|
2811
|
+
supportsPointerEvents,
|
2812
|
+
supportsImageRenderingPixelated,
|
2813
|
+
supportsWebP,
|
2814
|
+
imageRenderingValue,
|
2815
|
+
typedArrayTypes
|
2816
|
+
};
|
2817
|
+
FeatureDetection.supportsBasis = function(scene) {
|
2818
|
+
return FeatureDetection.supportsWebAssembly() && scene.context.supportsBasis;
|
2819
|
+
};
|
2820
|
+
FeatureDetection.supportsFullscreen = function() {
|
2821
|
+
return Fullscreen_default.supportsFullscreen();
|
2822
|
+
};
|
2823
|
+
FeatureDetection.supportsTypedArrays = function() {
|
2824
|
+
return typeof ArrayBuffer !== "undefined";
|
2825
|
+
};
|
2826
|
+
FeatureDetection.supportsBigInt64Array = function() {
|
2827
|
+
return typeof BigInt64Array !== "undefined";
|
2828
|
+
};
|
2829
|
+
FeatureDetection.supportsBigUint64Array = function() {
|
2830
|
+
return typeof BigUint64Array !== "undefined";
|
2831
|
+
};
|
2832
|
+
FeatureDetection.supportsBigInt = function() {
|
2833
|
+
return typeof BigInt !== "undefined";
|
2834
|
+
};
|
2835
|
+
FeatureDetection.supportsWebWorkers = function() {
|
2836
|
+
return typeof Worker !== "undefined";
|
2837
|
+
};
|
2838
|
+
FeatureDetection.supportsWebAssembly = function() {
|
2839
|
+
return typeof WebAssembly !== "undefined";
|
2840
|
+
};
|
2841
|
+
FeatureDetection.supportsWebgl2 = function(scene) {
|
2842
|
+
Check_default.defined("scene", scene);
|
2843
|
+
return scene.context.webgl2;
|
2844
|
+
};
|
2845
|
+
FeatureDetection.supportsEsmWebWorkers = function() {
|
2846
|
+
return !isFirefox() || parseInt(firefoxVersionResult) >= 114;
|
2847
|
+
};
|
2848
|
+
var FeatureDetection_default = FeatureDetection;
|
2849
|
+
|
2036
2850
|
export {
|
2037
2851
|
Cartesian3_default,
|
2038
2852
|
Cartographic_default,
|
2853
|
+
Cartesian2_default,
|
2039
2854
|
Ellipsoid_default,
|
2040
|
-
Matrix3_default
|
2855
|
+
Matrix3_default,
|
2856
|
+
FeatureDetection_default
|
2041
2857
|
};
|