@abi-software/mapintegratedvuer 1.9.0-beta.0 → 1.9.0-beta.2

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,12 +1,12 @@
1
- import { _ as d, x as h, t as u, T as s, E as r } from "./index-BGZgzrzo.js";
2
- import { C as I } from "./ContentMixin-Ccjd33IX.js";
3
- import { D as g, R as M } from "./style-Dd26IITM.js";
4
- import { resolveComponent as l, openBlock as p, createElementBlock as v, createVNode as y, createBlock as C, createCommentVNode as S } from "vue";
5
- const w = {
1
+ import { _ as c, G as h, t as u, T as l, E as r } from "./index-z8CoyNjc.js";
2
+ import { C as g } from "./ContentMixin-DhYKJqtq.js";
3
+ import { D as M, p as I } from "./style-DwAEhcnj.js";
4
+ import { resolveComponent as p, openBlock as s, createElementBlock as y, createVNode as v, createBlock as S, createCommentVNode as C } from "vue";
5
+ const F = {
6
6
  name: "Flatmap",
7
- mixins: [I, g],
7
+ mixins: [g, M],
8
8
  components: {
9
- FlatmapVuer: M,
9
+ FlatmapVuer: I,
10
10
  HelpModeDialog: h
11
11
  },
12
12
  methods: {
@@ -23,69 +23,69 @@ const w = {
23
23
  var e;
24
24
  return (e = this.$refs.flatmap) == null ? void 0 : e.mapImp;
25
25
  },
26
- flatmaprResourceSelected: function(e, t) {
27
- if (this.resourceSelected(e, t), t.eventType === "click" && t.feature.type === "feature") {
28
- const a = {
29
- label: t.label || "",
30
- id: t.feature.id || "",
31
- featureId: t.feature.featureId || "",
32
- taxonomy: t.taxonomy || "",
33
- resources: t.resource.join(", ")
34
- }, n = u(a);
35
- s.sendEvent({
26
+ flatmaprResourceSelected: function(e, a) {
27
+ if (this.resourceSelected(e, a), a.eventType === "click" && a.feature.type === "feature") {
28
+ const n = {
29
+ label: a.label || "",
30
+ id: a.feature.id || "",
31
+ featureId: a.feature.featureId || "",
32
+ taxonomy: a.taxonomy || "",
33
+ resources: a.resource.join(", ")
34
+ }, t = u(n);
35
+ l.sendEvent({
36
36
  event: "interaction_event",
37
37
  event_name: "portal_maps_connectivity",
38
- category: n,
38
+ category: t,
39
39
  location: e + " " + this.$refs.flatmap.viewingMode
40
40
  });
41
41
  }
42
42
  },
43
43
  flatmapReadyCall: function(e) {
44
- let t = { id: this.entry.id, prov: this.getFlatmapImp().provenance };
45
- r.emit("mapImpProv", t), this.$emit("flatmap-provenance-ready", t), this.flatmapReadyForMarkerUpdates(e), r.emit("mapLoaded", e);
44
+ let a = { id: this.entry.id, prov: this.getFlatmapImp().provenance };
45
+ r.emit("mapImpProv", a), this.$emit("flatmap-provenance-ready", a), this.flatmapReadyForMarkerUpdates(e), r.emit("mapLoaded", e);
46
46
  },
47
47
  onPathwaySelectionChanged: function(e) {
48
- const { label: t, property: a, checked: n, selectionsTitle: i } = e;
49
- s.sendEvent({
48
+ const { label: a, property: n, checked: t, selectionsTitle: i } = e;
49
+ l.sendEvent({
50
50
  event: "interaction_event",
51
51
  event_name: "portal_maps_pathway_change",
52
- category: t + " [" + a + "] " + n,
52
+ category: a + " [" + n + "] " + t,
53
53
  location: i
54
54
  });
55
55
  },
56
56
  highlightFeatures: function(e) {
57
- let t = e.name;
58
- const a = this.$refs.flatmap.mapImp;
59
- if (t) {
60
- const n = a.search(t);
61
- n.featureIds[0] && a.highlightFeatures([
62
- a.modelForFeature(n.featureIds[0])
57
+ let a = e.name;
58
+ const n = this.$refs.flatmap.mapImp;
59
+ if (a) {
60
+ const t = n.search(a);
61
+ t.featureIds[0] && n.highlightFeatures([
62
+ n.modelForFeature(t.featureIds[0])
63
63
  ]);
64
64
  }
65
65
  },
66
66
  /**
67
67
  * Append the list of suggested terms to suggestions
68
68
  */
69
- searchSuggestions: function(e, t) {
69
+ searchSuggestions: function(e, a) {
70
70
  if (e && this.$refs.flatmap.mapImp) {
71
- const a = this.$refs.flatmap.mapImp.search(e);
72
- (a.__featureIds || a.featureIds).forEach((i) => {
71
+ const n = this.$refs.flatmap.mapImp.search(e);
72
+ (n.__featureIds || n.featureIds).forEach((i) => {
73
73
  const o = this.$refs.flatmap.mapImp.annotation(i);
74
- o && o.label && t.push(o.label);
74
+ o && o.label && a.push(o.label);
75
75
  });
76
76
  }
77
77
  },
78
- zoomToFeatures: function(e, t) {
79
- let a = e.name;
80
- const n = this.$refs.flatmap.mapImp;
81
- if (a) {
82
- const i = n.search(a);
78
+ zoomToFeatures: function(e, a) {
79
+ let n = e.name;
80
+ const t = this.$refs.flatmap.mapImp;
81
+ if (n) {
82
+ const i = t.search(n);
83
83
  if (i.featureIds.length) {
84
- let o = n.modelForFeature(i.featureIds[0]);
85
- o ? (t && n.selectFeatures(o), n.zoomToFeatures(o)) : n.clearSearchResults();
84
+ let o = t.modelForFeature(i.featureIds[0]);
85
+ o ? (a && t.selectFeatures(o), t.zoomToFeatures(o)) : t.clearSearchResults();
86
86
  }
87
87
  } else
88
- n.clearSearchResults();
88
+ t.clearSearchResults();
89
89
  },
90
90
  changeViewingMode: function(e) {
91
91
  this.$refs.flatmap.changeViewingMode(e);
@@ -97,33 +97,32 @@ const w = {
97
97
  }
98
98
  },
99
99
  mounted: function() {
100
- r.on("annotation-close", (e) => {
101
- const t = this.$refs.flatmap;
102
- e != null && e.tabClose && t && this.$refs.flatmap.annotationEventCallback({}, { type: "aborted" });
100
+ r.on("annotation-close", () => {
101
+ this.$refs.flatmap && this.$refs.flatmap.annotationEventCallback({}, { type: "aborted" });
103
102
  }), r.on("markerUpdate", () => {
104
103
  this.flatmapMarkerUpdate(void 0);
105
104
  }), r.on("hoverUpdate", () => {
106
- this.mapHoverHighlight();
105
+ this.cardHoverHighlight();
107
106
  }), r.on("show-connectivity", (e) => {
108
- const { featureIds: t, offset: a } = e, n = this.$refs.flatmap;
109
- n && n.moveMap(t, {
110
- offsetX: a ? -150 : 0,
107
+ const { featureIds: a, offset: n } = e, t = this.$refs.flatmap;
108
+ t && t.moveMap(a, {
109
+ offsetX: n ? -150 : 0,
111
110
  zoom: 4
112
111
  });
113
112
  }), r.on("show-reference-connectivities", (e) => {
114
- const t = this.$refs.flatmap;
115
- t && t.showConnectivitiesByReference(e);
113
+ const a = this.$refs.flatmap;
114
+ a && a.showConnectivitiesByReference(e);
116
115
  });
117
116
  }
118
- }, F = { class: "viewer-container" };
119
- function b(e, t, a, n, i, o) {
120
- const m = l("FlatmapVuer"), f = l("HelpModeDialog");
121
- return p(), v("div", F, [
122
- y(m, {
117
+ }, w = { class: "viewer-container" };
118
+ function b(e, a, n, t, i, o) {
119
+ const m = p("FlatmapVuer"), f = p("HelpModeDialog");
120
+ return s(), y("div", w, [
121
+ v(m, {
123
122
  state: e.entry.state,
124
123
  entry: e.entry.resource,
125
124
  mapManager: e.mapManager,
126
- onResourceSelected: t[0] || (t[0] = (c) => o.flatmaprResourceSelected(e.entry.type, c)),
125
+ onResourceSelected: a[0] || (a[0] = (d) => o.flatmaprResourceSelected(e.entry.type, d)),
127
126
  onPanZoomCallback: e.flatmapPanZoomCallback,
128
127
  name: e.entry.resource,
129
128
  style: { height: "100%", width: "100%" },
@@ -139,7 +138,6 @@ function b(e, t, a, n, i, o) {
139
138
  onAnnotationClose: e.onAnnotationClose,
140
139
  annotationSidebar: e.annotationSidebar,
141
140
  onConnectivityInfoOpen: e.onConnectivityInfoOpen,
142
- onConnectivityInfoClose: e.onConnectivityInfoClose,
143
141
  onConnectivityGraphError: e.onConnectivityGraphError,
144
142
  connectivityInfoSidebar: e.connectivityInfoSidebar,
145
143
  pathControls: !0,
@@ -153,18 +151,18 @@ function b(e, t, a, n, i, o) {
153
151
  onOpenMap: e.openMap,
154
152
  onPathwaySelectionChanged: o.onPathwaySelectionChanged,
155
153
  onMapmanagerLoaded: e.onMapmanagerLoaded
156
- }, null, 8, ["state", "entry", "mapManager", "onPanZoomCallback", "name", "minZoom", "helpMode", "helpModeActiveItem", "helpModeDialog", "onHelpModeLastItem", "onShownTooltip", "onShownMapTooltip", "onAnnotationOpen", "onAnnotationClose", "annotationSidebar", "onConnectivityInfoOpen", "onConnectivityInfoClose", "onConnectivityGraphError", "connectivityInfoSidebar", "onReady", "flatmapAPI", "sparcAPI", "onOpenMap", "onPathwaySelectionChanged", "onMapmanagerLoaded"]),
157
- e.helpMode && e.useHelpModeDialog ? (p(), C(f, {
154
+ }, null, 8, ["state", "entry", "mapManager", "onPanZoomCallback", "name", "minZoom", "helpMode", "helpModeActiveItem", "helpModeDialog", "onHelpModeLastItem", "onShownTooltip", "onShownMapTooltip", "onAnnotationOpen", "onAnnotationClose", "annotationSidebar", "onConnectivityInfoOpen", "onConnectivityGraphError", "connectivityInfoSidebar", "onReady", "flatmapAPI", "sparcAPI", "onOpenMap", "onPathwaySelectionChanged", "onMapmanagerLoaded"]),
155
+ e.helpMode && e.useHelpModeDialog ? (s(), S(f, {
158
156
  key: 0,
159
157
  ref: "flatmapHelp",
160
158
  flatmapRef: e.flatmapRef,
161
159
  lastItem: e.helpModeLastItem,
162
160
  onShowNext: e.onHelpModeShowNext,
163
161
  onFinishHelpMode: e.onFinishHelpMode
164
- }, null, 8, ["flatmapRef", "lastItem", "onShowNext", "onFinishHelpMode"])) : S("", !0)
162
+ }, null, 8, ["flatmapRef", "lastItem", "onShowNext", "onFinishHelpMode"])) : C("", !0)
165
163
  ]);
166
164
  }
167
- const k = /* @__PURE__ */ d(w, [["render", b], ["__scopeId", "data-v-e3d04e7c"]]);
165
+ const k = /* @__PURE__ */ c(F, [["render", b], ["__scopeId", "data-v-393c126c"]]);
168
166
  export {
169
167
  k as default
170
168
  };
@@ -1,6 +1,6 @@
1
- import { C as r } from "./ContentMixin-Ccjd33IX.js";
1
+ import { C as r } from "./ContentMixin-DhYKJqtq.js";
2
2
  import { openBlock as o, createElementBlock as t, createElementVNode as s } from "vue";
3
- import { _ as n } from "./index-BGZgzrzo.js";
3
+ import { _ as n } from "./index-z8CoyNjc.js";
4
4
  const a = {
5
5
  name: "Iframe",
6
6
  mixins: [r]
@@ -1,8 +1,8 @@
1
- import { _ as u, x as h, a as y, g, E as r, t as M, T as p } from "./index-BGZgzrzo.js";
2
- import { C as v } from "./ContentMixin-Ccjd33IX.js";
3
- import { D as I, q as C } from "./style-Dd26IITM.js";
4
- import { resolveComponent as f, openBlock as c, createElementBlock as S, createVNode as F, createBlock as k, createCommentVNode as w } from "vue";
5
- 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) => {
1
+ import { _ as u, G as h, a as y, g, E as s, t as M, T as p } from "./index-z8CoyNjc.js";
2
+ import { C as v } from "./ContentMixin-DhYKJqtq.js";
3
+ import { D as I, A as C } from "./style-DwAEhcnj.js";
4
+ import { resolveComponent as f, openBlock as c, createElementBlock as S, createVNode as F, createBlock as w, createCommentVNode as k } from "vue";
5
+ const R = '<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) => {
6
6
  const t = [
7
7
  {
8
8
  display: "Open AC Map",
@@ -28,7 +28,7 @@ const b = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
28
28
  break;
29
29
  }
30
30
  return t;
31
- }, R = {
31
+ }, b = {
32
32
  name: "MultiFlatmap",
33
33
  mixins: [v, I],
34
34
  components: {
@@ -71,9 +71,9 @@ const b = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
71
71
  layout: "2vertpanel",
72
72
  type: "SyncMap",
73
73
  isBodyScaffold: !0
74
- }), e && r.emit("SyncModeRequest", { flag: !0, action: e });
74
+ }), e && s.emit("SyncModeRequest", { id: this.entry.id, flag: !0, action: e });
75
75
  } else
76
- r.emit("SyncModeRequest", { flag: !1 });
76
+ s.emit("SyncModeRequest", { id: this.entry.id, lag: !1 });
77
77
  },
78
78
  getState: function() {
79
79
  if (this.flatmapReady) return this.$refs.multiflatmap.getState();
@@ -103,8 +103,8 @@ const b = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
103
103
  if (e && a.mapImp) {
104
104
  const n = a.mapImp.search(e);
105
105
  (n.__featureIds || n.featureIds).forEach((i) => {
106
- const s = a.mapImp.annotation(i);
107
- s && s.label && t.push(s.label);
106
+ const r = a.mapImp.annotation(i);
107
+ r && r.label && t.push(r.label);
108
108
  });
109
109
  }
110
110
  },
@@ -149,12 +149,12 @@ const b = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
149
149
  handleSyncPanZoomEvent: function(e) {
150
150
  if (!this.mouseHovered && e.type !== this.entry.type) {
151
151
  const t = e.payload.zoom, a = e.payload.target, n = this.$el.clientHeight, o = this.$el.clientWidth, i = Math.max(o, n);
152
- let s = o / i / t;
152
+ let r = o / i / t;
153
153
  const l = n / i / t, m = [
154
- a[0] / 2 + 0.5 - s / 2,
154
+ a[0] / 2 + 0.5 - r / 2,
155
155
  0.5 - a[1] / 2 - l / 2
156
156
  ];
157
- this.$refs.multiflatmap.getCurrentFlatmap().mapImp.panZoomTo(m, [s, l]);
157
+ this.$refs.multiflatmap.getCurrentFlatmap().mapImp.panZoomTo(m, [r, l]);
158
158
  }
159
159
  },
160
160
  displayTooltip: function(e) {
@@ -184,11 +184,11 @@ const b = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
184
184
  const e = this.getFlatmapImp();
185
185
  if (e) {
186
186
  let t = { id: this.entry.id, prov: e.provenance };
187
- this.$emit("flatmap-provenance-ready", t);
187
+ s.emit("mapImpProv", t), this.$emit("flatmap-provenance-ready", t);
188
188
  }
189
189
  },
190
190
  flatmapChanged: async function(e) {
191
- 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(), this.onConnectivityInfoClose(), p.sendEvent({
191
+ 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({
192
192
  event: "interaction_event",
193
193
  event_name: "portal_maps_species_change",
194
194
  category: this.activeSpecies
@@ -198,7 +198,7 @@ const b = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
198
198
  if (e) {
199
199
  e.enablePanZoomEvents(!0), this.flatmapReady = !0;
200
200
  const t = e.mapImp;
201
- this.flatmapMarkerUpdate(t), this.updateProvCard(), r.emit("mapLoaded", e);
201
+ this.flatmapMarkerUpdate(t), this.updateProvCard(), this.loadConnectivityKnowledge(t), s.emit("mapLoaded", e);
202
202
  }
203
203
  },
204
204
  getFlatmapImp: function() {
@@ -211,7 +211,7 @@ const b = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
211
211
  label: "Unused",
212
212
  val: this.getFlatmapImp().visibleMarkerAnatomicalIds().map((n) => this.idNamePair[n])
213
213
  };
214
- r.emit("PopoverActionClick", a);
214
+ s.emit("PopoverActionClick", a);
215
215
  },
216
216
  restoreFeaturedMarkers: function(e) {
217
217
  this.settingsStore.resetFeaturedMarkerIdentifier();
@@ -232,15 +232,15 @@ const b = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
232
232
  let o = a;
233
233
  if (o || (o = this.getFlatmapImp()), o) {
234
234
  let i = document.createElement("div");
235
- i.innerHTML = b;
236
- const s = o.addMarker(e, {
235
+ i.innerHTML = R;
236
+ const r = o.addMarker(e, {
237
237
  element: i,
238
238
  className: "highlight-marker",
239
239
  cluster: !1
240
240
  });
241
241
  return this.settingsStore.updateFeaturedMarkerIdentifier({
242
242
  index: t,
243
- markerIdentifier: s
243
+ markerIdentifier: r
244
244
  }), !0;
245
245
  }
246
246
  return !1;
@@ -253,6 +253,9 @@ const b = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
253
253
  },
254
254
  showConnectivityTooltips: function(e) {
255
255
  this.flatmapReady && this.$refs.multiflatmap.getCurrentFlatmap().showConnectivityTooltips(e);
256
+ },
257
+ changeConnectivitySource: function(e) {
258
+ this.flatmapReady && this.$refs.multiflatmap.getCurrentFlatmap().changeConnectivitySource(e);
256
259
  }
257
260
  },
258
261
  computed: {
@@ -272,9 +275,9 @@ const b = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
272
275
  }
273
276
  },
274
277
  mounted: function() {
275
- this.getFeaturedDatasets(), r.on("annotation-close", (e) => {
276
- e != null && e.tabClose && this.flatmapReady && this.$refs.multiflatmap && this.$refs.multiflatmap.getCurrentFlatmap().annotationEventCallback({}, { type: "aborted" });
277
- }), r.on("show-connectivity", (e) => {
278
+ this.getFeaturedDatasets(), s.on("annotation-close", () => {
279
+ this.flatmapReady && this.$refs.multiflatmap && this.$refs.multiflatmap.getCurrentFlatmap().annotationEventCallback({}, { type: "aborted" });
280
+ }), s.on("show-connectivity", (e) => {
278
281
  const { featureIds: t, offset: a } = e;
279
282
  if (this.flatmapReady && this.$refs.multiflatmap) {
280
283
  const n = this.$refs.multiflatmap.getCurrentFlatmap();
@@ -283,24 +286,31 @@ const b = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
283
286
  zoom: 4
284
287
  });
285
288
  }
286
- }), r.on("show-reference-connectivities", (e) => {
289
+ }), s.on("show-reference-connectivities", (e) => {
287
290
  if (this.flatmapReady && this.$refs.multiflatmap) {
288
291
  const t = this.$refs.multiflatmap.getCurrentFlatmap();
289
292
  t && t.showConnectivitiesByReference(e);
290
293
  }
291
- }), r.on("connectivity-component-click", (e) => {
294
+ }), s.on("connectivity-hovered", (e) => {
292
295
  this.showConnectivityTooltips(e);
293
- }), r.on("markerUpdate", () => {
296
+ }), s.on("connectivity-source-change", (e) => {
297
+ this.changeConnectivitySource(e);
298
+ }), s.on("markerUpdate", () => {
294
299
  this.flatmapReady && this.flatmapMarkerUpdate(this.$refs.multiflatmap.getCurrentFlatmap().mapImp);
295
- }), r.on("hoverUpdate", () => {
296
- this.flatmapReady && this.mapHoverHighlight();
300
+ }), s.on("hoverUpdate", () => {
301
+ this.flatmapReady && this.cardHoverHighlight();
302
+ }), s.on("connectivity-query-filter", (e) => {
303
+ if (this.flatmapReady && this.$refs.multiflatmap) {
304
+ const t = this.$refs.multiflatmap.getCurrentFlatmap();
305
+ t && t.mapImp && this.connectivityQueryFilter(t, e);
306
+ }
297
307
  });
298
308
  }
299
309
  }, H = { class: "viewer-container" };
300
310
  function L(e, t, a, n, o, i) {
301
- const s = f("MultiFlatmapVuer"), l = f("HelpModeDialog");
311
+ const r = f("MultiFlatmapVuer"), l = f("HelpModeDialog");
302
312
  return c(), S("div", H, [
303
- F(s, {
313
+ F(r, {
304
314
  availableSpecies: e.availableSpecies,
305
315
  onFlatmapChanged: i.flatmapChanged,
306
316
  onReady: i.multiFlatmapReady,
@@ -319,7 +329,6 @@ function L(e, t, a, n, o, i) {
319
329
  onAnnotationClose: e.onAnnotationClose,
320
330
  annotationSidebar: e.annotationSidebar,
321
331
  onConnectivityInfoOpen: e.onConnectivityInfoOpen,
322
- onConnectivityInfoClose: e.onConnectivityInfoClose,
323
332
  onConnectivityGraphError: e.onConnectivityGraphError,
324
333
  connectivityInfoSidebar: e.connectivityInfoSidebar,
325
334
  ref: "multiflatmap",
@@ -335,18 +344,18 @@ function L(e, t, a, n, o, i) {
335
344
  onPathwaySelectionChanged: i.onPathwaySelectionChanged,
336
345
  onOpenPubmedUrl: i.onOpenPubmedUrl,
337
346
  onMapmanagerLoaded: e.onMapmanagerLoaded
338
- }, null, 8, ["availableSpecies", "onFlatmapChanged", "onReady", "state", "mapManager", "initial", "helpMode", "helpModeActiveItem", "helpModeDialog", "onHelpModeLastItem", "onShownTooltip", "onShownMapTooltip", "onAnnotationOpen", "onAnnotationClose", "annotationSidebar", "onConnectivityInfoOpen", "onConnectivityInfoClose", "onConnectivityGraphError", "connectivityInfoSidebar", "showStarInLegend", "openMapOptions", "flatmapAPI", "sparcAPI", "onPanZoomCallback", "onOpenMap", "onFinishHelpMode", "onPathwaySelectionChanged", "onOpenPubmedUrl", "onMapmanagerLoaded"]),
339
- e.helpMode && e.useHelpModeDialog ? (c(), k(l, {
347
+ }, null, 8, ["availableSpecies", "onFlatmapChanged", "onReady", "state", "mapManager", "initial", "helpMode", "helpModeActiveItem", "helpModeDialog", "onHelpModeLastItem", "onShownTooltip", "onShownMapTooltip", "onAnnotationOpen", "onAnnotationClose", "annotationSidebar", "onConnectivityInfoOpen", "onConnectivityGraphError", "connectivityInfoSidebar", "showStarInLegend", "openMapOptions", "flatmapAPI", "sparcAPI", "onPanZoomCallback", "onOpenMap", "onFinishHelpMode", "onPathwaySelectionChanged", "onOpenPubmedUrl", "onMapmanagerLoaded"]),
348
+ e.helpMode && e.useHelpModeDialog ? (c(), w(l, {
340
349
  key: 0,
341
350
  ref: "multiflatmapHelp",
342
351
  multiflatmapRef: e.multiflatmapRef,
343
352
  lastItem: e.helpModeLastItem,
344
353
  onShowNext: e.onHelpModeShowNext,
345
354
  onFinishHelpMode: e.onFinishHelpMode
346
- }, null, 8, ["multiflatmapRef", "lastItem", "onShowNext", "onFinishHelpMode"])) : w("", !0)
355
+ }, null, 8, ["multiflatmapRef", "lastItem", "onShowNext", "onFinishHelpMode"])) : k("", !0)
347
356
  ]);
348
357
  }
349
- const T = /* @__PURE__ */ u(R, [["render", L], ["__scopeId", "data-v-4f713fcd"]]);
358
+ const T = /* @__PURE__ */ u(b, [["render", L], ["__scopeId", "data-v-7b3be366"]]);
350
359
  export {
351
360
  T as default
352
361
  };
@@ -1,7 +1,7 @@
1
1
  import { PlotVuer as o } from "@abi-software/plotvuer";
2
- import { C as r } from "./ContentMixin-Ccjd33IX.js";
2
+ import { C as r } from "./ContentMixin-DhYKJqtq.js";
3
3
  import { resolveComponent as a, openBlock as n, createBlock as s } from "vue";
4
- import { _ as m } from "./index-BGZgzrzo.js";
4
+ import { _ as m } from "./index-z8CoyNjc.js";
5
5
  const p = {
6
6
  name: "Plot",
7
7
  mixins: [r],
@@ -1,5 +1,5 @@
1
- import { y as K1, b as Q1, w as ew, h as tw, C as iw, k as rw, _ as nw, x as ow, E as Wu } from "./index-BGZgzrzo.js";
2
- import { C as aw } from "./ContentMixin-Ccjd33IX.js";
1
+ import { z as K1, U as Q1, w as ew, h as tw, K as iw, W as rw, _ as nw, G as ow, E as Wu } from "./index-z8CoyNjc.js";
2
+ import { C as aw } from "./ContentMixin-DhYKJqtq.js";
3
3
  import { ref as Ee, defineComponent as Pe, computed as he, openBlock as ye, createElementBlock as Ce, mergeProps as Rr, unref as V, renderSlot as $e, useAttrs as sw, useSlots as au, shallowRef as Ci, watch as Qe, nextTick as yt, onMounted as ti, toRef as Ii, createCommentVNode as Ue, Fragment as zt, normalizeClass as Re, createElementVNode as ze, createBlock as Ve, withCtx as ve, resolveDynamicComponent as Ni, withModifiers as si, createVNode as le, toDisplayString as vt, normalizeStyle as Ct, provide as ui, reactive as $i, onActivated as lw, onUpdated as ip, inject as ht, onBeforeUnmount as rr, withDirectives as Ot, cloneVNode as cw, Text as n0, Comment as uw, Transition as hl, vShow as mi, readonly as o0, onDeactivated as hw, toHandlers as dw, withKeys as pr, createTextVNode as mt, createSlots as pw, toRefs as ln, getCurrentInstance as ni, h as ba, renderList as Qi, onUnmounted as a0, markRaw as Wt, watchEffect as s0, warn as fw, onBeforeMount as mw, toRaw as rp, getCurrentScope as l0, onScopeDispose as c0, isRef as Lo, isVNode as Kh, Teleport as gw, resolveComponent as Ei, resolveDirective as vw, toHandlerKey as yw, vModelText as bw, createApp as xw, hasInjectionContext as ww, effectScope as _w, isReactive as np } from "vue";
4
4
  const Jr = (i, e, { checkForDefaultPrevented: t = !0 } = {}) => (r) => {
5
5
  const n = i == null ? void 0 : i(r);
@@ -31407,7 +31407,7 @@ const Bz = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
31407
31407
  /* 2 */
31408
31408
  /***/
31409
31409
  (a) => {
31410
- a.exports = /* @__PURE__ */ JSON.parse('{"name":"zincjs","version":"1.12.1","description":"ZincJS (Web-based-Zinc-Visualisation)","main":"build/zinc.js","directories":{"doc":"docs"},"files":["package.json","LICENSE","README.md","src/*","build/zinc.js","build/zinc.frontend.js","build/zinc.js.map","webpack.config.js"],"scripts":{"build-bundle":"webpack --config webpack.frontend.js; webpack --config webpack.backend.js","build-backend":"webpack --config webpack.backend.js","test":"npm --prefix ./test install && npm --prefix ./test run test-ci","changelog":"auto-changelog -p --output CHANGELOG.md --template keepachangelog","jsdoc":"jsdoc -c jsdoc_conf.json","version":"npm run build-bundle;npm run jsdoc;npm run changelog; git add CHANGELOG.md docs","release:beta":"npm version prerelease --preid=beta; npm publish --tag beta","release:minor":"npm version minor; npm publish","release:patch":"npm version patch; npm publish"},"repository":{"type":"git","url":"git+https://github.com/alan-wu/ZincJS.git"},"keywords":["library","webgl","3d","zincjs"],"author":"Alan Wu <alan.wu@auckland.ac.nz>","license":"MIT","bugs":{"url":"https://github.com/alan-wu/ZincJS/issues"},"homepage":"http://alan-wu.github.io/ZincJS/","devDependencies":{"@babel/core":"^7.23.9","@babel/preset-env":"^7.23.9","auto-changelog":"^2.4.0","babel-loader":"^9.1.3","babel-preset-minify":"^0.5.1","file-loader":"^6.2.0","jsdoc":"^4.0.2","raw-loader":"^4.0.2","webpack":"^5.90.3","webpack-cli":"^5.1.4","webpack-node-externals":"^3.0.0"},"dependencies":{"css-element-queries":"^1.2.2","lodash":"^4.17.19","promise-polyfill":"^8.1.3","three":"^0.130.1","three-spritetext":"1.6.2","url-loader":"^4.1.1","url-polyfill":"^1.1.7","webworkify-webpack":"^2.1.5"}}');
31410
+ a.exports = /* @__PURE__ */ JSON.parse('{"name":"zincjs","version":"1.13.0","description":"ZincJS (Web-based-Zinc-Visualisation)","main":"build/zinc.js","directories":{"doc":"docs"},"files":["package.json","LICENSE","README.md","src/*","build/zinc.js","build/zinc.frontend.js","build/zinc.js.map","webpack.config.js"],"scripts":{"build-bundle":"webpack --config webpack.frontend.js; webpack --config webpack.backend.js","build-backend":"webpack --config webpack.backend.js","test":"npm --prefix ./test install && npm --prefix ./test run test-ci","changelog":"auto-changelog -p --output CHANGELOG.md --template keepachangelog","jsdoc":"jsdoc -c jsdoc_conf.json","version":"npm run build-bundle;npm run jsdoc;npm run changelog; git add CHANGELOG.md docs","release:beta":"npm version prerelease --preid=beta; npm publish --tag beta","release:minor":"npm version minor; npm publish","release:patch":"npm version patch; npm publish"},"repository":{"type":"git","url":"git+https://github.com/alan-wu/ZincJS.git"},"keywords":["library","webgl","3d","zincjs"],"author":"Alan Wu <alan.wu@auckland.ac.nz>","license":"MIT","bugs":{"url":"https://github.com/alan-wu/ZincJS/issues"},"homepage":"http://alan-wu.github.io/ZincJS/","devDependencies":{"@babel/core":"^7.23.9","@babel/preset-env":"^7.23.9","auto-changelog":"^2.4.0","babel-loader":"^9.1.3","babel-preset-minify":"^0.5.1","file-loader":"^6.2.0","jsdoc":"^4.0.2","raw-loader":"^4.0.2","webpack":"^5.90.3","webpack-cli":"^5.1.4","webpack-node-externals":"^3.0.0"},"dependencies":{"css-element-queries":"^1.2.2","lodash":"^4.17.19","promise-polyfill":"^8.1.3","three":"^0.130.1","three-spritetext":"1.6.2","url-loader":"^4.1.1","url-polyfill":"^1.1.7","webworkify-webpack":"^2.1.5"}}');
31411
31411
  },
31412
31412
  /* 3 */
31413
31413
  /***/
@@ -39328,7 +39328,7 @@ const H1 = m4("main", {
39328
39328
  data: function() {
39329
39329
  return {
39330
39330
  display: !1,
39331
- annotationEntry: {},
39331
+ annotationEntry: [],
39332
39332
  ElIconDelete: Ci(Zc)
39333
39333
  };
39334
39334
  },
@@ -39344,16 +39344,16 @@ const H1 = m4("main", {
39344
39344
  if (this.visible && this.label && this.label !== "") {
39345
39345
  if (this.display = !0, this.annotationDisplay) {
39346
39346
  const i = this.region ? this.region + "/" : "";
39347
- this.annotationEntry = {
39347
+ this.annotationEntry.push({
39348
39348
  featureId: i + this.label,
39349
39349
  resourceId: this.scaffoldUrl,
39350
39350
  resource: this.scaffoldUrl,
39351
39351
  feature: this.annotationFeature,
39352
39352
  offline: this.offlineAnnotationEnabled
39353
- };
39353
+ });
39354
39354
  }
39355
39355
  } else
39356
- this.display = !1, this.annotationEntry = {};
39356
+ this.display = !1, this.annotationEntry = [];
39357
39357
  },
39358
39358
  hideTriggered: function() {
39359
39359
  this.$emit("tooltip-hide");
@@ -39469,7 +39469,7 @@ function x4(i, e, t, r, n, o) {
39469
39469
  }, 8, ["visible", "onHide"])
39470
39470
  ], 4);
39471
39471
  }
39472
- const G1 = /* @__PURE__ */ xn(g4, [["render", x4], ["__scopeId", "data-v-4d16262d"]]);
39472
+ const G1 = /* @__PURE__ */ xn(g4, [["render", x4], ["__scopeId", "data-v-10b34096"]]);
39473
39473
  /*! js-cookie v3.0.5 | MIT */
39474
39474
  function Ic(i) {
39475
39475
  for (var e = 1; e < arguments.length; e++) {
@@ -42231,6 +42231,12 @@ const $4 = {
42231
42231
  }
42232
42232
  },
42233
42233
  methods: {
42234
+ enableAxisDisplay: function(i, e) {
42235
+ this.$module.scene && this.$module.scene.enableAxisDisplay(i, e);
42236
+ },
42237
+ createAxisDisplay: function(i) {
42238
+ this.$module.scene && this.$module.scene.createAxisDisplay(i);
42239
+ },
42234
42240
  /**
42235
42241
  * @public
42236
42242
  * Call this to manually add a zinc object into the current scene.
@@ -42341,7 +42347,7 @@ const $4 = {
42341
42347
  if (this.existDrawnFeatures = Wt(this.existDrawnFeatures.filter((o) => o.id !== n.item.id)), this.existDrawnFeatures.push(n.feature), this.offlineAnnotationEnabled) {
42342
42348
  n.group = e;
42343
42349
  let o = i;
42344
- o.slice(-1) === "/" && (o = o.slice(0, -1)), n.region = o, this.offlineAnnotations = JSON.parse(sessionStorage.getItem("offline-annotation")) || [], this.offlineAnnotations.push(n), sessionStorage.setItem("offline-annotation", JSON.stringify(this.offlineAnnotations));
42350
+ o.slice(-1) === "/" && (o = o.slice(0, -1)), n.region = o, this.offlineAnnotations = JSON.parse(sessionStorage.getItem("anonymous-annotation")) || [], this.offlineAnnotations.push(n), sessionStorage.setItem("anonymous-annotation", JSON.stringify(this.offlineAnnotations));
42345
42351
  }
42346
42352
  this.$emit("userPrimitivesUpdated", { region: i, group: e, zincObject: t });
42347
42353
  },
@@ -42407,7 +42413,7 @@ const $4 = {
42407
42413
  confirmComment: function(i) {
42408
42414
  if (this._editingZincObject) {
42409
42415
  let e = i;
42410
- this._editingZincObject.isEditable && (this.existDrawnFeatures = Wt(this.existDrawnFeatures.filter((t) => t.id !== e.item.id)), this.existDrawnFeatures.push(i.feature)), this.offlineAnnotationEnabled && (e.group = this._editingZincObject.groupName, e.region = this._editingZincObject.region.getFullPath(), this.offlineAnnotations = JSON.parse(sessionStorage.getItem("offline-annotation")) || [], this.offlineAnnotations.push(e), sessionStorage.setItem("offline-annotation", JSON.stringify(this.offlineAnnotations)));
42416
+ this._editingZincObject.isEditable && (this.existDrawnFeatures = Wt(this.existDrawnFeatures.filter((t) => t.id !== e.item.id)), this.existDrawnFeatures.push(i.feature)), this.offlineAnnotationEnabled && (e.group = this._editingZincObject.groupName, e.region = this._editingZincObject.region.getFullPath(), this.offlineAnnotations = JSON.parse(sessionStorage.getItem("anonymous-annotation")) || [], this.offlineAnnotations.push(e), sessionStorage.setItem("anonymous-annotation", JSON.stringify(this.offlineAnnotations)));
42411
42417
  }
42412
42418
  },
42413
42419
  /**
@@ -42427,7 +42433,7 @@ const $4 = {
42427
42433
  this.url,
42428
42434
  "Deleted"
42429
42435
  );
42430
- r && (this.existDrawnFeatures = Wt(this.existDrawnFeatures.filter((n) => n.id !== r.item.id)), this.$module.scene.getRootRegion().findChildFromPath(e).removeZincObject(this._editingZincObject), this.offlineAnnotationEnabled && (this.offlineAnnotations = JSON.parse(sessionStorage.getItem("offline-annotation")) || [], this.offlineAnnotations = this.offlineAnnotations.filter((n) => n.item.id !== r.item.id), sessionStorage.setItem("offline-annotation", JSON.stringify(this.offlineAnnotations))));
42436
+ r && (this.existDrawnFeatures = Wt(this.existDrawnFeatures.filter((n) => n.id !== r.item.id)), this.$module.scene.getRootRegion().findChildFromPath(e).removeZincObject(this._editingZincObject), this.offlineAnnotationEnabled && (this.offlineAnnotations = JSON.parse(sessionStorage.getItem("anonymous-annotation")) || [], this.offlineAnnotations = this.offlineAnnotations.filter((n) => n.item.id !== r.item.id), sessionStorage.setItem("anonymous-annotation", JSON.stringify(this.offlineAnnotations))));
42431
42437
  }
42432
42438
  this.cancelCreate();
42433
42439
  },
@@ -42861,13 +42867,13 @@ const $4 = {
42861
42867
  const r = Wv(this.$module.scene, i);
42862
42868
  if (r && r.objects.length > 0)
42863
42869
  if (this.annotationSidebar) {
42864
- const n = {
42870
+ const n = [{
42865
42871
  featureId: (this.tData.region ? this.tData.region + "/" : "") + this.tData.label,
42866
42872
  resourceId: this.url,
42867
42873
  resource: this.url,
42868
42874
  feature: this.annotationFeature,
42869
42875
  offline: this.offlineAnnotationEnabled
42870
- };
42876
+ }];
42871
42877
  this.$emit("annotation-open", {
42872
42878
  annotationEntry: n,
42873
42879
  createData: this.createData,
@@ -42901,7 +42907,7 @@ const $4 = {
42901
42907
  addAnnotationFeature: async function() {
42902
42908
  let i;
42903
42909
  if (this.offlineAnnotationEnabled)
42904
- this.offlineAnnotations = JSON.parse(sessionStorage.getItem("offline-annotation")) || [], i = this.offlineAnnotations.filter((e) => e.resource === this.url && e.feature.properties.drawn).map((e) => e.feature);
42910
+ this.offlineAnnotations = JSON.parse(sessionStorage.getItem("anonymous-annotation")) || [], i = this.offlineAnnotations.filter((e) => e.resource === this.url && e.feature.properties.drawn).map((e) => e.feature);
42905
42911
  else {
42906
42912
  i = [];
42907
42913
  const e = await qv(this.annotator, this.userToken, this.url);
@@ -43040,7 +43046,7 @@ const $4 = {
43040
43046
  } else i.region && i.region !== "" && this.viewRegion(i.region);
43041
43047
  i.visibility && this.$nextTick(() => {
43042
43048
  this.$refs.scaffoldTreeControls.setState(i.visibility);
43043
- }), i.background && this.backgroundChangeCallback(i.background), i.offlineAnnotations && sessionStorage.setItem("offline-annotation", i.offlineAnnotations), i.viewingMode && this.changeViewingMode(i.viewingMode);
43049
+ }), i.background && this.backgroundChangeCallback(i.background), i.offlineAnnotations && sessionStorage.setItem("anonymous-annotation", i.offlineAnnotations), i.viewingMode && this.changeViewingMode(i.viewingMode);
43044
43050
  const e = i.search;
43045
43051
  e && e.group && (e.isSearch ? this.search(e.group, !0) : this.changeActiveByName(e.group, e.region, !0));
43046
43052
  }
@@ -43086,7 +43092,7 @@ const $4 = {
43086
43092
  let e = this.$module.scene.getZincCameraControls();
43087
43093
  i.viewport = e.getCurrentViewport();
43088
43094
  }
43089
- return this.lastSelected && this.lastSelected.group && (i.search = { ...this.lastSelected }), this.offlineAnnotationEnabled && (i.offlineAnnotations = sessionStorage.getItem("offline-annotation")), i;
43095
+ return this.lastSelected && this.lastSelected.group && (i.search = { ...this.lastSelected }), this.offlineAnnotationEnabled && (i.offlineAnnotations = sessionStorage.getItem("anonymous-annotation")), i;
43090
43096
  },
43091
43097
  /**
43092
43098
  * Function used for importing the states of the scene. This exported states
@@ -43101,7 +43107,7 @@ const $4 = {
43101
43107
  viewport: i.viewport,
43102
43108
  visibility: i.visibility,
43103
43109
  background: i.background,
43104
- viewingMode: this.viewingMode,
43110
+ viewingMode: i.viewingMode,
43105
43111
  search: i.search,
43106
43112
  offlineAnnotations: i.offlineAnnotations
43107
43113
  }) : (i.background || i.search || i.viewport || i.viewingMode || i.visibility) && (this.isReady && this.$module.scene ? this.restoreSettings(i) : this.$module.setFinishDownloadCallback(
@@ -43155,7 +43161,7 @@ const $4 = {
43155
43161
  const e = i.map((t) => t.feature);
43156
43162
  Zv(this.$module.scene, e), i.forEach((t) => {
43157
43163
  this.offlineAnnotations.push({ ...t });
43158
- }), sessionStorage.setItem("offline-annotation", JSON.stringify(this.offlineAnnotations));
43164
+ }), sessionStorage.setItem("anonymous-annotation", JSON.stringify(this.offlineAnnotations));
43159
43165
  }
43160
43166
  },
43161
43167
  /**
@@ -43618,7 +43624,7 @@ function oF(i, e, t, r, n, o) {
43618
43624
  class: "viewing-mode-description"
43619
43625
  }, {
43620
43626
  default: ve(() => e[34] || (e[34] = [
43621
- mt(" (Offline annotate) ")
43627
+ mt(" (Anonymous annotate) ")
43622
43628
  ])),
43623
43629
  _: 1
43624
43630
  })) : Ue("", !0)
@@ -43714,7 +43720,7 @@ function oF(i, e, t, r, n, o) {
43714
43720
  [x, i.loading]
43715
43721
  ]);
43716
43722
  }
43717
- const aF = /* @__PURE__ */ xn($4, [["render", oF], ["__scopeId", "data-v-0e4573fe"]]), sF = {
43723
+ const aF = /* @__PURE__ */ xn($4, [["render", oF], ["__scopeId", "data-v-878f81c4"]]), sF = {
43718
43724
  name: "Scaffold",
43719
43725
  mixins: [aw],
43720
43726
  components: {
@@ -43823,7 +43829,7 @@ const aF = /* @__PURE__ */ xn($4, [["render", oF], ["__scopeId", "data-v-0e4573f
43823
43829
  return this.entry.isBodyScaffold ? "This map displays the anatomical location and connectivity of nerves, through which the neuron populations from the ApiNATOMY models available in SCKAN can be routed." : "Under active development";
43824
43830
  },
43825
43831
  markerLabels: function() {
43826
- return this.settingsStore.globalSettings.displayMarker ? this.settingsStore.numberOfDatasetsForFacets : {};
43832
+ return this.settingsStore.globalSettings.displayMarkers ? this.settingsStore.numberOfDatasetsForFacets : {};
43827
43833
  }
43828
43834
  },
43829
43835
  data: function() {
@@ -43837,7 +43843,7 @@ const aF = /* @__PURE__ */ xn($4, [["render", oF], ["__scopeId", "data-v-0e4573f
43837
43843
  this.scaffoldCamera = this.$refs.scaffold.$module.scene.getZincCameraControls(), Wu.on("startHelp", () => {
43838
43844
  this.startHelp();
43839
43845
  }), Wu.on("hoverUpdate", () => {
43840
- this.scaffoldLoaded && this.mapHoverHighlight();
43846
+ this.scaffoldLoaded && this.cardHoverHighlight();
43841
43847
  });
43842
43848
  }
43843
43849
  }, lF = { class: "viewer-container" };
@@ -43886,7 +43892,7 @@ function cF(i, e, t, r, n, o) {
43886
43892
  }, null, 8, ["scaffoldRef", "lastItem", "onShowNext", "onFinishHelpMode"])) : Ue("", !0)
43887
43893
  ]);
43888
43894
  }
43889
- const pF = /* @__PURE__ */ nw(sF, [["render", cF], ["__scopeId", "data-v-55bdf74d"]]);
43895
+ const pF = /* @__PURE__ */ nw(sF, [["render", cF], ["__scopeId", "data-v-fa031bde"]]);
43890
43896
  export {
43891
43897
  pF as default
43892
43898
  };