@vcmap/ui 5.0.1 → 5.1.0-rc.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 +2 -2
- package/build/buildTypes.js +176 -0
- package/build/lintTypes.js +30 -0
- package/config/aerowest.config.json +4 -0
- package/config/base.config.json +24 -2
- package/config/dev.config.json +176 -5
- package/config/www.config.json +25 -1
- package/dist/assets/{cesium.888ef7.js → cesium.e9b3ca.js} +1859 -1828
- package/dist/assets/cesium.js +1 -1
- package/dist/assets/{core.860907.js → core.a9fe5a.js} +5865 -5041
- package/dist/assets/core.js +1 -1
- package/dist/assets/index-bb2549d6.js +1 -0
- package/dist/assets/{ol.5e8a90.js → ol.5f0496.js} +7257 -7252
- package/dist/assets/ol.js +1 -1
- package/dist/assets/{ui.7758a8.css → ui.3c73c2.css} +2 -2
- package/dist/assets/{ui.7758a8.js → ui.3c73c2.js} +14281 -9264
- package/dist/assets/ui.js +1 -1
- package/dist/assets/{vue.9771b3.js → vue.4fe14e.js} +1243 -1234
- package/dist/assets/vue.js +2 -2
- package/dist/assets/{vuetify.2818ff.css → vuetify.260d9a.css} +1 -1
- package/dist/assets/{vuetify.2818ff.js → vuetify.260d9a.js} +155 -154
- package/dist/assets/vuetify.js +2 -2
- package/dist/index.html +2 -2
- package/index.d.ts +256 -0
- package/index.html +1 -1
- package/index.js +48 -11
- package/package.json +22 -15
- package/plugins/@vcmap-show-case/buttons-example/src/ButtonsExample.vue +3 -0
- package/plugins/@vcmap-show-case/category-tester/src/CategoriesExample.vue +312 -43
- package/plugins/@vcmap-show-case/category-tester/src/CollectionComponentOptions.vue +48 -182
- package/plugins/@vcmap-show-case/category-tester/src/FoobarEditor.vue +118 -0
- package/plugins/@vcmap-show-case/category-tester/src/importExportHelper.js +29 -0
- package/plugins/@vcmap-show-case/category-tester/src/index.js +16 -0
- package/plugins/@vcmap-show-case/collection-manager-example/src/CollectionManagerExample.vue +2 -1
- package/plugins/@vcmap-show-case/collection-manager-example/src/index.js +8 -4
- package/plugins/@vcmap-show-case/extent-example/README.md +3 -0
- package/plugins/@vcmap-show-case/extent-example/package.json +5 -0
- package/plugins/@vcmap-show-case/extent-example/src/ExtentExample.vue +71 -0
- package/plugins/@vcmap-show-case/extent-example/src/index.js +68 -0
- package/plugins/@vcmap-show-case/flight-component-example/README.md +3 -0
- package/plugins/@vcmap-show-case/flight-component-example/package.json +5 -0
- package/plugins/@vcmap-show-case/flight-component-example/src/FlightExample.vue +53 -0
- package/plugins/@vcmap-show-case/flight-component-example/src/index.js +42 -0
- package/plugins/@vcmap-show-case/form-inputs-example/src/FormInputsExample.vue +78 -5
- package/plugins/@vcmap-show-case/hello-world/src/helloWorld.vue +2 -2
- package/plugins/@vcmap-show-case/list-example/src/ListExample.vue +22 -10
- package/plugins/@vcmap-show-case/toolbox-example/README.md +9 -0
- package/plugins/@vcmap-show-case/toolbox-example/package.json +5 -0
- package/plugins/@vcmap-show-case/toolbox-example/src/TriStateExampleWindow.vue +21 -0
- package/plugins/@vcmap-show-case/toolbox-example/src/dummyToolboxActions.js +94 -0
- package/plugins/@vcmap-show-case/toolbox-example/src/index.js +260 -0
- package/plugins/@vcmap-show-case/vector-properties-example/src/VectorPropertiesExample.vue +12 -2
- package/plugins/@vcmap-show-case/viewpoint-component-example/README.md +3 -0
- package/plugins/@vcmap-show-case/viewpoint-component-example/package.json +5 -0
- package/plugins/@vcmap-show-case/viewpoint-component-example/src/ViewpointExample.vue +52 -0
- package/plugins/@vcmap-show-case/viewpoint-component-example/src/index.js +42 -0
- package/plugins/@vcmap-show-case/window-tester/src/WindowExample.vue +31 -1
- package/plugins/@vcmap-show-case/window-tester/src/WindowExampleToggleChild.vue +20 -16
- package/plugins/@vcmap-show-case/window-tester/src/index.js +2 -17
- package/plugins/package.json +3 -1
- package/src/actions/StyleSelector.vue +8 -7
- package/src/actions/StyleSelector.vue.d.ts +27 -0
- package/src/actions/actionHelper.d.ts +153 -0
- package/src/actions/actionHelper.js +48 -21
- package/src/actions/extentActions.d.ts +40 -0
- package/src/actions/extentActions.js +359 -0
- package/src/actions/flightActions.d.ts +59 -0
- package/src/actions/flightActions.js +232 -0
- package/src/actions/listActions.d.ts +63 -0
- package/src/actions/listActions.js +185 -0
- package/src/actions/stateRefAction.d.ts +19 -0
- package/src/actions/stateRefAction.js +1 -1
- package/src/application/VcsApp.vue +103 -28
- package/src/application/VcsApp.vue.d.ts +86 -0
- package/src/application/VcsAppWrapper.vue.d.ts +12 -0
- package/src/application/VcsAttributions.vue.d.ts +14 -0
- package/src/application/VcsAttributionsFooter.vue +1 -4
- package/src/application/VcsAttributionsFooter.vue.d.ts +26 -0
- package/src/application/VcsMap.vue.d.ts +12 -0
- package/src/application/VcsNavbar.vue.d.ts +45 -0
- package/src/application/VcsPositionDisplay.vue +208 -0
- package/src/application/VcsPositionDisplay.vue.d.ts +18 -0
- package/src/application/VcsSettings.vue.d.ts +5 -0
- package/src/application/VcsTextPage.vue +65 -0
- package/src/application/VcsTextPage.vue.d.ts +16 -0
- package/src/application/VcsTextPageFooter.vue +89 -0
- package/src/application/VcsTextPageFooter.vue.d.ts +22 -0
- package/src/application/attributionsHelper.d.ts +64 -0
- package/src/application/attributionsHelper.js +1 -1
- package/src/application/markdownHelper.d.ts +5 -0
- package/src/application/markdownHelper.js +11 -0
- package/src/application/positionDisplayInteraction.d.ts +42 -0
- package/src/application/positionDisplayInteraction.js +65 -0
- package/src/callback/activateLayersCallback.d.ts +29 -0
- package/src/callback/activateLayersCallback.js +2 -2
- package/src/callback/applyLayerStyleCallback.d.ts +36 -0
- package/src/callback/applyLayerStyleCallback.js +2 -2
- package/src/callback/deactivateLayersCallback.d.ts +29 -0
- package/src/callback/deactivateLayersCallback.js +2 -2
- package/src/callback/goToViewpointCallback.d.ts +29 -0
- package/src/callback/goToViewpointCallback.js +2 -2
- package/src/callback/vcsCallback.d.ts +44 -0
- package/src/callback/vcsCallback.js +4 -9
- package/src/components/ImageElementInjector.vue.d.ts +24 -0
- package/src/components/buttons/VcsActionButtonList.vue +24 -16
- package/src/components/buttons/VcsActionButtonList.vue.d.ts +68 -0
- package/src/components/buttons/VcsButton.vue +7 -0
- package/src/components/buttons/VcsButton.vue.d.ts +89 -0
- package/src/components/buttons/VcsFormButton.vue +9 -0
- package/src/components/buttons/VcsFormButton.vue.d.ts +91 -0
- package/src/components/buttons/VcsToolButton.vue +9 -0
- package/src/components/buttons/VcsToolButton.vue.d.ts +91 -0
- package/src/components/flight/VcsFlightAnchorsComponent.vue +329 -0
- package/src/components/flight/VcsFlightAnchorsComponent.vue.d.ts +45 -0
- package/src/components/flight/VcsFlightComponent.vue +284 -0
- package/src/components/flight/VcsFlightComponent.vue.d.ts +104 -0
- package/src/components/flight/VcsFlightEditor.vue +77 -0
- package/src/components/flight/VcsFlightEditor.vue.d.ts +34 -0
- package/src/components/flight/VcsFlightPlayer.vue +124 -0
- package/src/components/flight/VcsFlightPlayer.vue.d.ts +25 -0
- package/src/components/flight/composables.d.ts +11 -0
- package/src/components/flight/composables.js +39 -0
- package/src/components/form-inputs-controls/VcsCheckbox.vue.d.ts +18 -0
- package/src/components/form-inputs-controls/VcsChipArrayInput.vue.d.ts +82 -0
- package/src/components/form-inputs-controls/VcsCoordinate.vue +152 -0
- package/src/components/form-inputs-controls/VcsCoordinate.vue.d.ts +90 -0
- package/src/components/form-inputs-controls/VcsDatePicker.vue +2 -2
- package/src/components/form-inputs-controls/VcsDatePicker.vue.d.ts +31 -0
- package/src/components/form-inputs-controls/VcsExtent.vue +122 -0
- package/src/components/form-inputs-controls/VcsExtent.vue.d.ts +36 -0
- package/src/components/form-inputs-controls/VcsFormSection.vue +6 -1
- package/src/components/form-inputs-controls/VcsFormSection.vue.d.ts +75 -0
- package/src/components/form-inputs-controls/VcsLabel.vue +18 -0
- package/src/components/form-inputs-controls/VcsLabel.vue.d.ts +41 -0
- package/src/components/form-inputs-controls/VcsRadio.vue.d.ts +32 -0
- package/src/components/form-inputs-controls/VcsRadioGrid.vue.d.ts +35 -0
- package/src/components/form-inputs-controls/VcsSelect.vue.d.ts +31 -0
- package/src/components/form-inputs-controls/VcsSlider.vue.d.ts +2 -0
- package/src/components/form-inputs-controls/VcsTextArea.vue.d.ts +22 -0
- package/src/components/form-inputs-controls/VcsTextField.vue +57 -10
- package/src/components/form-inputs-controls/VcsTextField.vue.d.ts +65 -0
- package/src/components/form-inputs-controls/VcsWizard.vue.d.ts +14 -0
- package/src/components/form-inputs-controls/VcsWizardStep.vue.d.ts +89 -0
- package/src/components/form-inputs-controls/composables.d.ts +7 -0
- package/src/components/form-inputs-controls/composables.js +1 -1
- package/src/components/form-output/VcsFormattedNumber.vue +13 -2
- package/src/components/form-output/VcsFormattedNumber.vue.d.ts +89 -0
- package/src/components/icons/+all.d.ts +9 -0
- package/src/components/icons/+all.js +16 -0
- package/src/components/icons/2DAreaIcon.vue.d.ts +2 -0
- package/src/components/icons/2DDistanceIcon.vue.d.ts +2 -0
- package/src/components/icons/2DHeightObliqueIcon.vue +20 -0
- package/src/components/icons/2DHeightObliqueIcon.vue.d.ts +2 -0
- package/src/components/icons/3DAreaIcon.vue.d.ts +2 -0
- package/src/components/icons/3DDistanceIcon.vue.d.ts +2 -0
- package/src/components/icons/3DHeightIcon.vue.d.ts +2 -0
- package/src/components/icons/AngleIcon.vue.d.ts +2 -0
- package/src/components/icons/AssociationsIcon.vue.d.ts +2 -0
- package/src/components/icons/AxisIcon.vue.d.ts +2 -0
- package/src/components/icons/BoundingBoxIcon.vue.d.ts +2 -0
- package/src/components/icons/CheckboxCheckedIcon.vue.d.ts +2 -0
- package/src/components/icons/CheckboxIcon.vue.d.ts +2 -0
- package/src/components/icons/CheckboxIndeterminateIcon.vue.d.ts +2 -0
- package/src/components/icons/CircleIcon.vue.d.ts +2 -0
- package/src/components/icons/ClippingHorizontalIcon.vue.d.ts +2 -0
- package/src/components/icons/ClippingIcon.vue.d.ts +2 -0
- package/src/components/icons/ClippingVerticalIcon.vue.d.ts +2 -0
- package/src/components/icons/ColorPickerIcon.vue.d.ts +2 -0
- package/src/components/icons/ColorSwatchIcon.vue.d.ts +2 -0
- package/src/components/icons/CommentIcon.vue.d.ts +2 -0
- package/src/components/icons/CompassIcon.vue.d.ts +2 -0
- package/src/components/icons/ComponentsIcon.vue.d.ts +2 -0
- package/src/components/icons/ComponentsPlusIcon.vue +17 -0
- package/src/components/icons/ComponentsPlusIcon.vue.d.ts +2 -0
- package/src/components/icons/ConeIcon.vue.d.ts +2 -0
- package/src/components/icons/DimensionsHouseIcon.vue.d.ts +2 -0
- package/src/components/icons/EditIcon.vue.d.ts +2 -0
- package/src/components/icons/EditVerticesIcon.vue.d.ts +2 -0
- package/src/components/icons/ElevationProfileIcon.vue.d.ts +2 -0
- package/src/components/icons/ExportAreaIcon.vue.d.ts +2 -0
- package/src/components/icons/ExportFlightIcon.vue.d.ts +2 -0
- package/src/components/icons/ExportIcon.vue.d.ts +2 -0
- package/src/components/icons/ExternalLinkIcon.vue.d.ts +2 -0
- package/src/components/icons/EyeIcon.vue.d.ts +2 -0
- package/src/components/icons/FastForwardIcon.vue.d.ts +2 -0
- package/src/components/icons/FilterIcon.vue.d.ts +2 -0
- package/src/components/icons/GlobalTerrainIcon.vue.d.ts +2 -0
- package/src/components/icons/GlobeNatureIcon.vue.d.ts +2 -0
- package/src/components/icons/GroundIcon.vue.d.ts +2 -0
- package/src/components/icons/HealthCareIndustriesIcon.vue.d.ts +2 -0
- package/src/components/icons/HelpIcon.vue.d.ts +2 -0
- package/src/components/icons/HideIcon.vue.d.ts +2 -0
- package/src/components/icons/HomePointIcon.vue.d.ts +2 -0
- package/src/components/icons/HospitalsIcon.vue.d.ts +2 -0
- package/src/components/icons/HouseIcon.vue.d.ts +2 -0
- package/src/components/icons/ImportIcon.vue.d.ts +2 -0
- package/src/components/icons/InfoIcon.vue.d.ts +2 -0
- package/src/components/icons/KebabIcon.vue.d.ts +2 -0
- package/src/components/icons/LabelIcon.vue.d.ts +2 -0
- package/src/components/icons/LayersIcon.vue.d.ts +2 -0
- package/src/components/icons/LegendIcon.vue.d.ts +2 -0
- package/src/components/icons/LineIcon.vue.d.ts +2 -0
- package/src/components/icons/LinkIcon.vue.d.ts +2 -0
- package/src/components/icons/LogoutIcon.vue.d.ts +2 -0
- package/src/components/icons/MapIcon.vue.d.ts +2 -0
- package/src/components/icons/MenuIcon.vue.d.ts +2 -0
- package/src/components/icons/MinusIcon.vue.d.ts +2 -0
- package/src/components/icons/MultiViewIcon.vue +16 -0
- package/src/components/icons/MultiViewIcon.vue.d.ts +2 -0
- package/src/components/icons/ObjectAttributeIcon.vue.d.ts +2 -0
- package/src/components/icons/ObjectSelectIcon.vue.d.ts +2 -0
- package/src/components/icons/ObliqueViewIcon.vue.d.ts +2 -0
- package/src/components/icons/PdfIcon.vue.d.ts +2 -0
- package/src/components/icons/PedestrianIcon.vue.d.ts +2 -0
- package/src/components/icons/PenIcon.vue.d.ts +2 -0
- package/src/components/icons/PlayCircleIcon.vue.d.ts +2 -0
- package/src/components/icons/PlusIcon.vue.d.ts +2 -0
- package/src/components/icons/PoiIcon.vue.d.ts +2 -0
- package/src/components/icons/PointIcon.vue.d.ts +2 -0
- package/src/components/icons/PointMeasurementIcon.vue +36 -0
- package/src/components/icons/PointMeasurementIcon.vue.d.ts +2 -0
- package/src/components/icons/PointSelectIcon.vue.d.ts +2 -0
- package/src/components/icons/PresentationModeIcon.vue.d.ts +2 -0
- package/src/components/icons/ProgressIcon.vue.d.ts +2 -0
- package/src/components/icons/QueryIcon.vue.d.ts +2 -0
- package/src/components/icons/RectangleIcon.vue.d.ts +2 -0
- package/src/components/icons/ReturnIcon.vue.d.ts +2 -0
- package/src/components/icons/RewindIcon.vue.d.ts +2 -0
- package/src/components/icons/RotateLeftIcon.vue.d.ts +2 -0
- package/src/components/icons/RotateRightIcon.vue.d.ts +2 -0
- package/src/components/icons/ScreenshotIcon.vue.d.ts +2 -0
- package/src/components/icons/SearchIcon.vue.d.ts +2 -0
- package/src/components/icons/ShadowIcon.vue.d.ts +2 -0
- package/src/components/icons/ShapesIcon.vue.d.ts +2 -0
- package/src/components/icons/ShareIcon.vue.d.ts +2 -0
- package/src/components/icons/SimpleCircleFilledIcon.vue.d.ts +2 -0
- package/src/components/icons/SimpleCircleHalfFilledIcon.vue.d.ts +2 -0
- package/src/components/icons/SimpleCircleOutlinedIcon.vue.d.ts +2 -0
- package/src/components/icons/SkipNextIcon.vue.d.ts +2 -0
- package/src/components/icons/SkipPreviousIcon.vue.d.ts +2 -0
- package/src/components/icons/SplitViewIcon.vue.d.ts +2 -0
- package/src/components/icons/TerrainBoxIcon.vue.d.ts +2 -0
- package/src/components/icons/TextStyleIcon.vue.d.ts +2 -0
- package/src/components/icons/ThreeDimensionsIcon.vue.d.ts +2 -0
- package/src/components/icons/ToolsIcon.vue.d.ts +2 -0
- package/src/components/icons/TouchIcon.vue.d.ts +2 -0
- package/src/components/icons/TrashCanIcon.vue.d.ts +2 -0
- package/src/components/icons/TriangleIcon.vue.d.ts +2 -0
- package/src/components/icons/TwoDimensionsIcon.vue.d.ts +2 -0
- package/src/components/icons/UploadIcon.vue.d.ts +2 -0
- package/src/components/icons/UserProfileIcon.vue.d.ts +2 -0
- package/src/components/icons/UserShareIcon.vue.d.ts +2 -0
- package/src/components/icons/VideoRecorderIcon.vue.d.ts +2 -0
- package/src/components/icons/ViewpointFlightIcon.vue.d.ts +2 -0
- package/src/components/icons/ViewpointIcon.vue.d.ts +2 -0
- package/src/components/icons/Viewshed360Icon.vue.d.ts +2 -0
- package/src/components/icons/ViewshedConeIcon.vue.d.ts +2 -0
- package/src/components/icons/ViewshedIcon.vue.d.ts +2 -0
- package/src/components/icons/WalkingIcon.vue.d.ts +2 -0
- package/src/components/icons/WallIcon.vue.d.ts +2 -0
- package/src/components/icons/WandIcon.vue.d.ts +2 -0
- package/src/components/import/FileDrop.vue +69 -0
- package/src/components/import/FileDrop.vue.d.ts +26 -0
- package/src/components/import/ImportComponent.vue +78 -0
- package/src/components/import/ImportComponent.vue.d.ts +34 -0
- package/src/components/lists/VcsActionList.vue +8 -15
- package/src/components/lists/VcsActionList.vue.d.ts +66 -0
- package/src/components/lists/VcsList.vue +207 -116
- package/src/components/lists/VcsList.vue.d.ts +227 -0
- package/src/components/lists/VcsTreeview.vue +3 -1
- package/src/components/lists/VcsTreeview.vue.d.ts +28 -0
- package/src/components/lists/VcsTreeviewLeaf.vue +1 -0
- package/src/components/lists/VcsTreeviewLeaf.vue.d.ts +19 -0
- package/src/components/lists/VcsTreeviewSearchbar.vue.d.ts +41 -0
- package/src/components/notification/VcsBadge.vue.d.ts +14 -0
- package/src/components/notification/VcsHelp.vue.d.ts +22 -0
- package/src/components/notification/VcsTooltip.vue.d.ts +27 -0
- package/src/components/notification/validation.d.ts +8 -0
- package/src/components/notification/validation.js +3 -2
- package/src/components/plugins/AbstractConfigEditor.vue +25 -4
- package/src/components/plugins/AbstractConfigEditor.vue.d.ts +55 -0
- package/src/components/style/MenuWrapper.vue.d.ts +55 -0
- package/src/components/style/VcsFeatureStyleComponent.vue +389 -0
- package/src/components/style/VcsFeatureStyleComponent.vue.d.ts +31 -0
- package/src/components/style/VcsFillMenu.vue.d.ts +34 -0
- package/src/components/style/VcsFillSelector.vue.d.ts +22 -0
- package/src/components/style/VcsImageMenu.vue.d.ts +43 -0
- package/src/components/style/VcsImageSelector.vue.d.ts +128 -0
- package/src/components/style/VcsStrokeMenu.vue.d.ts +34 -0
- package/src/components/style/VcsStrokeSelector.vue.d.ts +23 -0
- package/src/components/style/VcsTextMenu.vue.d.ts +52 -0
- package/src/components/style/VcsTextSelector.vue.d.ts +58 -0
- package/src/components/style/VcsVectorStyleComponent.vue.d.ts +76 -0
- package/src/components/style/composables.d.ts +43 -0
- package/src/components/style/composables.js +11 -8
- package/src/components/tables/VcsDataTable.vue +11 -3
- package/src/components/tables/VcsDataTable.vue.d.ts +142 -0
- package/src/components/tables/VcsTable.vue +71 -2
- package/src/components/tables/VcsTable.vue.d.ts +88 -0
- package/src/components/vector-properties/VcsFeatureEditingWindow.vue +392 -0
- package/src/components/vector-properties/VcsFeatureEditingWindow.vue.d.ts +87 -0
- package/src/components/vector-properties/VcsFeatureTransforms.vue +217 -0
- package/src/components/vector-properties/VcsFeatureTransforms.vue.d.ts +45 -0
- package/src/components/vector-properties/VcsVectorPropertiesComponent.vue +96 -52
- package/src/components/vector-properties/VcsVectorPropertiesComponent.vue.d.ts +119 -0
- package/src/components/vector-properties/composables.d.ts +33 -0
- package/src/components/vector-properties/composables.js +21 -14
- package/src/components/viewpoint/VcsViewpointComponent.vue +514 -0
- package/src/components/viewpoint/VcsViewpointComponent.vue.d.ts +126 -0
- package/src/components/viewpoint/VcsViewpointEditor.vue +87 -0
- package/src/components/viewpoint/VcsViewpointEditor.vue.d.ts +25 -0
- package/src/contentTree/LayerTree.vue.d.ts +15 -0
- package/src/contentTree/contentTreeCollection.d.ts +113 -0
- package/src/contentTree/contentTreeCollection.js +10 -20
- package/src/contentTree/contentTreeItem.d.ts +334 -0
- package/src/contentTree/contentTreeItem.js +31 -17
- package/src/contentTree/flightContentTreeItem.d.ts +53 -0
- package/src/contentTree/flightContentTreeItem.js +201 -0
- package/src/contentTree/groupContentTreeItem.d.ts +14 -0
- package/src/contentTree/groupContentTreeItem.js +2 -2
- package/src/contentTree/layerContentTreeItem.d.ts +76 -0
- package/src/contentTree/layerContentTreeItem.js +7 -9
- package/src/contentTree/layerGroupContentTreeItem.d.ts +50 -0
- package/src/contentTree/layerGroupContentTreeItem.js +2 -3
- package/src/contentTree/nodeContentTreeItem.d.ts +10 -0
- package/src/contentTree/nodeContentTreeItem.js +2 -2
- package/src/contentTree/obliqueCollectionContentTreeItem.d.ts +46 -0
- package/src/contentTree/obliqueCollectionContentTreeItem.js +3 -5
- package/src/contentTree/subContentTreeItem.d.ts +15 -0
- package/src/contentTree/subContentTreeItem.js +3 -3
- package/src/contentTree/vcsObjectContentTreeItem.d.ts +56 -0
- package/src/contentTree/vcsObjectContentTreeItem.js +3 -4
- package/src/contentTree/viewpointContentTreeItem.d.ts +46 -0
- package/src/contentTree/viewpointContentTreeItem.js +3 -4
- package/src/downloadHelper.d.ts +27 -0
- package/src/featureInfo/AddressBalloonComponent.vue.d.ts +2 -0
- package/src/featureInfo/BalloonComponent.vue +16 -3
- package/src/featureInfo/BalloonComponent.vue.d.ts +61 -0
- package/src/featureInfo/abstractFeatureInfoView.d.ts +199 -0
- package/src/featureInfo/abstractFeatureInfoView.js +82 -18
- package/src/featureInfo/addressBalloonFeatureInfoView.d.ts +67 -0
- package/src/featureInfo/addressBalloonFeatureInfoView.js +9 -2
- package/src/featureInfo/balloonFeatureInfoView.d.ts +49 -0
- package/src/featureInfo/balloonFeatureInfoView.js +12 -11
- package/src/featureInfo/balloonHelper.d.ts +31 -0
- package/src/featureInfo/balloonHelper.js +6 -6
- package/src/featureInfo/featureInfo.d.ts +146 -0
- package/src/featureInfo/featureInfo.js +11 -16
- package/src/featureInfo/featureInfoInteraction.d.ts +21 -0
- package/src/featureInfo/featureInfoInteraction.js +2 -2
- package/src/featureInfo/iframeFeatureInfoView.d.ts +48 -0
- package/src/featureInfo/iframeFeatureInfoView.js +3 -5
- package/src/featureInfo/tableFeatureInfoView.d.ts +75 -0
- package/src/featureInfo/tableFeatureInfoView.js +19 -9
- package/src/i18n/de.d.ts +353 -0
- package/src/i18n/de.js +114 -2
- package/src/i18n/en.d.ts +352 -0
- package/src/i18n/en.js +113 -1
- package/src/i18n/i18nCollection.d.ts +82 -0
- package/src/i18n/i18nCollection.js +3 -3
- package/src/init.d.ts +58 -0
- package/src/init.js +3 -5
- package/src/legend/StyleLegendItem.vue.d.ts +25 -0
- package/src/legend/VcsLegend.vue.d.ts +20 -0
- package/src/legend/legendHelper.d.ts +172 -0
- package/src/legend/legendHelper.js +21 -21
- package/src/manager/buttonManager.d.ts +106 -0
- package/src/manager/buttonManager.js +8 -4
- package/src/manager/collectionManager/CollectionComponent.vue +38 -38
- package/src/manager/collectionManager/CollectionComponent.vue.d.ts +17 -0
- package/src/manager/collectionManager/CollectionComponentList.vue +78 -24
- package/src/manager/collectionManager/CollectionComponentList.vue.d.ts +38 -0
- package/src/manager/collectionManager/CollectionComponentProvider.vue +3 -2
- package/src/manager/collectionManager/CollectionComponentProvider.vue.d.ts +12 -0
- package/src/manager/collectionManager/CollectionManager.vue +29 -4
- package/src/manager/collectionManager/CollectionManager.vue.d.ts +8 -0
- package/src/manager/collectionManager/categoryManager.d.ts +56 -0
- package/src/manager/collectionManager/categoryManager.js +21 -7
- package/src/manager/collectionManager/collectionComponentClass.d.ts +257 -0
- package/src/manager/collectionManager/{collectionComponent.js → collectionComponentClass.js} +210 -57
- package/src/manager/collectionManager/collectionManager.d.ts +200 -0
- package/src/manager/collectionManager/collectionManager.js +45 -39
- package/src/manager/collectionManager/editorCollectionComponentClass.d.ts +60 -0
- package/src/manager/collectionManager/editorCollectionComponentClass.js +295 -0
- package/src/manager/contextMenu/ContextMenuComponent.vue.d.ts +18 -0
- package/src/manager/contextMenu/contextMenuInteraction.d.ts +24 -0
- package/src/manager/contextMenu/contextMenuManager.d.ts +70 -0
- package/src/manager/contextMenu/contextMenuManager.js +5 -5
- package/src/manager/navbarManager.d.ts +60 -0
- package/src/manager/navbarManager.js +10 -6
- package/src/manager/toolbox/GroupToolboxComponent.vue.d.ts +17 -0
- package/src/manager/toolbox/SelectToolboxComponent.vue +1 -0
- package/src/manager/toolbox/SelectToolboxComponent.vue.d.ts +15 -0
- package/src/manager/toolbox/ToolboxManager.vue +33 -7
- package/src/manager/toolbox/ToolboxManager.vue.d.ts +21 -0
- package/src/manager/toolbox/toolboxManager.d.ts +177 -0
- package/src/manager/toolbox/toolboxManager.js +86 -31
- package/src/manager/window/WindowComponent.vue.d.ts +40 -0
- package/src/manager/window/WindowComponentHeader.vue +1 -1
- package/src/manager/window/WindowComponentHeader.vue.d.ts +36 -0
- package/src/manager/window/WindowManager.vue +1 -0
- package/src/manager/window/WindowManager.vue.d.ts +19 -0
- package/src/manager/window/windowHelper.d.ts +134 -0
- package/src/manager/window/windowHelper.js +20 -20
- package/src/manager/window/windowManager.d.ts +422 -0
- package/src/manager/window/windowManager.js +95 -40
- package/src/navigation/MapNavCompass.vue.d.ts +25 -0
- package/src/navigation/MapNavigation.vue +2 -2
- package/src/navigation/MapNavigation.vue.d.ts +46 -0
- package/src/navigation/ObliqueRotation.vue +8 -4
- package/src/navigation/ObliqueRotation.vue.d.ts +14 -0
- package/src/navigation/OrientationToolsButton.vue.d.ts +30 -0
- package/src/navigation/TiltSlider.vue.d.ts +19 -0
- package/src/navigation/VcsCompass.vue.d.ts +25 -0
- package/src/navigation/VcsZoomButton.vue +6 -3
- package/src/navigation/VcsZoomButton.vue.d.ts +2 -0
- package/src/navigation/overviewMap.d.ts +199 -0
- package/src/navigation/overviewMap.js +3 -7
- package/src/navigation/overviewMapClickedInteraction.d.ts +21 -0
- package/src/notifier/NotifierComponent.vue.d.ts +10 -0
- package/src/notifier/notifier.d.ts +53 -0
- package/src/notifier/notifier.js +0 -1
- package/src/pluginHelper.d.ts +67 -0
- package/src/pluginHelper.js +11 -9
- package/src/search/ResultItem.vue.d.ts +25 -0
- package/src/search/ResultsComponent.vue +1 -1
- package/src/search/ResultsComponent.vue.d.ts +24 -0
- package/src/search/SearchComponent.vue +1 -1
- package/src/search/SearchComponent.vue.d.ts +10 -0
- package/src/search/search.d.ts +129 -0
- package/src/search/search.js +8 -11
- package/src/setup.d.ts +1 -0
- package/src/state.d.ts +57 -0
- package/src/state.js +7 -5
- package/src/uiConfig.d.ts +99 -0
- package/src/uiConfig.js +17 -7
- package/src/vcsUiApp.d.ts +301 -0
- package/src/vcsUiApp.js +57 -53
- package/src/vuePlugins/i18n.d.ts +10 -0
- package/src/vuePlugins/i18n.js +3 -3
- package/src/vuePlugins/vuetify.d.ts +27 -0
- package/tsconfig.json +36 -0
- package/dist/assets/index-f265c560.js +0 -1
- package/plugins/@vcmap-show-case/window-tester/src/toolboxData.js +0 -288
@@ -0,0 +1,392 @@
|
|
1
|
+
<template>
|
2
|
+
<v-sheet>
|
3
|
+
<VcsFormSection
|
4
|
+
v-if="session.type === SessionType.SELECT"
|
5
|
+
heading="components.editor.modifyHeader"
|
6
|
+
:action-button-list-overflow-count="5"
|
7
|
+
:header-actions="availableModifyActions"
|
8
|
+
>
|
9
|
+
<div class="px-1">
|
10
|
+
<VcsFeatureTransforms
|
11
|
+
v-if="currentTransformationMode"
|
12
|
+
:transformation-mode="currentTransformationMode"
|
13
|
+
:feature-properties="featureProperties"
|
14
|
+
:allow-z-input="is3D"
|
15
|
+
/>
|
16
|
+
<div v-else class="px-1 py-1">
|
17
|
+
{{ $t('components.editor.modifyInfo') }}
|
18
|
+
</div>
|
19
|
+
</div>
|
20
|
+
</VcsFormSection>
|
21
|
+
<VcsFormSection heading="components.editor.styleHeader" v-if="showStyle">
|
22
|
+
<VcsFeatureStyleComponent :feature-properties="featureProperties" />
|
23
|
+
</VcsFormSection>
|
24
|
+
<VcsVectorPropertiesComponent
|
25
|
+
:value="featureProperties"
|
26
|
+
:show3-d-properties="is3D"
|
27
|
+
@propertyChange="updateFeatureProperties"
|
28
|
+
:value-default="defaultVectorProperties"
|
29
|
+
:properties="availableVectorProperties"
|
30
|
+
:show-dividers="false"
|
31
|
+
:expandable="expandableVectorProperties"
|
32
|
+
:start-open="startOpenVectorProperties"
|
33
|
+
:show-reset="showResetVectorProperties"
|
34
|
+
/>
|
35
|
+
</v-sheet>
|
36
|
+
</template>
|
37
|
+
|
38
|
+
<script>
|
39
|
+
import { VSheet } from 'vuetify/lib';
|
40
|
+
import { inject, ref, watch, onUnmounted, provide, computed } from 'vue';
|
41
|
+
import {
|
42
|
+
CesiumMap,
|
43
|
+
GeometryType,
|
44
|
+
SessionType,
|
45
|
+
TransformationMode,
|
46
|
+
VectorProperties,
|
47
|
+
} from '@vcmap/core';
|
48
|
+
import VcsFeatureStyleComponent from '../style/VcsFeatureStyleComponent.vue';
|
49
|
+
import VcsFeatureTransforms from './VcsFeatureTransforms.vue';
|
50
|
+
import VcsVectorPropertiesComponent, {
|
51
|
+
genericVectorProperties,
|
52
|
+
pointVectorProperties,
|
53
|
+
nonPointVectorProperties,
|
54
|
+
} from './VcsVectorPropertiesComponent.vue';
|
55
|
+
import VcsFormSection from '../form-inputs-controls/VcsFormSection.vue';
|
56
|
+
|
57
|
+
/**
|
58
|
+
* @typedef {Object} EditorManager
|
59
|
+
* @property {import("vue").ShallowRef<import("@vcmap/core").Layer|undefined>} currentLayer
|
60
|
+
* @property {import("vue").ShallowRef<import("ol").Feature[]>} currentFeatures
|
61
|
+
* @property {import("vue").ShallowRef<import("@vcmap/core").EditGeometrySession | import("@vcmap/core").EditFeaturesSession | undefined>} currentEditSession
|
62
|
+
* @property {import("vue").ShallowRef<import("@vcmap/core").SelectFeaturesSession | import("@vcmap/core").CreateFeatureSession<import("@vcmap/core").GeometryType> | undefined>} currentSession
|
63
|
+
* @property {function():Promise<void>} placeCurrentFeaturesOnTerrain
|
64
|
+
* @property {function():void} stopEditing
|
65
|
+
* @property {function(import("ol").Feature=):Promise<void>|void} startEditSession
|
66
|
+
* @property {function(import("@vcmap/core").TransformationMode, import("ol").Feature[]=):Promise<void>|void} startTransformSession
|
67
|
+
*/
|
68
|
+
|
69
|
+
export const EditorTransformationIcons = {
|
70
|
+
[TransformationMode.TRANSLATE]: 'mdi-axis-arrow',
|
71
|
+
[TransformationMode.ROTATE]: 'mdi-rotate-3d-variant',
|
72
|
+
[TransformationMode.SCALE]: 'mdi-arrow-top-right-bottom-left',
|
73
|
+
[TransformationMode.EXTRUDE]: '$vcsWall',
|
74
|
+
};
|
75
|
+
|
76
|
+
/**
|
77
|
+
* Returns a Set with all geometry types of the provided features
|
78
|
+
* @param {import("ol").Feature[]} features Array of ol features
|
79
|
+
* @returns {Set<GeometryType>} Set with GeometryTypes
|
80
|
+
*/
|
81
|
+
function getGeometryTypes(features) {
|
82
|
+
return new Set(
|
83
|
+
features.map(
|
84
|
+
(f) =>
|
85
|
+
f.getGeometry()?.get('_vcsGeomType') ?? f.getGeometry()?.getType(),
|
86
|
+
),
|
87
|
+
);
|
88
|
+
}
|
89
|
+
|
90
|
+
/**
|
91
|
+
* Returns the allowed transformation modes for the provided geometry types and number of features. Rotate is e.g. not allowed for a single point but for multiple points.
|
92
|
+
* @param {Set<GeometryType>} geometryTypes A set with all geometry types of the features.
|
93
|
+
* @param {number} nFeatures The number of the features.
|
94
|
+
* @returns {Array<TransformationMode>} The allowed transformation modes.
|
95
|
+
*/
|
96
|
+
export function getAllowedEditorTransformationModes(
|
97
|
+
geometryTypes,
|
98
|
+
nFeatures,
|
99
|
+
) {
|
100
|
+
const isSinglePoint =
|
101
|
+
nFeatures === 1 && geometryTypes.has(GeometryType.Point);
|
102
|
+
const isSingleCircle =
|
103
|
+
nFeatures === 1 && geometryTypes.has(GeometryType.Circle);
|
104
|
+
const isBboxSelected = geometryTypes.has(GeometryType.BBox);
|
105
|
+
return [
|
106
|
+
TransformationMode.TRANSLATE,
|
107
|
+
...(isSinglePoint || isSingleCircle || isBboxSelected
|
108
|
+
? []
|
109
|
+
: [TransformationMode.ROTATE]),
|
110
|
+
...(isSinglePoint || isSingleCircle ? [] : [TransformationMode.SCALE]),
|
111
|
+
];
|
112
|
+
}
|
113
|
+
|
114
|
+
/**
|
115
|
+
* @description A drawing window used for displaying selected features from editor sessions. A manger must be provided.
|
116
|
+
* @vue-prop {Array<string>} [allowedVectorProperties=['altitudeMode', 'extrudedHeight', 'classificationType']] - The vector properties that should be displayed.
|
117
|
+
* @vue-prop {boolean} [expandableVectorProperties=false] - Whether the vector properties should be expandable.
|
118
|
+
* @vue-prop {boolean} [startOpenVectorProperties=false] - Whether the vector properties should be expended initially. Only used when expandableVectorProperties is true.
|
119
|
+
* @vue-prop {boolean} [showResetVectorProperties=true] - Whether the reset button should be shown.
|
120
|
+
* @vue-prop {boolean} [showStyle=true] - Whether the style component should be shown.
|
121
|
+
*/
|
122
|
+
export default {
|
123
|
+
components: {
|
124
|
+
VcsFeatureTransforms,
|
125
|
+
VSheet,
|
126
|
+
VcsFormSection,
|
127
|
+
VcsVectorPropertiesComponent,
|
128
|
+
VcsFeatureStyleComponent,
|
129
|
+
},
|
130
|
+
name: 'VcsFeatureEditingWindow',
|
131
|
+
props: {
|
132
|
+
allowedVectorProperties: {
|
133
|
+
type: Array,
|
134
|
+
default: () => [
|
135
|
+
'altitudeMode',
|
136
|
+
'heightAboveGround',
|
137
|
+
'extrudedHeight',
|
138
|
+
'classificationType',
|
139
|
+
],
|
140
|
+
},
|
141
|
+
expandableVectorProperties: {
|
142
|
+
type: Boolean,
|
143
|
+
default: false,
|
144
|
+
},
|
145
|
+
startOpenVectorProperties: {
|
146
|
+
type: Boolean,
|
147
|
+
default: false,
|
148
|
+
},
|
149
|
+
showResetVectorProperties: {
|
150
|
+
type: Boolean,
|
151
|
+
default: true,
|
152
|
+
},
|
153
|
+
showStyle: {
|
154
|
+
type: Boolean,
|
155
|
+
default: true,
|
156
|
+
},
|
157
|
+
},
|
158
|
+
setup(props) {
|
159
|
+
const vcsApp = inject('vcsApp');
|
160
|
+
/** @type {EditorManager} */
|
161
|
+
const editorManager = inject('manager');
|
162
|
+
const {
|
163
|
+
currentFeatures: features,
|
164
|
+
currentSession: session,
|
165
|
+
currentEditSession: editSession,
|
166
|
+
currentLayer: layer,
|
167
|
+
} = editorManager;
|
168
|
+
|
169
|
+
const availableModifyActions = ref([]);
|
170
|
+
const availableVectorProperties = ref([]);
|
171
|
+
|
172
|
+
provide('features', features);
|
173
|
+
const featureProperties = ref();
|
174
|
+
|
175
|
+
watch(
|
176
|
+
features,
|
177
|
+
() => {
|
178
|
+
featureProperties.value =
|
179
|
+
layer.value.vectorProperties.getValuesForFeatures(features.value);
|
180
|
+
},
|
181
|
+
{ immediate: true },
|
182
|
+
);
|
183
|
+
|
184
|
+
/**
|
185
|
+
* Sets the changed vector property options on the features. Also handles side effects.
|
186
|
+
* @param {import("@vcmap/core").VectorPropertiesOptions} update New property values from user input.
|
187
|
+
*/
|
188
|
+
async function updateFeatureProperties(update) {
|
189
|
+
const extrusionLikePropertyKeys = [
|
190
|
+
'extrudedHeight',
|
191
|
+
'skirt',
|
192
|
+
'storeysAboveGround',
|
193
|
+
'storeysBelowGround',
|
194
|
+
'storeyHeightsAboveGround',
|
195
|
+
'storeyHeightsBelowGround',
|
196
|
+
];
|
197
|
+
const setsExtrusionLikePropertyKeys =
|
198
|
+
!!extrusionLikePropertyKeys.filter(
|
199
|
+
(key) => Object.keys(update).includes(key) && !!update[key],
|
200
|
+
).length;
|
201
|
+
if (
|
202
|
+
setsExtrusionLikePropertyKeys &&
|
203
|
+
featureProperties.value.altitudeMode !== 'absolute'
|
204
|
+
) {
|
205
|
+
update.altitudeMode = 'absolute';
|
206
|
+
} else if (update.altitudeMode === 'clampToGround') {
|
207
|
+
extrusionLikePropertyKeys
|
208
|
+
.filter((key) => !!featureProperties.value[key])
|
209
|
+
.forEach((key) => {
|
210
|
+
update[key] = 0;
|
211
|
+
});
|
212
|
+
}
|
213
|
+
// when in create mode and changing altitude mode, this is triggered, but currentFeatures is empty array.
|
214
|
+
if (update.altitudeMode === 'absolute' && features?.length) {
|
215
|
+
await editorManager.placeCurrentFeaturesOnTerrain();
|
216
|
+
}
|
217
|
+
|
218
|
+
layer.value.vectorProperties.setValuesForFeatures(
|
219
|
+
update,
|
220
|
+
features.value,
|
221
|
+
);
|
222
|
+
featureProperties.value =
|
223
|
+
layer.value.vectorProperties.getValuesForFeatures(features.value);
|
224
|
+
}
|
225
|
+
|
226
|
+
const is3D = ref(false);
|
227
|
+
|
228
|
+
function updateIs3D() {
|
229
|
+
is3D.value = vcsApp.maps.activeMap instanceof CesiumMap;
|
230
|
+
}
|
231
|
+
const mapActivatedListener =
|
232
|
+
vcsApp.maps.mapActivated.addEventListener(updateIs3D);
|
233
|
+
updateIs3D();
|
234
|
+
|
235
|
+
const isGeometryEditing = computed(
|
236
|
+
() => editSession.value?.type === SessionType.EDIT_GEOMETRY,
|
237
|
+
);
|
238
|
+
|
239
|
+
const currentTransformationMode = ref();
|
240
|
+
let editModeListener = () => {};
|
241
|
+
watch(
|
242
|
+
editSession,
|
243
|
+
() => {
|
244
|
+
editModeListener();
|
245
|
+
currentTransformationMode.value = editSession.value?.mode || null;
|
246
|
+
if (currentTransformationMode.value) {
|
247
|
+
editModeListener = editSession.value.modeChanged.addEventListener(
|
248
|
+
(mode) => {
|
249
|
+
currentTransformationMode.value = mode;
|
250
|
+
},
|
251
|
+
);
|
252
|
+
}
|
253
|
+
},
|
254
|
+
{ immediate: true },
|
255
|
+
);
|
256
|
+
|
257
|
+
function toggleTransformationSession(mode) {
|
258
|
+
if (
|
259
|
+
currentTransformationMode.value &&
|
260
|
+
currentTransformationMode.value === mode
|
261
|
+
) {
|
262
|
+
editorManager.stopEditing();
|
263
|
+
} else {
|
264
|
+
editorManager.startTransformSession(mode);
|
265
|
+
}
|
266
|
+
}
|
267
|
+
|
268
|
+
function toggleEditGeometrySession() {
|
269
|
+
if (isGeometryEditing.value) {
|
270
|
+
editorManager.stopEditing();
|
271
|
+
} else {
|
272
|
+
editorManager.startEditSession();
|
273
|
+
}
|
274
|
+
}
|
275
|
+
|
276
|
+
/**
|
277
|
+
* @description Returns the current geometry types and the number of selected features.
|
278
|
+
* @type {import("vue").ComputedRef<{ types: Set<GeometryType>, nFeatures: number }>}
|
279
|
+
*/
|
280
|
+
const currentGeometryTypes = computed(() => ({
|
281
|
+
types: getGeometryTypes(features.value),
|
282
|
+
nFeatures: features.value.length,
|
283
|
+
}));
|
284
|
+
|
285
|
+
function getAllowedModifyActions() {
|
286
|
+
const allowedModes = getAllowedEditorTransformationModes(
|
287
|
+
currentGeometryTypes.value.types,
|
288
|
+
currentGeometryTypes.value.nFeatures,
|
289
|
+
);
|
290
|
+
|
291
|
+
const allowedActions = allowedModes.map((mode) => {
|
292
|
+
return {
|
293
|
+
name: mode,
|
294
|
+
title: `components.editor.${mode}`,
|
295
|
+
icon: EditorTransformationIcons[mode],
|
296
|
+
active: computed(() => currentTransformationMode.value === mode),
|
297
|
+
callback: () => {
|
298
|
+
toggleTransformationSession(mode);
|
299
|
+
},
|
300
|
+
};
|
301
|
+
});
|
302
|
+
|
303
|
+
if (features.value.length === 1) {
|
304
|
+
allowedActions.unshift({
|
305
|
+
name: 'editGeometry',
|
306
|
+
title: `components.editor.edit`,
|
307
|
+
icon: '$vcsEditVertices',
|
308
|
+
active: isGeometryEditing,
|
309
|
+
callback: () => {
|
310
|
+
toggleEditGeometrySession();
|
311
|
+
},
|
312
|
+
});
|
313
|
+
}
|
314
|
+
|
315
|
+
return allowedActions;
|
316
|
+
}
|
317
|
+
|
318
|
+
function getAllowedVectorProperties() {
|
319
|
+
const properties = genericVectorProperties.filter((p) =>
|
320
|
+
props.allowedVectorProperties.includes(p),
|
321
|
+
);
|
322
|
+
const geomTypes = currentGeometryTypes.value.types;
|
323
|
+
|
324
|
+
const hasPoint = geomTypes.has(GeometryType.Point);
|
325
|
+
if (!hasPoint) {
|
326
|
+
nonPointVectorProperties.forEach((p) => {
|
327
|
+
if (props.allowedVectorProperties.includes(p)) {
|
328
|
+
properties.push(p);
|
329
|
+
}
|
330
|
+
});
|
331
|
+
properties.push('classificationType');
|
332
|
+
}
|
333
|
+
|
334
|
+
if (hasPoint && geomTypes.size === 1) {
|
335
|
+
pointVectorProperties.forEach((p) => {
|
336
|
+
if (props.allowedVectorProperties.includes(p)) {
|
337
|
+
properties.push(p);
|
338
|
+
}
|
339
|
+
});
|
340
|
+
}
|
341
|
+
|
342
|
+
return properties;
|
343
|
+
}
|
344
|
+
|
345
|
+
const geometryTypesWatcher = watch(
|
346
|
+
currentGeometryTypes,
|
347
|
+
(curr, prev) => {
|
348
|
+
if (
|
349
|
+
curr.types.size !== prev?.types.size ||
|
350
|
+
![...curr.types].every((value) => prev?.types.has(value)) ||
|
351
|
+
(curr.nFeatures > 1 && prev.nFeatures === 1) ||
|
352
|
+
(prev.nFeatures > 1 && curr.nFeatures === 1)
|
353
|
+
) {
|
354
|
+
availableModifyActions.value = getAllowedModifyActions();
|
355
|
+
availableVectorProperties.value = getAllowedVectorProperties();
|
356
|
+
}
|
357
|
+
},
|
358
|
+
{ immediate: true },
|
359
|
+
);
|
360
|
+
|
361
|
+
const propsWatcher = watch(
|
362
|
+
() => props.allowedVectorProperties,
|
363
|
+
() => {
|
364
|
+
availableVectorProperties.value = getAllowedVectorProperties();
|
365
|
+
},
|
366
|
+
);
|
367
|
+
|
368
|
+
onUnmounted(() => {
|
369
|
+
mapActivatedListener();
|
370
|
+
editModeListener();
|
371
|
+
geometryTypesWatcher();
|
372
|
+
propsWatcher();
|
373
|
+
editorManager.stopEditing();
|
374
|
+
});
|
375
|
+
|
376
|
+
return {
|
377
|
+
featureProperties,
|
378
|
+
session,
|
379
|
+
SessionType,
|
380
|
+
currentTransformationMode,
|
381
|
+
TransformationMode,
|
382
|
+
availableModifyActions,
|
383
|
+
availableVectorProperties,
|
384
|
+
is3D,
|
385
|
+
updateFeatureProperties,
|
386
|
+
defaultVectorProperties: VectorProperties.getDefaultOptions(),
|
387
|
+
};
|
388
|
+
},
|
389
|
+
};
|
390
|
+
</script>
|
391
|
+
|
392
|
+
<style scoped></style>
|
@@ -0,0 +1,87 @@
|
|
1
|
+
/**
|
2
|
+
* Returns the allowed transformation modes for the provided geometry types and number of features. Rotate is e.g. not allowed for a single point but for multiple points.
|
3
|
+
* @param {Set<GeometryType>} geometryTypes A set with all geometry types of the features.
|
4
|
+
* @param {number} nFeatures The number of the features.
|
5
|
+
* @returns {Array<TransformationMode>} The allowed transformation modes.
|
6
|
+
*/
|
7
|
+
export function getAllowedEditorTransformationModes(geometryTypes: Set<GeometryType>, nFeatures: number): Array<TransformationMode>;
|
8
|
+
export namespace EditorTransformationIcons {
|
9
|
+
let translate: string;
|
10
|
+
let rotate: string;
|
11
|
+
let scale: string;
|
12
|
+
let extrude: string;
|
13
|
+
}
|
14
|
+
declare const _default: import("vue").DefineComponent<{
|
15
|
+
allowedVectorProperties: {
|
16
|
+
type: ArrayConstructor;
|
17
|
+
default: () => string[];
|
18
|
+
};
|
19
|
+
expandableVectorProperties: {
|
20
|
+
type: BooleanConstructor;
|
21
|
+
default: boolean;
|
22
|
+
};
|
23
|
+
startOpenVectorProperties: {
|
24
|
+
type: BooleanConstructor;
|
25
|
+
default: boolean;
|
26
|
+
};
|
27
|
+
showResetVectorProperties: {
|
28
|
+
type: BooleanConstructor;
|
29
|
+
default: boolean;
|
30
|
+
};
|
31
|
+
showStyle: {
|
32
|
+
type: BooleanConstructor;
|
33
|
+
default: boolean;
|
34
|
+
};
|
35
|
+
}, {
|
36
|
+
featureProperties: import("vue").Ref<any>;
|
37
|
+
session: import("vue").ShallowRef<import("@vcmap/core").SelectFeaturesSession | import("@vcmap/core").CreateFeatureSession<GeometryType> | undefined>;
|
38
|
+
SessionType: typeof SessionType;
|
39
|
+
currentTransformationMode: import("vue").Ref<any>;
|
40
|
+
TransformationMode: typeof TransformationMode;
|
41
|
+
availableModifyActions: import("vue").Ref<never[]>;
|
42
|
+
availableVectorProperties: import("vue").Ref<never[]>;
|
43
|
+
is3D: import("vue").Ref<boolean>;
|
44
|
+
updateFeatureProperties: (update: import("@vcmap/core").VectorPropertiesOptions) => Promise<void>;
|
45
|
+
defaultVectorProperties: import("@vcmap/core").VectorPropertiesOptions;
|
46
|
+
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
47
|
+
allowedVectorProperties: {
|
48
|
+
type: ArrayConstructor;
|
49
|
+
default: () => string[];
|
50
|
+
};
|
51
|
+
expandableVectorProperties: {
|
52
|
+
type: BooleanConstructor;
|
53
|
+
default: boolean;
|
54
|
+
};
|
55
|
+
startOpenVectorProperties: {
|
56
|
+
type: BooleanConstructor;
|
57
|
+
default: boolean;
|
58
|
+
};
|
59
|
+
showResetVectorProperties: {
|
60
|
+
type: BooleanConstructor;
|
61
|
+
default: boolean;
|
62
|
+
};
|
63
|
+
showStyle: {
|
64
|
+
type: BooleanConstructor;
|
65
|
+
default: boolean;
|
66
|
+
};
|
67
|
+
}>>, {
|
68
|
+
allowedVectorProperties: unknown[];
|
69
|
+
expandableVectorProperties: boolean;
|
70
|
+
startOpenVectorProperties: boolean;
|
71
|
+
showResetVectorProperties: boolean;
|
72
|
+
showStyle: boolean;
|
73
|
+
}>;
|
74
|
+
export default _default;
|
75
|
+
export type EditorManager = {
|
76
|
+
currentLayer: import("vue").ShallowRef<import("@vcmap/core").Layer | undefined>;
|
77
|
+
currentFeatures: import("vue").ShallowRef<import("ol").Feature[]>;
|
78
|
+
currentEditSession: import("vue").ShallowRef<import("@vcmap/core").EditGeometrySession | import("@vcmap/core").EditFeaturesSession | undefined>;
|
79
|
+
currentSession: import("vue").ShallowRef<import("@vcmap/core").SelectFeaturesSession | import("@vcmap/core").CreateFeatureSession<import("@vcmap/core").GeometryType> | undefined>;
|
80
|
+
placeCurrentFeaturesOnTerrain: () => Promise<void>;
|
81
|
+
stopEditing: () => void;
|
82
|
+
startEditSession: (arg0: import("ol").Feature | undefined) => Promise<void> | void;
|
83
|
+
startTransformSession: (arg0: import("@vcmap/core").TransformationMode, arg1: import("ol").Feature[] | undefined) => Promise<void> | void;
|
84
|
+
};
|
85
|
+
import { GeometryType } from '@vcmap/core';
|
86
|
+
import { TransformationMode } from '@vcmap/core';
|
87
|
+
import { SessionType } from '@vcmap/core';
|
@@ -0,0 +1,217 @@
|
|
1
|
+
<template>
|
2
|
+
<v-sheet>
|
3
|
+
<v-container class="pl-0 pr-1 py-1">
|
4
|
+
<v-row
|
5
|
+
no-gutters
|
6
|
+
v-if="transformationMode === TransformationMode.TRANSLATE"
|
7
|
+
>
|
8
|
+
<v-col>
|
9
|
+
<VcsTextField
|
10
|
+
type="number"
|
11
|
+
placeholder="0"
|
12
|
+
prefix="X"
|
13
|
+
v-model.number="xValue"
|
14
|
+
unit="m"
|
15
|
+
@keydown.enter.prevent="translate"
|
16
|
+
/>
|
17
|
+
</v-col>
|
18
|
+
<v-col>
|
19
|
+
<VcsTextField
|
20
|
+
type="number"
|
21
|
+
placeholder="0"
|
22
|
+
prefix="Y"
|
23
|
+
v-model.number="yValue"
|
24
|
+
unit="m"
|
25
|
+
@keydown.enter.prevent="translate"
|
26
|
+
/>
|
27
|
+
</v-col>
|
28
|
+
<v-col>
|
29
|
+
<VcsTextField
|
30
|
+
type="number"
|
31
|
+
placeholder="0"
|
32
|
+
prefix="Z"
|
33
|
+
v-model.number="zValue"
|
34
|
+
unit="m"
|
35
|
+
:disabled="
|
36
|
+
!allowZInput || featureProperties.altitudeMode !== 'absolute'
|
37
|
+
"
|
38
|
+
@keydown.enter.prevent="translate"
|
39
|
+
/>
|
40
|
+
</v-col>
|
41
|
+
<v-col class="d-flex justify-end align-center">
|
42
|
+
<VcsButton @click="translate">
|
43
|
+
<v-icon>mdi-check</v-icon>
|
44
|
+
</VcsButton>
|
45
|
+
</v-col>
|
46
|
+
<v-col cols="1" class="d-flex justify-end align-center">
|
47
|
+
<VcsButton
|
48
|
+
@click="placeOnTerrain"
|
49
|
+
tooltip="components.editor.placeOnTerrain"
|
50
|
+
:disabled="
|
51
|
+
!allowZInput || featureProperties.altitudeMode !== 'absolute'
|
52
|
+
"
|
53
|
+
>
|
54
|
+
<v-icon>$vcsGround</v-icon>
|
55
|
+
</VcsButton>
|
56
|
+
</v-col>
|
57
|
+
</v-row>
|
58
|
+
<v-row no-gutters v-if="transformationMode === TransformationMode.ROTATE">
|
59
|
+
<v-col cols="3">
|
60
|
+
<VcsTextField
|
61
|
+
type="number"
|
62
|
+
v-model.number="xValue"
|
63
|
+
placeholder="0"
|
64
|
+
unit="°"
|
65
|
+
@keydown.enter.prevent="rotate"
|
66
|
+
/>
|
67
|
+
</v-col>
|
68
|
+
<v-col class="d-flex justify-end align-center">
|
69
|
+
<VcsButton @click="rotate">
|
70
|
+
<v-icon>mdi-check</v-icon>
|
71
|
+
</VcsButton>
|
72
|
+
</v-col>
|
73
|
+
<v-col cols="1" class="d-flex justify-end align-center">
|
74
|
+
<VcsButton @click="ccw" tooltip="components.editor.ccw">
|
75
|
+
<v-icon>$vcsRotateLeft</v-icon>
|
76
|
+
</VcsButton>
|
77
|
+
</v-col>
|
78
|
+
<v-col cols="1" class="d-flex justify-end align-center">
|
79
|
+
<VcsButton @click="cw" tooltip="components.editor.cw">
|
80
|
+
<v-icon>$vcsRotateRight</v-icon>
|
81
|
+
</VcsButton>
|
82
|
+
</v-col>
|
83
|
+
</v-row>
|
84
|
+
<v-row no-gutters v-if="transformationMode === TransformationMode.SCALE">
|
85
|
+
<v-col cols="3">
|
86
|
+
<VcsTextField
|
87
|
+
prefix="X"
|
88
|
+
v-model.number="xValue"
|
89
|
+
placeholder="1"
|
90
|
+
@keydown.enter.prevent="scale"
|
91
|
+
/>
|
92
|
+
</v-col>
|
93
|
+
<v-col cols="3">
|
94
|
+
<VcsTextField
|
95
|
+
prefix="Y"
|
96
|
+
v-model.number="yValue"
|
97
|
+
placeholder="1"
|
98
|
+
@keydown.enter.prevent="scale"
|
99
|
+
/>
|
100
|
+
</v-col>
|
101
|
+
<v-col class="d-flex justify-end align-center">
|
102
|
+
<VcsButton @click="scale">
|
103
|
+
<v-icon>mdi-check</v-icon>
|
104
|
+
</VcsButton>
|
105
|
+
</v-col>
|
106
|
+
</v-row>
|
107
|
+
</v-container>
|
108
|
+
</v-sheet>
|
109
|
+
</template>
|
110
|
+
|
111
|
+
<script>
|
112
|
+
import { Math as CesiumMath } from '@vcmap-cesium/engine';
|
113
|
+
import { TransformationMode } from '@vcmap/core';
|
114
|
+
import { VSheet, VContainer, VRow, VCol, VIcon } from 'vuetify/lib';
|
115
|
+
import { inject, ref, watch } from 'vue';
|
116
|
+
import VcsButton from '../buttons/VcsButton.vue';
|
117
|
+
import VcsTextField from '../form-inputs-controls/VcsTextField.vue';
|
118
|
+
|
119
|
+
/**
|
120
|
+
* A component to handle transforms applied to features of an editor manager. Must have a manager provided.
|
121
|
+
* @vue-prop {string} transformationMode
|
122
|
+
* @vue-prop {import("@vcmap/core").VectorPropertiesOptions} featureProperties,
|
123
|
+
* @vue-prop {boolean} [allowZInput=false]
|
124
|
+
*/
|
125
|
+
export default {
|
126
|
+
components: {
|
127
|
+
VcsButton,
|
128
|
+
VSheet,
|
129
|
+
VContainer,
|
130
|
+
VRow,
|
131
|
+
VCol,
|
132
|
+
VIcon,
|
133
|
+
VcsTextField,
|
134
|
+
},
|
135
|
+
props: {
|
136
|
+
transformationMode: {
|
137
|
+
type: String,
|
138
|
+
required: true,
|
139
|
+
},
|
140
|
+
featureProperties: {
|
141
|
+
type: Object,
|
142
|
+
required: true,
|
143
|
+
},
|
144
|
+
allowZInput: {
|
145
|
+
type: Boolean,
|
146
|
+
default: false,
|
147
|
+
},
|
148
|
+
},
|
149
|
+
name: 'VcsFeatureTransforms',
|
150
|
+
setup(props) {
|
151
|
+
/** @type {import("./VcsFeatureEditingWindow.vue").EditorManager} */
|
152
|
+
const manager = inject('manager');
|
153
|
+
|
154
|
+
const showTranslate = ref(false);
|
155
|
+
const showRotate = ref(false);
|
156
|
+
const showScale = ref(false);
|
157
|
+
const xValue = ref(null);
|
158
|
+
const yValue = ref(null);
|
159
|
+
const zValue = ref(null);
|
160
|
+
|
161
|
+
function resetInputs() {
|
162
|
+
xValue.value = null;
|
163
|
+
yValue.value = null;
|
164
|
+
zValue.value = null;
|
165
|
+
}
|
166
|
+
|
167
|
+
watch(
|
168
|
+
() => props.transformationMode,
|
169
|
+
() => {
|
170
|
+
resetInputs();
|
171
|
+
},
|
172
|
+
);
|
173
|
+
|
174
|
+
return {
|
175
|
+
showTranslate,
|
176
|
+
showRotate,
|
177
|
+
showScale,
|
178
|
+
TransformationMode,
|
179
|
+
xValue,
|
180
|
+
yValue,
|
181
|
+
zValue,
|
182
|
+
async translate() {
|
183
|
+
manager.currentEditSession.value.translate(
|
184
|
+
xValue.value ?? 0,
|
185
|
+
yValue.value ?? 0,
|
186
|
+
zValue.value ?? 0,
|
187
|
+
);
|
188
|
+
resetInputs();
|
189
|
+
},
|
190
|
+
async rotate() {
|
191
|
+
manager.currentEditSession.value.rotate(
|
192
|
+
CesiumMath.toRadians(xValue.value ?? 0),
|
193
|
+
);
|
194
|
+
xValue.value = null;
|
195
|
+
},
|
196
|
+
async cw() {
|
197
|
+
manager.currentEditSession.value.rotate(-CesiumMath.PI_OVER_TWO);
|
198
|
+
},
|
199
|
+
async ccw() {
|
200
|
+
manager.currentEditSession.value.rotate(CesiumMath.PI_OVER_TWO);
|
201
|
+
},
|
202
|
+
async scale() {
|
203
|
+
manager.currentEditSession.value.scale(
|
204
|
+
xValue.value ?? 1,
|
205
|
+
yValue.value ?? 1,
|
206
|
+
);
|
207
|
+
resetInputs();
|
208
|
+
},
|
209
|
+
placeOnTerrain() {
|
210
|
+
manager.placeCurrentFeaturesOnTerrain();
|
211
|
+
},
|
212
|
+
};
|
213
|
+
},
|
214
|
+
};
|
215
|
+
</script>
|
216
|
+
|
217
|
+
<style scoped></style>
|