@abi-software/mapintegratedvuer 1.10.1-beta.0 → 1.10.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.
@@ -1,14 +1,19 @@
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";
1
+ import { _ as c, E as h, t as u, T as s, a as l } from "./index-Dg5B_ClS.js";
2
+ import { C as g } from "./ContentMixin-BjWQ5hyW.js";
3
+ import { D as y } from "./style-B7PIw3HT.js";
4
+ import { FlatmapVuer as M } from "@abi-software/flatmapvuer";
5
+ import { resolveComponent as r, openBlock as p, createElementBlock as I, createVNode as v, createBlock as S, createCommentVNode as C } from "vue";
6
6
  const w = {
7
7
  name: "Flatmap",
8
- mixins: [g, v],
8
+ mixins: [g, y],
9
9
  components: {
10
- FlatmapVuer: y,
11
- HelpModeDialog: c
10
+ FlatmapVuer: M,
11
+ HelpModeDialog: h
12
+ },
13
+ data: function() {
14
+ return {
15
+ flatmapReady: !1
16
+ };
12
17
  },
13
18
  methods: {
14
19
  getState: function() {
@@ -26,41 +31,45 @@ const w = {
26
31
  },
27
32
  flatmaprResourceSelected: function(e, t) {
28
33
  if (this.resourceSelected(e, t), t.eventType === "click" && t.feature.type === "feature") {
29
- const n = {
34
+ const a = {
30
35
  label: t.label || "",
31
36
  id: t.feature.id || "",
32
37
  featureId: t.feature.featureId || "",
33
38
  taxonomy: t.taxonomy || "",
34
39
  resources: t.resource.join(", ")
35
- }, a = u(n);
36
- l.sendEvent({
40
+ }, n = u(a);
41
+ s.sendEvent({
37
42
  event: "interaction_event",
38
43
  event_name: "portal_maps_connectivity",
39
- category: a,
44
+ category: n,
40
45
  location: e + " " + this.$refs.flatmap.viewingMode
41
46
  });
42
47
  }
43
48
  },
44
49
  flatmapReadyCall: function(e) {
50
+ this.flatmapReady = !0;
45
51
  let t = { id: this.entry.id, prov: this.getFlatmapImp().provenance };
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);
52
+ e.mapImp, l.emit("mapImpProv", t), this.$emit("flatmap-provenance-ready", t), this.flatmapReadyForMarkerUpdates(e), this.updateViewerSettings(), this.loadConnectivityExplorerConfig(e), l.emit("mapLoaded", e);
47
53
  },
48
54
  onPathwaySelectionChanged: function(e) {
49
- const { label: t, property: n, checked: a, selectionsTitle: s } = e;
50
- l.sendEvent({
55
+ const { label: t, property: a, checked: n, selectionsTitle: i } = e;
56
+ s.sendEvent({
51
57
  event: "interaction_event",
52
58
  event_name: "portal_maps_pathway_change",
53
- category: t + " [" + n + "] " + a,
54
- location: s
59
+ category: t + " [" + a + "] " + n,
60
+ location: i
55
61
  });
56
62
  },
63
+ onSidebarAnnotationClose: function() {
64
+ this.flatmapReady && this.$refs.flatmap && this.$refs.flatmap.annotationEventCallback({}, { type: "aborted" });
65
+ },
57
66
  highlightFeatures: function(e) {
58
67
  let t = e.name;
59
- const n = this.$refs.flatmap.mapImp;
68
+ const a = this.$refs.flatmap.mapImp;
60
69
  if (t) {
61
- const a = n.search(t);
62
- a.featureIds[0] && n.highlightFeatures([
63
- n.modelForFeature(a.featureIds[0])
70
+ const n = a.search(t);
71
+ n.featureIds[0] && a.highlightFeatures([
72
+ a.modelForFeature(n.featureIds[0])
64
73
  ]);
65
74
  }
66
75
  },
@@ -69,81 +78,64 @@ const w = {
69
78
  */
70
79
  searchSuggestions: function(e, t) {
71
80
  if (e && this.$refs.flatmap.mapImp) {
72
- const n = this.$refs.flatmap.mapImp.search(e);
73
- (n.__featureIds || n.featureIds).forEach((s) => {
74
- const o = this.$refs.flatmap.mapImp.annotation(s);
81
+ const a = this.$refs.flatmap.mapImp.search(e);
82
+ (a.__featureIds || a.featureIds).forEach((i) => {
83
+ const o = this.$refs.flatmap.mapImp.annotation(i);
75
84
  o && o.label && t.push(o.label);
76
85
  });
77
86
  }
78
87
  },
88
+ showConnectivity: function(e) {
89
+ if (this != null && this.alive) {
90
+ const { featureIds: t, offset: a } = e, n = this.$refs.flatmap;
91
+ n && n.moveMap(t, {
92
+ offsetX: a ? -150 : 0,
93
+ zoom: 4
94
+ });
95
+ }
96
+ },
97
+ showConnectivitiesByReference: function(e) {
98
+ if (this != null && this.alive) {
99
+ const t = this.$refs.flatmap;
100
+ t && t.showConnectivitiesByReference(e);
101
+ }
102
+ },
79
103
  zoomToFeatures: function(e, t) {
80
- let n = e.name;
81
- const a = this.$refs.flatmap.mapImp;
82
- if (n) {
83
- const s = a.search(n);
84
- if (s.featureIds.length) {
85
- let o = a.modelForFeature(s.featureIds[0]);
86
- o ? (t && a.selectFeatures(o), a.zoomToFeatures(o)) : a.clearSearchResults();
104
+ let a = e.name;
105
+ const n = this.$refs.flatmap.mapImp;
106
+ if (a) {
107
+ const i = n.search(a);
108
+ if (i.featureIds.length) {
109
+ let o = n.modelForFeature(i.featureIds[0]);
110
+ o ? (t && n.selectFeatures(o), n.zoomToFeatures(o)) : n.clearSearchResults();
87
111
  }
88
112
  } else
89
- a.clearSearchResults();
113
+ n.clearSearchResults();
90
114
  },
91
115
  changeViewingMode: function(e) {
92
116
  this.$refs.flatmap.changeViewingMode(e);
93
117
  },
94
- updateSettings: function() {
118
+ updateViewerSettings: function() {
95
119
  const {
96
120
  backgroundDisplay: e,
97
121
  viewingMode: t,
98
- flightPathDisplay: n,
99
- organsDisplay: a,
100
- outlines: s
122
+ flightPathDisplay: a,
123
+ organsDisplay: n,
124
+ outlinesDisplay: i
101
125
  } = this.settingsStore.globalSettings, o = this.$refs.flatmap;
102
- o.changeViewingMode(t), o.setFlightPath3D(n), o.setColour(a), o.setOutlines(s), o.backgroundChangeCallback(e);
126
+ o.changeViewingMode(t), o.setFlightPath3D(a), o.setColour(n), o.setOutlines(i), o.backgroundChangeCallback(e);
103
127
  }
104
128
  },
105
129
  computed: {
106
130
  facetSpecies() {
107
131
  return this.settingsStore.facets.species;
108
132
  }
109
- },
110
- mounted: function() {
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
- }
140
- });
141
133
  }
142
134
  }, b = { class: "viewer-container" };
143
- function F(e, t, n, a, s, o) {
135
+ function F(e, t, a, n, i, o) {
144
136
  const f = r("FlatmapVuer"), m = r("HelpModeDialog");
145
- return p(), M("div", b, [
146
- I(f, {
137
+ return p(), I("div", b, [
138
+ v(f, {
147
139
  state: e.entry.state,
148
140
  entry: e.entry.resource,
149
141
  mapManager: e.mapManager,
@@ -181,17 +173,17 @@ function F(e, t, n, a, s, o) {
181
173
  onPathwaySelectionChanged: o.onPathwaySelectionChanged,
182
174
  onMapmanagerLoaded: e.onMapmanagerLoaded
183
175
  }, 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, {
176
+ e.helpMode && e.useHelpModeDialog ? (p(), S(m, {
185
177
  key: 0,
186
178
  ref: "flatmapHelp",
187
179
  flatmapRef: e.flatmapRef,
188
180
  lastItem: e.helpModeLastItem,
189
181
  onShowNext: e.onHelpModeShowNext,
190
182
  onFinishHelpMode: e.onFinishHelpMode
191
- }, null, 8, ["flatmapRef", "lastItem", "onShowNext", "onFinishHelpMode"])) : S("", !0)
183
+ }, null, 8, ["flatmapRef", "lastItem", "onShowNext", "onFinishHelpMode"])) : C("", !0)
192
184
  ]);
193
185
  }
194
- const P = /* @__PURE__ */ h(w, [["render", F], ["__scopeId", "data-v-f13488fd"]]);
186
+ const D = /* @__PURE__ */ c(w, [["render", F], ["__scopeId", "data-v-6da42dc1"]]);
195
187
  export {
196
- P as default
188
+ D as default
197
189
  };
@@ -1,6 +1,6 @@
1
- import { C as r } from "./ContentMixin-DXXhWj3L.js";
1
+ import { C as r } from "./ContentMixin-BjWQ5hyW.js";
2
2
  import { openBlock as o, createElementBlock as t, createElementVNode as s } from "vue";
3
- import { _ as n } from "./index-_BTFPzpV.js";
3
+ import { _ as n } from "./index-Dg5B_ClS.js";
4
4
  const a = {
5
5
  name: "Iframe",
6
6
  mixins: [r]
@@ -1,9 +1,9 @@
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";
1
+ import { _ as u, E as h, b as g, g as y, a as r, t as M, T as p } from "./index-Dg5B_ClS.js";
2
+ import { C as v } from "./ContentMixin-BjWQ5hyW.js";
3
+ import { D as C } from "./style-B7PIw3HT.js";
4
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) => {
5
+ import { resolveComponent as f, openBlock as c, createElementBlock as I, createVNode as F, 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>', d = (e) => {
7
7
  const t = [
8
8
  {
9
9
  display: "Open AC Map",
@@ -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: [M, C],
34
+ mixins: [v, C],
35
35
  components: {
36
36
  MultiFlatmapVuer: S,
37
37
  HelpModeDialog: h
@@ -43,7 +43,7 @@ const b = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
43
43
  availableSpecies: g(),
44
44
  scaffoldResource: {},
45
45
  showStarInLegend: !1,
46
- openMapOptions: u("Human Male")
46
+ openMapOptions: d("Human Male")
47
47
  };
48
48
  },
49
49
  methods: {
@@ -72,9 +72,9 @@ const b = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
72
72
  layout: "2vertpanel",
73
73
  type: "SyncMap",
74
74
  isBodyScaffold: !0
75
- }), e && s.emit("SyncModeRequest", { id: this.entry.id, flag: !0, action: e });
75
+ }), e && r.emit("SyncModeRequest", { id: this.entry.id, flag: !0, action: e });
76
76
  } else
77
- s.emit("SyncModeRequest", { id: this.entry.id, lag: !1 });
77
+ r.emit("SyncModeRequest", { id: this.entry.id, lag: !1 });
78
78
  },
79
79
  getState: function() {
80
80
  if (this.flatmapReady) return this.$refs.multiflatmap.getState();
@@ -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((o) => {
107
- const l = a.mapImp.annotation(o);
108
- l && l.label && t.push(l.label);
106
+ (n.__featureIds || n.featureIds).forEach((i) => {
107
+ const s = a.mapImp.annotation(i);
108
+ s && s.label && t.push(s.label);
109
109
  });
110
110
  }
111
111
  },
@@ -118,24 +118,27 @@ 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
- }, i = v(n);
121
+ }, o = M(n);
122
122
  p.sendEvent({
123
123
  event: "interaction_event",
124
124
  event_name: "portal_maps_connectivity",
125
- category: i,
125
+ category: o,
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: i } = e;
131
+ const { label: t, property: a, checked: n, selectionsTitle: o } = 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: i
136
+ location: o
137
137
  });
138
138
  },
139
+ onSidebarAnnotationClose: function() {
140
+ this.flatmapReady && this.$refs.multiflatmap.getCurrentFlatmap().annotationEventCallback({}, { type: "aborted" });
141
+ },
139
142
  onOpenPubmedUrl: function(e) {
140
143
  p.sendEvent({
141
144
  event: "interaction_event",
@@ -149,13 +152,13 @@ const b = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
149
152
  */
150
153
  handleSyncPanZoomEvent: function(e) {
151
154
  if (!this.mouseHovered && e.type !== this.entry.type) {
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
155
+ const t = e.payload.zoom, a = e.payload.target, n = this.$el.clientHeight, o = this.$el.clientWidth, i = Math.max(o, n);
156
+ let s = o / i / t;
157
+ const l = n / i / t, m = [
158
+ a[0] / 2 + 0.5 - s / 2,
159
+ 0.5 - a[1] / 2 - l / 2
157
160
  ];
158
- this.$refs.multiflatmap.getCurrentFlatmap().mapImp.panZoomTo(m, [l, r]);
161
+ this.$refs.multiflatmap.getCurrentFlatmap().mapImp.panZoomTo(m, [s, l]);
159
162
  }
160
163
  },
161
164
  displayTooltip: function(e) {
@@ -168,8 +171,8 @@ const b = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
168
171
  let a = e.name;
169
172
  const n = this.$refs.multiflatmap.getCurrentFlatmap().mapImp;
170
173
  if (a) {
171
- const i = n.search(a);
172
- i.featureIds.length > 0 ? (t && n.selectFeatures(i.featureIds), n.zoomToFeatures(i.featureIds)) : n.clearSearchResults();
174
+ const o = n.search(a);
175
+ o.featureIds.length > 0 ? (t && n.selectFeatures(o.featureIds), n.zoomToFeatures(o.featureIds)) : n.clearSearchResults();
173
176
  } else
174
177
  n.clearSearchResults();
175
178
  },
@@ -185,11 +188,11 @@ const b = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
185
188
  const e = this.getFlatmapImp();
186
189
  if (e) {
187
190
  let t = { id: this.entry.id, prov: e.provenance };
188
- s.emit("mapImpProv", t), this.$emit("flatmap-provenance-ready", t);
191
+ r.emit("mapImpProv", t), this.$emit("flatmap-provenance-ready", t);
189
192
  }
190
193
  },
191
194
  flatmapChanged: async function(e) {
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({
195
+ this.activeSpecies = e, this.openMapOptions = d(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({
193
196
  event: "interaction_event",
194
197
  event_name: "portal_maps_species_change",
195
198
  category: this.activeSpecies
@@ -199,7 +202,7 @@ const b = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
199
202
  if (e) {
200
203
  e.enablePanZoomEvents(!0), this.flatmapReady = !0;
201
204
  const t = e.mapImp;
202
- this.flatmapMarkerUpdate(t), this.updateProvCard(), this.updateSettings(), this.loadConnectivityExplorerConfig(e), s.emit("mapLoaded", e);
205
+ this.flatmapMarkerUpdate(t), this.updateProvCard(), this.updateViewerSettings(), this.loadConnectivityExplorerConfig(e), r.emit("mapLoaded", e);
203
206
  }
204
207
  },
205
208
  getFlatmapImp: function() {
@@ -212,7 +215,7 @@ const b = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
212
215
  label: "Unused",
213
216
  val: this.getFlatmapImp().visibleMarkerAnatomicalIds().map((n) => this.idNamePair[n])
214
217
  };
215
- s.emit("PopoverActionClick", a);
218
+ r.emit("PopoverActionClick", a);
216
219
  },
217
220
  restoreFeaturedMarkers: function(e) {
218
221
  this.settingsStore.resetFeaturedMarkerIdentifier();
@@ -230,18 +233,18 @@ const b = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
230
233
  const n = this.settingsStore.featuredMarkerSpecies[t];
231
234
  if (n && !this.activeSpecies.startsWith(n))
232
235
  return !1;
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,
236
+ let o = a;
237
+ if (o || (o = this.getFlatmapImp()), o) {
238
+ let i = document.createElement("div");
239
+ i.innerHTML = b;
240
+ const s = o.addMarker(e, {
241
+ element: i,
239
242
  className: "highlight-marker",
240
243
  cluster: !1
241
244
  });
242
245
  return this.settingsStore.updateFeaturedMarkerIdentifier({
243
246
  index: t,
244
- markerIdentifier: l
247
+ markerIdentifier: s
245
248
  }), !0;
246
249
  }
247
250
  return !1;
@@ -252,23 +255,38 @@ const b = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
252
255
  changeViewingMode: function(e) {
253
256
  this.$refs.multiflatmap.getCurrentFlatmap().changeViewingMode(e);
254
257
  },
258
+ showConnectivity: function(e) {
259
+ if (this != null && this.alive && this.flatmapReady && this.$refs.multiflatmap) {
260
+ const { featureIds: t, offset: a } = e, n = this.$refs.multiflatmap.getCurrentFlatmap();
261
+ n && n.moveMap(t, {
262
+ offsetX: a ? -150 : 0,
263
+ zoom: 4
264
+ });
265
+ }
266
+ },
255
267
  showConnectivityTooltips: function(e) {
256
268
  this != null && this.alive && this.flatmapReady && this.$refs.multiflatmap.getCurrentFlatmap().showConnectivityTooltips(e);
257
269
  },
270
+ showConnectivitiesByReference: function(e) {
271
+ if (this != null && this.alive && this.flatmapReady && this.$refs.multiflatmap) {
272
+ const t = this.$refs.multiflatmap.getCurrentFlatmap();
273
+ t && t.showConnectivitiesByReference(e);
274
+ }
275
+ },
258
276
  changeConnectivitySource: function(e) {
259
277
  this != null && this.alive && this.flatmapReady && this.$refs.multiflatmap.getCurrentFlatmap().changeConnectivitySource(e);
260
278
  },
261
- updateSettings: function() {
279
+ updateViewerSettings: function() {
262
280
  const {
263
281
  backgroundDisplay: e,
264
282
  viewingMode: t,
265
283
  flightPathDisplay: a,
266
284
  organsDisplay: n,
267
- outlines: i
285
+ outlinesDisplay: o
268
286
  } = this.settingsStore.globalSettings;
269
287
  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);
288
+ const i = this.$refs.multiflatmap.getCurrentFlatmap();
289
+ i.changeViewingMode(t), i.setFlightPath3D(a), i.setColour(n), i.setOutlines(o), i.backgroundChangeCallback(e);
272
290
  }
273
291
  }
274
292
  },
@@ -289,53 +307,19 @@ const b = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
289
307
  }
290
308
  },
291
309
  mounted: function() {
292
- this.getFeaturedDatasets(), s.on("annotation-close", () => {
293
- this != null && this.alive && this.flatmapReady && this.$refs.multiflatmap && this.$refs.multiflatmap.getCurrentFlatmap().annotationEventCallback({}, { type: "aborted" });
294
- }), s.on("show-connectivity", (e) => {
295
- const { featureIds: t, offset: a } = e;
296
- if (this != null && this.alive && this.flatmapReady && this.$refs.multiflatmap) {
297
- const n = this.$refs.multiflatmap.getCurrentFlatmap();
298
- n && n.moveMap(t, {
299
- offsetX: a ? -150 : 0,
300
- zoom: 4
301
- });
302
- }
303
- }), s.on("show-reference-connectivities", (e) => {
304
- if (this != null && this.alive && this.flatmapReady && this.$refs.multiflatmap) {
305
- const t = this.$refs.multiflatmap.getCurrentFlatmap();
306
- t && t.showConnectivitiesByReference(e);
307
- }
308
- }), s.on("connectivity-hovered", (e) => {
309
- this.showConnectivityTooltips(e);
310
- }), s.on("connectivity-source-change", (e) => {
311
- this.changeConnectivitySource(e);
312
- }), s.on("markerUpdate", () => {
313
- this != null && this.alive && this.flatmapReady && this.flatmapMarkerUpdate(this.$refs.multiflatmap.getCurrentFlatmap().mapImp);
314
- }), s.on("hoverUpdate", () => {
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);
326
- });
310
+ this.getFeaturedDatasets();
327
311
  }
328
312
  }, 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, {
313
+ function L(e, t, a, n, o, i) {
314
+ const s = f("MultiFlatmapVuer"), l = f("HelpModeDialog");
315
+ return c(), I("div", O, [
316
+ F(s, {
333
317
  availableSpecies: e.availableSpecies,
334
- onFlatmapChanged: o.flatmapChanged,
335
- onReady: o.multiFlatmapReady,
318
+ onFlatmapChanged: i.flatmapChanged,
319
+ onReady: i.multiFlatmapReady,
336
320
  state: e.entry.state,
337
321
  mapManager: e.mapManager,
338
- onResourceSelected: t[0] || (t[0] = (m) => o.flatmaprResourceSelected(e.entry.type, m)),
322
+ onResourceSelected: t[0] || (t[0] = (m) => i.flatmaprResourceSelected(e.entry.type, m)),
339
323
  style: { height: "100%", width: "100%" },
340
324
  initial: e.entry.resource,
341
325
  helpMode: e.helpMode,
@@ -361,15 +345,15 @@ function L(e, t, a, n, i, o) {
361
345
  sparcAPI: e.apiLocation,
362
346
  showLocalSettings: e.showLocalSettings,
363
347
  showOpenMapButton: e.showOpenMapButton,
364
- onPanZoomCallback: o.flatmapPanZoomCallback,
348
+ onPanZoomCallback: i.flatmapPanZoomCallback,
365
349
  onOpenMap: e.openMap,
366
350
  onFinishHelpMode: e.endHelp,
367
- onPathwaySelectionChanged: o.onPathwaySelectionChanged,
368
- onOpenPubmedUrl: o.onOpenPubmedUrl,
351
+ onPathwaySelectionChanged: i.onPathwaySelectionChanged,
352
+ onOpenPubmedUrl: i.onOpenPubmedUrl,
369
353
  onMapmanagerLoaded: e.onMapmanagerLoaded,
370
354
  showPathwayFilter: !1
371
355
  }, 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, {
356
+ e.helpMode && e.useHelpModeDialog ? (c(), w(l, {
373
357
  key: 0,
374
358
  ref: "multiflatmapHelp",
375
359
  multiflatmapRef: e.multiflatmapRef,
@@ -379,7 +363,7 @@ function L(e, t, a, n, i, o) {
379
363
  }, null, 8, ["multiflatmapRef", "lastItem", "onShowNext", "onFinishHelpMode"])) : k("", !0)
380
364
  ]);
381
365
  }
382
- const D = /* @__PURE__ */ d(R, [["render", L], ["__scopeId", "data-v-fa8acc9f"]]);
366
+ const D = /* @__PURE__ */ u(R, [["render", L], ["__scopeId", "data-v-9522f28f"]]);
383
367
  export {
384
368
  D as default
385
369
  };
@@ -1,7 +1,7 @@
1
1
  import { PlotVuer as o } from "@abi-software/plotvuer";
2
- import { C as r } from "./ContentMixin-DXXhWj3L.js";
2
+ import { C as r } from "./ContentMixin-BjWQ5hyW.js";
3
3
  import { resolveComponent as a, openBlock as n, createBlock as s } from "vue";
4
- import { _ as m } from "./index-_BTFPzpV.js";
4
+ import { _ as m } from "./index-Dg5B_ClS.js";
5
5
  const p = {
6
6
  name: "Plot",
7
7
  mixins: [r],