@abi-software/mapintegratedvuer 1.1.0 → 1.1.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-Belbk7R9.js → ContentMixin-mZX2duoM.js} +1 -1
- package/dist/{Flatmap-BEStr9DR.js → Flatmap-9QQ19krS.js} +20 -20
- package/dist/{Iframe-CNeqS04g.js → Iframe-c0h0PhkG.js} +2 -2
- package/dist/{MultiFlatmap-CFF8nyw2.js → MultiFlatmap-ft_NGtN3.js} +15 -15
- package/dist/{Plot-BpS4tvSe.js → Plot-BmyzQ7ix.js} +2 -2
- package/dist/{Scaffold-BXY9_HO6.js → Scaffold-B7UCL6S4.js} +97 -97
- package/dist/{Simulation-Di2xaBxJ.js → Simulation-OLJ83BaS.js} +2 -2
- package/dist/{flatmapvuer-C67b_5lI.js → flatmapvuer-BAx-xO4L.js} +10 -7
- package/dist/{index-CpppckRD.js → index-nmieCwQF.js} +22 -12
- package/dist/mapintegratedvuer.js +1 -1
- package/dist/mapintegratedvuer.umd.cjs +187 -187
- package/dist/{style-CdEDV2B6.js → style-UwGHggI4.js} +2 -2
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/components/ContentVuer.vue +10 -10
- package/src/components/viewers/Flatmap.vue +41 -34
- package/src/components/viewers/MultiFlatmap.vue +42 -35
- package/src/components/viewers/Scaffold.vue +43 -36
@@ -1,7 +1,7 @@
|
|
1
|
-
import { C as Cc } from "./ContentMixin-
|
1
|
+
import { C as Cc } from "./ContentMixin-mZX2duoM.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-nmieCwQF.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)
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as Qe, defineComponent as Oe, computed as zt, openBlock as wt, createElementBlock as ee, mergeProps as C3, unref as ot, renderSlot as g1, useAttrs as Ij, useSlots as w7, shallowRef as Yo, watch as v1, nextTick as Sr, onMounted as Un, toRef as to, withDirectives as $1, createCommentVNode as Ae, Fragment as cr, normalizeClass as ie, createElementVNode as Yt, createBlock as De, withCtx as kt, resolveDynamicComponent as Ji, withModifiers as mn, createVNode as Gt, toDisplayString as O1, normalizeStyle as Hr, vShow as Vr, provide as zn, reactive as D2, onUpdated as bP, inject as ur, onBeforeUnmount as o3, cloneVNode as Vj, Text as LP, Comment as Rj, Teleport as xP, Transition as _0, readonly as wP, onDeactivated as Dj, createTextVNode as m1, isRef as oo, vModelCheckbox as od, toRefs as s0, vModelRadio as MP, toHandlers as Nj, getCurrentInstance as Gn, watchEffect as o_, withKeys as $6, h as O4, createSlots as EP, markRaw as X6, warn as Fj, onBeforeMount as Bj, onUnmounted as jj, toRaw as ac, getCurrentScope as SP, onScopeDispose as a_, renderList as Bn, resolveComponent as Yi, resolveDirective as zj, vModelText as Uj, createApp as Gj, hasInjectionContext as Zj, effectScope as qj, isReactive as s_, pushScopeId as $4, popScopeId as X4, createStaticVNode as Wj } from "vue";
|
2
|
-
import { w as HP, h as $j } from "./index-
|
2
|
+
import { w as HP, h as $j } from "./index-nmieCwQF.js";
|
3
3
|
const cs = (t, e, { checkForDefaultPrevented: r = !0 } = {}) => (n) => {
|
4
4
|
const i = t == null ? void 0 : t(n);
|
5
5
|
if (r === !1 || !i)
|
@@ -11659,7 +11659,7 @@ const SI = /* @__PURE__ */ a3(Fet, [["render", Zet], ["__scopeId", "data-v-75b24
|
|
11659
11659
|
return "colour" in t ? { background: t.colour } : {};
|
11660
11660
|
}
|
11661
11661
|
}
|
11662
|
-
}, Wet = (t) => ($4("data-v-
|
11662
|
+
}, Wet = (t) => ($4("data-v-9349be48"), t = t(), X4(), t), $et = { class: "selections-container" }, Xet = /* @__PURE__ */ Wet(() => /* @__PURE__ */ Yt("div", { class: "title-text" }, "Systems", -1)), Ket = { class: "tree-container" }, Yet = ["onClick", "onMouseover"];
|
11663
11663
|
function Jet(t, e, r, n, i, o) {
|
11664
11664
|
const a = Ha, s = N3, h = LI;
|
11665
11665
|
return wt(), ee("div", $et, [
|
@@ -11704,7 +11704,7 @@ function Jet(t, e, r, n, i, o) {
|
|
11704
11704
|
])
|
11705
11705
|
]);
|
11706
11706
|
}
|
11707
|
-
const HI = /* @__PURE__ */ a3(qet, [["render", Jet], ["__scopeId", "data-v-
|
11707
|
+
const HI = /* @__PURE__ */ a3(qet, [["render", Jet], ["__scopeId", "data-v-9349be48"]]), t1t = {
|
11708
11708
|
name: "SvgLegends"
|
11709
11709
|
}, e1t = (t) => ($4("data-v-88079d87"), t = t(), X4(), t), r1t = { class: "legends-container" }, n1t = {
|
11710
11710
|
version: "1.1",
|
@@ -12322,9 +12322,12 @@ let v1t = function() {
|
|
12322
12322
|
});
|
12323
12323
|
}, this.connectivityExists = function(t) {
|
12324
12324
|
return !!(t.values && t.values.length > 0 && JSON.parse(t.values[0][0]).connectivity && JSON.parse(t.values[0][0]).connectivity.length > 0);
|
12325
|
-
}, this.
|
12325
|
+
}, this.findIfNodeIsSingle = function(t) {
|
12326
|
+
return t.length === 1 ? (console.error("Server returns a single node", t), t[0]) : t.length === 2 && t[1].length === 0 ? t[0] : !1;
|
12327
|
+
}, this.createLabelFromNeuralNode = function(t, e) {
|
12328
|
+
let r = this.findIfNodeIsSingle(t);
|
12326
12329
|
if (r)
|
12327
|
-
return e[
|
12330
|
+
return e[r];
|
12328
12331
|
let n = e[t[0]];
|
12329
12332
|
return t.length === 2 && t[1].length > 0 && t[1].forEach((i) => {
|
12330
12333
|
e[i] == null ? n += `, ${i}` : n += `, ${e[i]}`;
|
@@ -12345,9 +12348,9 @@ let v1t = function() {
|
|
12345
12348
|
this.destinations = n.map(
|
12346
12349
|
(s) => this.createLabelFromNeuralNode(s, a)
|
12347
12350
|
), this.origins = i.map(
|
12348
|
-
(s) => this.createLabelFromNeuralNode(s, a
|
12351
|
+
(s) => this.createLabelFromNeuralNode(s, a)
|
12349
12352
|
), this.components = r.map(
|
12350
|
-
(s) => this.createLabelFromNeuralNode(s, a
|
12353
|
+
(s) => this.createLabelFromNeuralNode(s, a)
|
12351
12354
|
), this.flattenAndFindDatasets(r, n, i), e({
|
12352
12355
|
ids: {
|
12353
12356
|
axons: n,
|
@@ -11425,7 +11425,7 @@ function dI(e, t, n, r, o, a) {
|
|
11425
11425
|
})
|
11426
11426
|
]);
|
11427
11427
|
}
|
11428
|
-
const y2 = /* @__PURE__ */ wr(lI, [["render", dI], ["__scopeId", "data-v-b2e8f6b1"]]), pI = xi(() => import("./Flatmap-
|
11428
|
+
const y2 = /* @__PURE__ */ wr(lI, [["render", dI], ["__scopeId", "data-v-b2e8f6b1"]]), pI = xi(() => import("./Flatmap-9QQ19krS.js")), fI = xi(() => import("./Iframe-c0h0PhkG.js")), hI = xi(() => import("./MultiFlatmap-ft_NGtN3.js")), vI = xi(() => import("./Plot-BmyzQ7ix.js")), gI = xi(() => import("./Scaffold-B7UCL6S4.js")), mI = xi(() => import("./Simulation-OLJ83BaS.js")), yI = {
|
11429
11429
|
name: "ContentVuer",
|
11430
11430
|
props: {
|
11431
11431
|
/**
|
@@ -11451,49 +11451,58 @@ const y2 = /* @__PURE__ */ wr(lI, [["render", dI], ["__scopeId", "data-v-b2e8f6b
|
|
11451
11451
|
},
|
11452
11452
|
methods: {
|
11453
11453
|
flatmapProvenacneReady: function(e) {
|
11454
|
-
|
11454
|
+
var t;
|
11455
|
+
(t = this.$refs.contentBar) == null || t.setupFlatmapContextCard(e);
|
11455
11456
|
},
|
11456
11457
|
/**
|
11457
11458
|
* Toggle sync mode on/off depending on species and current state
|
11458
11459
|
*/
|
11459
11460
|
toggleSyncMode: function() {
|
11460
|
-
|
11461
|
+
var e;
|
11462
|
+
(e = this.$refs.viewer) == null || e.toggleSyncMode();
|
11461
11463
|
},
|
11462
11464
|
getId: function() {
|
11463
11465
|
return this.entry.id;
|
11464
11466
|
},
|
11465
11467
|
getState: function() {
|
11466
|
-
|
11468
|
+
var e;
|
11469
|
+
return (e = this.$refs.viewer) == null ? void 0 : e.getState();
|
11467
11470
|
},
|
11468
11471
|
resourceSelected: function(e) {
|
11469
11472
|
this.$emit("resource-selected", e);
|
11470
11473
|
},
|
11471
11474
|
scaffoldViewClicked: function(e) {
|
11472
|
-
|
11475
|
+
var t;
|
11476
|
+
this.entry.viewUrl !== e ? this.entriesStore.updateViewForEntry({ id: this.entry.id, viewUrl: e }) : (t = this.$refs.viewer) == null || t.updateWithViewUrl(e);
|
11473
11477
|
},
|
11474
11478
|
/**
|
11475
11479
|
* Perform a local search on this contentvuer
|
11476
11480
|
*/
|
11477
11481
|
search: function(e) {
|
11478
|
-
|
11482
|
+
var t;
|
11483
|
+
return (t = this.$refs.viewer) == null ? void 0 : t.search(e);
|
11479
11484
|
},
|
11480
11485
|
/**
|
11481
11486
|
* Push the suggested terms into the suggestions array
|
11482
11487
|
*/
|
11483
11488
|
searchSuggestions: function(e, t) {
|
11484
|
-
|
11489
|
+
var n;
|
11490
|
+
(n = this.$refs.viewer) == null || n.searchSuggestions(e, t);
|
11485
11491
|
},
|
11486
11492
|
setPanesBoundary: function() {
|
11487
|
-
|
11493
|
+
var e;
|
11494
|
+
(e = this.$refs.contentBar) == null || e.setBoundary(this.$refs.container[0]);
|
11488
11495
|
},
|
11489
11496
|
speciesChanged: function(e) {
|
11490
11497
|
this.activeSpecies = e;
|
11491
11498
|
},
|
11492
11499
|
receiveSynchronisedEvent: async function(e) {
|
11493
|
-
|
11500
|
+
var t;
|
11501
|
+
(t = this.$refs.viewer) == null || t.receiveSynchronisedEvent(e);
|
11494
11502
|
},
|
11495
11503
|
requestSynchronisedEvent: function(e) {
|
11496
|
-
|
11504
|
+
var t;
|
11505
|
+
(t = this.$refs.viewer) == null || t.requestSynchronisedEvent(e);
|
11497
11506
|
},
|
11498
11507
|
/**
|
11499
11508
|
* Check if this viewer is currently visible
|
@@ -11502,7 +11511,8 @@ const y2 = /* @__PURE__ */ wr(lI, [["render", dI], ["__scopeId", "data-v-b2e8f6b
|
|
11502
11511
|
return this.splitFlowStore.getPaneNameById(this.entry.id) !== void 0;
|
11503
11512
|
},
|
11504
11513
|
onResize: function() {
|
11505
|
-
|
11514
|
+
var e;
|
11515
|
+
(e = this.$refs.viewer) == null || e.onResize();
|
11506
11516
|
}
|
11507
11517
|
},
|
11508
11518
|
data: function() {
|
@@ -11565,7 +11575,7 @@ function wI(e, t, n, r, o, a) {
|
|
11565
11575
|
], 512)
|
11566
11576
|
], 32);
|
11567
11577
|
}
|
11568
|
-
const b2 = /* @__PURE__ */ wr(yI, [["render", wI], ["__scopeId", "data-v-
|
11578
|
+
const b2 = /* @__PURE__ */ wr(yI, [["render", wI], ["__scopeId", "data-v-93fa74a8"]]);
|
11569
11579
|
var w2 = { exports: {} };
|
11570
11580
|
(function(e, t) {
|
11571
11581
|
(function(n, r) {
|