@abi-software/mapintegratedvuer 1.21.2 → 1.23.0
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/{ConnectivityGraph-DrSaFEDd.js → ConnectivityGraph-Cao0C1-G.js} +2 -2
- package/dist/{ContentMixin-Xg0PjBqG.js → ContentMixin-4t04VWoF.js} +75 -76
- package/dist/{DynamicMarkerMixin-D5Ruu_hd.js → DynamicMarkerMixin-tATj70ym.js} +1 -1
- package/dist/{Flatmap-CxN8TbnS.js → Flatmap-DF4FAwLY.js} +3 -3
- package/dist/{Iframe-CkgbLfJt.js → Iframe-DbQ22y53.js} +2 -2
- package/dist/{MultiFlatmap-CkejvAJe.js → MultiFlatmap-Dwy9gbWC.js} +17 -5
- package/dist/{Plot-BfwoipSl.js → Plot-COXE_H78.js} +2 -2
- package/dist/{Scaffold-DCqsTKpg.js → Scaffold-9ubjNzcD.js} +2 -2
- package/dist/Simulation-CR-yKjxu.js +32 -0
- package/dist/{connectivities-DyeS8w0c.js → connectivities-DhBMlBSj.js} +29 -1
- package/dist/mapintegratedvuer.js +403 -335
- package/dist/mapintegratedvuer.umd.cjs +90 -90
- package/dist/style.css +1 -1
- package/eslint.config.js +1 -1
- package/package.json +6 -6
- package/src/App.vue +16 -32
- package/src/components/ContentBar.vue +1 -0
- package/src/components/ContextCard.vue +15 -3
- package/src/components/DatasetHeader.vue +4 -1
- package/src/components/MapContent.vue +29 -1
- package/src/components/SplitFlow.vue +12 -2
- package/src/components/viewers/MultiFlatmap.vue +14 -0
- package/src/components/viewers/Simulation.vue +23 -1
- package/src/stores/splitFlow.js +31 -0
- package/vite.config.js +27 -4
- package/dist/Simulation-BOtU3kTT.js +0 -25
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as r } from "./ContentMixin-
|
|
1
|
+
import { C as e, _ as t, b as n } from "./connectivities-DhBMlBSj.js";
|
|
2
|
+
import { t as r } from "./ContentMixin-4t04VWoF.js";
|
|
3
3
|
import { createElementBlock as i, createVNode as a, openBlock as o, resolveComponent as s } from "vue";
|
|
4
4
|
//#region src/components/viewers/ConnectivityGraph.vue
|
|
5
5
|
var c = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { N as e, O as t, b as n, i as r, n as i, r as a, s as o, t as s, u as c, v as l, y as u } from "./connectivities-DhBMlBSj.js";
|
|
2
2
|
import { markRaw as d } from "vue";
|
|
3
3
|
import { mapStores as f } from "pinia";
|
|
4
4
|
//#region node_modules/@abi-software/flatmapvuer/src/services/flatmapQueries.js
|
|
@@ -34,9 +34,9 @@ var p = function(e) {
|
|
|
34
34
|
return i < a ? -1 : +(i > a);
|
|
35
35
|
}, y = function() {
|
|
36
36
|
this.initialise = function(e) {
|
|
37
|
-
this.flatmapAPI = e, this.destinations = [], this.origins = [], this.components = [], this.destinationsWithDatasets = [], this.originsWithDatasets = [], this.componentsWithDatasets = [], this.destinationsCombinations = [], this.originsCombinations = [], this.componentsCombinations = [], this.singleConnectivityList = [], this.hasSingleConnectivityList = !1, this.rawURLs = [], this.controller = void 0, this.uberons = [], this.lookUp = [], this.connectivitySource = "map", this.noMapConnectivity = !1;
|
|
37
|
+
this.flatmapAPI = e, this.destinations = [], this.origins = [], this.components = [], this.destinationsWithDatasets = [], this.originsWithDatasets = [], this.componentsWithDatasets = [], this.destinationsCombinations = [], this.originsCombinations = [], this.componentsCombinations = [], this.singleConnectivityList = [], this.hasSingleConnectivityList = !1, this.rawURLs = [], this.expertConsultants = [], this.controller = void 0, this.uberons = [], this.lookUp = [], this.connectivitySource = "map", this.noMapConnectivity = !1;
|
|
38
38
|
}, this.createTooltipData = async function(e, t) {
|
|
39
|
-
let n
|
|
39
|
+
let n;
|
|
40
40
|
n = t.feature.hyperlinks && t.feature.hyperlinks.length > 0 ? t.feature.hyperlinks : this.rawURLs;
|
|
41
41
|
let r;
|
|
42
42
|
if (t.provenanceTaxonomy) {
|
|
@@ -65,6 +65,7 @@ var p = function(e) {
|
|
|
65
65
|
title: t.label,
|
|
66
66
|
featureId: t.resource,
|
|
67
67
|
hyperlinks: n,
|
|
68
|
+
"expert-consultants": this.expertConsultants,
|
|
68
69
|
provenanceTaxonomy: t.provenanceTaxonomy,
|
|
69
70
|
provenanceTaxonomyLabel: r,
|
|
70
71
|
connectivitySource: this.connectivitySource,
|
|
@@ -90,19 +91,17 @@ var p = function(e) {
|
|
|
90
91
|
return e.forEach((e) => {
|
|
91
92
|
n.push(this.createLabelFromNeuralNode(e[0]), t), e.length === 2 && n.push(this.createLabelFromNeuralNode(e[1]), t);
|
|
92
93
|
}), n;
|
|
93
|
-
}, this.createLabelLookup = function(e, t) {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}), n(r));
|
|
105
|
-
});
|
|
94
|
+
}, this.createLabelLookup = async function(e, t) {
|
|
95
|
+
let n = {};
|
|
96
|
+
this.uberons = [];
|
|
97
|
+
let r = await g(e, t);
|
|
98
|
+
return r.length && r.forEach((e) => {
|
|
99
|
+
let { taxon: t, label: r } = e;
|
|
100
|
+
n[t] = r, this.uberons.push({
|
|
101
|
+
id: t,
|
|
102
|
+
name: r
|
|
103
|
+
});
|
|
104
|
+
}), n;
|
|
106
105
|
}, this.buildConnectivitySqlStatement = function(e) {
|
|
107
106
|
let t = "select knowledge from knowledge where entity in (";
|
|
108
107
|
if (e.length === 1) t += `'${e[0]}')`;
|
|
@@ -129,31 +128,31 @@ var p = function(e) {
|
|
|
129
128
|
o = !1, _(t, e) && (o = !0), r && _(r, e) && (o = !0), _(n, e) && (o = !0), o || a.push(e);
|
|
130
129
|
}), a;
|
|
131
130
|
}, this.retrieveFlatmapKnowledgeForEvent = async function(e, t) {
|
|
132
|
-
this.controller && this.controller.abort(), this.controller = new AbortController()
|
|
131
|
+
this.controller && this.controller.abort(), this.controller = new AbortController();
|
|
133
132
|
let n = t.resource;
|
|
134
|
-
if (this.destinations = [], this.origins = [], this.components = [], this.destinationsWithDatasets = [], this.originsWithDatasets = [], this.componentsWithDatasets = [], this.destinationsCombinations = [], this.originsCombinations = [], this.componentsCombinations = [], this.singleConnectivityList = [], this.rawURLs = [], !n || n.length === 0 || !n[0]) return;
|
|
133
|
+
if (this.destinations = [], this.origins = [], this.components = [], this.destinationsWithDatasets = [], this.originsWithDatasets = [], this.componentsWithDatasets = [], this.destinationsCombinations = [], this.originsCombinations = [], this.componentsCombinations = [], this.singleConnectivityList = [], this.rawURLs = [], this.expertConsultants = [], !n || n.length === 0 || !n[0]) return;
|
|
135
134
|
let r = await this.queryForConnectivityNew(e, n[0]);
|
|
136
135
|
return await Promise.all([r]);
|
|
137
|
-
}, this.queryForConnectivityNew = async function(e,
|
|
138
|
-
let
|
|
139
|
-
return this.connectivitySource =
|
|
140
|
-
(this.connectivitySource === "map" ? this.queryMapConnectivity(e.mapMetadata.uuid,
|
|
141
|
-
if (this.checkConnectivityExists(
|
|
136
|
+
}, this.queryForConnectivityNew = async function(e, n, r = "map", i = !0) {
|
|
137
|
+
let a = /^sckan-(\d{4})/.exec(e.knowledgeSource || ""), o = (a ? Number(a[1]) : 0) >= 2026, s = e.mapMetadata.uuid, c = this.flatmapAPI;
|
|
138
|
+
return this.connectivitySource = o ? "sckan" : r, o && (this.singleConnectivityList = await t(c, s, n)), new Promise((t) => {
|
|
139
|
+
(this.connectivitySource === "map" ? this.queryMapConnectivity(e.mapMetadata.uuid, n) : e.queryKnowledge(n)).then((r) => {
|
|
140
|
+
if (this.checkConnectivityExists(r)) {
|
|
142
141
|
this.connectivitySource === "map" && (this.noMapConnectivity = !1);
|
|
143
|
-
let
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
}) : n
|
|
147
|
-
} else this.connectivitySource === "map" ? (this.connectivitySource = "sckan", this.noMapConnectivity = !0, e.queryKnowledge(
|
|
148
|
-
if (this.checkConnectivityExists(
|
|
149
|
-
let
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
}) :
|
|
153
|
-
} else
|
|
154
|
-
}).catch(() =>
|
|
142
|
+
let n = r;
|
|
143
|
+
i ? this.processConnectivity(e, n).then((e) => {
|
|
144
|
+
r.references && (this.rawURLs = [...r.references]), r["expert-consultants"] && (this.expertConsultants = [...r["expert-consultants"]]), t(e);
|
|
145
|
+
}) : t(n);
|
|
146
|
+
} else this.connectivitySource === "map" ? (this.connectivitySource = "sckan", this.noMapConnectivity = !0, e.queryKnowledge(n).then((n) => {
|
|
147
|
+
if (this.checkConnectivityExists(n)) {
|
|
148
|
+
let r = n;
|
|
149
|
+
i ? this.processConnectivity(e, r).then((e) => {
|
|
150
|
+
n.references && (this.rawURLs = [...n.references]), n["expert-consultants"] && (this.expertConsultants = [...n["expert-consultants"]]), t(e);
|
|
151
|
+
}) : t(r);
|
|
152
|
+
} else t(!1);
|
|
153
|
+
}).catch(() => t(!1))) : t(!1);
|
|
155
154
|
}).catch((e) => {
|
|
156
|
-
e.name === "AbortError" || console.warn(`Unable to get the knowledge for the entity ${
|
|
155
|
+
e.name === "AbortError" || console.warn(`Unable to get the knowledge for the entity ${n}.`), t(!1);
|
|
157
156
|
});
|
|
158
157
|
});
|
|
159
158
|
}, this.queryMapConnectivity = async function(e, t) {
|
|
@@ -163,7 +162,7 @@ var p = function(e) {
|
|
|
163
162
|
if (!e.ok) throw Error(`Response status: ${e.status}`);
|
|
164
163
|
return await e.json();
|
|
165
164
|
} catch (e) {
|
|
166
|
-
throw Error(e);
|
|
165
|
+
throw Error(e, { cause: e });
|
|
167
166
|
}
|
|
168
167
|
}, this.queryForConnectivity = function(e, t, n, r = !0) {
|
|
169
168
|
let i = { sql: this.buildConnectivitySqlStatement(t) }, a = {
|
|
@@ -1231,7 +1230,7 @@ var w = {
|
|
|
1231
1230
|
showIdInTooltip: { default: !0 }
|
|
1232
1231
|
},
|
|
1233
1232
|
computed: {
|
|
1234
|
-
...f(
|
|
1233
|
+
...f(a, l, i, s),
|
|
1235
1234
|
idNamePair() {
|
|
1236
1235
|
return this.splitFlowStore.idNamePair;
|
|
1237
1236
|
},
|
|
@@ -1279,7 +1278,7 @@ var w = {
|
|
|
1279
1278
|
},
|
|
1280
1279
|
getState: function() {},
|
|
1281
1280
|
openMap: function(e) {
|
|
1282
|
-
|
|
1281
|
+
n.emit("OpenNewMap", e), this.trackOpenMap(`open_new_${e}_map`);
|
|
1283
1282
|
},
|
|
1284
1283
|
onMapmanagerLoaded: function(e) {
|
|
1285
1284
|
this.settingsStore.updateMapManager(e);
|
|
@@ -1303,16 +1302,16 @@ var w = {
|
|
|
1303
1302
|
return !1;
|
|
1304
1303
|
},
|
|
1305
1304
|
searchSuggestions: function() {},
|
|
1306
|
-
resourceSelected: function(e,
|
|
1307
|
-
let r =
|
|
1305
|
+
resourceSelected: function(e, t) {
|
|
1306
|
+
let r = t[0];
|
|
1308
1307
|
if (this.resourceHasAction(r)) {
|
|
1309
|
-
|
|
1308
|
+
n.emit("PopoverActionClick", r);
|
|
1310
1309
|
return;
|
|
1311
1310
|
}
|
|
1312
1311
|
let i, a = !1, o = {
|
|
1313
1312
|
paneIndex: this.entry.id,
|
|
1314
1313
|
type: e,
|
|
1315
|
-
resource:
|
|
1314
|
+
resource: t,
|
|
1316
1315
|
internalName: void 0,
|
|
1317
1316
|
eventType: void 0
|
|
1318
1317
|
};
|
|
@@ -1348,7 +1347,7 @@ var w = {
|
|
|
1348
1347
|
type: "Facet",
|
|
1349
1348
|
facets: [C(r.data.id)]
|
|
1350
1349
|
})), o.eventType = "selected", a = !0);
|
|
1351
|
-
i &&
|
|
1350
|
+
i && n.emit("PopoverActionClick", i), a && this.$emit("resource-selected", o);
|
|
1352
1351
|
},
|
|
1353
1352
|
resourceHasAction: function(e) {
|
|
1354
1353
|
return e && (e.type === "URL" || e.type === "Search" || e.type === "Neuron Search" || e.type == "Facet" || e.type == "Facets");
|
|
@@ -1482,26 +1481,26 @@ var w = {
|
|
|
1482
1481
|
}
|
|
1483
1482
|
},
|
|
1484
1483
|
onAnnotationOpen: function(e) {
|
|
1485
|
-
|
|
1484
|
+
n.emit("annotation-open", e);
|
|
1486
1485
|
},
|
|
1487
1486
|
onAnnotationClose: function() {
|
|
1488
|
-
|
|
1487
|
+
n.emit("sidebar-annotation-close");
|
|
1489
1488
|
},
|
|
1490
1489
|
updateOfflineAnnotationEnabled: function(e) {
|
|
1491
|
-
|
|
1490
|
+
n.emit("update-offline-annotation-enabled", e);
|
|
1492
1491
|
},
|
|
1493
1492
|
onConnectivityInfoOpen: function(e) {
|
|
1494
|
-
|
|
1493
|
+
n.emit("connectivity-info-open", e);
|
|
1495
1494
|
},
|
|
1496
1495
|
onConnectivityError: function(e) {
|
|
1497
|
-
|
|
1496
|
+
n.emit("connectivity-error", e);
|
|
1498
1497
|
},
|
|
1499
1498
|
onConnectivityInfoClose: function() {
|
|
1500
|
-
|
|
1499
|
+
n.emit("connectivity-info-close");
|
|
1501
1500
|
},
|
|
1502
1501
|
onSidebarAnnotationClose: function() {},
|
|
1503
1502
|
onNeuronConnectionFeatureClick: function(e) {
|
|
1504
|
-
|
|
1503
|
+
n.emit("neuron-connection-feature-click", e);
|
|
1505
1504
|
},
|
|
1506
1505
|
showConnectivity: function() {},
|
|
1507
1506
|
showConnectivityTooltips: function() {},
|
|
@@ -1547,28 +1546,28 @@ var w = {
|
|
|
1547
1546
|
};
|
|
1548
1547
|
},
|
|
1549
1548
|
loadConnectivityExplorerConfig: async function(e) {
|
|
1550
|
-
let
|
|
1549
|
+
let t = e.mapImp, i = r(t), a = e.mockup ? t.resource : t.uuid, s = [];
|
|
1551
1550
|
if (!this.connectivityKnowledge[i]) {
|
|
1552
1551
|
this.flatmapQueries = d(new y()), this.flatmapQueries.initialise(this.flatmapAPI);
|
|
1553
|
-
let e = await
|
|
1552
|
+
let e = await o(t, this.flatmapQueries);
|
|
1554
1553
|
this.connectivityKnowledge[i] = e.filter((e) => e.connectivity?.length).sort((e, t) => e.label.localeCompare(t.label));
|
|
1555
1554
|
}
|
|
1556
|
-
if (!this.connectivityKnowledge[
|
|
1557
|
-
let e =
|
|
1558
|
-
this.connectivityKnowledge[
|
|
1555
|
+
if (!this.connectivityKnowledge[a]) {
|
|
1556
|
+
let e = t.pathways?.paths || {};
|
|
1557
|
+
this.connectivityKnowledge[a] = this.connectivityKnowledge[i].filter((t) => t.id in e);
|
|
1559
1558
|
}
|
|
1560
|
-
if (!this.connectivityFilterOptions[
|
|
1561
|
-
let
|
|
1562
|
-
this.connectivityKnowledge[
|
|
1563
|
-
let
|
|
1559
|
+
if (!this.connectivityFilterOptions[a] && !e.mockup && (this.connectivityFilterOptions[a] = await e.getFilterOptions(t, this.connectivityKnowledge[a])), e.mockup) {
|
|
1560
|
+
let n = e.getTermNerveMaps() || {}, r = JSON.parse(JSON.stringify(this.connectivityKnowledge[a]));
|
|
1561
|
+
this.connectivityKnowledge[a] = r.map((e) => {
|
|
1562
|
+
let t = e;
|
|
1564
1563
|
if (e.nerves?.length) {
|
|
1565
|
-
let r = e.nerves.flat(Infinity).reduce((e,
|
|
1566
|
-
r?.length && (s.push(...r),
|
|
1564
|
+
let r = e.nerves.flat(Infinity).reduce((e, t) => (t in n && e.push(n[t]), e), []);
|
|
1565
|
+
r?.length && (s.push(...r), t["nerve-label"] = r.sort((e, t) => e.nerve.localeCompare(t.nerve)));
|
|
1567
1566
|
}
|
|
1568
|
-
return
|
|
1569
|
-
}).filter((e) => e["nerve-label"]), this.connectivityFilterOptions[
|
|
1570
|
-
let i = JSON.parse(JSON.stringify(this.connectivityFilterOptions[
|
|
1571
|
-
this.connectivityFilterOptions[
|
|
1567
|
+
return t;
|
|
1568
|
+
}).filter((e) => e["nerve-label"]), this.connectivityFilterOptions[a] || (this.connectivityFilterOptions[a] = await e.getFilterOptions(t, this.connectivityKnowledge[a])), s = s.map((e) => e.nerve.toLowerCase());
|
|
1569
|
+
let i = JSON.parse(JSON.stringify(this.connectivityFilterOptions[a]));
|
|
1570
|
+
this.connectivityFilterOptions[a] = i.map((e) => {
|
|
1572
1571
|
if (e.key === "scaffold.connectivity.nerve") {
|
|
1573
1572
|
let t = e.children.filter((e) => s.includes(e.label.toLowerCase()));
|
|
1574
1573
|
return {
|
|
@@ -1578,8 +1577,8 @@ var w = {
|
|
|
1578
1577
|
}
|
|
1579
1578
|
return e;
|
|
1580
1579
|
});
|
|
1581
|
-
} else this.connectivityFilterSources[
|
|
1582
|
-
this.connectivitiesStore.updateFilterOptions(this.connectivityFilterOptions), this.connectivitiesStore.updateGlobalConnectivities(this.connectivityKnowledge),
|
|
1580
|
+
} else this.connectivityFilterSources[a] || (this.connectivityFilterSources[a] = e.getFilterSources()), this.connectivitiesStore.updateFilterSources(this.connectivityFilterSources);
|
|
1581
|
+
this.connectivitiesStore.updateFilterOptions(this.connectivityFilterOptions), this.connectivitiesStore.updateGlobalConnectivities(this.connectivityKnowledge), n.emit("species-layout-connectivity-update");
|
|
1583
1582
|
},
|
|
1584
1583
|
knowledgeTooltipQuery: async function(e) {
|
|
1585
1584
|
await this.flatmapQueries.retrieveFlatmapKnowledgeForEvent(this.flatmapService.mapImp, { resource: [e.id] });
|
|
@@ -1589,21 +1588,21 @@ var w = {
|
|
|
1589
1588
|
provenanceTaxonomy: e.taxons,
|
|
1590
1589
|
feature: []
|
|
1591
1590
|
});
|
|
1592
|
-
return t.knowledgeSource =
|
|
1591
|
+
return t.knowledgeSource = r(this.flatmapService.mapImp), t.mapId = this.flatmapService.mapImp.mapMetadata.id, t.mapuuid = this.flatmapService.mapImp.mapMetadata.uuid, t["nerve-label"] = e["nerve-label"], t.ready = !0, t;
|
|
1593
1592
|
},
|
|
1594
1593
|
getKnowledgeTooltip: async function(e) {
|
|
1595
1594
|
this.tooltipEntry = [], e.data.forEach((e) => this.tooltipEntry.push({
|
|
1596
1595
|
title: e.label,
|
|
1597
1596
|
featureId: [e.id],
|
|
1598
1597
|
ready: !1
|
|
1599
|
-
})),
|
|
1600
|
-
let
|
|
1601
|
-
for (let
|
|
1602
|
-
this.tooltipEntry = await Promise.all(
|
|
1598
|
+
})), n.emit("connectivity-info-open", this.tooltipEntry);
|
|
1599
|
+
let t = [];
|
|
1600
|
+
for (let n = 0; n < e.data.length; n++) t.push(await this.knowledgeTooltipQuery(e.data[n]));
|
|
1601
|
+
this.tooltipEntry = await Promise.all(t), this.tooltipEntry.map((e) => e.featureId[0]).length > 0 && n.emit("connectivity-info-open", this.tooltipEntry);
|
|
1603
1602
|
},
|
|
1604
|
-
changeConnectivitySource: async function(e,
|
|
1603
|
+
changeConnectivitySource: async function(e, t) {
|
|
1605
1604
|
let { entry: r, connectivitySource: i } = e, a = this?.flatmapService?.mapImp?.mapMetadata.uuid;
|
|
1606
|
-
|
|
1605
|
+
t.includes(a) || (t.push(a), await this.flatmapQueries.queryForConnectivityNew(this.flatmapService.mapImp, r.featureId[0], i), this.tooltipEntry = this.tooltipEntry.map((e) => e.featureId[0] === r.featureId[0] ? this.flatmapQueries.updateTooltipData(e) : e), n.emit("connectivity-info-open", this.tooltipEntry));
|
|
1607
1606
|
},
|
|
1608
1607
|
trackEvent: function(e) {
|
|
1609
1608
|
u.sendEvent(e);
|
|
@@ -1632,7 +1631,7 @@ var w = {
|
|
|
1632
1631
|
data: function() {
|
|
1633
1632
|
return {
|
|
1634
1633
|
apiLocation: void 0,
|
|
1635
|
-
activeSpecies:
|
|
1634
|
+
activeSpecies: c,
|
|
1636
1635
|
scaffoldCamera: void 0,
|
|
1637
1636
|
mainStyle: {
|
|
1638
1637
|
height: this.entry.datasetTitle ? "calc(100% - 30px)" : "100%",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S as e, _ as t, b as n, y as r } from "./connectivities-DhBMlBSj.js";
|
|
2
2
|
import "./mapintegratedvuer.js";
|
|
3
|
-
import { t as i } from "./ContentMixin-
|
|
4
|
-
import { t as a } from "./DynamicMarkerMixin-
|
|
3
|
+
import { t as i } from "./ContentMixin-4t04VWoF.js";
|
|
4
|
+
import { t as a } from "./DynamicMarkerMixin-tATj70ym.js";
|
|
5
5
|
import { createBlock as o, createCommentVNode as s, createElementBlock as c, createVNode as l, openBlock as u, resolveComponent as d } from "vue";
|
|
6
6
|
import { FlatmapVuer as f } from "@abi-software/flatmapvuer";
|
|
7
7
|
import "@abi-software/flatmapvuer/dist/style.css";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as e } from "./connectivities-
|
|
2
|
-
import { t } from "./ContentMixin-
|
|
1
|
+
import { _ as e } from "./connectivities-DhBMlBSj.js";
|
|
2
|
+
import { t } from "./ContentMixin-4t04VWoF.js";
|
|
3
3
|
import { createElementBlock as n, createElementVNode as r, openBlock as i } from "vue";
|
|
4
4
|
//#region src/components/viewers/Iframe.vue
|
|
5
5
|
var a = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S as e, _ as t, b as n, c as r, u as i, y as a } from "./connectivities-DhBMlBSj.js";
|
|
2
2
|
import "./mapintegratedvuer.js";
|
|
3
|
-
import { t as o } from "./ContentMixin-
|
|
4
|
-
import { t as s } from "./DynamicMarkerMixin-
|
|
3
|
+
import { t as o } from "./ContentMixin-4t04VWoF.js";
|
|
4
|
+
import { t as s } from "./DynamicMarkerMixin-tATj70ym.js";
|
|
5
5
|
import { createBlock as c, createCommentVNode as l, createElementBlock as u, createVNode as d, openBlock as f, resolveComponent as p } from "vue";
|
|
6
6
|
import { MultiFlatmapVuer as m } from "@abi-software/flatmapvuer";
|
|
7
7
|
import "@abi-software/flatmapvuer/dist/style.css";
|
|
@@ -59,6 +59,17 @@ var h = "<svg width=\"72px\" height=\"72px\" viewBox=\"0 0 24 24\" fill=\"yellow
|
|
|
59
59
|
search: function(e) {
|
|
60
60
|
return this.$refs.multiflatmap.getCurrentFlatmap().searchAndShowResult(e, !0, !0);
|
|
61
61
|
},
|
|
62
|
+
openMapSpecies: function(e) {
|
|
63
|
+
n.emit("SetCurrentEntry", {
|
|
64
|
+
resource: e,
|
|
65
|
+
type: "MultiFlatmap",
|
|
66
|
+
mode: "main",
|
|
67
|
+
state: void 0,
|
|
68
|
+
label: "",
|
|
69
|
+
discoverId: void 0,
|
|
70
|
+
sourceId: this.entry.id
|
|
71
|
+
}), this.trackOpenMap(`open_new_AC_map_${e}`);
|
|
72
|
+
},
|
|
62
73
|
searchSuggestions: function(e, t) {
|
|
63
74
|
let n = this.$refs.multiflatmap.getCurrentFlatmap();
|
|
64
75
|
if (e && n.mapImp) {
|
|
@@ -277,6 +288,7 @@ function y(e, t, n, r, i, a) {
|
|
|
277
288
|
showOpenMapButton: e.showOpenMapButton,
|
|
278
289
|
onPanZoomCallback: a.flatmapPanZoomCallback,
|
|
279
290
|
onOpenMap: e.openMap,
|
|
291
|
+
onOpenMapSpecies: a.openMapSpecies,
|
|
280
292
|
onFinishHelpMode: e.endHelp,
|
|
281
293
|
onPathwaySelectionChanged: a.onPathwaySelectionChanged,
|
|
282
294
|
onOpenPubmedUrl: a.onOpenPubmedUrl,
|
|
@@ -284,7 +296,7 @@ function y(e, t, n, r, i, a) {
|
|
|
284
296
|
showPathwayFilter: !1,
|
|
285
297
|
tooltipContentProvider: e.tooltipPathLabelProvider,
|
|
286
298
|
onTrackEvent: e.trackEvent
|
|
287
|
-
}, null, 8, /* @__PURE__ */ "availableSpecies.onContextRestored.onFlatmapChanged.onReady.state.mapManager.initial.helpMode.helpModeActiveItem.helpModeDialog.onHelpModeLastItem.onShownTooltip.onShownMapTooltip.onAnnotationOpen.onAnnotationClose.onUpdateOfflineAnnotationEnabled.annotationSidebar.onConnectivityInfoOpen.onConnectivityError.onConnectivityInfoClose.onNeuronConnectionFeatureClick.connectivityInfoSidebar.displayMinimap.showStarInLegend.openMapOptions.flatmapAPI.render.sparcAPI.showLocalSettings.showOpenMapButton.onPanZoomCallback.onOpenMap.onFinishHelpMode.onPathwaySelectionChanged.onOpenPubmedUrl.onMapmanagerLoaded.tooltipContentProvider.onTrackEvent".split(".")), e.helpMode && e.useHelpModeDialog ? (f(), c(s, {
|
|
299
|
+
}, null, 8, /* @__PURE__ */ "availableSpecies.onContextRestored.onFlatmapChanged.onReady.state.mapManager.initial.helpMode.helpModeActiveItem.helpModeDialog.onHelpModeLastItem.onShownTooltip.onShownMapTooltip.onAnnotationOpen.onAnnotationClose.onUpdateOfflineAnnotationEnabled.annotationSidebar.onConnectivityInfoOpen.onConnectivityError.onConnectivityInfoClose.onNeuronConnectionFeatureClick.connectivityInfoSidebar.displayMinimap.showStarInLegend.openMapOptions.flatmapAPI.render.sparcAPI.showLocalSettings.showOpenMapButton.onPanZoomCallback.onOpenMap.onOpenMapSpecies.onFinishHelpMode.onPathwaySelectionChanged.onOpenPubmedUrl.onMapmanagerLoaded.tooltipContentProvider.onTrackEvent".split(".")), e.helpMode && e.useHelpModeDialog ? (f(), c(s, {
|
|
288
300
|
key: 0,
|
|
289
301
|
ref: "multiflatmapHelp",
|
|
290
302
|
multiflatmapRef: e.multiflatmapRef,
|
|
@@ -298,6 +310,6 @@ function y(e, t, n, r, i, a) {
|
|
|
298
310
|
"onFinishHelpMode"
|
|
299
311
|
])) : l("", !0)]);
|
|
300
312
|
}
|
|
301
|
-
var b = /*#__PURE__*/ t(_, [["render", y], ["__scopeId", "data-v-
|
|
313
|
+
var b = /*#__PURE__*/ t(_, [["render", y], ["__scopeId", "data-v-6beb85ff"]]);
|
|
302
314
|
//#endregion
|
|
303
315
|
export { b as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as e } from "./connectivities-
|
|
2
|
-
import { t } from "./ContentMixin-
|
|
1
|
+
import { _ as e } from "./connectivities-DhBMlBSj.js";
|
|
2
|
+
import { t } from "./ContentMixin-4t04VWoF.js";
|
|
3
3
|
import { createBlock as n, openBlock as r, resolveComponent as i } from "vue";
|
|
4
4
|
import { PlotVuer as a } from "@abi-software/plotvuer";
|
|
5
5
|
import "@abi-software/plotvuer/dist/style.css";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S as e, _ as t, a as n, b as r, o as i } from "./connectivities-DhBMlBSj.js";
|
|
2
2
|
import "./mapintegratedvuer.js";
|
|
3
|
-
import { t as a } from "./ContentMixin-
|
|
3
|
+
import { t as a } from "./ContentMixin-4t04VWoF.js";
|
|
4
4
|
import { createBlock as o, createCommentVNode as s, createElementBlock as c, markRaw as l, openBlock as u, resolveComponent as d } from "vue";
|
|
5
5
|
import { ScaffoldVuer as f } from "@abi-software/scaffoldvuer";
|
|
6
6
|
import "@abi-software/scaffoldvuer/dist/style.css";
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { _ as e } from "./connectivities-DhBMlBSj.js";
|
|
2
|
+
import { t } from "./ContentMixin-4t04VWoF.js";
|
|
3
|
+
import { createBlock as n, createElementBlock as r, openBlock as i, resolveComponent as a } from "vue";
|
|
4
|
+
import { SimulationVuer as o } from "@abi-software/simulationvuer";
|
|
5
|
+
import "@abi-software/simulationvuer/dist/style.css";
|
|
6
|
+
//#region src/components/viewers/Simulation.vue
|
|
7
|
+
var s = {
|
|
8
|
+
name: "Simulation",
|
|
9
|
+
mixins: [t],
|
|
10
|
+
components: { SimulationVuer: o },
|
|
11
|
+
data: function() {
|
|
12
|
+
return { isCrossOriginIsolated: window.crossOriginIsolated === !0 };
|
|
13
|
+
},
|
|
14
|
+
computed: { id: function() {
|
|
15
|
+
return this.entry.resource ? this.entry.resource : this.entry.discoverId;
|
|
16
|
+
} }
|
|
17
|
+
}, c = {
|
|
18
|
+
key: 1,
|
|
19
|
+
class: "simulation-unsupported"
|
|
20
|
+
};
|
|
21
|
+
function l(e, t, o, s, l, u) {
|
|
22
|
+
let d = a("SimulationVuer");
|
|
23
|
+
return e.isCrossOriginIsolated ? (i(), n(d, {
|
|
24
|
+
key: 0,
|
|
25
|
+
apiLocation: e.apiLocation,
|
|
26
|
+
id: u.id,
|
|
27
|
+
ref: "simulation"
|
|
28
|
+
}, null, 8, ["apiLocation", "id"])) : (i(), r("div", c, " Simulations require a cross-origin isolated page (for SharedArrayBuffer support). This browser or host is not configured for it. "));
|
|
29
|
+
}
|
|
30
|
+
var u = /*#__PURE__*/ e(s, [["render", l], ["__scopeId", "data-v-627e2ba4"]]);
|
|
31
|
+
//#endregion
|
|
32
|
+
export { u as default };
|
|
@@ -35570,6 +35570,34 @@ var QU = (e) => {
|
|
|
35570
35570
|
let t = nW(this.customLayout, e), n = this.customLayout["pane-1"].id;
|
|
35571
35571
|
this.customLayout["pane-1"].id = e, t && (this.customLayout[t].id = n);
|
|
35572
35572
|
},
|
|
35573
|
+
placeEntryInSplitView(e) {
|
|
35574
|
+
let { id: t, sourceId: n, entries: r } = e;
|
|
35575
|
+
if (this.activeView === "singlepanel") {
|
|
35576
|
+
if (nW(this.customLayout, n) !== "pane-1") {
|
|
35577
|
+
this.setIdToPrimaryPane(t);
|
|
35578
|
+
return;
|
|
35579
|
+
}
|
|
35580
|
+
this.updateActiveView({
|
|
35581
|
+
view: "2vertpanel",
|
|
35582
|
+
entries: r
|
|
35583
|
+
}, !1), this.assignOrSwapPaneWithIds({
|
|
35584
|
+
source: t,
|
|
35585
|
+
target: this.customLayout["pane-2"].id
|
|
35586
|
+
}, !1);
|
|
35587
|
+
} else {
|
|
35588
|
+
let e = nW(this.customLayout, n);
|
|
35589
|
+
if (!e || !this.isPaneActive(e)) {
|
|
35590
|
+
this.setIdToPrimaryPane(t);
|
|
35591
|
+
return;
|
|
35592
|
+
}
|
|
35593
|
+
let r = e === "pane-1" ? "pane-2" : "pane-1";
|
|
35594
|
+
this.assignOrSwapPaneWithIds({
|
|
35595
|
+
source: t,
|
|
35596
|
+
target: this.customLayout[r].id
|
|
35597
|
+
}, !1);
|
|
35598
|
+
}
|
|
35599
|
+
this.updateSplitPanels();
|
|
35600
|
+
},
|
|
35573
35601
|
reset() {
|
|
35574
35602
|
let e = rW();
|
|
35575
35603
|
this.activeView = e.activeView, this.customLayout = e.customLayout, this.splitters = e.splitters;
|
|
@@ -35771,4 +35799,4 @@ var oW = _e("connectivities", {
|
|
|
35771
35799
|
}
|
|
35772
35800
|
});
|
|
35773
35801
|
//#endregion
|
|
35774
|
-
export { He as $,
|
|
35802
|
+
export { He as $, pU as A, De as B, aV as C, aU as D, fU as E, be as F, je as G, Oe as H, xe as I, Pe as J, Me as K, Se as L, SV as M, wU as N, cU as O, ye as P, Be as Q, we as R, RH as S, uU as T, ke as U, Ee as V, Ae as W, Re as X, Le as Y, ze as Z, kU as _, HU as a, Xe as at, EU as b, FU as c, IU as d, Ue as et, RU as f, zU as g, NU as h, UU as i, Je as it, hy as j, xy as k, PU as l, jU as m, iW as n, Ge as nt, VU as o, Ye as ot, MU as p, Ne as q, YU as r, qe as rt, GU as s, oW as t, We as tt, AU as u, OU as v, ry as w, qV as x, DU as y, Te as z };
|