@abi-software/mapintegratedvuer 1.2.0-beta.2 → 1.2.0-beta.4
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-B6Dt-gIO.js → ContentMixin-CDa_d4qU.js} +51 -50
- package/dist/{Flatmap-BXFp07NV.js → Flatmap-Blpv6Wl2.js} +6 -6
- package/dist/{Iframe-V17rWVEo.js → Iframe-BLBaWKcl.js} +2 -2
- package/dist/{MultiFlatmap-IPV-kW9S.js → MultiFlatmap-CT_r3MMI.js} +7 -7
- package/dist/{Plot-gbrHVZqT.js → Plot-BtF3I3fb.js} +2 -2
- package/dist/{Scaffold-iZP8Wbdq.js → Scaffold-CJeX7pZ1.js} +6338 -6343
- package/dist/{Simulation-nCrQs5q-.js → Simulation-BZn3roc3.js} +2 -2
- package/dist/{flatmapvuer-DR46R-h5.js → flatmapvuer-B9MNgh8H.js} +8908 -8886
- package/dist/{index-B4DnOYh7.js → index-DpNLzVAL.js} +1 -1
- package/dist/mapintegratedvuer.js +1 -1
- package/dist/mapintegratedvuer.umd.cjs +396 -388
- package/dist/{style-DirL9q7N.js → style-ByNtEFEB.js} +26 -13
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/src/components/viewers/Scaffold.vue +4 -0
- package/src/mixins/ContentMixin.js +3 -0
- package/src/mixins/DynamicMarkerMixin.js +24 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@abi-software/mapintegratedvuer",
|
3
|
-
"version": "1.2.0-beta.
|
3
|
+
"version": "1.2.0-beta.4",
|
4
4
|
"license": "Apache-2.0",
|
5
5
|
"scripts": {
|
6
6
|
"serve": "vite --host --force",
|
@@ -48,10 +48,10 @@
|
|
48
48
|
"*.js"
|
49
49
|
],
|
50
50
|
"dependencies": {
|
51
|
-
"@abi-software/flatmapvuer": "^1.1.2-alpha-
|
51
|
+
"@abi-software/flatmapvuer": "^1.1.2-alpha-7",
|
52
52
|
"@abi-software/map-side-bar": "^2.2.1-alpha-3",
|
53
53
|
"@abi-software/plotvuer": "1.0.0",
|
54
|
-
"@abi-software/scaffoldvuer": "^1.
|
54
|
+
"@abi-software/scaffoldvuer": "^1.2.0-beta.0",
|
55
55
|
"@abi-software/simulationvuer": "1.0.0",
|
56
56
|
"@abi-software/svg-sprite": "1.0.0",
|
57
57
|
"@element-plus/icons-vue": "^2.3.1",
|
@@ -25,6 +25,7 @@
|
|
25
25
|
:display-markers="false"
|
26
26
|
:enableOpenMapUI="true"
|
27
27
|
:view-u-r-l="entry.viewUrl"
|
28
|
+
:markerCluster="true"
|
28
29
|
:markerLabels="markerLabels"
|
29
30
|
:flatmapAPI="flatmapAPI"
|
30
31
|
/>
|
@@ -155,6 +156,9 @@ export default {
|
|
155
156
|
internalName: undefined,
|
156
157
|
};
|
157
158
|
if (resource && resource[0]) {
|
159
|
+
if (resource[0].data?.id === undefined || resource[0].data?.id === "") {
|
160
|
+
resource[0].data.id = resource[0].data?.group;
|
161
|
+
}
|
158
162
|
result.internalName = resource[0].data.id;
|
159
163
|
result.eventType = "highlighted";
|
160
164
|
}
|
@@ -175,6 +175,9 @@ export default {
|
|
175
175
|
}
|
176
176
|
} else if (type == "Scaffold") {
|
177
177
|
if (resource && resource[0]) {
|
178
|
+
if (resource[0].data?.id === undefined || resource[0].data?.id === "") {
|
179
|
+
resource[0].data.id = resource[0].data?.group;
|
180
|
+
}
|
178
181
|
result.internalName = resource[0].data.id;
|
179
182
|
// Facet search if marker is clicked
|
180
183
|
if (resource[0].data.lastActionOnMarker === true) {
|
@@ -44,9 +44,10 @@ export default {
|
|
44
44
|
// Set the dataset markers
|
45
45
|
let markers = this.settingsStore.markers;
|
46
46
|
markers = removeDuplicates(markers);
|
47
|
+
let fmMarkers = this.removeMarkersNotOnFlatmap(flatmapImp, markers);
|
47
48
|
flatmapImp.clearMarkers();
|
48
49
|
flatmapImp.clearDatasetMarkers();
|
49
|
-
flatmapImp.addDatasetMarkers(
|
50
|
+
flatmapImp.addDatasetMarkers(fmMarkers);
|
50
51
|
|
51
52
|
// Set the hovered markers
|
52
53
|
let hoveredMarkers = this.settingsStore.hoveredMarkers
|
@@ -70,6 +71,28 @@ export default {
|
|
70
71
|
}
|
71
72
|
}
|
72
73
|
},
|
74
|
+
// removeMarkersNotOnFlatmap: rewrites the dataset marker list to only include markers that are on the flatmap
|
75
|
+
removeMarkersNotOnFlatmap(flatmapImp, datasets) {
|
76
|
+
|
77
|
+
// dataset markers are in the form [{id: "discoverId", terms: ["term1", "term2"]}, {id:....}]
|
78
|
+
let fma = flatmapImp.anatomicalIdentifiers;
|
79
|
+
let markersOnFlatmap = []
|
80
|
+
|
81
|
+
// the block below steps through each dataset and checks each term to see if it is in the flatmap
|
82
|
+
for (let i = 0; i < datasets.length; i++) {
|
83
|
+
let dataset = datasets[i];
|
84
|
+
let datasetAdjusted = {id: dataset.id, terms: []};
|
85
|
+
for (let j = 0; j < dataset.terms.length; j++) {
|
86
|
+
if (fma.includes(dataset.terms[j])) {
|
87
|
+
datasetAdjusted.terms.push(dataset.terms[j]);
|
88
|
+
|
89
|
+
|
90
|
+
}
|
91
|
+
}
|
92
|
+
markersOnFlatmap.push(datasetAdjusted);
|
93
|
+
}
|
94
|
+
return markersOnFlatmap;
|
95
|
+
},
|
73
96
|
flatmapReadyForMarkerUpdates: function (flatmap) {
|
74
97
|
if (flatmap) {
|
75
98
|
flatmap.enablePanZoomEvents(true); // Use zoom events for dynamic markers
|