@abi-software/mapintegratedvuer 1.1.1 → 1.2.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.
- package/dist/{ContentMixin-mZX2duoM.js → ContentMixin-B6Dt-gIO.js} +5 -5
- package/dist/{Flatmap-9QQ19krS.js → Flatmap-BXFp07NV.js} +7 -7
- package/dist/{Iframe-c0h0PhkG.js → Iframe-V17rWVEo.js} +2 -2
- package/dist/{MultiFlatmap-ft_NGtN3.js → MultiFlatmap-IPV-kW9S.js} +22 -20
- package/dist/{Plot-BmyzQ7ix.js → Plot-gbrHVZqT.js} +2 -2
- package/dist/{Scaffold-B7UCL6S4.js → Scaffold-iZP8Wbdq.js} +5 -5
- package/dist/{Simulation-OLJ83BaS.js → Simulation-nCrQs5q-.js} +2 -2
- package/dist/{flatmapvuer-BAx-xO4L.js → flatmapvuer-DR46R-h5.js} +41890 -36875
- package/dist/{index-nmieCwQF.js → index-B4DnOYh7.js} +11302 -11479
- package/dist/mapintegratedvuer.js +1 -1
- package/dist/mapintegratedvuer.umd.cjs +530 -583
- package/dist/style-DirL9q7N.js +53 -0
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/src/components/SplitFlow.vue +18 -8
- package/src/components/viewers/Flatmap.vue +1 -1
- package/src/components/viewers/MultiFlatmap.vue +16 -15
- package/src/components/viewers/Scaffold.vue +1 -1
- package/src/mixins/ContentMixin.js +4 -2
- package/src/mixins/DynamicMarkerMixin.js +36 -45
- package/src/stores/settings.js +5 -3
- package/dist/style-UwGHggI4.js +0 -62
@@ -1,4 +1,4 @@
|
|
1
|
-
import { u as _, b as y, E as f, T as g } from "./index-
|
1
|
+
import { u as _, b as y, E as f, T as g } from "./index-B4DnOYh7.js";
|
2
2
|
import { mapStores as w } from "pinia";
|
3
3
|
const u = [
|
4
4
|
{
|
@@ -1032,6 +1032,7 @@ const C = {
|
|
1032
1032
|
}
|
1033
1033
|
return { id: n, name: a };
|
1034
1034
|
},
|
1035
|
+
// Get the species and andaotmy info for the featured datasets
|
1035
1036
|
getDatasetAnatomyInfo: function(t) {
|
1036
1037
|
fetch(`${this.apiLocation}dataset_info/anatomy?identifier=${t}`).then((a) => a.json()).then((a) => {
|
1037
1038
|
const n = a.result[0];
|
@@ -1057,7 +1058,7 @@ const C = {
|
|
1057
1058
|
} catch {
|
1058
1059
|
e = void 0;
|
1059
1060
|
}
|
1060
|
-
this.
|
1061
|
+
this.settingsStore.updateFeaturedMarker({
|
1061
1062
|
identifier: t,
|
1062
1063
|
marker: s,
|
1063
1064
|
doi: i,
|
@@ -1129,7 +1130,7 @@ const C = {
|
|
1129
1130
|
});
|
1130
1131
|
}
|
1131
1132
|
},
|
1132
|
-
|
1133
|
+
flatmapMarkerUpdate() {
|
1133
1134
|
},
|
1134
1135
|
onResize: function() {
|
1135
1136
|
},
|
@@ -1194,6 +1195,5 @@ const C = {
|
|
1194
1195
|
}
|
1195
1196
|
};
|
1196
1197
|
export {
|
1197
|
-
C
|
1198
|
-
U as m
|
1198
|
+
C
|
1199
1199
|
};
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import {
|
2
|
-
import { _ as u, t as M, T as s, E as i } from "./index-
|
3
|
-
import { C as g } from "./ContentMixin-
|
4
|
-
import { D as I } from "./style-
|
1
|
+
import { $ as h, j as c } from "./flatmapvuer-DR46R-h5.js";
|
2
|
+
import { _ as u, t as M, T as s, E as i } from "./index-B4DnOYh7.js";
|
3
|
+
import { C as g } from "./ContentMixin-B6Dt-gIO.js";
|
4
|
+
import { D as I } from "./style-DirL9q7N.js";
|
5
5
|
import { resolveComponent as r, openBlock as p, createElementBlock as y, createVNode as v, createBlock as S, createCommentVNode as F } from "vue";
|
6
6
|
const w = {
|
7
7
|
name: "Flatmap",
|
@@ -97,7 +97,7 @@ const w = {
|
|
97
97
|
},
|
98
98
|
mounted: function() {
|
99
99
|
this.getAvailableTerms(), i.on("markerUpdate", () => {
|
100
|
-
this.
|
100
|
+
this.flatmapMarkerUpdate(void 0);
|
101
101
|
});
|
102
102
|
}
|
103
103
|
}, C = { class: "viewer-container" };
|
@@ -140,7 +140,7 @@ function T(e, t, o, a, n, l) {
|
|
140
140
|
}, null, 8, ["flatmapRef", "lastItem", "onShowNext", "onFinishHelpMode"])) : F("", !0)
|
141
141
|
]);
|
142
142
|
}
|
143
|
-
const
|
143
|
+
const b = /* @__PURE__ */ u(w, [["render", T], ["__scopeId", "data-v-22cc3124"]]);
|
144
144
|
export {
|
145
|
-
|
145
|
+
b as default
|
146
146
|
};
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { C as r } from "./ContentMixin-
|
1
|
+
import { C as r } from "./ContentMixin-B6Dt-gIO.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-B4DnOYh7.js";
|
4
4
|
const a = {
|
5
5
|
name: "Iframe",
|
6
6
|
mixins: [r]
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { _ as
|
2
|
-
import {
|
3
|
-
import { C as
|
4
|
-
import { D as
|
5
|
-
import { resolveComponent as d, openBlock as f, createElementBlock as
|
6
|
-
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>',
|
1
|
+
import { _ as u, a as h, g as M, E as l, t as g, T as p } from "./index-B4DnOYh7.js";
|
2
|
+
import { F as y, j as v } from "./flatmapvuer-DR46R-h5.js";
|
3
|
+
import { C as I } from "./ContentMixin-B6Dt-gIO.js";
|
4
|
+
import { D as S } from "./style-DirL9q7N.js";
|
5
|
+
import { resolveComponent as d, openBlock as f, createElementBlock as F, createVNode as C, createBlock as k, createCommentVNode as w } from "vue";
|
6
|
+
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>', c = (e) => {
|
7
7
|
const t = [
|
8
8
|
{
|
9
9
|
display: "Open AC Map",
|
@@ -31,7 +31,7 @@ const R = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
|
|
31
31
|
return t;
|
32
32
|
}, b = {
|
33
33
|
name: "MultiFlatmap",
|
34
|
-
mixins: [
|
34
|
+
mixins: [I, S],
|
35
35
|
components: {
|
36
36
|
MultiFlatmapVuer: y,
|
37
37
|
HelpModeDialog: v
|
@@ -43,7 +43,7 @@ const R = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
|
|
43
43
|
availableSpecies: h(),
|
44
44
|
scaffoldResource: {},
|
45
45
|
showStarInLegend: !1,
|
46
|
-
openMapOptions:
|
46
|
+
openMapOptions: c("Rat")
|
47
47
|
};
|
48
48
|
},
|
49
49
|
methods: {
|
@@ -88,7 +88,7 @@ const R = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
|
|
88
88
|
payload: e,
|
89
89
|
type: this.entry.type
|
90
90
|
};
|
91
|
-
this
|
91
|
+
this.$emit("resource-selected", t);
|
92
92
|
}
|
93
93
|
},
|
94
94
|
/**
|
@@ -153,7 +153,7 @@ const R = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
|
|
153
153
|
a[0] / 2 + 0.5 - i / 2,
|
154
154
|
0.5 - a[1] / 2 - r / 2
|
155
155
|
];
|
156
|
-
this.$refs.multiflatmap.getCurrentFlatmap().mapImp.panZoomTo(m, [i, r])
|
156
|
+
this.$refs.multiflatmap.getCurrentFlatmap().mapImp.panZoomTo(m, [i, r]);
|
157
157
|
}
|
158
158
|
},
|
159
159
|
displayTooltip: function(e) {
|
@@ -187,7 +187,7 @@ const R = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
|
|
187
187
|
}
|
188
188
|
},
|
189
189
|
flatmapChanged: async function(e) {
|
190
|
-
this.activeSpecies = e, this.openMapOptions =
|
190
|
+
this.activeSpecies = e, this.openMapOptions = c(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({
|
191
191
|
event: "interaction_event",
|
192
192
|
event_name: "portal_maps_species_change",
|
193
193
|
category: this.activeSpecies
|
@@ -197,7 +197,7 @@ const R = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
|
|
197
197
|
if (e) {
|
198
198
|
e.enablePanZoomEvents(!0), this.flatmapReady = !0;
|
199
199
|
const t = e.mapImp;
|
200
|
-
this.
|
200
|
+
this.flatmapMarkerUpdate(t), this.updateProvCard();
|
201
201
|
}
|
202
202
|
},
|
203
203
|
getFlatmapImp: function() {
|
@@ -215,13 +215,15 @@ const R = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
|
|
215
215
|
restoreFeaturedMarkers: function(e) {
|
216
216
|
this.settingsStore.resetFeaturedMarkerIdentifier();
|
217
217
|
const t = this.settingsStore.featuredMarkers;
|
218
|
-
this.
|
218
|
+
this.updateFeaturedMarkers(t, e);
|
219
219
|
},
|
220
|
-
|
220
|
+
// updateFeaturedMarkers will step through the featured markers and add them to the map
|
221
|
+
updateFeaturedMarkers: function(e, t) {
|
221
222
|
this.showStarInLegend = !1;
|
222
223
|
for (let a = 0; a < e.length; ++a)
|
223
224
|
e[a] && (this.settingsStore.featuredMarkerIdentifiers[a] || this.addFeaturedMarker(e[a], a, t) && (this.showStarInLegend = !0));
|
224
225
|
},
|
226
|
+
// addFeaturedMarker: add a featured marker to the map at the specified uberon location
|
225
227
|
addFeaturedMarker: function(e, t, a) {
|
226
228
|
const n = this.settingsStore.featuredMarkerSpecies[t];
|
227
229
|
if (n && !this.activeSpecies.startsWith(n))
|
@@ -256,18 +258,18 @@ const R = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
|
|
256
258
|
this.$refs.multiflatmap.getCurrentFlatmap() && this.$refs.multiflatmap.getCurrentFlatmap().enablePanZoomEvents(e);
|
257
259
|
},
|
258
260
|
featuredMarkers: function(e) {
|
259
|
-
this.flatmapReady && this.
|
261
|
+
this.flatmapReady && this.updateFeaturedMarkers(e, void 0);
|
260
262
|
}
|
261
263
|
},
|
262
264
|
mounted: function() {
|
263
265
|
this.getAvailableTerms(), this.getFeaturedDatasets(), l.on("markerUpdate", () => {
|
264
|
-
this.
|
266
|
+
this.flatmapReady && this.flatmapMarkerUpdate(this.$refs.multiflatmap.getCurrentFlatmap().mapImp);
|
265
267
|
});
|
266
268
|
}
|
267
269
|
}, H = { class: "viewer-container" };
|
268
270
|
function P(e, t, a, n, o, s) {
|
269
271
|
const i = d("MultiFlatmapVuer"), r = d("HelpModeDialog");
|
270
|
-
return f(),
|
272
|
+
return f(), F("div", H, [
|
271
273
|
C(i, {
|
272
274
|
availableSpecies: e.availableSpecies,
|
273
275
|
onFlatmapChanged: s.flatmapChanged,
|
@@ -295,7 +297,7 @@ function P(e, t, a, n, o, s) {
|
|
295
297
|
onPathwaySelectionChanged: s.onPathwaySelectionChanged,
|
296
298
|
onOpenPubmedUrl: s.onOpenPubmedUrl
|
297
299
|
}, null, 8, ["availableSpecies", "onFlatmapChanged", "onReady", "state", "initial", "helpMode", "helpModeActiveItem", "helpModeDialog", "onHelpModeLastItem", "onShownTooltip", "onShownMapTooltip", "showStarInLegend", "openMapOptions", "flatmapAPI", "sparcAPI", "onPanZoomCallback", "onOpenMap", "onFinishHelpMode", "onPathwaySelectionChanged", "onOpenPubmedUrl"]),
|
298
|
-
e.helpMode && e.useHelpModeDialog ? (f(),
|
300
|
+
e.helpMode && e.useHelpModeDialog ? (f(), k(r, {
|
299
301
|
key: 0,
|
300
302
|
ref: "multiflatmapHelp",
|
301
303
|
multiflatmapRef: e.multiflatmapRef,
|
@@ -305,7 +307,7 @@ function P(e, t, a, n, o, s) {
|
|
305
307
|
}, null, 8, ["multiflatmapRef", "lastItem", "onShowNext", "onFinishHelpMode"])) : w("", !0)
|
306
308
|
]);
|
307
309
|
}
|
308
|
-
const
|
310
|
+
const E = /* @__PURE__ */ u(b, [["render", P], ["__scopeId", "data-v-3e284237"]]);
|
309
311
|
export {
|
310
|
-
|
312
|
+
E as default
|
311
313
|
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { C as o } from "./plotvuer-X4h-Lj3L.js";
|
2
|
-
import { C as a } from "./ContentMixin-
|
2
|
+
import { C as a } from "./ContentMixin-B6Dt-gIO.js";
|
3
3
|
import { resolveComponent as r, openBlock as n, createBlock as s } from "vue";
|
4
|
-
import { _ as m } from "./index-
|
4
|
+
import { _ as m } from "./index-B4DnOYh7.js";
|
5
5
|
const p = {
|
6
6
|
name: "Plot",
|
7
7
|
mixins: [a],
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { w as Bw, h as Fw, _ as zw, E as Uw } from "./index-
|
1
|
+
import { w as Bw, h as Fw, _ as zw, E as Uw } from "./index-B4DnOYh7.js";
|
2
2
|
import { ref as be, defineComponent as Oe, computed as ae, openBlock as ce, createElementBlock as Ae, mergeProps as Bi, unref as k, renderSlot as Xe, useAttrs as Vw, useSlots as us, shallowRef as Tr, watch as Ue, nextTick as pt, onMounted as Ht, toRef as zr, createCommentVNode as Be, Fragment as Dt, normalizeClass as ve, createElementVNode as Le, createBlock as ke, withCtx as pe, resolveDynamicComponent as Ir, withModifiers as Lt, createVNode as se, toDisplayString as bt, normalizeStyle as xt, provide as Vt, reactive as jr, onUpdated as Lu, inject as tt, onBeforeUnmount as Si, withDirectives as yt, cloneVNode as Hw, Text as P0, Comment as jw, Teleport as Gw, Transition as Cl, vShow as Zt, readonly as I0, onDeactivated as Ww, isRef as xi, vModelCheckbox as hu, createTextVNode as ht, toRefs as dn, toHandlers as $w, withKeys as Xr, getCurrentInstance as Ot, watchEffect as Tp, h as Vn, renderList as Nr, onUnmounted as N0, markRaw as Sa, warn as Yw, onBeforeMount as Zw, toRaw as nl, getCurrentScope as D0, onScopeDispose as k0, isVNode as Sd, resolveComponent as cr, resolveDirective as Xw, vModelText as qw, createApp as Jw, hasInjectionContext as Kw, effectScope as Qw, isReactive as Ep, pushScopeId as Ru, popScopeId as Ou } from "vue";
|
3
|
-
import {
|
4
|
-
import { C as t_ } from "./ContentMixin-
|
3
|
+
import { z as e_ } from "./flatmapvuer-DR46R-h5.js";
|
4
|
+
import { C as t_ } from "./ContentMixin-B6Dt-gIO.js";
|
5
5
|
const rn = (r, e, { checkForDefaultPrevented: t = !0 } = {}) => (i) => {
|
6
6
|
const n = r == null ? void 0 : r(i);
|
7
7
|
if (t === !1 || !n)
|
@@ -45982,7 +45982,7 @@ const vV = /* @__PURE__ */ Ri(dV, [["render", gV], ["__scopeId", "data-v-8f3f806
|
|
45982
45982
|
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";
|
45983
45983
|
},
|
45984
45984
|
markerLabels: function() {
|
45985
|
-
return this.settingsStore.
|
45985
|
+
return this.settingsStore.numberOfDatasetsForFacets;
|
45986
45986
|
}
|
45987
45987
|
},
|
45988
45988
|
data: function() {
|
@@ -46039,7 +46039,7 @@ function xV(r, e, t, i, n, o) {
|
|
46039
46039
|
}, null, 8, ["scaffoldRef", "lastItem", "onShowNext", "onFinishHelpMode"])) : Be("", !0)
|
46040
46040
|
]);
|
46041
46041
|
}
|
46042
|
-
const TV = /* @__PURE__ */ zw(yV, [["render", xV], ["__scopeId", "data-v-
|
46042
|
+
const TV = /* @__PURE__ */ zw(yV, [["render", xV], ["__scopeId", "data-v-72e49e22"]]);
|
46043
46043
|
export {
|
46044
46044
|
TV as default
|
46045
46045
|
};
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { C as Cc } from "./ContentMixin-
|
1
|
+
import { C as Cc } from "./ContentMixin-B6Dt-gIO.js";
|
2
2
|
import { ref as N, defineComponent as J, computed as w, openBlock as k, createElementBlock as L, mergeProps as Yt, unref as d, renderSlot as ue, useAttrs as Mc, useSlots as rs, shallowRef as Cn, watch as re, nextTick as we, onMounted as Le, toRef as pt, createCommentVNode as K, Fragment as Ue, normalizeClass as B, createElementVNode as q, createBlock as ee, withCtx as ne, resolveDynamicComponent as dt, withModifiers as Ze, createVNode as ve, toDisplayString as $e, normalizeStyle as Te, provide as at, reactive as At, onUpdated as os, inject as he, onBeforeUnmount as Ot, withDirectives as He, cloneVNode as Pc, Text as as, Comment as Tc, Teleport as zc, Transition as ao, vShow as Tt, readonly as Nc, onDeactivated as Rc, withKeys as Vt, toRefs as Tn, getCurrentInstance as et, h as _n, renderList as Gt, warn as $c, onBeforeMount as Bc, onUnmounted as Lc, toRaw as is, watchEffect as Dc, getCurrentScope as Uc, onScopeDispose as Hc, isRef as ls, resolveComponent as _t, resolveDirective as Zc, vModelText as qc, createTextVNode as An, pushScopeId as Wc, popScopeId as Kc, createApp as Jc } from "vue";
|
3
3
|
import { C as Yc } from "./plotvuer-X4h-Lj3L.js";
|
4
|
-
import { _ as Gc } from "./index-
|
4
|
+
import { _ as Gc } from "./index-B4DnOYh7.js";
|
5
5
|
const jt = (e, t, { checkForDefaultPrevented: n = !0 } = {}) => (r) => {
|
6
6
|
const o = e == null ? void 0 : e(r);
|
7
7
|
if (n === !1 || !o)
|