@abi-software/mapintegratedvuer 1.9.2 → 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-DO6jlHIh.js → ContentMixin-DXXhWj3L.js} +172 -161
- package/dist/{Flatmap-CY9MPW7I.js → Flatmap-DTJJHOZJ.js} +67 -40
- package/dist/{Iframe-XTSWvVQw.js → Iframe-BvIYJdxM.js} +2 -2
- package/dist/{MultiFlatmap-B7e2d6WK.js → MultiFlatmap-DYUAs7aa.js} +87 -59
- package/dist/{Plot-D3lEgm6I.js → Plot-B3waT3eW.js} +2 -2
- package/dist/Scaffold-D1SvYdhM.js +194 -0
- package/dist/{Simulation-CrPJ4_pw.js → Simulation-DEcCnsZ0.js} +2 -2
- package/dist/{index-BcpVBq1h.js → index-_BTFPzpV.js} +19889 -19974
- package/dist/mapintegratedvuer.js +1 -1
- package/dist/mapintegratedvuer.umd.cjs +226 -6059
- package/dist/style-DqJAtv3f.js +66 -0
- package/dist/style.css +1 -1
- package/package.json +7 -6
- package/src/App.vue +2 -0
- package/src/assets/header-icon.scss +2 -2
- package/src/components/ContentBar.vue +3 -0
- package/src/components/DialogToolbarContent.vue +434 -18
- package/src/components/MapContent.vue +24 -2
- package/src/components/SplitDialog.vue +71 -31
- package/src/components/SplitFlow.vue +140 -60
- package/src/components/viewers/Flatmap.vue +58 -16
- package/src/components/viewers/MultiFlatmap.vue +62 -8
- package/src/components/viewers/Scaffold.vue +24 -1
- package/src/components.d.ts +9 -0
- package/src/mixins/ContentMixin.js +58 -32
- package/src/stores/connectivities.js +59 -11
- package/src/stores/settings.js +15 -4
- package/src/stores/splitFlow.js +6 -6
- package/vite.bundle-build.js +5 -2
- package/dist/Scaffold-2Zg19azr.js +0 -43337
- package/dist/style-CIceSTeY.js +0 -104700
@@ -1,13 +1,14 @@
|
|
1
|
-
import { _ as
|
2
|
-
import { C as
|
3
|
-
import { D as
|
4
|
-
import {
|
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";
|
5
6
|
const w = {
|
6
7
|
name: "Flatmap",
|
7
|
-
mixins: [
|
8
|
+
mixins: [g, v],
|
8
9
|
components: {
|
9
|
-
FlatmapVuer:
|
10
|
-
HelpModeDialog:
|
10
|
+
FlatmapVuer: y,
|
11
|
+
HelpModeDialog: c
|
11
12
|
},
|
12
13
|
methods: {
|
13
14
|
getState: function() {
|
@@ -42,16 +43,15 @@ const w = {
|
|
42
43
|
},
|
43
44
|
flatmapReadyCall: function(e) {
|
44
45
|
let t = { id: this.entry.id, prov: this.getFlatmapImp().provenance };
|
45
|
-
|
46
|
-
r.emit("mapImpProv", t), this.$emit("flatmap-provenance-ready", t), this.flatmapReadyForMarkerUpdates(e), this.loadConnectivityKnowledge(n), r.emit("mapLoaded", e);
|
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: n, checked: a, selectionsTitle:
|
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
53
|
category: t + " [" + n + "] " + a,
|
54
|
-
location:
|
54
|
+
location: s
|
55
55
|
});
|
56
56
|
},
|
57
57
|
highlightFeatures: function(e) {
|
@@ -70,8 +70,8 @@ const w = {
|
|
70
70
|
searchSuggestions: function(e, t) {
|
71
71
|
if (e && this.$refs.flatmap.mapImp) {
|
72
72
|
const n = this.$refs.flatmap.mapImp.search(e);
|
73
|
-
(n.__featureIds || n.featureIds).forEach((
|
74
|
-
const o = this.$refs.flatmap.mapImp.annotation(
|
73
|
+
(n.__featureIds || n.featureIds).forEach((s) => {
|
74
|
+
const o = this.$refs.flatmap.mapImp.annotation(s);
|
75
75
|
o && o.label && t.push(o.label);
|
76
76
|
});
|
77
77
|
}
|
@@ -80,9 +80,9 @@ const w = {
|
|
80
80
|
let n = e.name;
|
81
81
|
const a = this.$refs.flatmap.mapImp;
|
82
82
|
if (n) {
|
83
|
-
const
|
84
|
-
if (
|
85
|
-
let o = a.modelForFeature(
|
83
|
+
const s = a.search(n);
|
84
|
+
if (s.featureIds.length) {
|
85
|
+
let o = a.modelForFeature(s.featureIds[0]);
|
86
86
|
o ? (t && a.selectFeatures(o), a.zoomToFeatures(o)) : a.clearSearchResults();
|
87
87
|
}
|
88
88
|
} else
|
@@ -90,6 +90,16 @@ const w = {
|
|
90
90
|
},
|
91
91
|
changeViewingMode: function(e) {
|
92
92
|
this.$refs.flatmap.changeViewingMode(e);
|
93
|
+
},
|
94
|
+
updateSettings: function() {
|
95
|
+
const {
|
96
|
+
backgroundDisplay: e,
|
97
|
+
viewingMode: t,
|
98
|
+
flightPathDisplay: n,
|
99
|
+
organsDisplay: a,
|
100
|
+
outlines: s
|
101
|
+
} = this.settingsStore.globalSettings, o = this.$refs.flatmap;
|
102
|
+
o.changeViewingMode(t), o.setFlightPath3D(n), o.setColour(a), o.setOutlines(s), o.backgroundChangeCallback(e);
|
93
103
|
}
|
94
104
|
},
|
95
105
|
computed: {
|
@@ -98,28 +108,42 @@ const w = {
|
|
98
108
|
}
|
99
109
|
},
|
100
110
|
mounted: function() {
|
101
|
-
|
102
|
-
this.$refs.flatmap && this.$refs.flatmap.annotationEventCallback({}, { type: "aborted" });
|
103
|
-
}),
|
104
|
-
this.flatmapMarkerUpdate(void 0);
|
105
|
-
}),
|
106
|
-
this.cardHoverHighlight();
|
107
|
-
}),
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
}),
|
114
|
-
|
115
|
-
|
111
|
+
i.on("annotation-close", () => {
|
112
|
+
this != null && this.alive && this.$refs.flatmap && this.$refs.flatmap.annotationEventCallback({}, { type: "aborted" });
|
113
|
+
}), i.on("markerUpdate", () => {
|
114
|
+
this != null && this.alive && this.flatmapMarkerUpdate(void 0);
|
115
|
+
}), i.on("hoverUpdate", () => {
|
116
|
+
this != null && this.alive && this.cardHoverHighlight();
|
117
|
+
}), i.on("viewingModeUpdate", (e) => {
|
118
|
+
this != null && this.alive && this.$refs.flatmap.changeViewingMode(e);
|
119
|
+
}), i.on("flightPathUpdate", (e) => {
|
120
|
+
this != null && this.alive && this.$refs.flatmap.setFlightPath3D(e);
|
121
|
+
}), i.on("organsDisplayUpdate", (e) => {
|
122
|
+
this != null && this.alive && this.$refs.flatmap.setColour(e);
|
123
|
+
}), i.on("outlinesDisplayUpdate", (e) => {
|
124
|
+
this != null && this.alive && this.$refs.flatmap.setOutlines(e);
|
125
|
+
}), i.on("backgroundDisplayUpdate", (e) => {
|
126
|
+
this != null && this.alive && this.$refs.flatmap.backgroundChangeCallback(e);
|
127
|
+
}), i.on("show-connectivity", (e) => {
|
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
|
+
}
|
135
|
+
}), i.on("show-reference-connectivities", (e) => {
|
136
|
+
if (this != null && this.alive) {
|
137
|
+
const t = this.$refs.flatmap;
|
138
|
+
t && t.showConnectivitiesByReference(e);
|
139
|
+
}
|
116
140
|
});
|
117
141
|
}
|
118
|
-
},
|
119
|
-
function
|
120
|
-
const
|
121
|
-
return p(), M("div",
|
122
|
-
|
142
|
+
}, b = { class: "viewer-container" };
|
143
|
+
function F(e, t, n, a, s, o) {
|
144
|
+
const f = r("FlatmapVuer"), m = r("HelpModeDialog");
|
145
|
+
return p(), M("div", b, [
|
146
|
+
I(f, {
|
123
147
|
state: e.entry.state,
|
124
148
|
entry: e.entry.resource,
|
125
149
|
mapManager: e.mapManager,
|
@@ -137,6 +161,7 @@ function b(e, t, n, a, i, o) {
|
|
137
161
|
onShownMapTooltip: e.onMapTooltipShown,
|
138
162
|
onAnnotationOpen: e.onAnnotationOpen,
|
139
163
|
onAnnotationClose: e.onAnnotationClose,
|
164
|
+
onUpdateOfflineAnnotationEnabled: e.updateOfflineAnnotationEnabled,
|
140
165
|
annotationSidebar: e.annotationSidebar,
|
141
166
|
onConnectivityInfoOpen: e.onConnectivityInfoOpen,
|
142
167
|
onConnectivityError: e.onConnectivityError,
|
@@ -150,11 +175,13 @@ function b(e, t, n, a, i, o) {
|
|
150
175
|
enableOpenMapUI: !0,
|
151
176
|
flatmapAPI: e.flatmapAPI,
|
152
177
|
sparcAPI: e.apiLocation,
|
178
|
+
showLocalSettings: e.showLocalSettings,
|
179
|
+
showOpenMapButton: e.showOpenMapButton,
|
153
180
|
onOpenMap: e.openMap,
|
154
181
|
onPathwaySelectionChanged: o.onPathwaySelectionChanged,
|
155
182
|
onMapmanagerLoaded: e.onMapmanagerLoaded
|
156
|
-
}, null, 8, ["state", "entry", "mapManager", "onPanZoomCallback", "name", "minZoom", "helpMode", "helpModeActiveItem", "helpModeDialog", "onHelpModeLastItem", "onShownTooltip", "onShownMapTooltip", "onAnnotationOpen", "onAnnotationClose", "annotationSidebar", "onConnectivityInfoOpen", "onConnectivityError", "onConnectivityInfoClose", "connectivityInfoSidebar", "onReady", "flatmapAPI", "sparcAPI", "onOpenMap", "onPathwaySelectionChanged", "onMapmanagerLoaded"]),
|
157
|
-
e.helpMode && e.useHelpModeDialog ? (p(), C(
|
183
|
+
}, null, 8, ["state", "entry", "mapManager", "onPanZoomCallback", "name", "minZoom", "helpMode", "helpModeActiveItem", "helpModeDialog", "onHelpModeLastItem", "onShownTooltip", "onShownMapTooltip", "onAnnotationOpen", "onAnnotationClose", "onUpdateOfflineAnnotationEnabled", "annotationSidebar", "onConnectivityInfoOpen", "onConnectivityError", "onConnectivityInfoClose", "connectivityInfoSidebar", "onReady", "flatmapAPI", "sparcAPI", "showLocalSettings", "showOpenMapButton", "onOpenMap", "onPathwaySelectionChanged", "onMapmanagerLoaded"]),
|
184
|
+
e.helpMode && e.useHelpModeDialog ? (p(), C(m, {
|
158
185
|
key: 0,
|
159
186
|
ref: "flatmapHelp",
|
160
187
|
flatmapRef: e.flatmapRef,
|
@@ -164,7 +191,7 @@ function b(e, t, n, a, i, o) {
|
|
164
191
|
}, null, 8, ["flatmapRef", "lastItem", "onShowNext", "onFinishHelpMode"])) : S("", !0)
|
165
192
|
]);
|
166
193
|
}
|
167
|
-
const
|
194
|
+
const P = /* @__PURE__ */ h(w, [["render", F], ["__scopeId", "data-v-f13488fd"]]);
|
168
195
|
export {
|
169
|
-
|
196
|
+
P as default
|
170
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,8 +1,9 @@
|
|
1
|
-
import { _ as
|
2
|
-
import { C as
|
3
|
-
import { D as C
|
4
|
-
import {
|
5
|
-
|
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
|
+
import { MultiFlatmapVuer as S } from "@abi-software/flatmapvuer";
|
5
|
+
import { resolveComponent as f, openBlock as c, createElementBlock as F, createVNode as I, createBlock as w, createCommentVNode as k } from "vue";
|
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) => {
|
6
7
|
const t = [
|
7
8
|
{
|
8
9
|
display: "Open AC Map",
|
@@ -28,21 +29,21 @@ const R = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
|
|
28
29
|
break;
|
29
30
|
}
|
30
31
|
return t;
|
31
|
-
},
|
32
|
+
}, R = {
|
32
33
|
name: "MultiFlatmap",
|
33
|
-
mixins: [
|
34
|
+
mixins: [M, C],
|
34
35
|
components: {
|
35
|
-
MultiFlatmapVuer:
|
36
|
+
MultiFlatmapVuer: S,
|
36
37
|
HelpModeDialog: h
|
37
38
|
},
|
38
39
|
data: function() {
|
39
40
|
return {
|
40
41
|
zoomLevel: 6,
|
41
42
|
flatmapReady: !1,
|
42
|
-
availableSpecies:
|
43
|
+
availableSpecies: g(),
|
43
44
|
scaffoldResource: {},
|
44
45
|
showStarInLegend: !1,
|
45
|
-
openMapOptions:
|
46
|
+
openMapOptions: u("Human Male")
|
46
47
|
};
|
47
48
|
},
|
48
49
|
methods: {
|
@@ -60,7 +61,7 @@ const R = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
|
|
60
61
|
title: "View 3D scaffold",
|
61
62
|
layout: "2horpanel",
|
62
63
|
type: "SyncMap"
|
63
|
-
} : (this.activeSpecies === "Human Male" || this.activeSpecies === "Human Female") && ("human" in this.scaffoldResource || (this.scaffoldResource.human = await
|
64
|
+
} : (this.activeSpecies === "Human Male" || this.activeSpecies === "Human Female") && ("human" in this.scaffoldResource || (this.scaffoldResource.human = await y(this.apiLocation, "human")), e = {
|
64
65
|
contextCardUrl: this.scaffoldResource.human.datasetInfo.contextCardUrl,
|
65
66
|
discoverId: this.scaffoldResource.human.datasetInfo.discoverId,
|
66
67
|
s3uri: this.scaffoldResource.human.datasetInfo.s3uri,
|
@@ -102,9 +103,9 @@ const R = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
|
|
102
103
|
const a = this.$refs.multiflatmap.getCurrentFlatmap();
|
103
104
|
if (e && a.mapImp) {
|
104
105
|
const n = a.mapImp.search(e);
|
105
|
-
(n.__featureIds || n.featureIds).forEach((
|
106
|
-
const
|
107
|
-
|
106
|
+
(n.__featureIds || n.featureIds).forEach((o) => {
|
107
|
+
const l = a.mapImp.annotation(o);
|
108
|
+
l && l.label && t.push(l.label);
|
108
109
|
});
|
109
110
|
}
|
110
111
|
},
|
@@ -117,22 +118,22 @@ const R = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
|
|
117
118
|
featureId: t.feature.featureId || "",
|
118
119
|
taxonomy: t.taxonomy || "",
|
119
120
|
resources: t.resource.join(", ")
|
120
|
-
},
|
121
|
+
}, i = v(n);
|
121
122
|
p.sendEvent({
|
122
123
|
event: "interaction_event",
|
123
124
|
event_name: "portal_maps_connectivity",
|
124
|
-
category:
|
125
|
+
category: i,
|
125
126
|
location: e + " " + a.viewingMode
|
126
127
|
});
|
127
128
|
}
|
128
129
|
},
|
129
130
|
onPathwaySelectionChanged: function(e) {
|
130
|
-
const { label: t, property: a, checked: n, selectionsTitle:
|
131
|
+
const { label: t, property: a, checked: n, selectionsTitle: i } = e;
|
131
132
|
p.sendEvent({
|
132
133
|
event: "interaction_event",
|
133
134
|
event_name: "portal_maps_pathway_change",
|
134
135
|
category: t + " [" + a + "] " + n,
|
135
|
-
location:
|
136
|
+
location: i
|
136
137
|
});
|
137
138
|
},
|
138
139
|
onOpenPubmedUrl: function(e) {
|
@@ -148,13 +149,13 @@ const R = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
|
|
148
149
|
*/
|
149
150
|
handleSyncPanZoomEvent: function(e) {
|
150
151
|
if (!this.mouseHovered && e.type !== this.entry.type) {
|
151
|
-
const t = e.payload.zoom, a = e.payload.target, n = this.$el.clientHeight,
|
152
|
-
let
|
153
|
-
const
|
154
|
-
a[0] / 2 + 0.5 -
|
155
|
-
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
|
156
157
|
];
|
157
|
-
this.$refs.multiflatmap.getCurrentFlatmap().mapImp.panZoomTo(m, [
|
158
|
+
this.$refs.multiflatmap.getCurrentFlatmap().mapImp.panZoomTo(m, [l, r]);
|
158
159
|
}
|
159
160
|
},
|
160
161
|
displayTooltip: function(e) {
|
@@ -167,8 +168,8 @@ const R = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
|
|
167
168
|
let a = e.name;
|
168
169
|
const n = this.$refs.multiflatmap.getCurrentFlatmap().mapImp;
|
169
170
|
if (a) {
|
170
|
-
const
|
171
|
-
|
171
|
+
const i = n.search(a);
|
172
|
+
i.featureIds.length > 0 ? (t && n.selectFeatures(i.featureIds), n.zoomToFeatures(i.featureIds)) : n.clearSearchResults();
|
172
173
|
} else
|
173
174
|
n.clearSearchResults();
|
174
175
|
},
|
@@ -188,7 +189,7 @@ const R = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
|
|
188
189
|
}
|
189
190
|
},
|
190
191
|
flatmapChanged: async function(e) {
|
191
|
-
this.activeSpecies = e, this.openMapOptions =
|
192
|
+
this.activeSpecies = e, this.openMapOptions = u(e), this.$emit("species-changed", e), this.entry.state && this.entry.state.species === this.activeSpecies || this.syncMode == !0 && await this.toggleSyncMode(), this.updateProvCard(), p.sendEvent({
|
192
193
|
event: "interaction_event",
|
193
194
|
event_name: "portal_maps_species_change",
|
194
195
|
category: this.activeSpecies
|
@@ -198,7 +199,7 @@ const R = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
|
|
198
199
|
if (e) {
|
199
200
|
e.enablePanZoomEvents(!0), this.flatmapReady = !0;
|
200
201
|
const t = e.mapImp;
|
201
|
-
this.flatmapMarkerUpdate(t), this.updateProvCard(), this.
|
202
|
+
this.flatmapMarkerUpdate(t), this.updateProvCard(), this.updateSettings(), this.loadConnectivityExplorerConfig(e), s.emit("mapLoaded", e);
|
202
203
|
}
|
203
204
|
},
|
204
205
|
getFlatmapImp: function() {
|
@@ -229,18 +230,18 @@ const R = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
|
|
229
230
|
const n = this.settingsStore.featuredMarkerSpecies[t];
|
230
231
|
if (n && !this.activeSpecies.startsWith(n))
|
231
232
|
return !1;
|
232
|
-
let
|
233
|
-
if (
|
234
|
-
let
|
235
|
-
|
236
|
-
const
|
237
|
-
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,
|
238
239
|
className: "highlight-marker",
|
239
240
|
cluster: !1
|
240
241
|
});
|
241
242
|
return this.settingsStore.updateFeaturedMarkerIdentifier({
|
242
243
|
index: t,
|
243
|
-
markerIdentifier:
|
244
|
+
markerIdentifier: l
|
244
245
|
}), !0;
|
245
246
|
}
|
246
247
|
return !1;
|
@@ -252,10 +253,23 @@ const R = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
|
|
252
253
|
this.$refs.multiflatmap.getCurrentFlatmap().changeViewingMode(e);
|
253
254
|
},
|
254
255
|
showConnectivityTooltips: function(e) {
|
255
|
-
this.flatmapReady && this.$refs.multiflatmap.getCurrentFlatmap().showConnectivityTooltips(e);
|
256
|
+
this != null && this.alive && this.flatmapReady && this.$refs.multiflatmap.getCurrentFlatmap().showConnectivityTooltips(e);
|
256
257
|
},
|
257
258
|
changeConnectivitySource: function(e) {
|
258
|
-
this.flatmapReady && this.$refs.multiflatmap.getCurrentFlatmap().changeConnectivitySource(e);
|
259
|
+
this != null && this.alive && this.flatmapReady && this.$refs.multiflatmap.getCurrentFlatmap().changeConnectivitySource(e);
|
260
|
+
},
|
261
|
+
updateSettings: function() {
|
262
|
+
const {
|
263
|
+
backgroundDisplay: e,
|
264
|
+
viewingMode: t,
|
265
|
+
flightPathDisplay: a,
|
266
|
+
organsDisplay: n,
|
267
|
+
outlines: i
|
268
|
+
} = this.settingsStore.globalSettings;
|
269
|
+
if (this.flatmapReady) {
|
270
|
+
const o = this.$refs.multiflatmap.getCurrentFlatmap();
|
271
|
+
o.changeViewingMode(t), o.setFlightPath3D(a), o.setColour(n), o.setOutlines(i), o.backgroundChangeCallback(e);
|
272
|
+
}
|
259
273
|
}
|
260
274
|
},
|
261
275
|
computed: {
|
@@ -276,10 +290,10 @@ const R = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
|
|
276
290
|
},
|
277
291
|
mounted: function() {
|
278
292
|
this.getFeaturedDatasets(), s.on("annotation-close", () => {
|
279
|
-
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" });
|
280
294
|
}), s.on("show-connectivity", (e) => {
|
281
295
|
const { featureIds: t, offset: a } = e;
|
282
|
-
if (this.flatmapReady && this.$refs.multiflatmap) {
|
296
|
+
if (this != null && this.alive && this.flatmapReady && this.$refs.multiflatmap) {
|
283
297
|
const n = this.$refs.multiflatmap.getCurrentFlatmap();
|
284
298
|
n && n.moveMap(t, {
|
285
299
|
offsetX: a ? -150 : 0,
|
@@ -287,7 +301,7 @@ const R = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
|
|
287
301
|
});
|
288
302
|
}
|
289
303
|
}), s.on("show-reference-connectivities", (e) => {
|
290
|
-
if (this.flatmapReady && this.$refs.multiflatmap) {
|
304
|
+
if (this != null && this.alive && this.flatmapReady && this.$refs.multiflatmap) {
|
291
305
|
const t = this.$refs.multiflatmap.getCurrentFlatmap();
|
292
306
|
t && t.showConnectivitiesByReference(e);
|
293
307
|
}
|
@@ -296,22 +310,32 @@ const R = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
|
|
296
310
|
}), s.on("connectivity-source-change", (e) => {
|
297
311
|
this.changeConnectivitySource(e);
|
298
312
|
}), s.on("markerUpdate", () => {
|
299
|
-
this.flatmapReady && this.flatmapMarkerUpdate(this.$refs.multiflatmap.getCurrentFlatmap().mapImp);
|
313
|
+
this != null && this.alive && this.flatmapReady && this.flatmapMarkerUpdate(this.$refs.multiflatmap.getCurrentFlatmap().mapImp);
|
300
314
|
}), s.on("hoverUpdate", () => {
|
301
|
-
this.flatmapReady && this.cardHoverHighlight();
|
315
|
+
this != null && this.alive && this.flatmapReady && this.cardHoverHighlight();
|
316
|
+
}), s.on("viewingModeUpdate", (e) => {
|
317
|
+
this != null && this.alive && this.flatmapReady && this.$refs.multiflatmap.getCurrentFlatmap().changeViewingMode(e);
|
318
|
+
}), s.on("flightPathUpdate", (e) => {
|
319
|
+
this != null && this.alive && this.flatmapReady && this.$refs.multiflatmap.getCurrentFlatmap().setFlightPath3D(e);
|
320
|
+
}), s.on("organsDisplayUpdate", (e) => {
|
321
|
+
this != null && this.alive && this.flatmapReady && this.$refs.multiflatmap.getCurrentFlatmap().setColour(e);
|
322
|
+
}), s.on("outlinesDisplayUpdate", (e) => {
|
323
|
+
this != null && this.alive && this.flatmapReady && this.$refs.multiflatmap.getCurrentFlatmap().setOutlines(e);
|
324
|
+
}), s.on("backgroundDisplayUpdate", (e) => {
|
325
|
+
this != null && this.alive && this.flatmapReady && this.$refs.multiflatmap.getCurrentFlatmap().backgroundChangeCallback(e);
|
302
326
|
});
|
303
327
|
}
|
304
|
-
},
|
305
|
-
function L(e, t, a, n,
|
306
|
-
const
|
307
|
-
return c(),
|
308
|
-
|
328
|
+
}, O = { class: "viewer-container" };
|
329
|
+
function L(e, t, a, n, i, o) {
|
330
|
+
const l = f("MultiFlatmapVuer"), r = f("HelpModeDialog");
|
331
|
+
return c(), F("div", O, [
|
332
|
+
I(l, {
|
309
333
|
availableSpecies: e.availableSpecies,
|
310
|
-
onFlatmapChanged:
|
311
|
-
onReady:
|
334
|
+
onFlatmapChanged: o.flatmapChanged,
|
335
|
+
onReady: o.multiFlatmapReady,
|
312
336
|
state: e.entry.state,
|
313
337
|
mapManager: e.mapManager,
|
314
|
-
onResourceSelected: t[0] || (t[0] = (m) =>
|
338
|
+
onResourceSelected: t[0] || (t[0] = (m) => o.flatmaprResourceSelected(e.entry.type, m)),
|
315
339
|
style: { height: "100%", width: "100%" },
|
316
340
|
initial: e.entry.resource,
|
317
341
|
helpMode: e.helpMode,
|
@@ -322,6 +346,7 @@ function L(e, t, a, n, o, i) {
|
|
322
346
|
onShownMapTooltip: e.onMapTooltipShown,
|
323
347
|
onAnnotationOpen: e.onAnnotationOpen,
|
324
348
|
onAnnotationClose: e.onAnnotationClose,
|
349
|
+
onUpdateOfflineAnnotationEnabled: e.updateOfflineAnnotationEnabled,
|
325
350
|
annotationSidebar: e.annotationSidebar,
|
326
351
|
onConnectivityInfoOpen: e.onConnectivityInfoOpen,
|
327
352
|
onConnectivityError: e.onConnectivityError,
|
@@ -334,24 +359,27 @@ function L(e, t, a, n, o, i) {
|
|
334
359
|
openMapOptions: e.openMapOptions,
|
335
360
|
flatmapAPI: e.flatmapAPI,
|
336
361
|
sparcAPI: e.apiLocation,
|
337
|
-
|
362
|
+
showLocalSettings: e.showLocalSettings,
|
363
|
+
showOpenMapButton: e.showOpenMapButton,
|
364
|
+
onPanZoomCallback: o.flatmapPanZoomCallback,
|
338
365
|
onOpenMap: e.openMap,
|
339
366
|
onFinishHelpMode: e.endHelp,
|
340
|
-
onPathwaySelectionChanged:
|
341
|
-
onOpenPubmedUrl:
|
342
|
-
onMapmanagerLoaded: e.onMapmanagerLoaded
|
343
|
-
|
344
|
-
|
367
|
+
onPathwaySelectionChanged: o.onPathwaySelectionChanged,
|
368
|
+
onOpenPubmedUrl: o.onOpenPubmedUrl,
|
369
|
+
onMapmanagerLoaded: e.onMapmanagerLoaded,
|
370
|
+
showPathwayFilter: !1
|
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(r, {
|
345
373
|
key: 0,
|
346
374
|
ref: "multiflatmapHelp",
|
347
375
|
multiflatmapRef: e.multiflatmapRef,
|
348
376
|
lastItem: e.helpModeLastItem,
|
349
377
|
onShowNext: e.onHelpModeShowNext,
|
350
378
|
onFinishHelpMode: e.onFinishHelpMode
|
351
|
-
}, null, 8, ["multiflatmapRef", "lastItem", "onShowNext", "onFinishHelpMode"])) :
|
379
|
+
}, null, 8, ["multiflatmapRef", "lastItem", "onShowNext", "onFinishHelpMode"])) : k("", !0)
|
352
380
|
]);
|
353
381
|
}
|
354
|
-
const
|
382
|
+
const D = /* @__PURE__ */ d(R, [["render", L], ["__scopeId", "data-v-fa8acc9f"]]);
|
355
383
|
export {
|
356
|
-
|
384
|
+
D as default
|
357
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],
|