@vcmap/ui 6.0.0-rc.2 → 6.0.0-rc.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/build.js +40 -60
- package/build/buildHelpers.js +62 -19
- package/build/bundle.js +1 -1
- package/build/info/conf.json +1 -1
- package/build/info/publish.js +25 -31
- package/build/lintTypes.js +5 -0
- package/config/base.config.json +2 -1
- package/config/dev.config.json +7 -1
- package/config/projects.config.json +2 -1
- package/config/splashscreen.config.json +45 -0
- package/config/www.config.json +25 -22
- package/dist/.htaccess +7 -0
- package/dist/assets/@mdi/font/README.md +25 -0
- package/dist/assets/@mdi/font/css/materialdesignicons.min-680621ca.css +3 -0
- package/dist/assets/@mdi/font/css/materialdesignicons.min.css.map +16 -0
- package/dist/assets/@mdi/font/fonts/materialdesignicons-webfont.woff2 +0 -0
- package/dist/assets/{cesium.0b750d.js → cesium-126f111a.js} +272 -385
- package/dist/assets/cesium.js +1 -1
- package/dist/assets/{core.cbf44a.js → core-1c8b8674.js} +2015 -2019
- package/dist/assets/core.js +1 -1
- package/dist/assets/{ol.86e93c.js → ol-27f9b3f3.js} +42521 -44394
- package/dist/assets/ol.js +1 -1
- package/dist/assets/ui-7214428e.css +1 -0
- package/dist/assets/{ui.7c276c.js → ui-7214428e.js} +13968 -13907
- package/dist/assets/ui.js +1 -1
- package/dist/assets/vue-c78a5f76.js +6083 -0
- package/dist/assets/vue.js +1 -1
- package/dist/assets/{vuetify.4d18fe.css → vuetify-88a2fabe.css} +2 -2
- package/dist/assets/{vuetify.4d18fe.js → vuetify-88a2fabe.js} +7793 -7940
- package/dist/assets/vuetify.js +1 -1
- package/dist/index.html +11 -10
- package/index.d.ts +11 -11
- package/index.html +5 -5
- package/index.js +9 -7
- package/lib/olLib.js +84 -23
- package/package.json +19 -19
- package/plugins/@vcmap-show-case/flight-component-example/src/FlightExample.vue +41 -1
- package/plugins/@vcmap-show-case/form-inputs-example/src/FormInputsExample.vue +71 -32
- package/plugins/@vcmap-show-case/form-inputs-example/src/exampleActions.js +7 -11
- package/plugins/@vcmap-show-case/form-inputs-example/src/index.js +2 -2
- package/plugins/@vcmap-show-case/list-example/src/ListExample.vue +21 -8
- package/plugins/@vcmap-show-case/project-selector/src/ModulesListComponent.vue +18 -11
- package/plugins/@vcmap-show-case/search-example/src/index.js +1 -0
- package/plugins/@vcmap-show-case/search-example/src/searchImpl.js +35 -5
- package/plugins/@vcmap-show-case/style-input-example/src/StyleExample.vue +29 -90
- package/plugins/@vcmap-show-case/toolbox-example/src/index.js +2 -1
- package/plugins/package.json +3 -23
- package/public/assets/@mdi/font/README.md +25 -0
- package/public/assets/@mdi/font/css/materialdesignicons.min.css +2 -2
- package/public/assets/@mdi/font/css/materialdesignicons.min.css.map +16 -0
- package/public/assets/@mdi/font/fonts/materialdesignicons-webfont.woff2 +0 -0
- package/src/actions/StyleSelector.vue +1 -1
- package/src/actions/actionHelper.js +33 -22
- package/src/actions/flightActions.js +5 -5
- package/src/actions/listActions.d.ts +4 -11
- package/src/actions/listActions.js +6 -22
- package/src/actions/stateRefAction.js +2 -2
- package/src/application/VcsApp.vue +147 -57
- package/src/application/VcsApp.vue.d.ts +298 -4
- package/src/application/VcsAttributions.vue +2 -13
- package/src/application/VcsAttributionsFooter.vue +10 -11
- package/src/application/VcsContainer.vue +26 -9
- package/src/application/VcsContainer.vue.d.ts +237 -0
- package/src/application/VcsMainMap.vue +7 -7
- package/src/application/VcsMainMap.vue.d.ts +2 -2
- package/src/application/VcsNavbar.vue +5 -1
- package/src/application/VcsPositionDisplay.vue +8 -23
- package/src/application/VcsPositionDisplay.vue.d.ts +0 -1
- package/src/application/VcsSettings.vue +10 -17
- package/src/application/VcsSplashScreen.vue +21 -40
- package/src/application/VcsSplashScreen.vue.d.ts +0 -2
- package/src/application/VcsTextPage.vue +12 -43
- package/src/application/VcsTextPage.vue.d.ts +4 -8
- package/src/application/VcsTextPageFooter.vue +23 -40
- package/src/components/buttons/VcsActionButtonList.vue +59 -3
- package/src/components/buttons/VcsActionButtonList.vue.d.ts +28 -0
- package/src/components/extent/VcsExtentEditor.vue +1 -1
- package/src/components/flight/VcsFlightAnchorsComponent.vue +63 -36
- package/src/components/flight/VcsFlightComponent.vue +16 -21
- package/src/components/flight/VcsFlightPlayer.vue +27 -5
- package/src/components/form-inputs-controls/VcsCheckbox.vue +9 -5
- package/src/components/form-inputs-controls/VcsChipArrayInput.vue +15 -13
- package/src/components/form-inputs-controls/VcsChipArrayInput.vue.d.ts +3 -4
- package/src/components/form-inputs-controls/VcsCoordinate.vue +17 -4
- package/src/components/form-inputs-controls/VcsCoordinate.vue.d.ts +5 -2
- package/src/components/form-inputs-controls/VcsDatePicker.vue +34 -60
- package/src/components/form-inputs-controls/VcsDatePicker.vue.d.ts +1 -63
- package/src/components/form-inputs-controls/VcsFileInput.vue +17 -18
- package/src/components/form-inputs-controls/VcsFileInput.vue.d.ts +1 -0
- package/src/components/form-inputs-controls/VcsLabel.vue +1 -1
- package/src/components/form-inputs-controls/VcsRadio.vue +17 -3
- package/src/components/form-inputs-controls/VcsRadio.vue.d.ts +1 -0
- package/src/components/form-inputs-controls/VcsSelect.vue +40 -31
- package/src/components/form-inputs-controls/VcsSelect.vue.d.ts +5 -2
- package/src/components/form-inputs-controls/VcsSlider.vue +13 -1
- package/src/components/form-inputs-controls/VcsSlider.vue.d.ts +1 -0
- package/src/components/form-inputs-controls/VcsTextArea.vue +27 -26
- package/src/components/form-inputs-controls/VcsTextArea.vue.d.ts +1 -0
- package/src/components/form-inputs-controls/VcsTextField.vue +20 -4
- package/src/components/form-inputs-controls/VcsTextField.vue.d.ts +9 -0
- package/src/components/form-inputs-controls/VcsWizardStep.vue +3 -6
- package/src/components/form-inputs-controls/vcsTextField.scss +9 -12
- package/src/components/form-output/VcsFormattedNumber.vue +21 -5
- package/src/components/form-output/VcsFormattedNumber.vue.d.ts +9 -0
- package/src/components/form-output/VcsMarkdown.vue +15 -12
- package/src/components/form-output/VcsMarkdown.vue.d.ts +1 -0
- package/src/components/form-output/markdownHelper.d.ts +30 -0
- package/src/components/form-output/markdownHelper.js +398 -0
- package/src/components/import/VcsFileDrop.vue +8 -5
- package/src/components/import/VcsImportComponent.vue +4 -3
- package/src/components/import/VcsImportComponent.vue.d.ts +1 -2
- package/src/components/lists/VcsActionList.vue +11 -7
- package/src/components/lists/VcsList.vue +30 -52
- package/src/components/lists/VcsList.vue.d.ts +14 -59
- package/src/components/lists/{VcsListItem.vue → VcsListItemComponent.vue} +68 -22
- package/src/components/lists/VcsListItemComponent.vue.d.ts +69 -0
- package/src/components/lists/VcsTreeview.vue +43 -16
- package/src/components/lists/VcsTreeview.vue.d.ts +14 -3
- package/src/components/lists/VcsTreeviewLeaf.vue +15 -6
- package/src/components/lists/VcsTreeviewSearchbar.vue +2 -2
- package/src/components/notification/VcsHelp.vue +1 -1
- package/src/components/notification/VcsHelp.vue.d.ts +3 -2
- package/src/components/section/VcsExpansionPanel.vue +101 -0
- package/src/components/section/VcsExpansionPanel.vue.d.ts +19 -0
- package/src/components/{form-inputs-controls → section}/VcsFormSection.vue +10 -4
- package/src/components/{form-inputs-controls → section}/VcsFormSection.vue.d.ts +1 -2
- package/src/components/style/MenuWrapper.vue +24 -26
- package/src/components/style/MenuWrapper.vue.d.ts +4 -4
- package/src/components/style/VcsFillMenu.vue +9 -16
- package/src/components/style/VcsFillMenu.vue.d.ts +0 -18
- package/src/components/style/VcsFillSelector.vue +13 -16
- package/src/components/style/VcsImageMenu.vue +8 -25
- package/src/components/style/VcsImageMenu.vue.d.ts +0 -27
- package/src/components/style/VcsImageSelector.vue +102 -167
- package/src/components/style/VcsImageSelector.vue.d.ts +15 -15
- package/src/components/style/VcsStrokeMenu.vue +8 -15
- package/src/components/style/VcsStrokeMenu.vue.d.ts +0 -18
- package/src/components/style/VcsStrokeSelector.vue +11 -18
- package/src/components/style/VcsTextMenu.vue +9 -12
- package/src/components/style/VcsTextMenu.vue.d.ts +0 -9
- package/src/components/style/VcsTextSelector.vue +79 -95
- package/src/components/style/VcsTextSelector.vue.d.ts +20 -22
- package/src/components/style/VcsVectorStyleComponent.vue +8 -19
- package/src/components/style/VcsVectorStyleComponent.vue.d.ts +1 -1
- package/src/components/style/composables.d.ts +0 -14
- package/src/components/style/composables.js +0 -49
- package/src/components/tables/VcsDataTable.vue +28 -22
- package/src/components/tables/VcsTable.vue +45 -62
- package/src/components/tables/VcsTable.vue.d.ts +30 -17
- package/src/components/tables/VcsTableCell.vue +72 -0
- package/src/components/tables/VcsTableCell.vue.d.ts +13 -0
- package/src/components/vector-properties/VcsFeatureEditingWindow.vue +43 -9
- package/src/components/vector-properties/VcsFeatureTransforms.vue +5 -0
- package/src/components/vector-properties/VcsVectorPropertiesComponent.vue +1 -1
- package/src/components/viewpoint/VcsViewpointComponent.vue +23 -10
- package/src/components/viewpoint/VcsViewpointEditor.vue +2 -1
- package/src/contentTree/LayerTree.vue +9 -27
- package/src/contentTree/LayerTree.vue.d.ts +1 -1
- package/src/contentTree/contentTreeCollection.d.ts +1 -0
- package/src/contentTree/contentTreeCollection.js +45 -11
- package/src/contentTree/contentTreeItem.d.ts +2 -2
- package/src/contentTree/contentTreeItem.js +7 -7
- package/src/featureInfo/BalloonComponent.vue +14 -15
- package/src/featureInfo/MarkdownBalloonComponent.vue +4 -2
- package/src/featureInfo/MarkdownBalloonComponent.vue.d.ts +2 -2
- package/src/featureInfo/abstractFeatureInfoView.d.ts +6 -0
- package/src/featureInfo/abstractFeatureInfoView.js +15 -7
- package/src/featureInfo/featureInfo.d.ts +5 -5
- package/src/featureInfo/featureInfo.js +59 -41
- package/src/featureInfo/iframeFeatureInfoView.d.ts +8 -2
- package/src/featureInfo/iframeFeatureInfoView.js +15 -5
- package/src/featureInfo/markdownBalloonFeatureInfoView.d.ts +1 -1
- package/src/featureInfo/markdownBalloonFeatureInfoView.js +5 -5
- package/src/featureInfo/markdownFeatureInfoView.d.ts +1 -1
- package/src/featureInfo/markdownFeatureInfoView.js +9 -11
- package/src/featureInfo/tableFeatureInfoView.js +13 -4
- package/src/init.d.ts +5 -38
- package/src/init.js +19 -18
- package/src/legend/StyleLegendItem.vue +4 -9
- package/src/legend/VcsLegend.vue +28 -54
- package/src/manager/buttonManager.js +4 -4
- package/src/manager/collectionManager/CollectionComponent.vue +17 -42
- package/src/manager/collectionManager/CollectionComponent.vue.d.ts +4 -2
- package/src/manager/collectionManager/CollectionComponentContent.vue +7 -6
- package/src/manager/collectionManager/CollectionComponentContent.vue.d.ts +3 -1
- package/src/manager/collectionManager/CollectionComponentList.vue +11 -9
- package/src/manager/collectionManager/CollectionComponentList.vue.d.ts +6 -4
- package/src/manager/collectionManager/CollectionComponentProvider.vue +1 -1
- package/src/manager/collectionManager/CollectionComponentStandalone.vue +3 -2
- package/src/manager/collectionManager/CollectionManager.vue +1 -1
- package/src/manager/collectionManager/collectionComponentClass.d.ts +1 -1
- package/src/manager/collectionManager/collectionComponentClass.js +7 -10
- package/src/manager/collectionManager/collectionManager.js +10 -10
- package/src/manager/collectionManager/editorCollectionComponentClass.js +6 -5
- package/src/manager/contextMenu/contextMenuManager.js +2 -2
- package/src/manager/navbarManager.js +2 -2
- package/src/manager/panel/PanelComponent.vue +2 -9
- package/src/manager/panel/PanelManagerComponent.vue +7 -3
- package/src/manager/panel/panelHelper.js +3 -3
- package/src/manager/panel/panelManager.d.ts +9 -1
- package/src/manager/panel/panelManager.js +18 -6
- package/src/manager/toolbox/GroupToolboxComponent.vue +8 -4
- package/src/manager/toolbox/GroupToolboxComponent.vue.d.ts +1 -0
- package/src/manager/toolbox/SelectToolboxComponent.vue +7 -4
- package/src/manager/toolbox/SelectToolboxComponent.vue.d.ts +1 -0
- package/src/manager/toolbox/ToolboxManager.vue +9 -6
- package/src/manager/toolbox/ToolboxManager.vue.d.ts +1 -0
- package/src/manager/toolbox/toolboxManager.js +10 -10
- package/src/manager/window/WindowComponent.vue +12 -8
- package/src/manager/window/WindowComponentHeader.vue +29 -8
- package/src/manager/window/WindowComponentHeader.vue.d.ts +2 -0
- package/src/manager/window/WindowManager.vue +2 -2
- package/src/manager/window/windowManager.d.ts +2 -2
- package/src/manager/window/windowManager.js +4 -4
- package/src/navigation/MapNavigation.vue +20 -0
- package/src/navigation/locatorHelper.js +1 -1
- package/src/navigation/overviewMap.js +1 -1
- package/src/notifier/NotifierComponent.vue +18 -15
- package/src/search/ResultItem.vue +18 -6
- package/src/search/ResultsComponent.vue +31 -20
- package/src/search/ResultsComponent.vue.d.ts +2 -1
- package/src/search/SearchComponent.vue +8 -14
- package/src/search/SearchComponent.vue.d.ts +1 -0
- package/src/search/search.js +2 -2
- package/src/siteConfig.js +9 -9
- package/src/state.js +4 -4
- package/src/styles/_typography.scss +0 -2
- package/src/styles/main.scss +0 -4
- package/src/uiConfig.d.ts +300 -5
- package/src/uiConfig.js +28 -16
- package/src/vcsUiApp.d.ts +21 -17
- package/src/vcsUiApp.js +11 -10
- package/src/vuePlugins/vuetify.d.ts +2 -0
- package/src/vuePlugins/vuetify.js +14 -0
- package/dist/assets/@mdi/font/css/materialdesignicons.css.map +0 -16
- package/dist/assets/@mdi/font/css/materialdesignicons.min.e3f476.css +0 -3
- package/dist/assets/index-8eGauqjA.js +0 -1
- package/dist/assets/ui.7c276c.css +0 -1
- package/dist/assets/vue.a3cd64.js +0 -6096
- package/public/assets/@mdi/font/css/materialdesignicons.css.map +0 -16
- package/src/application/VcsCustomScreen.vue +0 -45
- package/src/application/VcsCustomScreen.vue.d.ts +0 -15
- package/src/application/markdownHelper.d.ts +0 -12
- package/src/application/markdownHelper.js +0 -70
- package/src/components/lists/VcsListItem.vue.d.ts +0 -21
- package/src/components/notification/VcsTooltip.vue +0 -156
- package/src/components/notification/VcsTooltip.vue.d.ts +0 -27
- package/src/featureInfo/MarkdownComponent.vue +0 -16
- package/src/featureInfo/MarkdownComponent.vue.d.ts +0 -7
- package/src/styles/_theming.scss +0 -73
- package/src/styles/settings.scss +0 -6
- package/src/styles/shades.scss +0 -4
- package/src/styles/variables.scss +0 -140
- package/src/styles/vcsFont.scss +0 -2
- package/src/styles/vcsGrid.scss +0 -3
- /package/dist/assets/{favicon-128.4c4ce5.png → favicon-128-4c4ce5df.png} +0 -0
- /package/dist/assets/{favicon-180.5b99c0.png → favicon-180-4c4ce5df.png} +0 -0
- /package/dist/assets/{favicon-192.0e205e.png → favicon-192-4c4ce5df.png} +0 -0
- /package/dist/assets/{favicon-32.6b9add.png → favicon-32-4c4ce5df.png} +0 -0
- /package/dist/assets/{favicon.d5ec97.svg → favicon-4c4ce5df.svg} +0 -0
- /package/dist/assets/font/{TitilliumWeb-Regular.9ca076.woff2 → TitilliumWeb-Regular-9ca076be.woff2} +0 -0
- /package/dist/assets/style/{icon-marker.70960f.png → icon-marker-70960f05.png} +0 -0
- /package/dist/assets/style/{icon-marker-blue.534e37.png → icon-marker-blue-534e374b.png} +0 -0
- /package/dist/assets/style/{icon-marker-green.0b6a92.png → icon-marker-green-0b6a92bc.png} +0 -0
- /package/dist/assets/style/{icon-marker-o.036477.png → icon-marker-o-036477fa.png} +0 -0
- /package/dist/assets/style/{icon-marker-o-blue.7b6d62.png → icon-marker-o-blue-7b6d6279.png} +0 -0
- /package/dist/assets/style/{icon-marker-o-green.c863c0.png → icon-marker-o-green-c863c0fa.png} +0 -0
- /package/dist/assets/style/{icon-marker-o-red.93ff58.png → icon-marker-o-red-93ff58df.png} +0 -0
- /package/dist/assets/style/{icon-marker-red.313d03.png → icon-marker-red-313d03e8.png} +0 -0
- /package/dist/assets/style/{icon-pin.b7ce77.png → icon-pin-b7ce771e.png} +0 -0
- /package/dist/assets/style/{icon-pin-blue.7be369.png → icon-pin-blue-7be369a3.png} +0 -0
- /package/dist/assets/style/{icon-pin-green.cbb935.png → icon-pin-green-cbb935fe.png} +0 -0
- /package/dist/assets/style/{icon-pin-red.3f25b2.png → icon-pin-red-3f25b245.png} +0 -0
- /package/public/assets/{favicon-128.png → favicon-128-4c4ce5df.png} +0 -0
- /package/public/assets/{favicon-180.png → favicon-180-4c4ce5df.png} +0 -0
- /package/public/assets/{favicon-192.png → favicon-192-4c4ce5df.png} +0 -0
- /package/public/assets/{favicon-32.png → favicon-32-4c4ce5df.png} +0 -0
- /package/public/assets/{favicon.svg → favicon-4c4ce5df.svg} +0 -0
@@ -36,17 +36,42 @@ function randomPOI(title) {
|
|
36
36
|
return feature;
|
37
37
|
}
|
38
38
|
|
39
|
+
function getRandomIcon() {
|
40
|
+
const keys = Object.keys(Icons);
|
41
|
+
const index = Math.floor(keys.length * Math.random());
|
42
|
+
return `$${keys[index]}`;
|
43
|
+
}
|
44
|
+
|
39
45
|
/**
|
40
46
|
* @param {string} line
|
41
47
|
* @param {boolean} withIcon
|
42
48
|
* @param {boolean} withPOI
|
49
|
+
* @param {boolean} withActions
|
43
50
|
* @returns {import("@vcmap/ui").ResultItem}
|
44
51
|
*/
|
45
|
-
function lineToResultItem(line, withIcon, withPOI) {
|
52
|
+
function lineToResultItem(line, withIcon, withPOI, withActions) {
|
46
53
|
let icon;
|
47
54
|
if (withIcon) {
|
48
|
-
|
49
|
-
|
55
|
+
icon = getRandomIcon();
|
56
|
+
}
|
57
|
+
|
58
|
+
let actions;
|
59
|
+
if (withActions) {
|
60
|
+
actions = [
|
61
|
+
{
|
62
|
+
name: 'action-1',
|
63
|
+
icon,
|
64
|
+
callback() {
|
65
|
+
console.log('Action 1');
|
66
|
+
},
|
67
|
+
},
|
68
|
+
{
|
69
|
+
name: 'action-2',
|
70
|
+
callback() {
|
71
|
+
console.log('Action 2');
|
72
|
+
},
|
73
|
+
},
|
74
|
+
];
|
50
75
|
}
|
51
76
|
|
52
77
|
let clicked;
|
@@ -64,6 +89,7 @@ function lineToResultItem(line, withIcon, withPOI) {
|
|
64
89
|
icon,
|
65
90
|
clicked,
|
66
91
|
feature,
|
92
|
+
actions,
|
67
93
|
};
|
68
94
|
}
|
69
95
|
|
@@ -75,19 +101,23 @@ export default class SearchImpl {
|
|
75
101
|
* @param {string[]} lines
|
76
102
|
* @param {boolean} withIcon
|
77
103
|
* @param {boolean} withPOI
|
104
|
+
* @param {boolean} withActions
|
78
105
|
*/
|
79
|
-
constructor(lines, withIcon, withPOI) {
|
106
|
+
constructor(lines, withIcon, withPOI, withActions) {
|
80
107
|
this.name = name;
|
81
108
|
this.lines = lines;
|
82
109
|
this.withIcon = withIcon;
|
83
110
|
this.withPOI = withPOI;
|
111
|
+
this.withActions = withActions;
|
84
112
|
}
|
85
113
|
|
86
114
|
search(query) {
|
87
115
|
return Promise.resolve(
|
88
116
|
this.lines
|
89
117
|
.filter((l) => l.toLowerCase().includes(query.toLowerCase()))
|
90
|
-
.map((line) =>
|
118
|
+
.map((line) =>
|
119
|
+
lineToResultItem(line, this.withIcon, this.withPOI, this.withActions),
|
120
|
+
),
|
91
121
|
);
|
92
122
|
}
|
93
123
|
|
@@ -1,27 +1,30 @@
|
|
1
1
|
<template>
|
2
2
|
<v-sheet>
|
3
|
-
<VcsFormSection
|
3
|
+
<VcsFormSection
|
4
|
+
heading="Style menus"
|
5
|
+
:header-actions="[resetExample, logStyle]"
|
6
|
+
>
|
4
7
|
<VcsVectorStyleComponent
|
5
|
-
v-model="styleOptions"
|
8
|
+
v-model="styleOptions.style"
|
6
9
|
:value-default="defaultStyleOptions"
|
7
10
|
/>
|
8
11
|
</VcsFormSection>
|
9
12
|
<VcsFormSection :expandable="true" heading="Fill Selector">
|
10
|
-
<VcsFillSelector v-model="styleOptions.fill" />
|
13
|
+
<VcsFillSelector v-model="styleOptions.style.fill" />
|
11
14
|
</VcsFormSection>
|
12
15
|
<VcsFormSection :expandable="true" heading="Stroke Selector">
|
13
|
-
<VcsStrokeSelector v-model="styleOptions.stroke" />
|
16
|
+
<VcsStrokeSelector v-model="styleOptions.style.stroke" />
|
14
17
|
</VcsFormSection>
|
15
18
|
<VcsFormSection :expandable="true" heading="Image Selector">
|
16
19
|
<VcsImageSelector
|
17
|
-
v-model="styleOptions.image"
|
20
|
+
v-model="styleOptions.style.image"
|
18
21
|
:value-default="defaultStyleOptions.image"
|
19
22
|
:extended-shape-settings="true"
|
20
23
|
/>
|
21
24
|
</VcsFormSection>
|
22
25
|
<VcsFormSection :expandable="true" heading="Text Selector">
|
23
26
|
<VcsTextSelector
|
24
|
-
v-model="styleOptions.text"
|
27
|
+
v-model="styleOptions.style.text"
|
25
28
|
:value-default="defaultStyleOptions.text"
|
26
29
|
/>
|
27
30
|
</VcsFormSection>
|
@@ -30,7 +33,7 @@
|
|
30
33
|
|
31
34
|
<script>
|
32
35
|
import { VSheet } from 'vuetify/components';
|
33
|
-
import {
|
36
|
+
import { reactive, toRaw } from 'vue';
|
34
37
|
import {
|
35
38
|
VcsFormSection,
|
36
39
|
VcsFillSelector,
|
@@ -40,8 +43,8 @@
|
|
40
43
|
VcsVectorStyleComponent,
|
41
44
|
VectorStyleMenus,
|
42
45
|
} from '@vcmap/ui';
|
43
|
-
import {
|
44
|
-
import { Fill,
|
46
|
+
import { getStyleOptions } from '@vcmap/core';
|
47
|
+
import { Fill, RegularShape, Stroke, Style, Text } from 'ol/style.js';
|
45
48
|
|
46
49
|
export default {
|
47
50
|
name: 'StyleExample',
|
@@ -97,93 +100,29 @@
|
|
97
100
|
},
|
98
101
|
};
|
99
102
|
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
image: undefined,
|
104
|
-
text: undefined,
|
105
|
-
});
|
106
|
-
|
107
|
-
const fill = exampleStyle.getFill();
|
108
|
-
const stroke = exampleStyle.getStroke();
|
109
|
-
const image = exampleStyle.getImage();
|
110
|
-
const text = exampleStyle.getText();
|
111
|
-
|
112
|
-
// TODO: Replace with new getStyleOptions from @vcmap/core as soon as available
|
113
|
-
if (fill) {
|
114
|
-
styleOptions.value.fill = {
|
115
|
-
color: parseColor(fill.getColor()),
|
116
|
-
};
|
117
|
-
}
|
118
|
-
if (stroke) {
|
119
|
-
styleOptions.value.stroke = {
|
120
|
-
color: parseColor(stroke.getColor()),
|
121
|
-
width: exampleStyle.getStroke().getWidth(),
|
122
|
-
};
|
123
|
-
}
|
124
|
-
if (image) {
|
125
|
-
if (image instanceof RegularShape) {
|
126
|
-
styleOptions.value.image = {
|
127
|
-
points: image.getPoints(),
|
128
|
-
radius: image.getRadius(),
|
129
|
-
radius2: image.getRadius2(),
|
130
|
-
angle: image.getAngle(),
|
131
|
-
fill: {
|
132
|
-
color: parseColor(image.getFill().getColor()),
|
133
|
-
},
|
134
|
-
stroke: {
|
135
|
-
color: parseColor(image.getStroke().getColor()),
|
136
|
-
width: image.getStroke().getWidth(),
|
137
|
-
},
|
138
|
-
};
|
139
|
-
} else if (image instanceof Icon) {
|
140
|
-
styleOptions.value.image = {
|
141
|
-
src: image.getSrc(),
|
142
|
-
scale: image.getScale(),
|
143
|
-
opacity: image.getOpacity(),
|
144
|
-
};
|
145
|
-
}
|
146
|
-
}
|
147
|
-
if (text) {
|
148
|
-
styleOptions.value.text = {
|
149
|
-
font: text.getFont(),
|
150
|
-
fill: {
|
151
|
-
color: parseColor(text.getFill()?.getColor()),
|
152
|
-
},
|
153
|
-
stroke: {
|
154
|
-
color: parseColor(text.getStroke()?.getColor()),
|
155
|
-
width: text.getStroke().getWidth(),
|
156
|
-
},
|
157
|
-
textBaseline: text.getTextBaseline(),
|
158
|
-
offsetY: text.getOffsetY(),
|
159
|
-
offsetX: text.getOffsetX(),
|
160
|
-
text: text.getText(),
|
161
|
-
};
|
162
|
-
}
|
163
|
-
|
164
|
-
onMounted(() => {
|
165
|
-
watchEffect(() => {
|
166
|
-
const newFill = styleOptions.value.fill;
|
167
|
-
const newStroke = styleOptions.value.stroke;
|
168
|
-
const newImage = styleOptions.value.image;
|
169
|
-
// const newText = styleOptions.value.text;
|
170
|
-
// TODO: Replace with new getStyleFromOptions from @vcmap/core as soon as available
|
171
|
-
exampleStyle.setFill(newFill ? new Fill(newFill) : null);
|
172
|
-
exampleStyle.setStroke(newStroke ? new Stroke(newStroke) : null);
|
173
|
-
if (newImage?.points) {
|
174
|
-
// exampleStyle.setImage(new RegularShape(newImage));
|
175
|
-
} else if (newImage?.src) {
|
176
|
-
exampleStyle.setImage(new Icon(newImage));
|
177
|
-
} else {
|
178
|
-
exampleStyle.setImage(null);
|
179
|
-
}
|
180
|
-
});
|
103
|
+
// use reactive wrapper object to ensure updates
|
104
|
+
const styleOptions = reactive({
|
105
|
+
style: getStyleOptions(exampleStyle),
|
181
106
|
});
|
182
107
|
|
183
108
|
return {
|
184
109
|
styleOptions,
|
185
110
|
defaultStyleOptions,
|
186
111
|
VectorStyleMenus,
|
112
|
+
resetExample: {
|
113
|
+
name: 'resetExample',
|
114
|
+
icon: 'mdi-sync',
|
115
|
+
callback() {
|
116
|
+
styleOptions.style = getStyleOptions(exampleStyle);
|
117
|
+
},
|
118
|
+
},
|
119
|
+
logStyle: {
|
120
|
+
name: 'logStyle',
|
121
|
+
icon: 'mdi-console',
|
122
|
+
callback() {
|
123
|
+
console.log(toRaw(styleOptions.style));
|
124
|
+
},
|
125
|
+
},
|
187
126
|
};
|
188
127
|
},
|
189
128
|
};
|
@@ -227,7 +227,8 @@ export default async function toolboxExample() {
|
|
227
227
|
this._stopWatching = watch(
|
228
228
|
() => disabled.value,
|
229
229
|
() => {
|
230
|
-
|
230
|
+
app.toolboxManager.get(selectToolboxComponent.id).action.disabled =
|
231
|
+
disabled.value;
|
231
232
|
app.toolboxManager.get(
|
232
233
|
groupToolboxComponentExampleOptions.id,
|
233
234
|
).disabled = disabled.value;
|
package/plugins/package.json
CHANGED
@@ -1,27 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"dependencies": {
|
3
|
-
"@vcmap/print": "
|
4
|
-
"@vcmap/
|
5
|
-
"@vcmap/
|
6
|
-
"@vcmap/shadow": "^2.0.0",
|
7
|
-
"@vcmap/draw": "^2.0.0",
|
8
|
-
"@vcmap/create-link": "^1.0.1",
|
9
|
-
"@vcmap/search-nominatim": "^1.0.1",
|
10
|
-
"@vcmap/multi-view": "^1.1.0",
|
11
|
-
"@vcmap/cesium-filters": "^1.0.1",
|
12
|
-
"@vcmap/viewshed": "^2.0.1",
|
13
|
-
"@vcmap/measurement": "^1.0.2",
|
14
|
-
"@vcmap/flight": "^1.1.0",
|
15
|
-
"@vcmap/transparent-terrain": "^1.0.1",
|
16
|
-
"@vcmap/search-coordinate": "^1.0.0",
|
17
|
-
"@vcmap/clipping-tool": "^1.0.0",
|
18
|
-
"@vcmap/height-profile": "^1.0.0",
|
19
|
-
"@vcmap/search-wfs": "^1.0.0",
|
20
|
-
"@vcmap/search-esri": "^1.0.0",
|
21
|
-
"@vcmap/link-button": "^1.0.0",
|
22
|
-
"@vcmap/walk": "^1.0.2"
|
23
|
-
},
|
24
|
-
"optionalDependencies": {
|
25
|
-
"@vcmap/planning": "^5.2.0"
|
3
|
+
"@vcmap/print": "https://github.com/virtualcitySYSTEMS/map-print.git#main",
|
4
|
+
"@vcmap/multi-view": "https://github.com/virtualcitySYSTEMS/map-multi-view.git",
|
5
|
+
"@vcmap/transparent-terrain": "https://github.com/virtualcitySYSTEMS/map-transparent-terrain.git"
|
26
6
|
}
|
27
7
|
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
> *Note:* Please use the main [MaterialDesign](https://github.com/Templarian/MaterialDesign/issues) repo to report issues. This repo is for distribution of the Webfont files only.
|
2
|
+
|
3
|
+
# Webfont - Material Design Icons
|
4
|
+
|
5
|
+
Webfont distribution for the [Material Design Icons](https://materialdesignicons.com).
|
6
|
+
|
7
|
+
```
|
8
|
+
npm install @mdi/font
|
9
|
+
```
|
10
|
+
|
11
|
+
> Package built with [@mdi/font-build](https://github.com/Templarian/MaterialDesign-Font-Build).
|
12
|
+
|
13
|
+
## Related Packages
|
14
|
+
|
15
|
+
[NPM @MDI Organization](https://npmjs.com/org/mdi)
|
16
|
+
|
17
|
+
- JavaScript/Typescript: [MaterialDesign-JS](https://github.com/Templarian/MaterialDesign-JS)
|
18
|
+
- SVG: [MaterialDesign-SVG](https://github.com/Templarian/MaterialDesign-SVG)
|
19
|
+
- Font-Build [MaterialDesign-Font-Build](https://github.com/Templarian/MaterialDesign-Font-Build)
|
20
|
+
- Desktop Font: [MaterialDesign-Font](https://github.com/Templarian/MaterialDesign-Font)
|
21
|
+
|
22
|
+
## Learn More
|
23
|
+
|
24
|
+
- [MaterialDesignIcons.com](https://materialdesignicons.com)
|
25
|
+
- https://github.com/Templarian/MaterialDesign
|