@abi-software/mapintegratedvuer 1.1.0 → 1.1.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/dist/{ContentMixin-Belbk7R9.js → ContentMixin-mZX2duoM.js} +1 -1
- package/dist/{Flatmap-BEStr9DR.js → Flatmap-9QQ19krS.js} +20 -20
- package/dist/{Iframe-CNeqS04g.js → Iframe-c0h0PhkG.js} +2 -2
- package/dist/{MultiFlatmap-CFF8nyw2.js → MultiFlatmap-ft_NGtN3.js} +15 -15
- package/dist/{Plot-BpS4tvSe.js → Plot-BmyzQ7ix.js} +2 -2
- package/dist/{Scaffold-BXY9_HO6.js → Scaffold-B7UCL6S4.js} +97 -97
- package/dist/{Simulation-Di2xaBxJ.js → Simulation-OLJ83BaS.js} +2 -2
- package/dist/{flatmapvuer-C67b_5lI.js → flatmapvuer-BAx-xO4L.js} +10 -7
- package/dist/{index-CpppckRD.js → index-nmieCwQF.js} +22 -12
- package/dist/mapintegratedvuer.js +1 -1
- package/dist/mapintegratedvuer.umd.cjs +187 -187
- package/dist/{style-CdEDV2B6.js → style-UwGHggI4.js} +2 -2
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/components/ContentVuer.vue +10 -10
- package/src/components/viewers/Flatmap.vue +41 -34
- package/src/components/viewers/MultiFlatmap.vue +42 -35
- package/src/components/viewers/Scaffold.vue +43 -36
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@abi-software/mapintegratedvuer",
|
3
|
-
"version": "1.1.
|
3
|
+
"version": "1.1.1",
|
4
4
|
"license": "Apache-2.0",
|
5
5
|
"scripts": {
|
6
6
|
"serve": "vite --host --force",
|
@@ -48,7 +48,7 @@
|
|
48
48
|
"*.js"
|
49
49
|
],
|
50
50
|
"dependencies": {
|
51
|
-
"@abi-software/flatmapvuer": "
|
51
|
+
"@abi-software/flatmapvuer": "1.1.1",
|
52
52
|
"@abi-software/map-side-bar": "^2.2.0",
|
53
53
|
"@abi-software/plotvuer": "1.0.0",
|
54
54
|
"@abi-software/scaffoldvuer": "^1.1.0",
|
@@ -79,19 +79,19 @@ export default {
|
|
79
79
|
},
|
80
80
|
methods: {
|
81
81
|
flatmapProvenacneReady: function(prov) {
|
82
|
-
this.$refs.contentBar
|
82
|
+
this.$refs.contentBar?.setupFlatmapContextCard(prov);
|
83
83
|
},
|
84
84
|
/**
|
85
85
|
* Toggle sync mode on/off depending on species and current state
|
86
86
|
*/
|
87
87
|
toggleSyncMode: function () {
|
88
|
-
this.$refs.viewer
|
88
|
+
this.$refs.viewer?.toggleSyncMode();
|
89
89
|
},
|
90
90
|
getId: function () {
|
91
91
|
return this.entry.id;
|
92
92
|
},
|
93
93
|
getState: function () {
|
94
|
-
return this.$refs.viewer
|
94
|
+
return this.$refs.viewer?.getState();
|
95
95
|
},
|
96
96
|
resourceSelected: function (payload) {
|
97
97
|
this.$emit("resource-selected", payload);
|
@@ -101,32 +101,32 @@ export default {
|
|
101
101
|
this.entriesStore.updateViewForEntry({id: this.entry.id, viewUrl});
|
102
102
|
} else {
|
103
103
|
//Manually set it as it cannot be set with reactivity
|
104
|
-
this.$refs.viewer
|
104
|
+
this.$refs.viewer?.updateWithViewUrl(viewUrl);
|
105
105
|
}
|
106
106
|
},
|
107
107
|
/**
|
108
108
|
* Perform a local search on this contentvuer
|
109
109
|
*/
|
110
110
|
search: function (term) {
|
111
|
-
return this.$refs.viewer
|
111
|
+
return this.$refs.viewer?.search(term);
|
112
112
|
},
|
113
113
|
/**
|
114
114
|
* Push the suggested terms into the suggestions array
|
115
115
|
*/
|
116
116
|
searchSuggestions: function(term, suggestions) {
|
117
|
-
this.$refs.viewer
|
117
|
+
this.$refs.viewer?.searchSuggestions(term, suggestions);
|
118
118
|
},
|
119
119
|
setPanesBoundary: function() {
|
120
|
-
this.$refs.contentBar
|
120
|
+
this.$refs.contentBar?.setBoundary(this.$refs["container"][0]);
|
121
121
|
},
|
122
122
|
speciesChanged: function (species) {
|
123
123
|
this.activeSpecies = species;
|
124
124
|
},
|
125
125
|
receiveSynchronisedEvent: async function (data) {
|
126
|
-
this.$refs.viewer
|
126
|
+
this.$refs.viewer?.receiveSynchronisedEvent(data);
|
127
127
|
},
|
128
128
|
requestSynchronisedEvent: function (flag) {
|
129
|
-
this.$refs.viewer
|
129
|
+
this.$refs.viewer?.requestSynchronisedEvent(flag);
|
130
130
|
},
|
131
131
|
/**
|
132
132
|
* Check if this viewer is currently visible
|
@@ -136,7 +136,7 @@ export default {
|
|
136
136
|
return paneName !== undefined;
|
137
137
|
},
|
138
138
|
onResize: function () {
|
139
|
-
this.$refs.viewer
|
139
|
+
this.$refs.viewer?.onResize();
|
140
140
|
},
|
141
141
|
},
|
142
142
|
data: function () {
|
@@ -1,39 +1,41 @@
|
|
1
1
|
<template>
|
2
|
-
<
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
2
|
+
<div class="viewer-container">
|
3
|
+
<FlatmapVuer
|
4
|
+
:state="entry.state"
|
5
|
+
:entry="entry.resource"
|
6
|
+
@resource-selected="flatmaprResourceSelected(entry.type, $event)"
|
7
|
+
@pan-zoom-callback="flatmapPanZoomCallback"
|
8
|
+
:name="entry.resource"
|
9
|
+
style="height: 100%; width: 100%"
|
10
|
+
:minZoom="entry.minZoom"
|
11
|
+
:helpMode="helpMode"
|
12
|
+
:helpModeActiveItem="helpModeActiveItem"
|
13
|
+
:helpModeInitialIndex="-1"
|
14
|
+
:helpModeDialog="useHelpModeDialog"
|
15
|
+
@help-mode-last-item="onHelpModeLastItem"
|
16
|
+
@shown-tooltip="onTooltipShown"
|
17
|
+
@shown-map-tooltip="onMapTooltipShown"
|
18
|
+
:pathControls="true"
|
19
|
+
ref="flatmap"
|
20
|
+
@ready="flatmapReadyCall"
|
21
|
+
:displayMinimap="false"
|
22
|
+
:displayWarning="true"
|
23
|
+
:enableOpenMapUI="true"
|
24
|
+
:flatmapAPI="flatmapAPI"
|
25
|
+
:sparcAPI="apiLocation"
|
26
|
+
@open-map="openMap"
|
27
|
+
@pathway-selection-changed="onPathwaySelectionChanged"
|
28
|
+
/>
|
28
29
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
30
|
+
<HelpModeDialog
|
31
|
+
v-if="helpMode && useHelpModeDialog"
|
32
|
+
ref="flatmapHelp"
|
33
|
+
:flatmapRef="flatmapRef"
|
34
|
+
:lastItem="helpModeLastItem"
|
35
|
+
@show-next="onHelpModeShowNext"
|
36
|
+
@finish-help-mode="onFinishHelpMode"
|
37
|
+
/>
|
38
|
+
</div>
|
37
39
|
</template>
|
38
40
|
|
39
41
|
<script>
|
@@ -168,6 +170,11 @@ export default {
|
|
168
170
|
|
169
171
|
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
170
172
|
<style scoped lang="scss">
|
173
|
+
.viewer-container {
|
174
|
+
width: 100%;
|
175
|
+
height: 100%;
|
176
|
+
}
|
177
|
+
|
171
178
|
:deep(.maplibregl-popup) {
|
172
179
|
z-index: 3;
|
173
180
|
}
|
@@ -1,40 +1,42 @@
|
|
1
1
|
<template>
|
2
|
-
<
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
2
|
+
<div class="viewer-container">
|
3
|
+
<MultiFlatmapVuer
|
4
|
+
:availableSpecies="availableSpecies"
|
5
|
+
@flatmapChanged="flatmapChanged"
|
6
|
+
@ready="multiFlatmapReady"
|
7
|
+
:state="entry.state"
|
8
|
+
@resource-selected="flatmaprResourceSelected(entry.type, $event)"
|
9
|
+
style="height: 100%; width: 100%"
|
10
|
+
:initial="entry.resource"
|
11
|
+
:helpMode="helpMode"
|
12
|
+
:helpModeActiveItem="helpModeActiveItem"
|
13
|
+
:helpModeDialog="useHelpModeDialog"
|
14
|
+
@help-mode-last-item="onHelpModeLastItem"
|
15
|
+
@shown-tooltip="onTooltipShown"
|
16
|
+
@shown-map-tooltip="onMapTooltipShown"
|
17
|
+
ref="multiflatmap"
|
18
|
+
:displayMinimap="true"
|
19
|
+
:showStarInLegend="showStarInLegend"
|
20
|
+
:enableOpenMapUI="true"
|
21
|
+
:openMapOptions="openMapOptions"
|
22
|
+
:flatmapAPI="flatmapAPI"
|
23
|
+
:sparcAPI="apiLocation"
|
24
|
+
@pan-zoom-callback="flatmapPanZoomCallback"
|
25
|
+
@open-map="openMap"
|
26
|
+
@finish-help-mode="endHelp"
|
27
|
+
@pathway-selection-changed="onPathwaySelectionChanged"
|
28
|
+
@open-pubmed-url="onOpenPubmedUrl"
|
29
|
+
/>
|
29
30
|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
31
|
+
<HelpModeDialog
|
32
|
+
v-if="helpMode && useHelpModeDialog"
|
33
|
+
ref="multiflatmapHelp"
|
34
|
+
:multiflatmapRef="multiflatmapRef"
|
35
|
+
:lastItem="helpModeLastItem"
|
36
|
+
@show-next="onHelpModeShowNext"
|
37
|
+
@finish-help-mode="onFinishHelpMode"
|
38
|
+
/>
|
39
|
+
</div>
|
38
40
|
</template>
|
39
41
|
|
40
42
|
<script>
|
@@ -430,6 +432,11 @@ export default {
|
|
430
432
|
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
431
433
|
<style scoped lang="scss">
|
432
434
|
|
435
|
+
.viewer-container {
|
436
|
+
width: 100%;
|
437
|
+
height: 100%;
|
438
|
+
}
|
439
|
+
|
433
440
|
:deep(.maplibregl-popup) {
|
434
441
|
z-index: 3;
|
435
442
|
}
|
@@ -1,41 +1,43 @@
|
|
1
1
|
<template>
|
2
|
-
<
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
2
|
+
<div class="viewer-container">
|
3
|
+
<ScaffoldVuer
|
4
|
+
:state="entry.state"
|
5
|
+
:url="entry.resource"
|
6
|
+
:region="entry.region"
|
7
|
+
@scaffold-selected="resourceSelected(entry.type, $event, true)"
|
8
|
+
@scaffold-highlighted="scaffoldHighlighted(entry.type, $event)"
|
9
|
+
@scaffold-navigated="scaffoldNavigated(entry.type, $event)"
|
10
|
+
@on-ready="scaffoldIsReady"
|
11
|
+
@open-map="openMap"
|
12
|
+
ref="scaffold"
|
13
|
+
:background-toggle="true"
|
14
|
+
:traditional="true"
|
15
|
+
:helpMode="helpMode"
|
16
|
+
:helpModeActiveItem="helpModeActiveItem"
|
17
|
+
:helpModeDialog="useHelpModeDialog"
|
18
|
+
@help-mode-last-item="onHelpModeLastItem"
|
19
|
+
@shown-tooltip="onTooltipShown"
|
20
|
+
@shown-map-tooltip="onMapTooltipShown"
|
21
|
+
:render="visible"
|
22
|
+
:display-latest-message="true"
|
23
|
+
:warning-message="warningMessage"
|
24
|
+
:display-minimap="false"
|
25
|
+
:display-markers="false"
|
26
|
+
:enableOpenMapUI="true"
|
27
|
+
:view-u-r-l="entry.viewUrl"
|
28
|
+
:markerLabels="markerLabels"
|
29
|
+
:flatmapAPI="flatmapAPI"
|
30
|
+
/>
|
30
31
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
32
|
+
<HelpModeDialog
|
33
|
+
v-if="helpMode && useHelpModeDialog"
|
34
|
+
ref="scaffoldHelp"
|
35
|
+
:scaffoldRef="scaffoldRef"
|
36
|
+
:lastItem="helpModeLastItem"
|
37
|
+
@show-next="onHelpModeShowNext"
|
38
|
+
@finish-help-mode="onFinishHelpMode"
|
39
|
+
/>
|
40
|
+
</div>
|
39
41
|
</template>
|
40
42
|
|
41
43
|
<script>
|
@@ -206,6 +208,11 @@ export default {
|
|
206
208
|
</script>
|
207
209
|
|
208
210
|
<style scoped lang="scss">
|
211
|
+
.viewer-container {
|
212
|
+
width: 100%;
|
213
|
+
height: 100%;
|
214
|
+
}
|
215
|
+
|
209
216
|
:deep(.message-popper) {
|
210
217
|
white-space: unset;
|
211
218
|
max-width: 200px;
|