@abi-software/mapintegratedvuer 1.9.3-beta.0 → 1.9.3-beta.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-W2PTyJZz.js → ContentMixin-DXXhWj3L.js} +19 -14
- package/dist/{Flatmap--SlRCdfI.js → Flatmap-DTJJHOZJ.js} +51 -47
- package/dist/{Iframe-DYGGdodq.js → Iframe-BvIYJdxM.js} +2 -2
- package/dist/{MultiFlatmap-CEimf8Pc.js → MultiFlatmap-DYUAs7aa.js} +53 -53
- package/dist/{Plot-x7fR8yUx.js → Plot-B3waT3eW.js} +2 -2
- package/dist/{Scaffold-CfDMtWBm.js → Scaffold-D1SvYdhM.js} +10 -10
- package/dist/{Simulation-BOhCaUMa.js → Simulation-DEcCnsZ0.js} +2 -2
- package/dist/{index-DMpfPm6s.js → index-_BTFPzpV.js} +3610 -3563
- package/dist/mapintegratedvuer.js +1 -1
- package/dist/mapintegratedvuer.umd.cjs +58 -58
- package/dist/{style-Ba4Y-S47.js → style-DqJAtv3f.js} +1 -1
- package/dist/style.css +1 -1
- package/package.json +4 -4
- package/src/components/ContentBar.vue +3 -0
- package/src/components/SplitDialog.vue +11 -3
- package/src/components/SplitFlow.vue +9 -0
- package/src/components/viewers/Flatmap.vue +26 -20
- package/src/components/viewers/MultiFlatmap.vue +12 -12
- package/src/components/viewers/Scaffold.vue +7 -3
- package/src/mixins/ContentMixin.js +26 -21
- package/src/stores/splitFlow.js +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { markRaw as w } from "vue";
|
|
2
|
-
import { u as b,
|
|
2
|
+
import { u as b, c as F, d as C, a as f, T as M, e as S, f as I, h as A, l as H } from "./index-_BTFPzpV.js";
|
|
3
3
|
import { mapStores as N } from "pinia";
|
|
4
4
|
const d = function(e) {
|
|
5
5
|
return e ? [...new Set(e.map((t) => JSON.stringify(t)))].map(
|
|
@@ -281,7 +281,7 @@ const D = {
|
|
|
281
281
|
},
|
|
282
282
|
inject: ["showGlobalSettings", "showOpenMapButton"],
|
|
283
283
|
computed: {
|
|
284
|
-
...N(b, F,
|
|
284
|
+
...N(b, F, C),
|
|
285
285
|
idNamePair() {
|
|
286
286
|
return this.splitFlowStore.idNamePair;
|
|
287
287
|
},
|
|
@@ -302,18 +302,22 @@ const D = {
|
|
|
302
302
|
return !this.showGlobalSettings;
|
|
303
303
|
}
|
|
304
304
|
},
|
|
305
|
+
beforeUnmount: function() {
|
|
306
|
+
this.alive = !1;
|
|
307
|
+
},
|
|
305
308
|
mounted: function() {
|
|
306
|
-
f.on("startHelp", ()
|
|
307
|
-
this.startHelp();
|
|
308
|
-
}), f.on("connectivity-item-close", () => {
|
|
309
|
-
if (this.multiflatmapRef) {
|
|
310
|
-
const e = this.multiflatmapRef.getCurrentFlatmap();
|
|
311
|
-
e && e.closeTooltip();
|
|
312
|
-
}
|
|
313
|
-
this.flatmapRef && this.flatmapRef.closeTooltip();
|
|
314
|
-
}), this.multiflatmapRef = this.$refs.multiflatmap, this.flatmapRef = this.$refs.flatmap, this.scaffoldRef = this.$refs.scaffold, this.connectivityKnowledge = this.connectivitiesStore.globalConnectivities, this.connectivityFilterOptions = this.connectivitiesStore.filterOptions, this.connectivityFilterSources = this.connectivitiesStore.filterSources;
|
|
309
|
+
f.on("startHelp", this.startHelp), f.on("connectivity-item-close", this.onConnectivityItemClose), this.multiflatmapRef = this.$refs.multiflatmap, this.flatmapRef = this.$refs.flatmap, this.scaffoldRef = this.$refs.scaffold, this.connectivityKnowledge = this.connectivitiesStore.globalConnectivities, this.connectivityFilterOptions = this.connectivitiesStore.filterOptions, this.connectivityFilterSources = this.connectivitiesStore.filterSources;
|
|
315
310
|
},
|
|
316
311
|
methods: {
|
|
312
|
+
onConnectivityItemClose() {
|
|
313
|
+
if (this != null && this.alive) {
|
|
314
|
+
if (this.multiflatmapRef) {
|
|
315
|
+
const e = this.multiflatmapRef.getCurrentFlatmap();
|
|
316
|
+
e && e.closeTooltip();
|
|
317
|
+
}
|
|
318
|
+
this.flatmapRef && this.flatmapRef.closeTooltip();
|
|
319
|
+
}
|
|
320
|
+
},
|
|
317
321
|
toggleSyncMode: function() {
|
|
318
322
|
},
|
|
319
323
|
getState: function() {
|
|
@@ -325,7 +329,7 @@ const D = {
|
|
|
325
329
|
this.settingsStore.updateMapManager(e);
|
|
326
330
|
},
|
|
327
331
|
trackOpenMap: function(e) {
|
|
328
|
-
|
|
332
|
+
M.sendEvent({
|
|
329
333
|
event: "interaction_event",
|
|
330
334
|
event_name: "portal_maps_open_map",
|
|
331
335
|
category: e,
|
|
@@ -531,7 +535,7 @@ const D = {
|
|
|
531
535
|
onResize: function() {
|
|
532
536
|
},
|
|
533
537
|
startHelp: function() {
|
|
534
|
-
this.isInHelp === !1 && (this.helpMode = !0, window.addEventListener("mousedown", this.checkEndHelpMouseDown), this.isInHelp = !0);
|
|
538
|
+
this != null && this.alive && this.isInHelp === !1 && (this.helpMode = !0, window.addEventListener("mousedown", this.checkEndHelpMouseDown), this.isInHelp = !0);
|
|
535
539
|
},
|
|
536
540
|
endHelp: function() {
|
|
537
541
|
window.removeEventListener("mousedown", this.checkEndHelpMouseDown), this.helpMode = !1, setTimeout(() => {
|
|
@@ -652,7 +656,8 @@ const D = {
|
|
|
652
656
|
connectivityKnowledge: {},
|
|
653
657
|
connectivityFilterOptions: {},
|
|
654
658
|
connectivityFilterSources: {},
|
|
655
|
-
highlightDelay: void 0
|
|
659
|
+
highlightDelay: void 0,
|
|
660
|
+
alive: !0
|
|
656
661
|
};
|
|
657
662
|
},
|
|
658
663
|
created: function() {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { _ as h,
|
|
2
|
-
import { C as g } from "./ContentMixin-
|
|
3
|
-
import { D as
|
|
4
|
-
import { FlatmapVuer as
|
|
5
|
-
import { resolveComponent as r, openBlock as p, createElementBlock as
|
|
1
|
+
import { _ as h, E as c, t as u, T as l, a as i } from "./index-_BTFPzpV.js";
|
|
2
|
+
import { C as g } from "./ContentMixin-DXXhWj3L.js";
|
|
3
|
+
import { D as v } from "./style-DqJAtv3f.js";
|
|
4
|
+
import { FlatmapVuer as y } from "@abi-software/flatmapvuer";
|
|
5
|
+
import { resolveComponent as r, openBlock as p, createElementBlock as M, createVNode as I, createBlock as C, createCommentVNode as S } from "vue";
|
|
6
6
|
const w = {
|
|
7
7
|
name: "Flatmap",
|
|
8
|
-
mixins: [g,
|
|
8
|
+
mixins: [g, v],
|
|
9
9
|
components: {
|
|
10
|
-
FlatmapVuer:
|
|
10
|
+
FlatmapVuer: y,
|
|
11
11
|
HelpModeDialog: c
|
|
12
12
|
},
|
|
13
13
|
methods: {
|
|
@@ -26,17 +26,17 @@ const w = {
|
|
|
26
26
|
},
|
|
27
27
|
flatmaprResourceSelected: function(e, t) {
|
|
28
28
|
if (this.resourceSelected(e, t), t.eventType === "click" && t.feature.type === "feature") {
|
|
29
|
-
const
|
|
29
|
+
const n = {
|
|
30
30
|
label: t.label || "",
|
|
31
31
|
id: t.feature.id || "",
|
|
32
32
|
featureId: t.feature.featureId || "",
|
|
33
33
|
taxonomy: t.taxonomy || "",
|
|
34
34
|
resources: t.resource.join(", ")
|
|
35
|
-
},
|
|
35
|
+
}, a = u(n);
|
|
36
36
|
l.sendEvent({
|
|
37
37
|
event: "interaction_event",
|
|
38
38
|
event_name: "portal_maps_connectivity",
|
|
39
|
-
category:
|
|
39
|
+
category: a,
|
|
40
40
|
location: e + " " + this.$refs.flatmap.viewingMode
|
|
41
41
|
});
|
|
42
42
|
}
|
|
@@ -46,21 +46,21 @@ const w = {
|
|
|
46
46
|
e.mapImp, i.emit("mapImpProv", t), this.$emit("flatmap-provenance-ready", t), this.flatmapReadyForMarkerUpdates(e), this.updateSettings(), this.loadConnectivityExplorerConfig(e), i.emit("mapLoaded", e);
|
|
47
47
|
},
|
|
48
48
|
onPathwaySelectionChanged: function(e) {
|
|
49
|
-
const { label: t, property:
|
|
49
|
+
const { label: t, property: n, checked: a, selectionsTitle: s } = e;
|
|
50
50
|
l.sendEvent({
|
|
51
51
|
event: "interaction_event",
|
|
52
52
|
event_name: "portal_maps_pathway_change",
|
|
53
|
-
category: t + " [" +
|
|
53
|
+
category: t + " [" + n + "] " + a,
|
|
54
54
|
location: s
|
|
55
55
|
});
|
|
56
56
|
},
|
|
57
57
|
highlightFeatures: function(e) {
|
|
58
58
|
let t = e.name;
|
|
59
|
-
const
|
|
59
|
+
const n = this.$refs.flatmap.mapImp;
|
|
60
60
|
if (t) {
|
|
61
|
-
const
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
const a = n.search(t);
|
|
62
|
+
a.featureIds[0] && n.highlightFeatures([
|
|
63
|
+
n.modelForFeature(a.featureIds[0])
|
|
64
64
|
]);
|
|
65
65
|
}
|
|
66
66
|
},
|
|
@@ -69,24 +69,24 @@ const w = {
|
|
|
69
69
|
*/
|
|
70
70
|
searchSuggestions: function(e, t) {
|
|
71
71
|
if (e && this.$refs.flatmap.mapImp) {
|
|
72
|
-
const
|
|
73
|
-
(
|
|
72
|
+
const n = this.$refs.flatmap.mapImp.search(e);
|
|
73
|
+
(n.__featureIds || n.featureIds).forEach((s) => {
|
|
74
74
|
const o = this.$refs.flatmap.mapImp.annotation(s);
|
|
75
75
|
o && o.label && t.push(o.label);
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
78
|
},
|
|
79
79
|
zoomToFeatures: function(e, t) {
|
|
80
|
-
let
|
|
81
|
-
const
|
|
82
|
-
if (
|
|
83
|
-
const s =
|
|
80
|
+
let n = e.name;
|
|
81
|
+
const a = this.$refs.flatmap.mapImp;
|
|
82
|
+
if (n) {
|
|
83
|
+
const s = a.search(n);
|
|
84
84
|
if (s.featureIds.length) {
|
|
85
|
-
let o =
|
|
86
|
-
o ? (t &&
|
|
85
|
+
let o = a.modelForFeature(s.featureIds[0]);
|
|
86
|
+
o ? (t && a.selectFeatures(o), a.zoomToFeatures(o)) : a.clearSearchResults();
|
|
87
87
|
}
|
|
88
88
|
} else
|
|
89
|
-
|
|
89
|
+
a.clearSearchResults();
|
|
90
90
|
},
|
|
91
91
|
changeViewingMode: function(e) {
|
|
92
92
|
this.$refs.flatmap.changeViewingMode(e);
|
|
@@ -95,11 +95,11 @@ const w = {
|
|
|
95
95
|
const {
|
|
96
96
|
backgroundDisplay: e,
|
|
97
97
|
viewingMode: t,
|
|
98
|
-
flightPathDisplay:
|
|
99
|
-
organsDisplay:
|
|
98
|
+
flightPathDisplay: n,
|
|
99
|
+
organsDisplay: a,
|
|
100
100
|
outlines: s
|
|
101
101
|
} = this.settingsStore.globalSettings, o = this.$refs.flatmap;
|
|
102
|
-
o.changeViewingMode(t), o.setFlightPath3D(
|
|
102
|
+
o.changeViewingMode(t), o.setFlightPath3D(n), o.setColour(a), o.setOutlines(s), o.backgroundChangeCallback(e);
|
|
103
103
|
}
|
|
104
104
|
},
|
|
105
105
|
computed: {
|
|
@@ -109,37 +109,41 @@ const w = {
|
|
|
109
109
|
},
|
|
110
110
|
mounted: function() {
|
|
111
111
|
i.on("annotation-close", () => {
|
|
112
|
-
this.$refs.flatmap && this.$refs.flatmap.annotationEventCallback({}, { type: "aborted" });
|
|
112
|
+
this != null && this.alive && this.$refs.flatmap && this.$refs.flatmap.annotationEventCallback({}, { type: "aborted" });
|
|
113
113
|
}), i.on("markerUpdate", () => {
|
|
114
|
-
this.flatmapMarkerUpdate(void 0);
|
|
114
|
+
this != null && this.alive && this.flatmapMarkerUpdate(void 0);
|
|
115
115
|
}), i.on("hoverUpdate", () => {
|
|
116
|
-
this.cardHoverHighlight();
|
|
116
|
+
this != null && this.alive && this.cardHoverHighlight();
|
|
117
117
|
}), i.on("viewingModeUpdate", (e) => {
|
|
118
|
-
this.$refs.flatmap.changeViewingMode(e);
|
|
118
|
+
this != null && this.alive && this.$refs.flatmap.changeViewingMode(e);
|
|
119
119
|
}), i.on("flightPathUpdate", (e) => {
|
|
120
|
-
this.$refs.flatmap.setFlightPath3D(e);
|
|
120
|
+
this != null && this.alive && this.$refs.flatmap.setFlightPath3D(e);
|
|
121
121
|
}), i.on("organsDisplayUpdate", (e) => {
|
|
122
|
-
this.$refs.flatmap.setColour(e);
|
|
122
|
+
this != null && this.alive && this.$refs.flatmap.setColour(e);
|
|
123
123
|
}), i.on("outlinesDisplayUpdate", (e) => {
|
|
124
|
-
this.$refs.flatmap.setOutlines(e);
|
|
124
|
+
this != null && this.alive && this.$refs.flatmap.setOutlines(e);
|
|
125
125
|
}), i.on("backgroundDisplayUpdate", (e) => {
|
|
126
|
-
this.$refs.flatmap.backgroundChangeCallback(e);
|
|
126
|
+
this != null && this.alive && this.$refs.flatmap.backgroundChangeCallback(e);
|
|
127
127
|
}), i.on("show-connectivity", (e) => {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
128
|
+
if (this != null && this.alive) {
|
|
129
|
+
const { featureIds: t, offset: n } = e, a = this.$refs.flatmap;
|
|
130
|
+
a && a.moveMap(t, {
|
|
131
|
+
offsetX: n ? -150 : 0,
|
|
132
|
+
zoom: 4
|
|
133
|
+
});
|
|
134
|
+
}
|
|
133
135
|
}), i.on("show-reference-connectivities", (e) => {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
+
if (this != null && this.alive) {
|
|
137
|
+
const t = this.$refs.flatmap;
|
|
138
|
+
t && t.showConnectivitiesByReference(e);
|
|
139
|
+
}
|
|
136
140
|
});
|
|
137
141
|
}
|
|
138
142
|
}, b = { class: "viewer-container" };
|
|
139
|
-
function F(e, t,
|
|
143
|
+
function F(e, t, n, a, s, o) {
|
|
140
144
|
const f = r("FlatmapVuer"), m = r("HelpModeDialog");
|
|
141
|
-
return p(),
|
|
142
|
-
|
|
145
|
+
return p(), M("div", b, [
|
|
146
|
+
I(f, {
|
|
143
147
|
state: e.entry.state,
|
|
144
148
|
entry: e.entry.resource,
|
|
145
149
|
mapManager: e.mapManager,
|
|
@@ -187,7 +191,7 @@ function F(e, t, a, n, s, o) {
|
|
|
187
191
|
}, null, 8, ["flatmapRef", "lastItem", "onShowNext", "onFinishHelpMode"])) : S("", !0)
|
|
188
192
|
]);
|
|
189
193
|
}
|
|
190
|
-
const P = /* @__PURE__ */ h(w, [["render", F], ["__scopeId", "data-v-
|
|
194
|
+
const P = /* @__PURE__ */ h(w, [["render", F], ["__scopeId", "data-v-f13488fd"]]);
|
|
191
195
|
export {
|
|
192
196
|
P as default
|
|
193
197
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as r } from "./ContentMixin-
|
|
1
|
+
import { C as r } from "./ContentMixin-DXXhWj3L.js";
|
|
2
2
|
import { openBlock as o, createElementBlock as t, createElementVNode as s } from "vue";
|
|
3
|
-
import { _ as n } from "./index-
|
|
3
|
+
import { _ as n } from "./index-_BTFPzpV.js";
|
|
4
4
|
const a = {
|
|
5
5
|
name: "Iframe",
|
|
6
6
|
mixins: [r]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as d,
|
|
2
|
-
import { C as
|
|
3
|
-
import { D as C } from "./style-
|
|
1
|
+
import { _ as d, E as h, b as g, g as y, a as s, t as v, T as p } from "./index-_BTFPzpV.js";
|
|
2
|
+
import { C as M } from "./ContentMixin-DXXhWj3L.js";
|
|
3
|
+
import { D as C } from "./style-DqJAtv3f.js";
|
|
4
4
|
import { MultiFlatmapVuer as S } from "@abi-software/flatmapvuer";
|
|
5
5
|
import { resolveComponent as f, openBlock as c, createElementBlock as F, createVNode as I, createBlock as w, createCommentVNode as k } from "vue";
|
|
6
6
|
const b = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><path d="M11.0748 3.25583C11.4141 2.42845 12.5859 2.42845 12.9252 3.25583L14.6493 7.45955C14.793 7.80979 15.1221 8.04889 15.4995 8.07727L20.0303 8.41798C20.922 8.48504 21.2841 9.59942 20.6021 10.1778L17.1369 13.1166C16.8482 13.3614 16.7225 13.7483 16.8122 14.1161L17.8882 18.5304C18.1 19.3992 17.152 20.0879 16.3912 19.618L12.5255 17.2305C12.2034 17.0316 11.7966 17.0316 11.4745 17.2305L7.60881 19.618C6.84796 20.0879 5.90001 19.3992 6.1118 18.5304L7.18785 14.1161C7.2775 13.7483 7.1518 13.3614 6.86309 13.1166L3.3979 10.1778C2.71588 9.59942 3.07796 8.48504 3.96971 8.41798L8.50046 8.07727C8.87794 8.04889 9.20704 7.80979 9.35068 7.45955L11.0748 3.25583Z" stroke="#000000" stroke-width="2"/></svg>', u = (e) => {
|
|
@@ -31,7 +31,7 @@ const b = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
|
|
|
31
31
|
return t;
|
|
32
32
|
}, R = {
|
|
33
33
|
name: "MultiFlatmap",
|
|
34
|
-
mixins: [
|
|
34
|
+
mixins: [M, C],
|
|
35
35
|
components: {
|
|
36
36
|
MultiFlatmapVuer: S,
|
|
37
37
|
HelpModeDialog: h
|
|
@@ -103,9 +103,9 @@ const b = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
|
|
|
103
103
|
const a = this.$refs.multiflatmap.getCurrentFlatmap();
|
|
104
104
|
if (e && a.mapImp) {
|
|
105
105
|
const n = a.mapImp.search(e);
|
|
106
|
-
(n.__featureIds || n.featureIds).forEach((
|
|
107
|
-
const
|
|
108
|
-
|
|
106
|
+
(n.__featureIds || n.featureIds).forEach((o) => {
|
|
107
|
+
const l = a.mapImp.annotation(o);
|
|
108
|
+
l && l.label && t.push(l.label);
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
111
|
},
|
|
@@ -118,22 +118,22 @@ const b = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
|
|
|
118
118
|
featureId: t.feature.featureId || "",
|
|
119
119
|
taxonomy: t.taxonomy || "",
|
|
120
120
|
resources: t.resource.join(", ")
|
|
121
|
-
},
|
|
121
|
+
}, i = v(n);
|
|
122
122
|
p.sendEvent({
|
|
123
123
|
event: "interaction_event",
|
|
124
124
|
event_name: "portal_maps_connectivity",
|
|
125
|
-
category:
|
|
125
|
+
category: i,
|
|
126
126
|
location: e + " " + a.viewingMode
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
129
|
},
|
|
130
130
|
onPathwaySelectionChanged: function(e) {
|
|
131
|
-
const { label: t, property: a, checked: n, selectionsTitle:
|
|
131
|
+
const { label: t, property: a, checked: n, selectionsTitle: i } = e;
|
|
132
132
|
p.sendEvent({
|
|
133
133
|
event: "interaction_event",
|
|
134
134
|
event_name: "portal_maps_pathway_change",
|
|
135
135
|
category: t + " [" + a + "] " + n,
|
|
136
|
-
location:
|
|
136
|
+
location: i
|
|
137
137
|
});
|
|
138
138
|
},
|
|
139
139
|
onOpenPubmedUrl: function(e) {
|
|
@@ -149,13 +149,13 @@ const b = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
|
|
|
149
149
|
*/
|
|
150
150
|
handleSyncPanZoomEvent: function(e) {
|
|
151
151
|
if (!this.mouseHovered && e.type !== this.entry.type) {
|
|
152
|
-
const t = e.payload.zoom, a = e.payload.target, n = this.$el.clientHeight,
|
|
153
|
-
let
|
|
154
|
-
const
|
|
155
|
-
a[0] / 2 + 0.5 -
|
|
156
|
-
0.5 - a[1] / 2 -
|
|
152
|
+
const t = e.payload.zoom, a = e.payload.target, n = this.$el.clientHeight, i = this.$el.clientWidth, o = Math.max(i, n);
|
|
153
|
+
let l = i / o / t;
|
|
154
|
+
const r = n / o / t, m = [
|
|
155
|
+
a[0] / 2 + 0.5 - l / 2,
|
|
156
|
+
0.5 - a[1] / 2 - r / 2
|
|
157
157
|
];
|
|
158
|
-
this.$refs.multiflatmap.getCurrentFlatmap().mapImp.panZoomTo(m, [
|
|
158
|
+
this.$refs.multiflatmap.getCurrentFlatmap().mapImp.panZoomTo(m, [l, r]);
|
|
159
159
|
}
|
|
160
160
|
},
|
|
161
161
|
displayTooltip: function(e) {
|
|
@@ -168,8 +168,8 @@ const b = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
|
|
|
168
168
|
let a = e.name;
|
|
169
169
|
const n = this.$refs.multiflatmap.getCurrentFlatmap().mapImp;
|
|
170
170
|
if (a) {
|
|
171
|
-
const
|
|
172
|
-
|
|
171
|
+
const i = n.search(a);
|
|
172
|
+
i.featureIds.length > 0 ? (t && n.selectFeatures(i.featureIds), n.zoomToFeatures(i.featureIds)) : n.clearSearchResults();
|
|
173
173
|
} else
|
|
174
174
|
n.clearSearchResults();
|
|
175
175
|
},
|
|
@@ -230,18 +230,18 @@ const b = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
|
|
|
230
230
|
const n = this.settingsStore.featuredMarkerSpecies[t];
|
|
231
231
|
if (n && !this.activeSpecies.startsWith(n))
|
|
232
232
|
return !1;
|
|
233
|
-
let
|
|
234
|
-
if (
|
|
235
|
-
let
|
|
236
|
-
|
|
237
|
-
const
|
|
238
|
-
element:
|
|
233
|
+
let i = a;
|
|
234
|
+
if (i || (i = this.getFlatmapImp()), i) {
|
|
235
|
+
let o = document.createElement("div");
|
|
236
|
+
o.innerHTML = b;
|
|
237
|
+
const l = i.addMarker(e, {
|
|
238
|
+
element: o,
|
|
239
239
|
className: "highlight-marker",
|
|
240
240
|
cluster: !1
|
|
241
241
|
});
|
|
242
242
|
return this.settingsStore.updateFeaturedMarkerIdentifier({
|
|
243
243
|
index: t,
|
|
244
|
-
markerIdentifier:
|
|
244
|
+
markerIdentifier: l
|
|
245
245
|
}), !0;
|
|
246
246
|
}
|
|
247
247
|
return !1;
|
|
@@ -253,10 +253,10 @@ const b = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
|
|
|
253
253
|
this.$refs.multiflatmap.getCurrentFlatmap().changeViewingMode(e);
|
|
254
254
|
},
|
|
255
255
|
showConnectivityTooltips: function(e) {
|
|
256
|
-
this.flatmapReady && this.$refs.multiflatmap.getCurrentFlatmap().showConnectivityTooltips(e);
|
|
256
|
+
this != null && this.alive && this.flatmapReady && this.$refs.multiflatmap.getCurrentFlatmap().showConnectivityTooltips(e);
|
|
257
257
|
},
|
|
258
258
|
changeConnectivitySource: function(e) {
|
|
259
|
-
this.flatmapReady && this.$refs.multiflatmap.getCurrentFlatmap().changeConnectivitySource(e);
|
|
259
|
+
this != null && this.alive && this.flatmapReady && this.$refs.multiflatmap.getCurrentFlatmap().changeConnectivitySource(e);
|
|
260
260
|
},
|
|
261
261
|
updateSettings: function() {
|
|
262
262
|
const {
|
|
@@ -264,11 +264,11 @@ const b = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
|
|
|
264
264
|
viewingMode: t,
|
|
265
265
|
flightPathDisplay: a,
|
|
266
266
|
organsDisplay: n,
|
|
267
|
-
outlines:
|
|
267
|
+
outlines: i
|
|
268
268
|
} = this.settingsStore.globalSettings;
|
|
269
269
|
if (this.flatmapReady) {
|
|
270
|
-
const
|
|
271
|
-
|
|
270
|
+
const o = this.$refs.multiflatmap.getCurrentFlatmap();
|
|
271
|
+
o.changeViewingMode(t), o.setFlightPath3D(a), o.setColour(n), o.setOutlines(i), o.backgroundChangeCallback(e);
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
},
|
|
@@ -290,10 +290,10 @@ const b = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
|
|
|
290
290
|
},
|
|
291
291
|
mounted: function() {
|
|
292
292
|
this.getFeaturedDatasets(), s.on("annotation-close", () => {
|
|
293
|
-
this.flatmapReady && this.$refs.multiflatmap && this.$refs.multiflatmap.getCurrentFlatmap().annotationEventCallback({}, { type: "aborted" });
|
|
293
|
+
this != null && this.alive && this.flatmapReady && this.$refs.multiflatmap && this.$refs.multiflatmap.getCurrentFlatmap().annotationEventCallback({}, { type: "aborted" });
|
|
294
294
|
}), s.on("show-connectivity", (e) => {
|
|
295
295
|
const { featureIds: t, offset: a } = e;
|
|
296
|
-
if (this.flatmapReady && this.$refs.multiflatmap) {
|
|
296
|
+
if (this != null && this.alive && this.flatmapReady && this.$refs.multiflatmap) {
|
|
297
297
|
const n = this.$refs.multiflatmap.getCurrentFlatmap();
|
|
298
298
|
n && n.moveMap(t, {
|
|
299
299
|
offsetX: a ? -150 : 0,
|
|
@@ -301,7 +301,7 @@ const b = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
|
|
|
301
301
|
});
|
|
302
302
|
}
|
|
303
303
|
}), s.on("show-reference-connectivities", (e) => {
|
|
304
|
-
if (this.flatmapReady && this.$refs.multiflatmap) {
|
|
304
|
+
if (this != null && this.alive && this.flatmapReady && this.$refs.multiflatmap) {
|
|
305
305
|
const t = this.$refs.multiflatmap.getCurrentFlatmap();
|
|
306
306
|
t && t.showConnectivitiesByReference(e);
|
|
307
307
|
}
|
|
@@ -310,32 +310,32 @@ const b = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
|
|
|
310
310
|
}), s.on("connectivity-source-change", (e) => {
|
|
311
311
|
this.changeConnectivitySource(e);
|
|
312
312
|
}), s.on("markerUpdate", () => {
|
|
313
|
-
this.flatmapReady && this.flatmapMarkerUpdate(this.$refs.multiflatmap.getCurrentFlatmap().mapImp);
|
|
313
|
+
this != null && this.alive && this.flatmapReady && this.flatmapMarkerUpdate(this.$refs.multiflatmap.getCurrentFlatmap().mapImp);
|
|
314
314
|
}), s.on("hoverUpdate", () => {
|
|
315
|
-
this.flatmapReady && this.cardHoverHighlight();
|
|
315
|
+
this != null && this.alive && this.flatmapReady && this.cardHoverHighlight();
|
|
316
316
|
}), s.on("viewingModeUpdate", (e) => {
|
|
317
|
-
this.flatmapReady && this.$refs.multiflatmap.getCurrentFlatmap().changeViewingMode(e);
|
|
317
|
+
this != null && this.alive && this.flatmapReady && this.$refs.multiflatmap.getCurrentFlatmap().changeViewingMode(e);
|
|
318
318
|
}), s.on("flightPathUpdate", (e) => {
|
|
319
|
-
this.flatmapReady && this.$refs.multiflatmap.getCurrentFlatmap().setFlightPath3D(e);
|
|
319
|
+
this != null && this.alive && this.flatmapReady && this.$refs.multiflatmap.getCurrentFlatmap().setFlightPath3D(e);
|
|
320
320
|
}), s.on("organsDisplayUpdate", (e) => {
|
|
321
|
-
this.flatmapReady && this.$refs.multiflatmap.getCurrentFlatmap().setColour(e);
|
|
321
|
+
this != null && this.alive && this.flatmapReady && this.$refs.multiflatmap.getCurrentFlatmap().setColour(e);
|
|
322
322
|
}), s.on("outlinesDisplayUpdate", (e) => {
|
|
323
|
-
this.flatmapReady && this.$refs.multiflatmap.getCurrentFlatmap().setOutlines(e);
|
|
323
|
+
this != null && this.alive && this.flatmapReady && this.$refs.multiflatmap.getCurrentFlatmap().setOutlines(e);
|
|
324
324
|
}), s.on("backgroundDisplayUpdate", (e) => {
|
|
325
|
-
this.flatmapReady && this.$refs.multiflatmap.getCurrentFlatmap().backgroundChangeCallback(e);
|
|
325
|
+
this != null && this.alive && this.flatmapReady && this.$refs.multiflatmap.getCurrentFlatmap().backgroundChangeCallback(e);
|
|
326
326
|
});
|
|
327
327
|
}
|
|
328
328
|
}, O = { class: "viewer-container" };
|
|
329
|
-
function L(e, t, a, n,
|
|
330
|
-
const
|
|
329
|
+
function L(e, t, a, n, i, o) {
|
|
330
|
+
const l = f("MultiFlatmapVuer"), r = f("HelpModeDialog");
|
|
331
331
|
return c(), F("div", O, [
|
|
332
|
-
I(
|
|
332
|
+
I(l, {
|
|
333
333
|
availableSpecies: e.availableSpecies,
|
|
334
|
-
onFlatmapChanged:
|
|
335
|
-
onReady:
|
|
334
|
+
onFlatmapChanged: o.flatmapChanged,
|
|
335
|
+
onReady: o.multiFlatmapReady,
|
|
336
336
|
state: e.entry.state,
|
|
337
337
|
mapManager: e.mapManager,
|
|
338
|
-
onResourceSelected: t[0] || (t[0] = (m) =>
|
|
338
|
+
onResourceSelected: t[0] || (t[0] = (m) => o.flatmaprResourceSelected(e.entry.type, m)),
|
|
339
339
|
style: { height: "100%", width: "100%" },
|
|
340
340
|
initial: e.entry.resource,
|
|
341
341
|
helpMode: e.helpMode,
|
|
@@ -361,15 +361,15 @@ function L(e, t, a, n, o, i) {
|
|
|
361
361
|
sparcAPI: e.apiLocation,
|
|
362
362
|
showLocalSettings: e.showLocalSettings,
|
|
363
363
|
showOpenMapButton: e.showOpenMapButton,
|
|
364
|
-
onPanZoomCallback:
|
|
364
|
+
onPanZoomCallback: o.flatmapPanZoomCallback,
|
|
365
365
|
onOpenMap: e.openMap,
|
|
366
366
|
onFinishHelpMode: e.endHelp,
|
|
367
|
-
onPathwaySelectionChanged:
|
|
368
|
-
onOpenPubmedUrl:
|
|
367
|
+
onPathwaySelectionChanged: o.onPathwaySelectionChanged,
|
|
368
|
+
onOpenPubmedUrl: o.onOpenPubmedUrl,
|
|
369
369
|
onMapmanagerLoaded: e.onMapmanagerLoaded,
|
|
370
370
|
showPathwayFilter: !1
|
|
371
371
|
}, null, 8, ["availableSpecies", "onFlatmapChanged", "onReady", "state", "mapManager", "initial", "helpMode", "helpModeActiveItem", "helpModeDialog", "onHelpModeLastItem", "onShownTooltip", "onShownMapTooltip", "onAnnotationOpen", "onAnnotationClose", "onUpdateOfflineAnnotationEnabled", "annotationSidebar", "onConnectivityInfoOpen", "onConnectivityError", "onConnectivityInfoClose", "connectivityInfoSidebar", "showStarInLegend", "openMapOptions", "flatmapAPI", "sparcAPI", "showLocalSettings", "showOpenMapButton", "onPanZoomCallback", "onOpenMap", "onFinishHelpMode", "onPathwaySelectionChanged", "onOpenPubmedUrl", "onMapmanagerLoaded"]),
|
|
372
|
-
e.helpMode && e.useHelpModeDialog ? (c(), w(
|
|
372
|
+
e.helpMode && e.useHelpModeDialog ? (c(), w(r, {
|
|
373
373
|
key: 0,
|
|
374
374
|
ref: "multiflatmapHelp",
|
|
375
375
|
multiflatmapRef: e.multiflatmapRef,
|
|
@@ -379,7 +379,7 @@ function L(e, t, a, n, o, i) {
|
|
|
379
379
|
}, null, 8, ["multiflatmapRef", "lastItem", "onShowNext", "onFinishHelpMode"])) : k("", !0)
|
|
380
380
|
]);
|
|
381
381
|
}
|
|
382
|
-
const
|
|
382
|
+
const D = /* @__PURE__ */ d(R, [["render", L], ["__scopeId", "data-v-fa8acc9f"]]);
|
|
383
383
|
export {
|
|
384
|
-
|
|
384
|
+
D as default
|
|
385
385
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PlotVuer as o } from "@abi-software/plotvuer";
|
|
2
|
-
import { C as r } from "./ContentMixin-
|
|
2
|
+
import { C as r } from "./ContentMixin-DXXhWj3L.js";
|
|
3
3
|
import { resolveComponent as a, openBlock as n, createBlock as s } from "vue";
|
|
4
|
-
import { _ as m } from "./index-
|
|
4
|
+
import { _ as m } from "./index-_BTFPzpV.js";
|
|
5
5
|
const p = {
|
|
6
6
|
name: "Plot",
|
|
7
7
|
mixins: [r],
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as p,
|
|
2
|
-
import { C as g } from "./ContentMixin-
|
|
1
|
+
import { _ as p, E as c, a as l } from "./index-_BTFPzpV.js";
|
|
2
|
+
import { C as g } from "./ContentMixin-DXXhWj3L.js";
|
|
3
3
|
import { ScaffoldVuer as u } from "@abi-software/scaffoldvuer";
|
|
4
4
|
import { resolveComponent as f, openBlock as r, createElementBlock as m, createVNode as y, createBlock as M, createCommentVNode as S } from "vue";
|
|
5
|
-
const
|
|
5
|
+
const v = {
|
|
6
6
|
name: "Scaffold",
|
|
7
7
|
mixins: [g],
|
|
8
8
|
components: {
|
|
@@ -132,17 +132,17 @@ const w = {
|
|
|
132
132
|
this.scaffoldCamera = this.$refs.scaffold.$module.scene.getZincCameraControls(), l.on("startHelp", () => {
|
|
133
133
|
this.startHelp();
|
|
134
134
|
}), l.on("hoverUpdate", () => {
|
|
135
|
-
this.scaffoldLoaded && this.cardHoverHighlight();
|
|
135
|
+
this.scaffoldLoaded && (this != null && this.alive) && this.cardHoverHighlight();
|
|
136
136
|
}), l.on("backgroundDisplayUpdate", (e) => {
|
|
137
|
-
this.$refs.scaffold.backgroundChangeCallback(e);
|
|
137
|
+
this != null && this.alive && this.$refs.scaffold.backgroundChangeCallback(e);
|
|
138
138
|
}), l.on("viewingModeUpdate", (e) => {
|
|
139
|
-
this.$refs.scaffold.changeViewingMode(e);
|
|
139
|
+
this != null && this.alive && this.$refs.scaffold.changeViewingMode(e);
|
|
140
140
|
});
|
|
141
141
|
}
|
|
142
|
-
},
|
|
142
|
+
}, w = { class: "viewer-container" };
|
|
143
143
|
function b(e, o, t, a, i, n) {
|
|
144
144
|
const d = f("ScaffoldVuer"), h = f("HelpModeDialog");
|
|
145
|
-
return r(), m("div",
|
|
145
|
+
return r(), m("div", w, [
|
|
146
146
|
y(d, {
|
|
147
147
|
state: e.entry.state,
|
|
148
148
|
url: e.entry.resource,
|
|
@@ -188,7 +188,7 @@ function b(e, o, t, a, i, n) {
|
|
|
188
188
|
}, null, 8, ["scaffoldRef", "lastItem", "onShowNext", "onFinishHelpMode"])) : S("", !0)
|
|
189
189
|
]);
|
|
190
190
|
}
|
|
191
|
-
const
|
|
191
|
+
const I = /* @__PURE__ */ p(v, [["render", b], ["__scopeId", "data-v-92444a7f"]]);
|
|
192
192
|
export {
|
|
193
|
-
|
|
193
|
+
I as default
|
|
194
194
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as i } from "./ContentMixin-
|
|
1
|
+
import { C as i } from "./ContentMixin-DXXhWj3L.js";
|
|
2
2
|
import { SimulationVuer as t } from "@abi-software/simulationvuer";
|
|
3
3
|
import { resolveComponent as e, openBlock as r, createBlock as a } from "vue";
|
|
4
|
-
import { _ as m } from "./index-
|
|
4
|
+
import { _ as m } from "./index-_BTFPzpV.js";
|
|
5
5
|
const c = {
|
|
6
6
|
name: "Simulation",
|
|
7
7
|
mixins: [i],
|