@vcmap/ui 5.0.2 → 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 +22 -0
- package/config/dev.config.json +176 -5
- package/config/www.config.json +24 -0
- package/dist/assets/{cesium.a3a1dc.js → cesium.e9b3ca.js} +1859 -1828
- package/dist/assets/cesium.js +1 -1
- package/dist/assets/{core.bb64ed.js → core.a9fe5a.js} +5859 -5041
- package/dist/assets/core.js +1 -1
- package/dist/assets/index-bb2549d6.js +1 -0
- package/dist/assets/{ol.833fa9.js → ol.5f0496.js} +7257 -7252
- package/dist/assets/ol.js +1 -1
- package/dist/assets/{ui.aeb2ec.css → ui.3c73c2.css} +2 -2
- package/dist/assets/{ui.aeb2ec.js → ui.3c73c2.js} +14199 -9198
- package/dist/assets/ui.js +1 -1
- package/dist/assets/{vue.8e1850.js → vue.4fe14e.js} +1243 -1234
- package/dist/assets/vue.js +2 -2
- package/dist/assets/{vuetify.3ed426.css → vuetify.260d9a.css} +1 -1
- package/dist/assets/{vuetify.3ed426.js → vuetify.260d9a.js} +155 -154
- package/dist/assets/vuetify.js +2 -2
- package/dist/index.html +1 -1
- package/index.d.ts +256 -0
- package/index.js +48 -11
- package/package.json +21 -14
- 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 +36 -19
- 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 -42
- package/src/manager/collectionManager/CollectionComponent.vue.d.ts +17 -0
- package/src/manager/collectionManager/CollectionComponentList.vue +53 -18
- 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 +58 -54
- 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-661636d9.js +0 -1
- package/plugins/@vcmap-show-case/window-tester/src/toolboxData.js +0 -288
@@ -0,0 +1,389 @@
|
|
1
|
+
<template>
|
2
|
+
<VcsVectorStyleComponent
|
3
|
+
:value="styleOptions"
|
4
|
+
@update:fill="updateFill"
|
5
|
+
@update:stroke="updateStroke"
|
6
|
+
@update:image="updateImage"
|
7
|
+
@update:text="updateText"
|
8
|
+
:style-components="styleComponents"
|
9
|
+
:value-default="valueDefault"
|
10
|
+
/>
|
11
|
+
</template>
|
12
|
+
|
13
|
+
<script>
|
14
|
+
import {
|
15
|
+
GeometryType,
|
16
|
+
highlighted,
|
17
|
+
originalStyle,
|
18
|
+
parseColor,
|
19
|
+
getDefaultVectorStyleItemOptions,
|
20
|
+
getImageStyleOptions,
|
21
|
+
getTextOptions,
|
22
|
+
getImageStyleFromOptions,
|
23
|
+
getTextFromOptions,
|
24
|
+
vectorStyleSymbol,
|
25
|
+
VectorStyleItem,
|
26
|
+
getStyleOptions,
|
27
|
+
} from '@vcmap/core';
|
28
|
+
import { Fill, Stroke } from 'ol/style.js';
|
29
|
+
import { inject, onUnmounted, ref, watch } from 'vue';
|
30
|
+
import VcsVectorStyleComponent, {
|
31
|
+
VectorStyleMenus,
|
32
|
+
} from './VcsVectorStyleComponent.vue';
|
33
|
+
|
34
|
+
/**
|
35
|
+
* @typedef {Object} StyleOptions
|
36
|
+
* @property {import("ol/style/Fill").Options|null|undefined} [fill]
|
37
|
+
* @property {import("ol/style/Stroke").Options|null|undefined} [stroke]
|
38
|
+
* @property {import("ol/style/Image").Options|null|undefined} [image]
|
39
|
+
* @property {import("ol/style/Text").Options|null|undefined} [text]
|
40
|
+
*/
|
41
|
+
|
42
|
+
/**
|
43
|
+
* Determines the style that is applied to a feature, either from the layer or directly set on the feature. Does not return the highlight style.
|
44
|
+
* @param {import("ol").Feature} feature The feature for which the style should be determined
|
45
|
+
* @param {import("@vcmap/core").VectorLayer} layer The features layer.
|
46
|
+
* @returns {import("ol/style").Style} Either a reference to the features style or a clone of the layers style.
|
47
|
+
*/
|
48
|
+
function getFeatureStyle(feature, layer) {
|
49
|
+
const layerStyle = layer.style.style.clone();
|
50
|
+
let featureStyle;
|
51
|
+
if (feature[highlighted]) {
|
52
|
+
featureStyle = feature[originalStyle];
|
53
|
+
} else {
|
54
|
+
featureStyle = feature.getStyle();
|
55
|
+
}
|
56
|
+
return featureStyle || layerStyle;
|
57
|
+
}
|
58
|
+
|
59
|
+
/**
|
60
|
+
* Sets the style for a highlighted feature
|
61
|
+
* @param {import("ol").Feature} feature The feature to set the style on
|
62
|
+
* @param {import("ol/style").Style} style The style
|
63
|
+
*/
|
64
|
+
function setFeatureStyle(feature, style) {
|
65
|
+
feature.setStyle(style);
|
66
|
+
feature[originalStyle] = style;
|
67
|
+
const styleOptions = getStyleOptions(style);
|
68
|
+
if (styleOptions.text?.text) {
|
69
|
+
styleOptions.label = styleOptions.text.text;
|
70
|
+
}
|
71
|
+
feature[vectorStyleSymbol] = new VectorStyleItem(styleOptions);
|
72
|
+
}
|
73
|
+
|
74
|
+
/**
|
75
|
+
* @param {import("ol").Feature} feature
|
76
|
+
* @param {import("@vcmap/core").VectorPropertiesOptions} featureProperties
|
77
|
+
* @returns {Array<VectorStyleMenus>}
|
78
|
+
*/
|
79
|
+
function getStyleComponentsForFeature(feature, featureProperties) {
|
80
|
+
const type = feature.getGeometry()?.getType?.();
|
81
|
+
const components = [];
|
82
|
+
|
83
|
+
if (type === GeometryType.Point) {
|
84
|
+
components.push(VectorStyleMenus.IMAGE);
|
85
|
+
components.push(VectorStyleMenus.TEXT);
|
86
|
+
if (featureProperties.extrudedHeight) {
|
87
|
+
components.push(VectorStyleMenus.STROKE);
|
88
|
+
}
|
89
|
+
} else if (type === GeometryType.LineString) {
|
90
|
+
components.push(VectorStyleMenus.STROKE);
|
91
|
+
if (featureProperties.extrudedHeight) {
|
92
|
+
components.push(VectorStyleMenus.FILL);
|
93
|
+
}
|
94
|
+
} else if (type === GeometryType.Polygon || type === GeometryType.Circle) {
|
95
|
+
components.push(VectorStyleMenus.STROKE, VectorStyleMenus.FILL);
|
96
|
+
}
|
97
|
+
|
98
|
+
return components;
|
99
|
+
}
|
100
|
+
|
101
|
+
/**
|
102
|
+
* @param {Array<import("ol").Feature>} features
|
103
|
+
* @param {import("@vcmap/core").VectorPropertiesOptions} featureProperties
|
104
|
+
* @returns {Array<VectorStyleMenus>}
|
105
|
+
*/
|
106
|
+
function getComponentsForFeatures(features, featureProperties) {
|
107
|
+
const components = features
|
108
|
+
.map((feature) =>
|
109
|
+
getStyleComponentsForFeature(feature, featureProperties),
|
110
|
+
)
|
111
|
+
.filter((c) => c.length > 0);
|
112
|
+
|
113
|
+
if (components.length === 0) {
|
114
|
+
return [];
|
115
|
+
}
|
116
|
+
|
117
|
+
return (
|
118
|
+
Object.values(VectorStyleMenus)
|
119
|
+
// only add those style components, that are shared by all features
|
120
|
+
.filter((id) =>
|
121
|
+
components.every((c) => c.length === 0 || c.includes(id)),
|
122
|
+
)
|
123
|
+
);
|
124
|
+
}
|
125
|
+
|
126
|
+
/**
|
127
|
+
* @param {import("ol/color").Color} c1
|
128
|
+
* @param {import("ol/color").Color} c2
|
129
|
+
* @returns {boolean}
|
130
|
+
*/
|
131
|
+
function olColorEqual(c1, c2) {
|
132
|
+
return (
|
133
|
+
c1[0] === c2[0] && c1[1] === c2[1] && c1[2] === c2[2] && c1[3] === c2[3]
|
134
|
+
);
|
135
|
+
}
|
136
|
+
|
137
|
+
function isSameStyle(shape1, shape2) {
|
138
|
+
return JSON.stringify(shape1) === JSON.stringify(shape2);
|
139
|
+
}
|
140
|
+
|
141
|
+
/**
|
142
|
+
* @param {Array<import("ol/style/Style").default>} styles - Style for each feature
|
143
|
+
* @param {VectorStyleMenus} componentId
|
144
|
+
* @param {StyleOptions} styleOptions
|
145
|
+
*/
|
146
|
+
function setStyleOptions(styles, componentId, styleOptions) {
|
147
|
+
if (componentId === VectorStyleMenus.FILL) {
|
148
|
+
// checks if there is a fill style and that all fill styles are equal. Otherwise return null.
|
149
|
+
styleOptions.fill = styles.reduce((prev, style) => {
|
150
|
+
if (prev === null) {
|
151
|
+
return null;
|
152
|
+
}
|
153
|
+
const currentColor = style?.getFill()?.getColor();
|
154
|
+
if (!currentColor) {
|
155
|
+
return null;
|
156
|
+
}
|
157
|
+
const parsedColor = parseColor(currentColor);
|
158
|
+
if (prev === undefined) {
|
159
|
+
return { color: parsedColor };
|
160
|
+
}
|
161
|
+
return olColorEqual(parsedColor, prev.color)
|
162
|
+
? { color: parsedColor }
|
163
|
+
: null;
|
164
|
+
}, undefined);
|
165
|
+
} else if (componentId === VectorStyleMenus.STROKE) {
|
166
|
+
// checks if there is a stroke style and that all stoke styles are equal. Otherwise return null.
|
167
|
+
styleOptions.stroke = styles.reduce((prev, style) => {
|
168
|
+
if (prev === null) {
|
169
|
+
return null;
|
170
|
+
}
|
171
|
+
|
172
|
+
const currentColor = style?.getStroke()?.getColor();
|
173
|
+
if (!currentColor) {
|
174
|
+
return null;
|
175
|
+
}
|
176
|
+
const parsedColor = parseColor(currentColor);
|
177
|
+
if (prev && !olColorEqual(parsedColor, prev.color)) {
|
178
|
+
return null;
|
179
|
+
}
|
180
|
+
const width = style?.getStroke()?.getWidth();
|
181
|
+
if (prev && prev.width !== width) {
|
182
|
+
return null;
|
183
|
+
}
|
184
|
+
|
185
|
+
return {
|
186
|
+
color: parsedColor,
|
187
|
+
width,
|
188
|
+
};
|
189
|
+
}, undefined);
|
190
|
+
} else if (componentId === VectorStyleMenus.IMAGE) {
|
191
|
+
styleOptions.image = styles.reduce((prev, style) => {
|
192
|
+
if (prev === null) {
|
193
|
+
return null;
|
194
|
+
}
|
195
|
+
let current;
|
196
|
+
|
197
|
+
if (style.getImage()) {
|
198
|
+
current = getImageStyleOptions(style.getImage());
|
199
|
+
}
|
200
|
+
|
201
|
+
if (!current || (prev && !isSameStyle(prev, current))) {
|
202
|
+
return null;
|
203
|
+
}
|
204
|
+
return current;
|
205
|
+
}, undefined);
|
206
|
+
} else if (componentId === VectorStyleMenus.TEXT) {
|
207
|
+
styleOptions.text = styles.reduce((prev, style) => {
|
208
|
+
if (prev === null) {
|
209
|
+
return null;
|
210
|
+
}
|
211
|
+
let current;
|
212
|
+
|
213
|
+
if (style.getText()) {
|
214
|
+
current = getTextOptions(style.getText());
|
215
|
+
}
|
216
|
+
|
217
|
+
if (!current || !current.text) {
|
218
|
+
return null;
|
219
|
+
} else if (prev && !isSameStyle(prev, current)) {
|
220
|
+
return null;
|
221
|
+
}
|
222
|
+
return current;
|
223
|
+
}, undefined);
|
224
|
+
}
|
225
|
+
}
|
226
|
+
|
227
|
+
/**
|
228
|
+
* A style component to render the style options of an editor managers features. Must have a manager provided.
|
229
|
+
* @vue-prop {import("@vcmap/core").VectorPropertiesOptions} featureProperties - JSON representation of a vector properties object.
|
230
|
+
*/
|
231
|
+
export default {
|
232
|
+
name: 'VcsFeatureStyleComponent',
|
233
|
+
components: {
|
234
|
+
VcsVectorStyleComponent,
|
235
|
+
},
|
236
|
+
props: {
|
237
|
+
featureProperties: {
|
238
|
+
type: Object,
|
239
|
+
required: true,
|
240
|
+
},
|
241
|
+
},
|
242
|
+
setup(props) {
|
243
|
+
/** @type {import("../vector-properties/VcsFeatureEditingWindow.vue").EditorManager} */
|
244
|
+
const manager = inject('manager');
|
245
|
+
|
246
|
+
const styleComponents = ref([]);
|
247
|
+
const styleOptions = ref({
|
248
|
+
fill: undefined,
|
249
|
+
stroke: undefined,
|
250
|
+
image: undefined,
|
251
|
+
text: undefined,
|
252
|
+
});
|
253
|
+
|
254
|
+
const setComponents = () => {
|
255
|
+
styleOptions.value = {
|
256
|
+
fill: undefined,
|
257
|
+
stroke: undefined,
|
258
|
+
image: undefined,
|
259
|
+
text: undefined,
|
260
|
+
};
|
261
|
+
if (
|
262
|
+
manager.currentFeatures.value.length > 0 &&
|
263
|
+
manager.currentLayer.value
|
264
|
+
) {
|
265
|
+
styleComponents.value = getComponentsForFeatures(
|
266
|
+
manager.currentFeatures.value,
|
267
|
+
props.featureProperties,
|
268
|
+
);
|
269
|
+
if (styleComponents.value.length > 0) {
|
270
|
+
const styles = manager.currentFeatures.value.map((feature) => {
|
271
|
+
const layerStyle = manager.currentLayer.value.style.style.clone();
|
272
|
+
let featureStyle;
|
273
|
+
// not using f.getStyle because this would return the highlighted style (since its already highlighted).
|
274
|
+
if (feature[highlighted]) {
|
275
|
+
featureStyle = feature[originalStyle] ?? layerStyle;
|
276
|
+
} else {
|
277
|
+
featureStyle = feature.getStyle() ?? layerStyle;
|
278
|
+
}
|
279
|
+
return featureStyle;
|
280
|
+
});
|
281
|
+
styleComponents.value.forEach((componentId) => {
|
282
|
+
setStyleOptions(styles, componentId, styleOptions.value);
|
283
|
+
});
|
284
|
+
}
|
285
|
+
} else {
|
286
|
+
styleComponents.value = [];
|
287
|
+
}
|
288
|
+
};
|
289
|
+
|
290
|
+
let layerListeners = () => {};
|
291
|
+
const setupLayer = () => {
|
292
|
+
layerListeners();
|
293
|
+
if (manager.currentLayer.value) {
|
294
|
+
const vectorPropertiesListener =
|
295
|
+
manager.currentLayer.value.vectorProperties.propertyChanged.addEventListener(
|
296
|
+
setComponents,
|
297
|
+
);
|
298
|
+
const styleListener =
|
299
|
+
manager.currentLayer.value.styleChanged.addEventListener(
|
300
|
+
setComponents,
|
301
|
+
);
|
302
|
+
setComponents();
|
303
|
+
layerListeners = () => {
|
304
|
+
vectorPropertiesListener();
|
305
|
+
styleListener();
|
306
|
+
};
|
307
|
+
}
|
308
|
+
};
|
309
|
+
const featuresWatcher = watch(manager.currentFeatures, setComponents);
|
310
|
+
const parametersWatcher = watch(
|
311
|
+
() => props.featureProperties.extrudedHeight,
|
312
|
+
(curr, prev) => {
|
313
|
+
// only if extruded height is either added or removed from point or linestring, since this adds/reomves stroke and fill style components respectively.
|
314
|
+
if (
|
315
|
+
!!prev !== !!curr &&
|
316
|
+
manager.currentFeatures.value.some((f) => {
|
317
|
+
const type = f.getGeometry()?.getType();
|
318
|
+
return (
|
319
|
+
type === GeometryType.Point || type === GeometryType.LineString
|
320
|
+
);
|
321
|
+
})
|
322
|
+
) {
|
323
|
+
setComponents();
|
324
|
+
}
|
325
|
+
},
|
326
|
+
);
|
327
|
+
setupLayer();
|
328
|
+
|
329
|
+
onUnmounted(() => {
|
330
|
+
featuresWatcher();
|
331
|
+
layerListeners();
|
332
|
+
parametersWatcher();
|
333
|
+
});
|
334
|
+
|
335
|
+
const valueDefault = getDefaultVectorStyleItemOptions();
|
336
|
+
valueDefault.text.fill = { color: [0, 0, 0, 1] };
|
337
|
+
valueDefault.text.stroke = { color: [255, 255, 255, 1], width: 1 };
|
338
|
+
valueDefault.text.font = 'bold 18px Arial, Helvetica, sans-serif';
|
339
|
+
|
340
|
+
return {
|
341
|
+
styleComponents,
|
342
|
+
styleOptions,
|
343
|
+
valueDefault,
|
344
|
+
updateFill(update) {
|
345
|
+
styleOptions.value.fill = update;
|
346
|
+
manager.currentFeatures.value.forEach((feature) => {
|
347
|
+
const style = getFeatureStyle(feature, manager.currentLayer.value);
|
348
|
+
style.setFill(update ? new Fill(update) : null);
|
349
|
+
setFeatureStyle(feature, style);
|
350
|
+
});
|
351
|
+
},
|
352
|
+
updateStroke(update) {
|
353
|
+
styleOptions.value.stroke = update;
|
354
|
+
manager.currentFeatures.value.forEach((feature) => {
|
355
|
+
const style = getFeatureStyle(feature, manager.currentLayer.value);
|
356
|
+
style.setStroke(update ? new Stroke(update) : null);
|
357
|
+
setFeatureStyle(feature, style);
|
358
|
+
});
|
359
|
+
},
|
360
|
+
updateText(update) {
|
361
|
+
styleOptions.value.text = update;
|
362
|
+
manager.currentFeatures.value.forEach((feature) => {
|
363
|
+
const style = getFeatureStyle(feature, manager.currentLayer.value);
|
364
|
+
let newText;
|
365
|
+
if (update) {
|
366
|
+
newText = getTextFromOptions(update);
|
367
|
+
}
|
368
|
+
style.setText(newText || null);
|
369
|
+
setFeatureStyle(feature, style);
|
370
|
+
});
|
371
|
+
},
|
372
|
+
updateImage(update) {
|
373
|
+
styleOptions.value.image = update;
|
374
|
+
manager.currentFeatures.value.forEach((feature) => {
|
375
|
+
const style = getFeatureStyle(feature, manager.currentLayer.value);
|
376
|
+
let newImage;
|
377
|
+
if (update) {
|
378
|
+
newImage = getImageStyleFromOptions(update);
|
379
|
+
}
|
380
|
+
style.setImage(newImage || null);
|
381
|
+
setFeatureStyle(feature, style);
|
382
|
+
});
|
383
|
+
},
|
384
|
+
};
|
385
|
+
},
|
386
|
+
};
|
387
|
+
</script>
|
388
|
+
|
389
|
+
<style scoped></style>
|
@@ -0,0 +1,31 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
2
|
+
featureProperties: {
|
3
|
+
type: ObjectConstructor;
|
4
|
+
required: true;
|
5
|
+
};
|
6
|
+
}, {
|
7
|
+
styleComponents: import("vue").Ref<never[]>;
|
8
|
+
styleOptions: import("vue").Ref<{
|
9
|
+
fill: undefined;
|
10
|
+
stroke: undefined;
|
11
|
+
image: undefined;
|
12
|
+
text: undefined;
|
13
|
+
}>;
|
14
|
+
valueDefault: import("@vcmap/core").VectorStyleItemOptions;
|
15
|
+
updateFill(update: any): void;
|
16
|
+
updateStroke(update: any): void;
|
17
|
+
updateText(update: any): void;
|
18
|
+
updateImage(update: any): void;
|
19
|
+
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
20
|
+
featureProperties: {
|
21
|
+
type: ObjectConstructor;
|
22
|
+
required: true;
|
23
|
+
};
|
24
|
+
}>>, {}>;
|
25
|
+
export default _default;
|
26
|
+
export type StyleOptions = {
|
27
|
+
fill?: any | null | undefined;
|
28
|
+
stroke?: any | null | undefined;
|
29
|
+
image?: any | null | undefined;
|
30
|
+
text?: any | null | undefined;
|
31
|
+
};
|
@@ -0,0 +1,34 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
2
|
+
value: {
|
3
|
+
type: ObjectConstructor;
|
4
|
+
default: undefined;
|
5
|
+
};
|
6
|
+
valueDefault: {
|
7
|
+
type: ObjectConstructor;
|
8
|
+
default: undefined;
|
9
|
+
};
|
10
|
+
disabled: {
|
11
|
+
type: BooleanConstructor;
|
12
|
+
default: boolean;
|
13
|
+
};
|
14
|
+
}, {
|
15
|
+
rgbaString: import("vue").ComputedRef<string>;
|
16
|
+
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
17
|
+
value: {
|
18
|
+
type: ObjectConstructor;
|
19
|
+
default: undefined;
|
20
|
+
};
|
21
|
+
valueDefault: {
|
22
|
+
type: ObjectConstructor;
|
23
|
+
default: undefined;
|
24
|
+
};
|
25
|
+
disabled: {
|
26
|
+
type: BooleanConstructor;
|
27
|
+
default: boolean;
|
28
|
+
};
|
29
|
+
}>>, {
|
30
|
+
value: Record<string, any>;
|
31
|
+
disabled: boolean;
|
32
|
+
valueDefault: Record<string, any>;
|
33
|
+
}>;
|
34
|
+
export default _default;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
2
|
+
value: {
|
3
|
+
type: ObjectConstructor;
|
4
|
+
default: undefined;
|
5
|
+
};
|
6
|
+
}, {
|
7
|
+
rgbaObject: import("vue").ComputedRef<{
|
8
|
+
r: number;
|
9
|
+
g: number;
|
10
|
+
b: number;
|
11
|
+
a: number;
|
12
|
+
}>;
|
13
|
+
updateColor(rgba: any): void;
|
14
|
+
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
15
|
+
value: {
|
16
|
+
type: ObjectConstructor;
|
17
|
+
default: undefined;
|
18
|
+
};
|
19
|
+
}>>, {
|
20
|
+
value: Record<string, any>;
|
21
|
+
}>;
|
22
|
+
export default _default;
|
@@ -0,0 +1,43 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
2
|
+
value: {
|
3
|
+
type: ObjectConstructor;
|
4
|
+
default: undefined;
|
5
|
+
};
|
6
|
+
valueDefault: {
|
7
|
+
type: ObjectConstructor;
|
8
|
+
default: undefined;
|
9
|
+
};
|
10
|
+
iconOptions: {
|
11
|
+
type: ArrayConstructor;
|
12
|
+
default: undefined;
|
13
|
+
};
|
14
|
+
extendedShapeSettings: {
|
15
|
+
type: BooleanConstructor;
|
16
|
+
default: boolean;
|
17
|
+
};
|
18
|
+
}, {
|
19
|
+
canvas: import("vue").Ref<null>;
|
20
|
+
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
21
|
+
value: {
|
22
|
+
type: ObjectConstructor;
|
23
|
+
default: undefined;
|
24
|
+
};
|
25
|
+
valueDefault: {
|
26
|
+
type: ObjectConstructor;
|
27
|
+
default: undefined;
|
28
|
+
};
|
29
|
+
iconOptions: {
|
30
|
+
type: ArrayConstructor;
|
31
|
+
default: undefined;
|
32
|
+
};
|
33
|
+
extendedShapeSettings: {
|
34
|
+
type: BooleanConstructor;
|
35
|
+
default: boolean;
|
36
|
+
};
|
37
|
+
}>>, {
|
38
|
+
value: Record<string, any>;
|
39
|
+
valueDefault: Record<string, any>;
|
40
|
+
extendedShapeSettings: boolean;
|
41
|
+
iconOptions: unknown[];
|
42
|
+
}>;
|
43
|
+
export default _default;
|
@@ -0,0 +1,128 @@
|
|
1
|
+
/**
|
2
|
+
* Draws an image style on a canvas.
|
3
|
+
* @param {HTMLCanvasElement} canvas The canvas to draw on
|
4
|
+
* @param {import("ol/style/Image").Options} imageOptions The JSON options of the image style.
|
5
|
+
* @param {boolean} fitToCanvas If the circle, shape or icon should be fitted into the canvas or if it should be draw with it's actual size.
|
6
|
+
*/
|
7
|
+
export function drawImageStyle(canvas: HTMLCanvasElement, imageOptions: any, fitToCanvas?: boolean): Promise<void>;
|
8
|
+
/**
|
9
|
+
* *
|
10
|
+
*/
|
11
|
+
export type ImageType = string;
|
12
|
+
export namespace ImageType {
|
13
|
+
let SHAPE: string;
|
14
|
+
let ICON: string;
|
15
|
+
}
|
16
|
+
/** Presets for different shapes with a matching mdi icon as src. */
|
17
|
+
export const defaultShapes: ({
|
18
|
+
src: string;
|
19
|
+
value: {
|
20
|
+
radius: number;
|
21
|
+
points?: undefined;
|
22
|
+
angle?: undefined;
|
23
|
+
radius2?: undefined;
|
24
|
+
scale?: undefined;
|
25
|
+
};
|
26
|
+
} | {
|
27
|
+
src: string;
|
28
|
+
value: {
|
29
|
+
points: number;
|
30
|
+
radius: number;
|
31
|
+
angle: number;
|
32
|
+
radius2?: undefined;
|
33
|
+
scale?: undefined;
|
34
|
+
};
|
35
|
+
} | {
|
36
|
+
src: string;
|
37
|
+
value: {
|
38
|
+
radius: number;
|
39
|
+
radius2: number;
|
40
|
+
points: number;
|
41
|
+
angle: number;
|
42
|
+
scale: number[];
|
43
|
+
};
|
44
|
+
} | {
|
45
|
+
src: string;
|
46
|
+
value: {
|
47
|
+
points: number;
|
48
|
+
radius: number;
|
49
|
+
radius2: number;
|
50
|
+
angle: number;
|
51
|
+
scale?: undefined;
|
52
|
+
};
|
53
|
+
})[];
|
54
|
+
export const defaultIcons: {
|
55
|
+
src: string;
|
56
|
+
anchor: number[];
|
57
|
+
}[];
|
58
|
+
declare const _default: import("vue").DefineComponent<{
|
59
|
+
value: {
|
60
|
+
type: ObjectConstructor;
|
61
|
+
default: undefined;
|
62
|
+
};
|
63
|
+
valueDefault: {
|
64
|
+
type: ObjectConstructor;
|
65
|
+
default: undefined;
|
66
|
+
};
|
67
|
+
extendedShapeSettings: {
|
68
|
+
type: BooleanConstructor;
|
69
|
+
default: boolean;
|
70
|
+
};
|
71
|
+
iconOptions: {
|
72
|
+
type: ArrayConstructor;
|
73
|
+
default: () => {
|
74
|
+
src: string;
|
75
|
+
anchor: number[];
|
76
|
+
}[];
|
77
|
+
};
|
78
|
+
}, {
|
79
|
+
ImageType: {
|
80
|
+
SHAPE: string;
|
81
|
+
ICON: string;
|
82
|
+
};
|
83
|
+
selectedType: import("vue").ComputedRef<string>;
|
84
|
+
currentType: import("vue").ComputedRef<string | undefined>;
|
85
|
+
selectedImage: import("vue").WritableComputedRef<any>;
|
86
|
+
canvas: import("vue").Ref<any>;
|
87
|
+
shapeSingleValueInputs: import("vue").ComputedRef<{
|
88
|
+
text: string;
|
89
|
+
value: import("vue").WritableComputedRef<any>;
|
90
|
+
unit: string;
|
91
|
+
range: number[];
|
92
|
+
step: any;
|
93
|
+
}[]>;
|
94
|
+
selectedScale: import("vue").WritableComputedRef<any>;
|
95
|
+
selectedOpacity: import("vue").WritableComputedRef<any>;
|
96
|
+
selectedFill: import("vue").WritableComputedRef<any>;
|
97
|
+
selectedStroke: import("vue").WritableComputedRef<any>;
|
98
|
+
between: typeof between;
|
99
|
+
currentItems: import("vue").ComputedRef<any>;
|
100
|
+
selectedImageTypeTab: import("vue").Ref<number>;
|
101
|
+
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
102
|
+
value: {
|
103
|
+
type: ObjectConstructor;
|
104
|
+
default: undefined;
|
105
|
+
};
|
106
|
+
valueDefault: {
|
107
|
+
type: ObjectConstructor;
|
108
|
+
default: undefined;
|
109
|
+
};
|
110
|
+
extendedShapeSettings: {
|
111
|
+
type: BooleanConstructor;
|
112
|
+
default: boolean;
|
113
|
+
};
|
114
|
+
iconOptions: {
|
115
|
+
type: ArrayConstructor;
|
116
|
+
default: () => {
|
117
|
+
src: string;
|
118
|
+
anchor: number[];
|
119
|
+
}[];
|
120
|
+
};
|
121
|
+
}>>, {
|
122
|
+
value: Record<string, any>;
|
123
|
+
valueDefault: Record<string, any>;
|
124
|
+
extendedShapeSettings: boolean;
|
125
|
+
iconOptions: unknown[];
|
126
|
+
}>;
|
127
|
+
export default _default;
|
128
|
+
import { between } from './composables.js';
|
@@ -0,0 +1,34 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
2
|
+
value: {
|
3
|
+
type: ObjectConstructor;
|
4
|
+
default: undefined;
|
5
|
+
};
|
6
|
+
valueDefault: {
|
7
|
+
type: ObjectConstructor;
|
8
|
+
default: undefined;
|
9
|
+
};
|
10
|
+
disabled: {
|
11
|
+
type: BooleanConstructor;
|
12
|
+
default: boolean;
|
13
|
+
};
|
14
|
+
}, {
|
15
|
+
rgbaString: import("vue").ComputedRef<string>;
|
16
|
+
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
17
|
+
value: {
|
18
|
+
type: ObjectConstructor;
|
19
|
+
default: undefined;
|
20
|
+
};
|
21
|
+
valueDefault: {
|
22
|
+
type: ObjectConstructor;
|
23
|
+
default: undefined;
|
24
|
+
};
|
25
|
+
disabled: {
|
26
|
+
type: BooleanConstructor;
|
27
|
+
default: boolean;
|
28
|
+
};
|
29
|
+
}>>, {
|
30
|
+
value: Record<string, any>;
|
31
|
+
disabled: boolean;
|
32
|
+
valueDefault: Record<string, any>;
|
33
|
+
}>;
|
34
|
+
export default _default;
|