@abi-software/mapintegratedvuer 1.9.0 → 1.9.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-DyVwSF4C.js → ContentMixin-c9DvlJVP.js} +46 -43
- package/dist/{Flatmap-DrfTTLeB.js → Flatmap-D66Ygegj.js} +64 -60
- package/dist/{Iframe-DNML_G7u.js → Iframe-DFAzMMSw.js} +2 -2
- package/dist/{MultiFlatmap-Vp10mrjr.js → MultiFlatmap-BOOSKitQ.js} +9 -8
- package/dist/{Plot-BnuX-0LW.js → Plot-DPxSQnwg.js} +2 -2
- package/dist/{Scaffold-CLNZHo3r.js → Scaffold-DRQEE-j_.js} +2 -2
- package/dist/{Simulation-BEU8ep5d.js → Simulation-BVcaSVmW.js} +2 -2
- package/dist/{index-CVfAy4kK.js → index-qckfB1dl.js} +117 -102
- package/dist/mapintegratedvuer.js +1 -1
- package/dist/mapintegratedvuer.umd.cjs +13 -13
- package/dist/{style-BM2XOQIb.js → style-C6pIyWak.js} +41 -17
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/src/components/SplitDialog.vue +3 -15
- package/src/components/SplitFlow.vue +5 -0
- package/src/components/viewers/Flatmap.vue +10 -2
- package/src/components/viewers/MultiFlatmap.vue +1 -0
- package/src/mixins/ContentMixin.js +6 -5
- package/src/stores/connectivities.js +17 -3
@@ -1,5 +1,5 @@
|
|
1
1
|
import { mapStores as jJ, defineStore as zJ, mapState as UJ } from "pinia";
|
2
|
-
import { u as GJ, c as JM, b as Hj, d as mA, w as ZJ, h as $J, S as WJ, e as qJ, f as Cj, i as Oj, j as XJ, A as KJ, l as kj, m as YJ, n as Pj } from "./index-
|
2
|
+
import { u as GJ, c as JM, b as Hj, d as mA, w as ZJ, h as $J, S as WJ, e as qJ, f as Cj, i as Oj, j as XJ, A as KJ, l as kj, m as YJ, n as Pj } from "./index-qckfB1dl.js";
|
3
3
|
import { ref as Je, defineComponent as Vr, computed as he, openBlock as be, createElementBlock as xr, mergeProps as kc, unref as wt, renderSlot as Gr, watch as gn, nextTick as jo, provide as n1, reactive as D6, onActivated as JJ, onMounted as i1, onUpdated as ttt, normalizeClass as nr, createElementVNode as gr, normalizeStyle as zo, createBlock as Fr, resolveDynamicComponent as Rs, withCtx as ke, createCommentVNode as zr, inject as _n, onBeforeUnmount as Ws, withDirectives as xi, cloneVNode as ett, Fragment as R1, Text as Ij, Comment as rtt, createVNode as ir, toRef as Y3, Transition as yf, vShow as Aa, readonly as Vj, onDeactivated as ntt, toDisplayString as Li, useSlots as mv, isRef as B6, withModifiers as Mo, vModelCheckbox as jg, createTextVNode as Vn, toRefs as K8, vModelRadio as Rj, h as nu, createSlots as Nj, getCurrentInstance as b1, markRaw as z3, shallowRef as zg, warn as itt, watchEffect as Dj, onBeforeMount as ott, onUnmounted as att, toRaw as Ug, getCurrentScope as stt, onScopeDispose as Bj, Teleport as ltt, resolveComponent as Is, resolveDirective as ctt, toHandlerKey as utt, renderList as E6, withKeys as d9, vModelText as htt, createApp as dtt, createStaticVNode as ptt } from "vue";
|
4
4
|
const ftt = function(e) {
|
5
5
|
return e ? [...new Set(e.map((t) => JSON.stringify(t)))].map(
|
@@ -102033,7 +102033,7 @@ const QA = new BNt(), FNt = "cannot be found on the map.", jNt = (e) => {
|
|
102033
102033
|
},
|
102034
102034
|
/**
|
102035
102035
|
* Function to highlight paths and features
|
102036
|
-
* @param data
|
102036
|
+
* @param data
|
102037
102037
|
*/
|
102038
102038
|
zoomToFeatures: function(e) {
|
102039
102039
|
this.mapImp && this.mapImp.zoomToFeatures(e);
|
@@ -102292,28 +102292,29 @@ const QA = new BNt(), FNt = "cannot be found on the map.", jNt = (e) => {
|
|
102292
102292
|
const d = Object.keys(t).includes("id");
|
102293
102293
|
if (!d) {
|
102294
102294
|
h = [];
|
102295
|
-
const m = t.mapUUID;
|
102296
|
-
for (let [
|
102297
|
-
if (
|
102298
|
-
const L =
|
102299
|
-
let
|
102300
|
-
|
102301
|
-
|
102295
|
+
const m = t.mapUUID, v = /* @__PURE__ */ new Set();
|
102296
|
+
for (let [x, L] of Object.entries(t))
|
102297
|
+
if (x !== "mapUUID") {
|
102298
|
+
const H = L.id, E = L.label, k = [L.models];
|
102299
|
+
let I;
|
102300
|
+
if (L.taxons && (typeof L.taxons != "object" ? I = JSON.parse(L.taxons) : I = L.taxons), v.has(H)) continue;
|
102301
|
+
v.add(H), h.push({
|
102302
|
+
dataset: L.dataset,
|
102302
102303
|
biologicalSex: s,
|
102303
102304
|
taxonomy: o,
|
102304
|
-
resource:
|
102305
|
-
label:
|
102306
|
-
feature:
|
102305
|
+
resource: k,
|
102306
|
+
label: E,
|
102307
|
+
feature: L,
|
102307
102308
|
userData: r,
|
102308
102309
|
eventType: e,
|
102309
|
-
provenanceTaxonomy:
|
102310
|
-
alert:
|
102310
|
+
provenanceTaxonomy: I,
|
102311
|
+
alert: L.alert,
|
102311
102312
|
mapUUID: m
|
102312
102313
|
});
|
102313
102314
|
}
|
102314
102315
|
}
|
102315
102316
|
const Q = d ? t : t[0];
|
102316
|
-
if (this.viewingMode === "Neuron Connection")
|
102317
|
+
if (this.setConnectivityDataSource(this.viewingMode, Q), this.viewingMode === "Neuron Connection")
|
102317
102318
|
this.retrieveConnectedPaths([Q.models]).then((m) => {
|
102318
102319
|
this.zoomToFeatures(m);
|
102319
102320
|
});
|
@@ -102338,6 +102339,18 @@ const QA = new BNt(), FNt = "cannot be found on the map.", jNt = (e) => {
|
|
102338
102339
|
this.$emit("pan-zoom-callback", t);
|
102339
102340
|
};
|
102340
102341
|
},
|
102342
|
+
/**
|
102343
|
+
* The data for connectivity data source is just a placeholder data
|
102344
|
+
* to check which part of the map is clicked, e.g., path or feture or empty area,
|
102345
|
+
* based on the viewing mode.
|
102346
|
+
* The "connectivity-info-close" event will be emitted based on this data
|
102347
|
+
* when there has a click event on map.
|
102348
|
+
* @param viewingMode
|
102349
|
+
* @param data
|
102350
|
+
*/
|
102351
|
+
setConnectivityDataSource: function(e, t) {
|
102352
|
+
this.connectivityDataSource = t.source, (e === "Neuron Connection" || e === "Annotation") && (this.connectivityDataSource = t.featureId);
|
102353
|
+
},
|
102341
102354
|
/**
|
102342
102355
|
* @public
|
102343
102356
|
* Function triggered by viewing mode change.
|
@@ -102810,7 +102823,18 @@ const QA = new BNt(), FNt = "cannot be found on the map.", jNt = (e) => {
|
|
102810
102823
|
*/
|
102811
102824
|
onFlatmapReady: function(e) {
|
102812
102825
|
var t;
|
102813
|
-
this.sensor = z3(new m3t(this.$refs.display, this.mapResize)), ((t = this.mapImp.options) == null ? void 0 : t.style) === "functional" && (this.isFC = !0), this.mapImp.setBackgroundOpacity(1), this.backgroundChangeCallback(this.currentBackground), this.pathways = this.mapImp.pathTypes(), this.processSystems(this.mapImp.getSystems()), this.processTaxon(this.mapImp.taxonIdentifiers, e ? e.taxonSelection : void 0), this.containsAlert = "alert" in this.mapImp.featureFilterRanges(), this.addResizeButtonToMinimap(), this.loading = !1, this.computePathControlsMaximumHeight(), this.mapResize(), this.setInitMapState(), this.$emit("ready", this);
|
102826
|
+
this.sensor = z3(new m3t(this.$refs.display, this.mapResize)), ((t = this.mapImp.options) == null ? void 0 : t.style) === "functional" && (this.isFC = !0), this.mapImp.setBackgroundOpacity(1), this.backgroundChangeCallback(this.currentBackground), this.pathways = this.mapImp.pathTypes(), this.processSystems(this.mapImp.getSystems()), this.processTaxon(this.mapImp.taxonIdentifiers, e ? e.taxonSelection : void 0), this.containsAlert = "alert" in this.mapImp.featureFilterRanges(), this.addResizeButtonToMinimap(), this.loading = !1, this.computePathControlsMaximumHeight(), this.mapResize(), this.handleMapClick(), this.setInitMapState(), this.$emit("ready", this);
|
102827
|
+
},
|
102828
|
+
/**
|
102829
|
+
* @public
|
102830
|
+
* Function to handle mouse click on map area
|
102831
|
+
* after the map is loaded.
|
102832
|
+
*/
|
102833
|
+
handleMapClick: function() {
|
102834
|
+
const e = this.mapImp.map;
|
102835
|
+
e && e.on("click", (t) => {
|
102836
|
+
this.connectivityDataSource || this.$emit("connectivity-info-close"), this.connectivityDataSource = "";
|
102837
|
+
});
|
102814
102838
|
},
|
102815
102839
|
/**
|
102816
102840
|
* @public
|
@@ -104027,7 +104051,7 @@ function rDt(e, t, r, n, i, o) {
|
|
104027
104051
|
[dt, e.loading]
|
104028
104052
|
]);
|
104029
104053
|
}
|
104030
|
-
const nY = /* @__PURE__ */ Iv(zNt, [["render", rDt], ["__scopeId", "data-v-
|
104054
|
+
const nY = /* @__PURE__ */ Iv(zNt, [["render", rDt], ["__scopeId", "data-v-4cb45d83"]]), Aj = {
|
104031
104055
|
"NCBITaxon:10114": "01fedbf9-d783-509c-a10c-827941ab13da",
|
104032
104056
|
"NCBITaxon:9823": "a336ac04-24db-561f-a25f-1c994fe17410",
|
104033
104057
|
"NCBITaxon:9606": "42ed6323-f645-5fbe-bada-9581819cf689",
|