@abi-software/scaffoldvuer 2.1.0 → 2.1.1-demo.0
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/dist/scaffoldvuer.js +7939 -8015
- package/dist/scaffoldvuer.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/App.vue +16 -48
- package/src/components/ScaffoldVuer.vue +192 -294
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abi-software/scaffoldvuer",
|
|
3
|
-
"version": "2.1.0",
|
|
3
|
+
"version": "2.1.1-demo.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": "^24.20.0"
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"*.js"
|
|
49
49
|
],
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@abi-software/map-utilities": "^1.13.0",
|
|
51
|
+
"@abi-software/map-utilities": "^1.13.1-demo.0",
|
|
52
52
|
"@abi-software/sparc-annotation": "^0.3.2",
|
|
53
53
|
"@abi-software/svg-sprite": "1.4.0",
|
|
54
54
|
"@element-plus/icons-vue": "^2.3.2",
|
package/src/App.vue
CHANGED
|
@@ -12,12 +12,6 @@
|
|
|
12
12
|
:flatmapAPI="flatmapAPI"
|
|
13
13
|
:display-u-i="displayUI"
|
|
14
14
|
:url="url"
|
|
15
|
-
:help-mode="helpMode"
|
|
16
|
-
:helpModeDialog="useHelpModeDialog"
|
|
17
|
-
:helpModeActiveItem="helpModeActiveItem"
|
|
18
|
-
@help-mode-last-item="onHelpModeLastItem"
|
|
19
|
-
@shown-tooltip="onTooltipShown"
|
|
20
|
-
@shown-map-tooltip="onMapTooltipShown"
|
|
21
15
|
:display-latest-changes="false"
|
|
22
16
|
:display-minimap="displayMinimap"
|
|
23
17
|
:display-markers="displayMarkers"
|
|
@@ -44,14 +38,8 @@
|
|
|
44
38
|
></ScaffoldVuer>
|
|
45
39
|
</drop-zone>
|
|
46
40
|
|
|
47
|
-
<
|
|
48
|
-
|
|
49
|
-
ref="scaffoldHelp"
|
|
50
|
-
:scaffoldRef="scaffoldRef"
|
|
51
|
-
:lastItem="helpModeLastItem"
|
|
52
|
-
@show-next="onHelpModeShowNext"
|
|
53
|
-
@finish-help-mode="onFinishHelpMode"
|
|
54
|
-
/>
|
|
41
|
+
<HelpModeTour v-model="helpTourOpen" :steps="helpTourSteps" />
|
|
42
|
+
<HelpModeHover v-model="helpHoverOpen" :steps="helpTourSteps" />
|
|
55
43
|
<el-popover
|
|
56
44
|
popper-class="options-container"
|
|
57
45
|
placement="bottom"
|
|
@@ -146,7 +134,8 @@
|
|
|
146
134
|
|
|
147
135
|
<el-row :gutter="20" justify="center" align="middle">
|
|
148
136
|
<el-col :span="auto">
|
|
149
|
-
<el-button size="small" @click="
|
|
137
|
+
<el-button size="small" @click="startHelpTour">Help Tour</el-button>
|
|
138
|
+
<el-button size="small" @click="startHelpHover">Hover Help</el-button>
|
|
150
139
|
</el-col>
|
|
151
140
|
<el-col :span="auto">
|
|
152
141
|
<el-button type="primary" size="small" @click="screenshotDialog = true">
|
|
@@ -433,7 +422,7 @@ import {
|
|
|
433
422
|
ElSwitch,
|
|
434
423
|
} from 'element-plus';
|
|
435
424
|
import { useRoute, useRouter } from 'vue-router';
|
|
436
|
-
import {
|
|
425
|
+
import { HelpModeHover, HelpModeTour } from '@abi-software/map-utilities';
|
|
437
426
|
import '@abi-software/map-utilities/dist/style.css';
|
|
438
427
|
|
|
439
428
|
let texture_prefix = undefined;
|
|
@@ -462,7 +451,8 @@ export default {
|
|
|
462
451
|
DropZone,
|
|
463
452
|
ScaffoldVuer,
|
|
464
453
|
ModelsTable,
|
|
465
|
-
|
|
454
|
+
HelpModeTour,
|
|
455
|
+
HelpModeHover,
|
|
466
456
|
},
|
|
467
457
|
provide() {
|
|
468
458
|
return {
|
|
@@ -477,7 +467,6 @@ export default {
|
|
|
477
467
|
input: undefined,
|
|
478
468
|
displayUI: true,
|
|
479
469
|
selectedCoordinates: undefined,
|
|
480
|
-
helpMode: false,
|
|
481
470
|
displayMarkers: false,
|
|
482
471
|
onClickMarkers: false,
|
|
483
472
|
wireframe: false,
|
|
@@ -508,9 +497,9 @@ export default {
|
|
|
508
497
|
loadTextureVolumeOnReady: false,
|
|
509
498
|
readyCallback: undefined,
|
|
510
499
|
flatmapAPI: 'https://mapcore-demo.org/devel/flatmap/v4/',
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
500
|
+
helpTourOpen: false,
|
|
501
|
+
helpTourSteps: [],
|
|
502
|
+
helpHoverOpen: false,
|
|
514
503
|
scaffoldRef: null,
|
|
515
504
|
screenshotDialog: false,
|
|
516
505
|
route: useRoute(),
|
|
@@ -583,11 +572,6 @@ export default {
|
|
|
583
572
|
deep: true,
|
|
584
573
|
immediate: true,
|
|
585
574
|
},
|
|
586
|
-
helpMode: function (newVal) {
|
|
587
|
-
if (!newVal) {
|
|
588
|
-
this.helpModeActiveItem = 0;
|
|
589
|
-
}
|
|
590
|
-
},
|
|
591
575
|
},
|
|
592
576
|
mounted: function () {
|
|
593
577
|
this._objects = [];
|
|
@@ -972,29 +956,13 @@ export default {
|
|
|
972
956
|
}
|
|
973
957
|
});
|
|
974
958
|
},
|
|
975
|
-
|
|
976
|
-
this.
|
|
977
|
-
|
|
978
|
-
onHelpModeLastItem: function (isLastItem) {
|
|
979
|
-
if (isLastItem) {
|
|
980
|
-
this.helpModeLastItem = true;
|
|
981
|
-
}
|
|
959
|
+
startHelpTour: function () {
|
|
960
|
+
this.helpTourSteps = this.$refs.scaffold.getHelpModeSteps();
|
|
961
|
+
this.helpTourOpen = true;
|
|
982
962
|
},
|
|
983
|
-
|
|
984
|
-
this.
|
|
985
|
-
|
|
986
|
-
this.helpModeActiveItem = 0;
|
|
987
|
-
this.helpModeLastItem = false;
|
|
988
|
-
},
|
|
989
|
-
onTooltipShown: function () {
|
|
990
|
-
if (this.$refs.scaffold && this.$refs.scaffoldHelp) {
|
|
991
|
-
this.$refs.scaffoldHelp.toggleTooltipHighlight();
|
|
992
|
-
}
|
|
993
|
-
},
|
|
994
|
-
onMapTooltipShown: function () {
|
|
995
|
-
if (this.$refs.scaffold && this.$refs.scaffoldHelp) {
|
|
996
|
-
this.$refs.scaffoldHelp.toggleTooltipPinHighlight();
|
|
997
|
-
}
|
|
963
|
+
startHelpHover: function () {
|
|
964
|
+
this.helpTourSteps = this.$refs.scaffold.getHelpModeSteps();
|
|
965
|
+
this.helpHoverOpen = true;
|
|
998
966
|
},
|
|
999
967
|
},
|
|
1000
968
|
};
|