@vcmap/ui 5.0.0-rc.11 → 5.0.0-rc.12
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 +6 -0
- package/build/buildHelpers.js +12 -3
- package/build/getPluginProxies.js +4 -0
- package/config/base.config.json +310 -156
- package/config/dev.config.json +211 -6
- package/dist/assets/{cesium.e67536.js → cesium.4057e6.js} +0 -0
- package/dist/assets/cesium.js +1 -1
- package/dist/assets/{core.ebf665.js → core.deb2b7.js} +1 -1
- package/dist/assets/core.js +1 -1
- package/dist/assets/font/OFL.txt +93 -0
- package/dist/assets/font/TitilliumWeb-Regular.woff2 +0 -0
- package/dist/assets/{index.9b213929.js → index.7aa11f5a.js} +1 -1
- package/dist/assets/{ol.8bbd50.js → ol.70b137.js} +0 -0
- package/dist/assets/ol.js +1 -1
- package/dist/assets/ui.9eb282.css +1 -0
- package/dist/assets/{ui.fdfe0d.js → ui.9eb282.js} +42 -40
- package/dist/assets/ui.js +1 -1
- package/dist/assets/{vue.0bb7c6.js → vue.65d93f.js} +0 -0
- package/dist/assets/vue.js +2 -2
- package/dist/assets/{vuetify.53300f.css → vuetify.149dde.css} +1 -1
- package/dist/assets/{vuetify.53300f.js → vuetify.149dde.js} +3 -3
- package/dist/assets/vuetify.js +2 -2
- package/dist/index.html +1 -5
- package/index.js +2 -0
- package/package.json +1 -1
- package/plugins/@vcmap/pluginExample/index.js +1 -1
- package/plugins/test/index.js +1 -4
- package/src/application/VcsApp.vue +100 -24
- package/src/assets/font/OFL.txt +93 -0
- package/src/assets/font/TitilliumWeb-Regular.woff2 +0 -0
- package/src/components/lists/VcsTreeviewLeaf.vue +1 -1
- package/src/i18n/de.js +6 -0
- package/src/i18n/en.js +6 -0
- package/src/icons/+all.js +80 -0
- package/src/icons/ClippingHorizontalIcon.vue +7 -0
- package/src/icons/ClippingIcon.vue +7 -0
- package/src/icons/ClippingVerticalIcon.vue +7 -0
- package/src/icons/ColorPickerIcon.vue +7 -0
- package/src/icons/ComponentsIcon.vue +2 -2
- package/src/icons/DimensionsHouseIcon.vue +11 -9
- package/src/icons/EditIcon.vue +7 -0
- package/src/icons/GlobalTerrainIcon.vue +9 -0
- package/src/icons/GroundIcon.vue +18 -0
- package/src/icons/HideIcon.vue +12 -0
- package/src/icons/LogoutIcon.vue +7 -0
- package/src/icons/ObjectAttributeIcon.vue +2 -13
- package/src/icons/PedestrianIcon.vue +2 -3
- package/src/icons/PenIcon.vue +2 -9
- package/src/icons/PoiIcon.vue +5 -2
- package/src/icons/PointSelectIcon.vue +4 -2
- package/src/icons/QueryIcon.vue +6 -7
- package/src/icons/ScreenshotIcon.vue +16 -0
- package/src/icons/ShareIcon.vue +4 -16
- package/src/icons/SkipNextIcon.vue +3 -1
- package/src/icons/TerrainBoxIcon.vue +9 -0
- package/src/icons/ToolsIcon.vue +4 -30
- package/src/icons/UploadIcon.vue +2 -9
- package/src/icons/UserProfileIcon.vue +7 -0
- package/src/icons/UserShareIcon.vue +7 -0
- package/src/icons/VideoRecorderIcon.vue +5 -9
- package/src/icons/ViewpointFlightIcon.vue +11 -0
- package/src/icons/ViewpointIcon.vue +11 -0
- package/src/icons/Viewshed360Icon.vue +7 -0
- package/src/icons/ViewshedConeIcon.vue +7 -0
- package/src/icons/ViewshedIcon.vue +7 -0
- package/src/icons/WallIcon.vue +4 -9
- package/src/legend/legendHelper.js +193 -0
- package/src/legend/styleLegendItem.vue +129 -0
- package/src/legend/vcsLegend.vue +92 -0
- package/src/manager/toolbox/ToolboxGroupComponent.vue +7 -3
- package/src/manager/toolbox/ToolboxManager.vue +2 -1
- package/src/pluginHelper.js +42 -10
- package/src/styles/variables.scss +7 -0
- package/src/styles/vcsFont.scss +17 -0
- package/src/vcsUiApp.js +2 -1
- package/dist/assets/ui.fdfe0d.css +0 -1
package/build/build.js
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import path from 'path';
|
2
|
+
import fs from 'fs';
|
2
3
|
import { build } from 'vite';
|
3
4
|
import { v4 as uuid } from 'uuid';
|
4
5
|
import rollupPluginStripPragma from 'rollup-plugin-strip-pragma';
|
@@ -153,6 +154,11 @@ await Promise.all(Object.entries(libraryBuildOptions).map(async ([key, value]) =
|
|
153
154
|
},
|
154
155
|
};
|
155
156
|
await build(libraryEntryConfig);
|
157
|
+
await fs.promises.cp(
|
158
|
+
path.join('src', 'assets', 'font'),
|
159
|
+
path.join('dist', 'assets', 'font'),
|
160
|
+
{ recursive: true },
|
161
|
+
);
|
156
162
|
}));
|
157
163
|
|
158
164
|
await buildCesium();
|
package/build/buildHelpers.js
CHANGED
@@ -193,18 +193,27 @@ export async function buildPluginsForPreview(baseConfig = {}, minify = true) {
|
|
193
193
|
await buildLibrary(pluginConfig, `plugins/${plugin}`, 'index', '', true);
|
194
194
|
});
|
195
195
|
|
196
|
-
promises.push(...dependentPlugins.
|
196
|
+
promises.push(...dependentPlugins.flatMap((pluginName) => {
|
197
197
|
let scope = '';
|
198
198
|
let name = pluginName;
|
199
199
|
if (pluginName.startsWith('@')) {
|
200
200
|
[scope, name] = pluginName.split('/');
|
201
201
|
}
|
202
202
|
|
203
|
-
|
203
|
+
const copyPromises = [fs.promises.cp(
|
204
204
|
path.join(pluginsDirectory, 'node_modules', scope, name, 'dist'),
|
205
205
|
path.join(process.cwd(), 'dist', 'plugins', scope, name),
|
206
206
|
{ recursive: true },
|
207
|
-
);
|
207
|
+
)];
|
208
|
+
|
209
|
+
if (fs.existsSync(path.join(pluginsDirectory, 'node_modules', scope, name, 'plugin-assets'))) {
|
210
|
+
copyPromises.push(fs.promises.cp(
|
211
|
+
path.join(pluginsDirectory, 'node_modules', scope, name, 'plugin-assets'),
|
212
|
+
path.join(process.cwd(), 'dist', 'plugins', scope, name, 'plugin-assets'),
|
213
|
+
{ recursive: true },
|
214
|
+
));
|
215
|
+
}
|
216
|
+
return copyPromises;
|
208
217
|
}));
|
209
218
|
|
210
219
|
await Promise.all(promises);
|
@@ -20,6 +20,10 @@ export default async function getPluginProxies(target = 'http://localhost:8080',
|
|
20
20
|
rewrite: (route) => {
|
21
21
|
const rest = route.replace(new RegExp(`^/plugins/${plugin}/`), '');
|
22
22
|
const file = rest || 'index.js';
|
23
|
+
const pluginDir = path.posix.join(path.relative(root, pluginsDir), 'node_modules', plugin);
|
24
|
+
if (/plugin-assets\//.test(file)) {
|
25
|
+
return path.posix.join(pluginDir, file);
|
26
|
+
}
|
23
27
|
return path.posix.join(path.relative(root, pluginsDir), 'node_modules', plugin, production ? 'dist' : 'src', file);
|
24
28
|
},
|
25
29
|
};
|
package/config/base.config.json
CHANGED
@@ -99,28 +99,51 @@
|
|
99
99
|
]
|
100
100
|
}
|
101
101
|
},
|
102
|
-
"
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
102
|
+
"properties": {
|
103
|
+
"legend": [
|
104
|
+
{
|
105
|
+
"type": "StyleLegendItem",
|
106
|
+
"colNr": 1,
|
107
|
+
"rows": [
|
108
|
+
{
|
109
|
+
"type": "FillLegendRow",
|
110
|
+
"fill": {
|
111
|
+
"color": "#edf8e9"
|
112
|
+
},
|
113
|
+
"title": "< 5 m"
|
114
|
+
},
|
115
|
+
{
|
116
|
+
"type": "FillLegendRow",
|
117
|
+
"fill": {
|
118
|
+
"color": "#bae4b3"
|
119
|
+
},
|
120
|
+
"title": "< 15 m"
|
121
|
+
},
|
122
|
+
{
|
123
|
+
"type": "FillLegendRow",
|
124
|
+
"fill": {
|
125
|
+
"color": "#74c476"
|
126
|
+
},
|
127
|
+
"title": "< 30 m"
|
128
|
+
},
|
129
|
+
{
|
130
|
+
"type": "FillLegendRow",
|
131
|
+
"fill": {
|
132
|
+
"color": "#31a354"
|
133
|
+
},
|
134
|
+
"title": "< 65 m"
|
135
|
+
},
|
136
|
+
{
|
137
|
+
"type": "FillLegendRow",
|
138
|
+
"fill": {
|
139
|
+
"color": "#006d2c"
|
140
|
+
},
|
141
|
+
"title": "> 65 m"
|
142
|
+
}
|
143
|
+
]
|
144
|
+
}
|
145
|
+
]
|
146
|
+
}
|
124
147
|
},
|
125
148
|
{
|
126
149
|
"name": "MeasuredHeightBrown",
|
@@ -157,28 +180,51 @@
|
|
157
180
|
]
|
158
181
|
}
|
159
182
|
},
|
160
|
-
"
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
183
|
+
"properties": {
|
184
|
+
"legend": [
|
185
|
+
{
|
186
|
+
"type": "StyleLegendItem",
|
187
|
+
"colNr": 1,
|
188
|
+
"rows": [
|
189
|
+
{
|
190
|
+
"type": "FillLegendRow",
|
191
|
+
"fill": {
|
192
|
+
"color": "#ffffd4"
|
193
|
+
},
|
194
|
+
"title": "< 5 m"
|
195
|
+
},
|
196
|
+
{
|
197
|
+
"type": "FillLegendRow",
|
198
|
+
"fill": {
|
199
|
+
"color": "#fed98e"
|
200
|
+
},
|
201
|
+
"title": "< 15 m"
|
202
|
+
},
|
203
|
+
{
|
204
|
+
"type": "FillLegendRow",
|
205
|
+
"fill": {
|
206
|
+
"color": "#fe9929"
|
207
|
+
},
|
208
|
+
"title": "< 30 m"
|
209
|
+
},
|
210
|
+
{
|
211
|
+
"type": "FillLegendRow",
|
212
|
+
"fill": {
|
213
|
+
"color": "#d95f0e"
|
214
|
+
},
|
215
|
+
"title": "< 65 m"
|
216
|
+
},
|
217
|
+
{
|
218
|
+
"type": "FillLegendRow",
|
219
|
+
"fill": {
|
220
|
+
"color": "#993404"
|
221
|
+
},
|
222
|
+
"title": "> 65 m"
|
223
|
+
}
|
224
|
+
]
|
225
|
+
}
|
226
|
+
]
|
227
|
+
}
|
182
228
|
},
|
183
229
|
{
|
184
230
|
"name": "MeasuredHeightBlue",
|
@@ -215,28 +261,51 @@
|
|
215
261
|
]
|
216
262
|
}
|
217
263
|
},
|
218
|
-
"
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
264
|
+
"properties": {
|
265
|
+
"legend": [
|
266
|
+
{
|
267
|
+
"type": "StyleLegendItem",
|
268
|
+
"colNr": 1,
|
269
|
+
"rows": [
|
270
|
+
{
|
271
|
+
"type": "FillLegendRow",
|
272
|
+
"fill": {
|
273
|
+
"color": "#f1eef6"
|
274
|
+
},
|
275
|
+
"title": "< 5 m"
|
276
|
+
},
|
277
|
+
{
|
278
|
+
"type": "FillLegendRow",
|
279
|
+
"fill": {
|
280
|
+
"color": "#bdc9e1"
|
281
|
+
},
|
282
|
+
"title": "< 15 m"
|
283
|
+
},
|
284
|
+
{
|
285
|
+
"type": "FillLegendRow",
|
286
|
+
"fill": {
|
287
|
+
"color": "#74a9cf"
|
288
|
+
},
|
289
|
+
"title": "< 30 m"
|
290
|
+
},
|
291
|
+
{
|
292
|
+
"type": "FillLegendRow",
|
293
|
+
"fill": {
|
294
|
+
"color": "#2b8cbe"
|
295
|
+
},
|
296
|
+
"title": "< 65 m"
|
297
|
+
},
|
298
|
+
{
|
299
|
+
"type": "FillLegendRow",
|
300
|
+
"fill": {
|
301
|
+
"color": "#045a8d"
|
302
|
+
},
|
303
|
+
"title": "> 65 m"
|
304
|
+
}
|
305
|
+
]
|
306
|
+
}
|
307
|
+
]
|
308
|
+
}
|
240
309
|
},
|
241
310
|
{
|
242
311
|
"type": "DeclarativeStyleItem",
|
@@ -316,68 +385,120 @@
|
|
316
385
|
]
|
317
386
|
}
|
318
387
|
},
|
319
|
-
"
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
388
|
+
"properties": {
|
389
|
+
"legend": [
|
390
|
+
{
|
391
|
+
"type": "StyleLegendItem",
|
392
|
+
"rows": [
|
393
|
+
{
|
394
|
+
"type": "FillLegendRow",
|
395
|
+
"fill": {
|
396
|
+
"color": "#91cf60"
|
397
|
+
},
|
398
|
+
"title": "Flachdach"
|
399
|
+
},
|
400
|
+
{
|
401
|
+
"type": "FillLegendRow",
|
402
|
+
"fill": {
|
403
|
+
"color": "#fee08b"
|
404
|
+
},
|
405
|
+
"title": "Pultdach"
|
406
|
+
},
|
407
|
+
{
|
408
|
+
"type": "FillLegendRow",
|
409
|
+
"fill": {
|
410
|
+
"color": "#8dd3c7"
|
411
|
+
},
|
412
|
+
"title": "Versetztes Pultdach"
|
413
|
+
},
|
414
|
+
{
|
415
|
+
"type": "FillLegendRow",
|
416
|
+
"fill": {
|
417
|
+
"color": "#8dd3c7"
|
418
|
+
},
|
419
|
+
"title": "Satteldach"
|
420
|
+
},
|
421
|
+
{
|
422
|
+
"type": "FillLegendRow",
|
423
|
+
"fill": {
|
424
|
+
"color": "#fc8d59"
|
425
|
+
},
|
426
|
+
"title": "Walmdach"
|
427
|
+
},
|
428
|
+
{
|
429
|
+
"type": "FillLegendRow",
|
430
|
+
"fill": {
|
431
|
+
"color": "#ffffb3"
|
432
|
+
},
|
433
|
+
"title": "Krüppelwalmdach"
|
434
|
+
},
|
435
|
+
{
|
436
|
+
"type": "FillLegendRow",
|
437
|
+
"fill": {
|
438
|
+
"color": "#bebada"
|
439
|
+
},
|
440
|
+
"title": "Mansardendach"
|
441
|
+
},
|
442
|
+
{
|
443
|
+
"type": "FillLegendRow",
|
444
|
+
"fill": {
|
445
|
+
"color": "#ffffbf"
|
446
|
+
},
|
447
|
+
"title": "Zeltdach"
|
448
|
+
},
|
449
|
+
{
|
450
|
+
"type": "FillLegendRow",
|
451
|
+
"fill": {
|
452
|
+
"color": "#fdb462"
|
453
|
+
},
|
454
|
+
"title": "Kegeldach"
|
455
|
+
},
|
456
|
+
{
|
457
|
+
"type": "FillLegendRow",
|
458
|
+
"fill": {
|
459
|
+
"color": "#b3de69"
|
460
|
+
},
|
461
|
+
"title": "Kuppeldach"
|
462
|
+
},
|
463
|
+
{
|
464
|
+
"type": "FillLegendRow",
|
465
|
+
"fill": {
|
466
|
+
"color": "#ecc34e"
|
467
|
+
},
|
468
|
+
"title": "Sheddach"
|
469
|
+
},
|
470
|
+
{
|
471
|
+
"type": "FillLegendRow",
|
472
|
+
"fill": {
|
473
|
+
"color": "#fccde5"
|
474
|
+
},
|
475
|
+
"title": "Bogendach"
|
476
|
+
},
|
477
|
+
{
|
478
|
+
"type": "FillLegendRow",
|
479
|
+
"fill": {
|
480
|
+
"color": "#d590b3"
|
481
|
+
},
|
482
|
+
"title": "Turmdach"
|
483
|
+
},
|
484
|
+
{
|
485
|
+
"type": "FillLegendRow",
|
486
|
+
"fill": {
|
487
|
+
"color": "#888888"
|
488
|
+
},
|
489
|
+
"title": "Mischform"
|
490
|
+
},
|
491
|
+
{
|
492
|
+
"type": "FillLegendRow",
|
493
|
+
"fill": {
|
494
|
+
"color": "#cccccc"
|
495
|
+
},
|
496
|
+
"title": "Sonstiges"
|
497
|
+
}
|
498
|
+
]
|
499
|
+
}
|
500
|
+
]
|
501
|
+
},
|
381
502
|
"name": "ClassifiedbyRoofType"
|
382
503
|
},
|
383
504
|
{
|
@@ -414,28 +535,51 @@
|
|
414
535
|
]
|
415
536
|
}
|
416
537
|
},
|
417
|
-
"
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
538
|
+
"properties": {
|
539
|
+
"legend": [
|
540
|
+
{
|
541
|
+
"type": "StyleLegendItem",
|
542
|
+
"rows": [
|
543
|
+
{
|
544
|
+
"type": "FillLegendRow",
|
545
|
+
"fill": {
|
546
|
+
"color": "#7fc97f"
|
547
|
+
},
|
548
|
+
"title": "1121"
|
549
|
+
},
|
550
|
+
{
|
551
|
+
"type": "FillLegendRow",
|
552
|
+
"fill": {
|
553
|
+
"color": "#fdb462"
|
554
|
+
},
|
555
|
+
"title": "1004"
|
556
|
+
},
|
557
|
+
{
|
558
|
+
"type": "FillLegendRow",
|
559
|
+
"fill": {
|
560
|
+
"color": "#fdc086"
|
561
|
+
},
|
562
|
+
"title": "1799"
|
563
|
+
},
|
564
|
+
{
|
565
|
+
"type": "FillLegendRow",
|
566
|
+
"fill": {
|
567
|
+
"color": "#ffff99"
|
568
|
+
},
|
569
|
+
"title": "1231"
|
570
|
+
},
|
571
|
+
{
|
572
|
+
"type": "FillLegendRow",
|
573
|
+
"fill": {
|
574
|
+
"color": "#cccccc"
|
575
|
+
},
|
576
|
+
"title": "other function"
|
577
|
+
}
|
578
|
+
|
579
|
+
]
|
580
|
+
}
|
581
|
+
]
|
582
|
+
},
|
439
583
|
"name": "BuildingFunction"
|
440
584
|
},
|
441
585
|
{
|
@@ -453,12 +597,22 @@
|
|
453
597
|
]
|
454
598
|
}
|
455
599
|
},
|
456
|
-
"
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
600
|
+
"properties": {
|
601
|
+
"legend": [
|
602
|
+
{
|
603
|
+
"type": "StyleLegendItem",
|
604
|
+
"rows": [
|
605
|
+
{
|
606
|
+
"type": "FillLegendRow",
|
607
|
+
"fill": {
|
608
|
+
"color": "#cccccc"
|
609
|
+
},
|
610
|
+
"title": "Transparent buildings"
|
611
|
+
}
|
612
|
+
]
|
613
|
+
}
|
614
|
+
]
|
615
|
+
}
|
462
616
|
}
|
463
617
|
],
|
464
618
|
"featureInfo": [
|