@abi-software/mapintegratedvuer 1.9.0-externalise.0 → 1.9.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/{ContentMixin-DZNBigKl.js → ContentMixin-DyVwSF4C.js} +255 -277
- package/dist/{Flatmap-Cpq4KUDR.js → Flatmap-DrfTTLeB.js} +11 -12
- package/dist/{Iframe-Bs8MdpYf.js → Iframe-DNML_G7u.js} +2 -2
- package/dist/{MultiFlatmap-D2F4ghpg.js → MultiFlatmap-Vp10mrjr.js} +10 -11
- package/dist/{Plot-DTUNGWFU.js → Plot-BnuX-0LW.js} +2 -2
- package/dist/{Scaffold-DBwjYgzS.js → Scaffold-CLNZHo3r.js} +10858 -11419
- package/dist/{Simulation-Bw7qeokB.js → Simulation-BEU8ep5d.js} +2 -2
- package/dist/{index-DPgI7wGR.js → index-CVfAy4kK.js} +19947 -19608
- package/dist/mapintegratedvuer.js +1 -1
- package/dist/mapintegratedvuer.umd.cjs +2787 -411
- package/dist/style-BM2XOQIb.js +104676 -0
- package/dist/style.css +1 -1
- package/package.json +7 -7
- package/src/components/ContentVuer.vue +3 -2
- package/src/components/DialogToolbarContent.vue +24 -35
- package/src/components/SplitDialog.vue +92 -2
- package/src/components/SplitFlow.vue +17 -11
- package/src/components/viewers/Flatmap.vue +1 -1
- package/src/components/viewers/MultiFlatmap.vue +1 -1
- package/src/components.d.ts +1 -0
- package/src/mixins/ContentMixin.js +81 -42
- package/src/stores/connectivities.js +21 -0
- package/src/stores/entries.js +8 -1
- package/src/stores/splitFlow.js +14 -7
- package/vite.bundle-build.js +1 -2
- package/dist/style-C-2wp5WK.js +0 -66
package/src/stores/splitFlow.js
CHANGED
@@ -2,6 +2,7 @@ import { defineStore } from 'pinia';
|
|
2
2
|
import {
|
3
3
|
getAvailableTermsForSpecies,
|
4
4
|
} from "../components/SimulatedData.js";
|
5
|
+
import EventBus from '../components/EventBus.js';
|
5
6
|
|
6
7
|
/* eslint-disable no-alert, no-console */
|
7
8
|
const presetLayouts = (view) => {
|
@@ -12,13 +13,13 @@ const presetLayouts = (view) => {
|
|
12
13
|
"pane-1": {content: true, id: 1},
|
13
14
|
"pane-2": {content: true, id: 2},
|
14
15
|
};
|
15
|
-
case "2vertpanel":
|
16
|
+
case "2vertpanel":
|
16
17
|
return {
|
17
18
|
"split-1": {content: false, horizontal: false, children: ["pane-1", "pane-2"]},
|
18
19
|
"pane-1": {content: true, id: 1},
|
19
20
|
"pane-2": {content: true, id: 2},
|
20
21
|
}
|
21
|
-
case "3panel":
|
22
|
+
case "3panel":
|
22
23
|
return {
|
23
24
|
"split-1": {content: false, horizontal: false, children: ["pane-1", "split-2"]},
|
24
25
|
"split-2": {content: false, horizontal: true, children: ["pane-2", "pane-3"]},
|
@@ -26,7 +27,7 @@ const presetLayouts = (view) => {
|
|
26
27
|
"pane-2": {content: true, id: 2},
|
27
28
|
"pane-3": {content: true, id: 3},
|
28
29
|
}
|
29
|
-
case "4panel":
|
30
|
+
case "4panel":
|
30
31
|
return {
|
31
32
|
"split-1": {content: false, horizontal: false, children: ["split-3", "split-2"]},
|
32
33
|
"split-2": {content: false, horizontal: true, children: ["pane-2", "pane-3"]},
|
@@ -36,7 +37,7 @@ const presetLayouts = (view) => {
|
|
36
37
|
"pane-3": {content: true, id: 3},
|
37
38
|
"pane-4": {content: true, id: 4},
|
38
39
|
}
|
39
|
-
case "5panel":
|
40
|
+
case "5panel":
|
40
41
|
return {
|
41
42
|
"split-1": {content: false, horizontal: true, children: ["split-3", "split-2"]},
|
42
43
|
"split-2": {content: false, horizontal: false, children: ["pane-2", "pane-3"]},
|
@@ -47,7 +48,7 @@ const presetLayouts = (view) => {
|
|
47
48
|
"pane-4": {content: true, id: 4},
|
48
49
|
"pane-5": {content: true, id: 5},
|
49
50
|
}
|
50
|
-
case "6panel":
|
51
|
+
case "6panel":
|
51
52
|
return {
|
52
53
|
"split-1": {content: false, horizontal: true, children: ["split-3", "split-2"]},
|
53
54
|
"split-2": {content: false, horizontal: false, children: ["pane-2", "pane-3", "pane-5"]},
|
@@ -199,6 +200,7 @@ export const useSplitFlowStore = defineStore('splitFlow', {
|
|
199
200
|
if (sourceKey) {
|
200
201
|
this.customLayout[sourceKey].id = payload.target;
|
201
202
|
}
|
203
|
+
this.updateSplitPanels();
|
202
204
|
},
|
203
205
|
getAvailableTerms(apiLocation) {
|
204
206
|
let terms = getAvailableTermsForSpecies();
|
@@ -246,6 +248,7 @@ export const useSplitFlowStore = defineStore('splitFlow', {
|
|
246
248
|
for (const [key, value] of Object.entries(customLayout)) {
|
247
249
|
this.customLayout[key] = value;
|
248
250
|
}
|
251
|
+
this.updateSplitPanels();
|
249
252
|
},
|
250
253
|
setSplitter(payload) {
|
251
254
|
if (this.splitters[payload.name])
|
@@ -317,7 +320,7 @@ export const useSplitFlowStore = defineStore('splitFlow', {
|
|
317
320
|
},
|
318
321
|
setSyncMode(payload) {
|
319
322
|
if (payload) {
|
320
|
-
//Force the second slot to be the new viewer in payload and change the
|
323
|
+
//Force the second slot to be the new viewer in payload and change the
|
321
324
|
//view to the payload's layout
|
322
325
|
//this.customLayout["pane-2"].id = id;
|
323
326
|
if (payload.flag === true) {
|
@@ -553,7 +556,11 @@ export const useSplitFlowStore = defineStore('splitFlow', {
|
|
553
556
|
this.customLayout[key] = value;
|
554
557
|
}
|
555
558
|
}
|
559
|
+
this.updateSplitPanels();
|
556
560
|
}
|
557
|
-
}
|
561
|
+
},
|
562
|
+
updateSplitPanels() {
|
563
|
+
EventBus.emit('species-layout-connectivity-update');
|
564
|
+
},
|
558
565
|
}
|
559
566
|
});
|
package/vite.bundle-build.js
CHANGED
@@ -12,14 +12,13 @@ export default defineConfig((configEnv) => {
|
|
12
12
|
fileName: "mapintegratedvuer",
|
13
13
|
},
|
14
14
|
rollupOptions: {
|
15
|
-
external: ["vue", "pinia", "@abi-software/
|
15
|
+
external: ["vue", "pinia", "@abi-software/plotvuer", "@abi-software/simulationvuer"],
|
16
16
|
output: {
|
17
17
|
globals: {
|
18
18
|
vue: "Vue",
|
19
19
|
pinia: "pinia",
|
20
20
|
"@abi-software/simulationvuer": "simulationvuer",
|
21
21
|
"@abi-software/plotvuer": "plotvuer",
|
22
|
-
"@abi-software/flatmapvuer": "flatmapvuer",
|
23
22
|
},
|
24
23
|
},
|
25
24
|
},
|
package/dist/style-C-2wp5WK.js
DELETED
@@ -1,66 +0,0 @@
|
|
1
|
-
import { mapStores as l } from "pinia";
|
2
|
-
import { u as o } from "./index-DPgI7wGR.js";
|
3
|
-
const p = function(t) {
|
4
|
-
return t ? [...new Set(t.map((e) => JSON.stringify(e)))].map(
|
5
|
-
(e) => JSON.parse(e)
|
6
|
-
) : [];
|
7
|
-
}, c = {
|
8
|
-
computed: {
|
9
|
-
...l(o)
|
10
|
-
},
|
11
|
-
methods: {
|
12
|
-
flatmapPanZoomCallback: function(t) {
|
13
|
-
if (this.mouseHovered) {
|
14
|
-
const e = {
|
15
|
-
paneIndex: this.entry.id,
|
16
|
-
eventType: "panZoom",
|
17
|
-
payload: t,
|
18
|
-
type: this.entry.type
|
19
|
-
};
|
20
|
-
this.$emit("resource-selected", e);
|
21
|
-
}
|
22
|
-
},
|
23
|
-
/**
|
24
|
-
* Function used for updating the flatmap markers.
|
25
|
-
* We set the markers based on what was searched and the flatmap clusters them.
|
26
|
-
*/
|
27
|
-
flatmapMarkerUpdate(t) {
|
28
|
-
if (!this.flatmapReady) return;
|
29
|
-
let e = t;
|
30
|
-
if (e || (e = this.getFlatmapImp()), e) {
|
31
|
-
let i = this.settingsStore.globalSettings.displayMarkers ? this.settingsStore.markers : [];
|
32
|
-
i = p(i);
|
33
|
-
let s = this.removeMarkersNotOnFlatmap(e, i);
|
34
|
-
if (e.clearMarkers(), e.clearDatasetMarkers(), this.entry.resource === "FunctionalConnectivity") {
|
35
|
-
let a = [];
|
36
|
-
for (let r = 0; r < s.length; r++)
|
37
|
-
a = a.concat(s[r].terms);
|
38
|
-
e.addMarkers(Array.from(new Set(a)), { className: "standard-marker", cluster: !1 });
|
39
|
-
} else
|
40
|
-
e.addDatasetMarkers(s);
|
41
|
-
this.entry.type === "MultiFlatmap" && this.restoreFeaturedMarkers(e);
|
42
|
-
}
|
43
|
-
},
|
44
|
-
// removeMarkersNotOnFlatmap: rewrites the dataset marker list to only include markers that are on the flatmap
|
45
|
-
removeMarkersNotOnFlatmap(t, e) {
|
46
|
-
let i = t.anatomicalIdentifiers, s = [];
|
47
|
-
for (let a = 0; a < e.length; a++) {
|
48
|
-
let r = e[a], n = { id: r.id, terms: [] };
|
49
|
-
for (let m = 0; m < r.terms.length; m++)
|
50
|
-
i.includes(r.terms[m]) && n.terms.push(r.terms[m]);
|
51
|
-
s.push(n);
|
52
|
-
}
|
53
|
-
return s;
|
54
|
-
},
|
55
|
-
flatmapReadyForMarkerUpdates: function(t) {
|
56
|
-
if (t) {
|
57
|
-
t.enablePanZoomEvents(!0), this.flatmapReady = !0;
|
58
|
-
const e = t.mapImp;
|
59
|
-
this.flatmapMarkerUpdate(e);
|
60
|
-
}
|
61
|
-
}
|
62
|
-
}
|
63
|
-
};
|
64
|
-
export {
|
65
|
-
c as D
|
66
|
-
};
|