@abi-software/mapintegratedvuer 1.3.4 → 1.3.5-beta.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/package.json +3 -3
- package/src/components/ContextCard.vue +103 -12
- package/src/components/FlatmapContextCard.vue +54 -3
- package/src/components/viewers/MultiFlatmap.vue +1 -1
- package/dist/ContentMixin-CVohbs0m.js +0 -584
- package/dist/Flatmap-BUvl0sFI.js +0 -157
- package/dist/Iframe-C-lXBP-M.js +0 -19
- package/dist/MultiFlatmap-DjoXGx8_.js +0 -327
- package/dist/Plot-DGrp2nRW.js +0 -24
- package/dist/Scaffold-CoWOIdKK.js +0 -44370
- package/dist/Simulation-BEOxh6rk.js +0 -10622
- package/dist/favicon.ico +0 -0
- package/dist/index-Dm50Xt50.js +0 -35920
- package/dist/index.html +0 -18
- package/dist/mapintegratedvuer.js +0 -4
- package/dist/mapintegratedvuer.umd.cjs +0 -7026
- package/dist/plotvuer-X4h-Lj3L.js +0 -49187
- package/dist/style-CJykSWTR.js +0 -11999
- package/dist/style-UobdR58S.js +0 -98116
- package/dist/style.css +0 -1
package/dist/Flatmap-BUvl0sFI.js
DELETED
@@ -1,157 +0,0 @@
|
|
1
|
-
import { _ as d, t as h, T as s, E as l } from "./index-Dm50Xt50.js";
|
2
|
-
import { C as u } from "./ContentMixin-CVohbs0m.js";
|
3
|
-
import { D as I, W as y } from "./style-UobdR58S.js";
|
4
|
-
import { F as v } from "./style-CJykSWTR.js";
|
5
|
-
import { resolveComponent as p, openBlock as r, createElementBlock as M, createVNode as g, createBlock as S, createCommentVNode as C } from "vue";
|
6
|
-
const F = {
|
7
|
-
name: "Flatmap",
|
8
|
-
mixins: [u, I],
|
9
|
-
components: {
|
10
|
-
FlatmapVuer: y,
|
11
|
-
HelpModeDialog: v
|
12
|
-
},
|
13
|
-
methods: {
|
14
|
-
getState: function() {
|
15
|
-
return this.$refs.flatmap.getState();
|
16
|
-
},
|
17
|
-
/**
|
18
|
-
* Perform a local search on this contentvuer
|
19
|
-
*/
|
20
|
-
search: function(e) {
|
21
|
-
return this.$refs.flatmap.searchAndShowResult(e);
|
22
|
-
},
|
23
|
-
getFlatmapImp() {
|
24
|
-
var e;
|
25
|
-
return (e = this.$refs.flatmap) == null ? void 0 : e.mapImp;
|
26
|
-
},
|
27
|
-
flatmaprResourceSelected: function(e, t) {
|
28
|
-
if (this.resourceSelected(
|
29
|
-
e,
|
30
|
-
t,
|
31
|
-
this.$refs.flatmap.viewingMode === "Exploration"
|
32
|
-
), t.eventType === "click" && t.feature.type === "feature") {
|
33
|
-
const o = {
|
34
|
-
label: t.label || "",
|
35
|
-
id: t.feature.id || "",
|
36
|
-
featureId: t.feature.featureId || "",
|
37
|
-
taxonomy: t.taxonomy || "",
|
38
|
-
resources: t.resource.join(", ")
|
39
|
-
}, a = h(o);
|
40
|
-
s.sendEvent({
|
41
|
-
event: "interaction_event",
|
42
|
-
event_name: "portal_maps_connectivity",
|
43
|
-
category: a,
|
44
|
-
location: e + " " + this.$refs.flatmap.viewingMode
|
45
|
-
});
|
46
|
-
}
|
47
|
-
},
|
48
|
-
flatmapReadyCall: function(e) {
|
49
|
-
let t = { id: this.entry.id, prov: this.getFlatmapImp().provenance };
|
50
|
-
l.emit("mapImpProv", t), this.$emit("flatmap-provenance-ready", t), this.entry.resource === "FunctionalConnectivity" && this.flatmapReadyForMarkerUpdates(e);
|
51
|
-
},
|
52
|
-
onPathwaySelectionChanged: function(e) {
|
53
|
-
const { label: t, property: o, checked: a, selectionsTitle: n } = e;
|
54
|
-
s.sendEvent({
|
55
|
-
event: "interaction_event",
|
56
|
-
event_name: "portal_maps_pathway_change",
|
57
|
-
category: t + " [" + o + "] " + a,
|
58
|
-
location: n
|
59
|
-
});
|
60
|
-
},
|
61
|
-
highlightFeatures: function(e) {
|
62
|
-
let t = e.name;
|
63
|
-
const o = this.$refs.flatmap.mapImp;
|
64
|
-
if (t) {
|
65
|
-
const a = o.search(t);
|
66
|
-
a.featureIds[0] && o.highlightFeatures([
|
67
|
-
o.modelForFeature(a.featureIds[0])
|
68
|
-
]);
|
69
|
-
}
|
70
|
-
},
|
71
|
-
/**
|
72
|
-
* Append the list of suggested terms to suggestions
|
73
|
-
*/
|
74
|
-
searchSuggestions: function(e, t) {
|
75
|
-
e && this.$refs.flatmap.mapImp && this.$refs.flatmap.mapImp.search(e).__featureIds.forEach((a) => {
|
76
|
-
const n = this.$refs.flatmap.mapImp.annotation(a);
|
77
|
-
n && n.label && t.push(n.label);
|
78
|
-
});
|
79
|
-
},
|
80
|
-
zoomToFeatures: function(e, t) {
|
81
|
-
let o = e.name;
|
82
|
-
const a = this.$refs.flatmap.mapImp;
|
83
|
-
if (o) {
|
84
|
-
const n = a.search(o);
|
85
|
-
if (n.featureIds.length) {
|
86
|
-
let i = a.modelForFeature(n.featureIds[0]);
|
87
|
-
i ? (t && a.selectFeatures(i), a.zoomToFeatures(i)) : a.clearSearchResults();
|
88
|
-
}
|
89
|
-
} else
|
90
|
-
a.clearSearchResults();
|
91
|
-
}
|
92
|
-
},
|
93
|
-
computed: {
|
94
|
-
facetSpecies() {
|
95
|
-
return this.settingsStore.facets.species;
|
96
|
-
}
|
97
|
-
},
|
98
|
-
mounted: function() {
|
99
|
-
l.on("markerUpdate", () => {
|
100
|
-
this.flatmapMarkerUpdate(void 0);
|
101
|
-
}), l.on("hoverUpdate", () => {
|
102
|
-
this.mapHoverHighlight(this.$refs.flatmap.mapImp);
|
103
|
-
}), l.on("show-connectivity", (e) => {
|
104
|
-
const { featureIds: t, offset: o } = e, a = this.$refs.flatmap;
|
105
|
-
a && a.moveMap(t, {
|
106
|
-
offsetX: o ? -150 : 0,
|
107
|
-
zoom: 4
|
108
|
-
});
|
109
|
-
});
|
110
|
-
}
|
111
|
-
}, w = { class: "viewer-container" };
|
112
|
-
function H(e, t, o, a, n, i) {
|
113
|
-
const m = p("FlatmapVuer"), f = p("HelpModeDialog");
|
114
|
-
return r(), M("div", w, [
|
115
|
-
g(m, {
|
116
|
-
state: e.entry.state,
|
117
|
-
entry: e.entry.resource,
|
118
|
-
onResourceSelected: t[0] || (t[0] = (c) => i.flatmaprResourceSelected(e.entry.type, c)),
|
119
|
-
onPanZoomCallback: e.flatmapPanZoomCallback,
|
120
|
-
name: e.entry.resource,
|
121
|
-
style: { height: "100%", width: "100%" },
|
122
|
-
minZoom: e.entry.minZoom,
|
123
|
-
helpMode: e.helpMode,
|
124
|
-
helpModeActiveItem: e.helpModeActiveItem,
|
125
|
-
helpModeInitialIndex: -1,
|
126
|
-
helpModeDialog: e.useHelpModeDialog,
|
127
|
-
onHelpModeLastItem: e.onHelpModeLastItem,
|
128
|
-
onShownTooltip: e.onTooltipShown,
|
129
|
-
onShownMapTooltip: e.onMapTooltipShown,
|
130
|
-
onConnectivityInfoOpen: e.onConnectivityInfoOpen,
|
131
|
-
onConnectivityInfoClose: e.onConnectivityInfoClose,
|
132
|
-
connectivityInfoSidebar: e.connectivityInfoSidebar,
|
133
|
-
pathControls: !0,
|
134
|
-
ref: "flatmap",
|
135
|
-
onReady: i.flatmapReadyCall,
|
136
|
-
displayMinimap: !1,
|
137
|
-
displayWarning: !0,
|
138
|
-
enableOpenMapUI: !0,
|
139
|
-
flatmapAPI: e.flatmapAPI,
|
140
|
-
sparcAPI: e.apiLocation,
|
141
|
-
onOpenMap: e.openMap,
|
142
|
-
onPathwaySelectionChanged: i.onPathwaySelectionChanged
|
143
|
-
}, null, 8, ["state", "entry", "onPanZoomCallback", "name", "minZoom", "helpMode", "helpModeActiveItem", "helpModeDialog", "onHelpModeLastItem", "onShownTooltip", "onShownMapTooltip", "onConnectivityInfoOpen", "onConnectivityInfoClose", "connectivityInfoSidebar", "onReady", "flatmapAPI", "sparcAPI", "onOpenMap", "onPathwaySelectionChanged"]),
|
144
|
-
e.helpMode && e.useHelpModeDialog ? (r(), S(f, {
|
145
|
-
key: 0,
|
146
|
-
ref: "flatmapHelp",
|
147
|
-
flatmapRef: e.flatmapRef,
|
148
|
-
lastItem: e.helpModeLastItem,
|
149
|
-
onShowNext: e.onHelpModeShowNext,
|
150
|
-
onFinishHelpMode: e.onFinishHelpMode
|
151
|
-
}, null, 8, ["flatmapRef", "lastItem", "onShowNext", "onFinishHelpMode"])) : C("", !0)
|
152
|
-
]);
|
153
|
-
}
|
154
|
-
const T = /* @__PURE__ */ d(F, [["render", H], ["__scopeId", "data-v-29f23311"]]);
|
155
|
-
export {
|
156
|
-
T as default
|
157
|
-
};
|
package/dist/Iframe-C-lXBP-M.js
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
import { C as r } from "./ContentMixin-CVohbs0m.js";
|
2
|
-
import { openBlock as o, createElementBlock as t, createElementVNode as s } from "vue";
|
3
|
-
import { _ as n } from "./index-Dm50Xt50.js";
|
4
|
-
const a = {
|
5
|
-
name: "Iframe",
|
6
|
-
mixins: [r]
|
7
|
-
}, c = { class: "map-iframe-container" }, i = ["src"];
|
8
|
-
function m(e, f, _, p, d, l) {
|
9
|
-
return o(), t("div", c, [
|
10
|
-
s("iframe", {
|
11
|
-
class: "my-iframe",
|
12
|
-
src: e.entry.resource.share_link
|
13
|
-
}, null, 8, i)
|
14
|
-
]);
|
15
|
-
}
|
16
|
-
const $ = /* @__PURE__ */ n(a, [["render", m], ["__scopeId", "data-v-60f8bfe1"]]);
|
17
|
-
export {
|
18
|
-
$ as default
|
19
|
-
};
|
@@ -1,327 +0,0 @@
|
|
1
|
-
import { _ as u, a as h, g as y, E as r, t as g, T as p } from "./index-Dm50Xt50.js";
|
2
|
-
import { C as M } from "./ContentMixin-CVohbs0m.js";
|
3
|
-
import { D as v, v as I } from "./style-UobdR58S.js";
|
4
|
-
import { F as S } from "./style-CJykSWTR.js";
|
5
|
-
import { resolveComponent as f, openBlock as c, createElementBlock as C, createVNode as F, 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>', d = (e) => {
|
7
|
-
const t = [
|
8
|
-
{
|
9
|
-
display: "Open AC Map",
|
10
|
-
key: "AC"
|
11
|
-
},
|
12
|
-
{
|
13
|
-
display: "Open FC Map",
|
14
|
-
key: "FC"
|
15
|
-
},
|
16
|
-
{
|
17
|
-
display: "Open 3D Human Map",
|
18
|
-
key: "3D"
|
19
|
-
}
|
20
|
-
];
|
21
|
-
switch (e) {
|
22
|
-
case "Human Male":
|
23
|
-
case "Human Female":
|
24
|
-
case "Rat":
|
25
|
-
t.push({
|
26
|
-
display: "Open Sync Map",
|
27
|
-
key: "SYNC"
|
28
|
-
});
|
29
|
-
break;
|
30
|
-
}
|
31
|
-
return t;
|
32
|
-
}, b = {
|
33
|
-
name: "MultiFlatmap",
|
34
|
-
mixins: [M, v],
|
35
|
-
components: {
|
36
|
-
MultiFlatmapVuer: I,
|
37
|
-
HelpModeDialog: S
|
38
|
-
},
|
39
|
-
data: function() {
|
40
|
-
return {
|
41
|
-
zoomLevel: 6,
|
42
|
-
flatmapReady: !1,
|
43
|
-
availableSpecies: h(),
|
44
|
-
scaffoldResource: {},
|
45
|
-
showStarInLegend: !1,
|
46
|
-
openMapOptions: d("Rat")
|
47
|
-
};
|
48
|
-
},
|
49
|
-
methods: {
|
50
|
-
/**
|
51
|
-
* Toggle sync mode on/off depending on species and current state
|
52
|
-
*/
|
53
|
-
toggleSyncMode: async function() {
|
54
|
-
if (this.syncMode == !1) {
|
55
|
-
let e;
|
56
|
-
this.activeSpecies === "Rat" ? e = {
|
57
|
-
contextCard: void 0,
|
58
|
-
discoverId: void 0,
|
59
|
-
label: "Rat Body",
|
60
|
-
resource: "https://mapcore-bucket1.s3.us-west-2.amazonaws.com/WholeBody/31-May-2021/ratBody/ratBody_syncmap_metadata.json",
|
61
|
-
title: "View 3D scaffold",
|
62
|
-
layout: "2horpanel",
|
63
|
-
type: "SyncMap"
|
64
|
-
} : (this.activeSpecies === "Human Male" || this.activeSpecies === "Human Female") && ("human" in this.scaffoldResource || (this.scaffoldResource.human = await y(this.apiLocation, "human")), e = {
|
65
|
-
contextCardUrl: this.scaffoldResource.human.datasetInfo.contextCardUrl,
|
66
|
-
discoverId: this.scaffoldResource.human.datasetInfo.discoverId,
|
67
|
-
s3uri: this.scaffoldResource.human.datasetInfo.s3uri,
|
68
|
-
version: this.scaffoldResource.human.datasetInfo.version,
|
69
|
-
label: "Human Body",
|
70
|
-
resource: this.scaffoldResource.human.url,
|
71
|
-
title: "View 3D scaffold",
|
72
|
-
layout: "2vertpanel",
|
73
|
-
type: "SyncMap",
|
74
|
-
isBodyScaffold: !0
|
75
|
-
}), e && r.emit("SyncModeRequest", { flag: !0, action: e });
|
76
|
-
} else
|
77
|
-
r.emit("SyncModeRequest", { flag: !1 });
|
78
|
-
},
|
79
|
-
getState: function() {
|
80
|
-
if (this.flatmapReady)
|
81
|
-
return this.$refs.multiflatmap.getState();
|
82
|
-
},
|
83
|
-
flatmapPanZoomCallback: function(e) {
|
84
|
-
if (this.mouseHovered) {
|
85
|
-
const t = {
|
86
|
-
paneIndex: this.entry.id,
|
87
|
-
eventType: "panZoom",
|
88
|
-
payload: e,
|
89
|
-
type: this.entry.type
|
90
|
-
};
|
91
|
-
this.$emit("resource-selected", t);
|
92
|
-
}
|
93
|
-
},
|
94
|
-
/**
|
95
|
-
* Perform a local search on this contentvuer
|
96
|
-
*/
|
97
|
-
search: function(e) {
|
98
|
-
return this.$refs.multiflatmap.getCurrentFlatmap().searchAndShowResult(e, !0);
|
99
|
-
},
|
100
|
-
/**
|
101
|
-
* Append the list of suggested terms to suggestions
|
102
|
-
*/
|
103
|
-
searchSuggestions: function(e, t) {
|
104
|
-
const a = this.$refs.multiflatmap.getCurrentFlatmap();
|
105
|
-
e && a.mapImp && a.mapImp.search(e).__featureIds.forEach((o) => {
|
106
|
-
const i = a.mapImp.annotation(o);
|
107
|
-
i && i.label && t.push(i.label);
|
108
|
-
});
|
109
|
-
},
|
110
|
-
flatmaprResourceSelected: function(e, t) {
|
111
|
-
const a = this.$refs.multiflatmap.getCurrentFlatmap();
|
112
|
-
if (this.resourceSelected(e, t, a.viewingMode === "Exploration"), t.eventType === "click" && t.feature.type === "feature") {
|
113
|
-
const n = {
|
114
|
-
label: t.label || "",
|
115
|
-
id: t.feature.id || "",
|
116
|
-
featureId: t.feature.featureId || "",
|
117
|
-
taxonomy: t.taxonomy || "",
|
118
|
-
resources: t.resource.join(", ")
|
119
|
-
}, o = g(n);
|
120
|
-
p.sendEvent({
|
121
|
-
event: "interaction_event",
|
122
|
-
event_name: "portal_maps_connectivity",
|
123
|
-
category: o,
|
124
|
-
location: e + " " + a.viewingMode
|
125
|
-
});
|
126
|
-
}
|
127
|
-
},
|
128
|
-
onPathwaySelectionChanged: function(e) {
|
129
|
-
const { label: t, property: a, checked: n, selectionsTitle: o } = e;
|
130
|
-
p.sendEvent({
|
131
|
-
event: "interaction_event",
|
132
|
-
event_name: "portal_maps_pathway_change",
|
133
|
-
category: t + " [" + a + "] " + n,
|
134
|
-
location: o
|
135
|
-
});
|
136
|
-
},
|
137
|
-
onOpenPubmedUrl: function(e) {
|
138
|
-
p.sendEvent({
|
139
|
-
event: "interaction_event",
|
140
|
-
event_name: "portal_maps_pubmed_url",
|
141
|
-
file_path: e,
|
142
|
-
location: "map_popup_button"
|
143
|
-
});
|
144
|
-
},
|
145
|
-
/**
|
146
|
-
* Handle sync pan zoom event
|
147
|
-
*/
|
148
|
-
handleSyncPanZoomEvent: function(e) {
|
149
|
-
if (!this.mouseHovered && e.type !== this.entry.type) {
|
150
|
-
const t = e.payload.zoom, a = e.payload.target, n = this.$el.clientHeight, o = this.$el.clientWidth, i = Math.max(o, n);
|
151
|
-
let s = o / i / t;
|
152
|
-
const l = n / i / t, m = [
|
153
|
-
a[0] / 2 + 0.5 - s / 2,
|
154
|
-
0.5 - a[1] / 2 - l / 2
|
155
|
-
];
|
156
|
-
this.$refs.multiflatmap.getCurrentFlatmap().mapImp.panZoomTo(m, [s, l]);
|
157
|
-
}
|
158
|
-
},
|
159
|
-
displayTooltip: function(e) {
|
160
|
-
if (e) {
|
161
|
-
let t = e.name;
|
162
|
-
t ? this.search(t) : this.$refs.multiflatmap.getCurrentFlatmap().mapImp.clearSearchResults();
|
163
|
-
}
|
164
|
-
},
|
165
|
-
zoomToFeatures: function(e, t) {
|
166
|
-
let a = e.name;
|
167
|
-
const n = this.$refs.multiflatmap.getCurrentFlatmap().mapImp;
|
168
|
-
if (a) {
|
169
|
-
const o = n.search(a);
|
170
|
-
o.featureIds.length > 0 ? (t && n.selectFeatures(o.featureIds), n.zoomToFeatures(o.featureIds)) : n.clearSearchResults();
|
171
|
-
} else
|
172
|
-
n.clearSearchResults();
|
173
|
-
},
|
174
|
-
highlightFeatures: function(e) {
|
175
|
-
let t = e.name;
|
176
|
-
const a = this.$refs.multiflatmap.getCurrentFlatmap().mapImp;
|
177
|
-
if (t) {
|
178
|
-
const n = a.search(t);
|
179
|
-
n.featureIds.length > 0 && a.zoomToFeatures(n.featureIds, { noZoomIn: !0 });
|
180
|
-
}
|
181
|
-
},
|
182
|
-
updateProvCard: function() {
|
183
|
-
const e = this.getFlatmapImp();
|
184
|
-
if (e) {
|
185
|
-
let t = { id: this.entry.id, prov: e.provenance };
|
186
|
-
this.$emit("flatmap-provenance-ready", t);
|
187
|
-
}
|
188
|
-
},
|
189
|
-
flatmapChanged: async function(e) {
|
190
|
-
this.activeSpecies = e, this.openMapOptions = d(e), this.$emit("species-changed", e), this.entry.state && this.entry.state.species === this.activeSpecies || this.syncMode == !0 && await this.toggleSyncMode(), this.updateProvCard(), this.onConnectivityInfoClose(), p.sendEvent({
|
191
|
-
event: "interaction_event",
|
192
|
-
event_name: "portal_maps_species_change",
|
193
|
-
category: this.activeSpecies
|
194
|
-
});
|
195
|
-
},
|
196
|
-
multiFlatmapReady: function(e) {
|
197
|
-
if (e) {
|
198
|
-
e.enablePanZoomEvents(!0), this.flatmapReady = !0;
|
199
|
-
const t = e.mapImp;
|
200
|
-
this.flatmapMarkerUpdate(t), this.updateProvCard();
|
201
|
-
}
|
202
|
-
},
|
203
|
-
getFlatmapImp: function() {
|
204
|
-
if (this.entry.type === "MultiFlatmap" && this.flatmapReady && this.$refs.multiflatmap)
|
205
|
-
return this.$refs.multiflatmap.getCurrentFlatmap().mapImp;
|
206
|
-
},
|
207
|
-
flatmapAreaSearch() {
|
208
|
-
let a = {
|
209
|
-
type: "Facets",
|
210
|
-
label: "Unused",
|
211
|
-
val: this.getFlatmapImp().visibleMarkerAnatomicalIds().map((n) => this.idNamePair[n])
|
212
|
-
};
|
213
|
-
r.emit("PopoverActionClick", a);
|
214
|
-
},
|
215
|
-
restoreFeaturedMarkers: function(e) {
|
216
|
-
this.settingsStore.resetFeaturedMarkerIdentifier();
|
217
|
-
const t = this.settingsStore.featuredMarkers;
|
218
|
-
this.updateFeaturedMarkers(t, e);
|
219
|
-
},
|
220
|
-
// updateFeaturedMarkers will step through the featured markers and add them to the map
|
221
|
-
updateFeaturedMarkers: function(e, t) {
|
222
|
-
this.showStarInLegend = !1;
|
223
|
-
for (let a = 0; a < e.length; ++a)
|
224
|
-
e[a] && (this.settingsStore.featuredMarkerIdentifiers[a] || this.addFeaturedMarker(e[a], a, t) && (this.showStarInLegend = !0));
|
225
|
-
},
|
226
|
-
// addFeaturedMarker: add a featured marker to the map at the specified uberon location
|
227
|
-
addFeaturedMarker: function(e, t, a) {
|
228
|
-
const n = this.settingsStore.featuredMarkerSpecies[t];
|
229
|
-
if (n && !this.activeSpecies.startsWith(n))
|
230
|
-
return !1;
|
231
|
-
let o = a;
|
232
|
-
if (o || (o = this.getFlatmapImp()), o) {
|
233
|
-
let i = document.createElement("div");
|
234
|
-
i.innerHTML = R;
|
235
|
-
const s = o.addMarker(e, {
|
236
|
-
element: i,
|
237
|
-
className: "highlight-marker",
|
238
|
-
cluster: !1
|
239
|
-
});
|
240
|
-
return this.settingsStore.updateFeaturedMarkerIdentifier({
|
241
|
-
index: t,
|
242
|
-
markerIdentifier: s
|
243
|
-
}), !0;
|
244
|
-
}
|
245
|
-
return !1;
|
246
|
-
}
|
247
|
-
},
|
248
|
-
computed: {
|
249
|
-
facetSpecies() {
|
250
|
-
return this.settingsStore.facets.species;
|
251
|
-
},
|
252
|
-
featuredMarkers() {
|
253
|
-
return this.settingsStore.featuredMarkers;
|
254
|
-
}
|
255
|
-
},
|
256
|
-
watch: {
|
257
|
-
syncMode: function(e) {
|
258
|
-
this.$refs.multiflatmap.getCurrentFlatmap() && this.$refs.multiflatmap.getCurrentFlatmap().enablePanZoomEvents(e);
|
259
|
-
},
|
260
|
-
featuredMarkers: function(e) {
|
261
|
-
this.flatmapReady && this.updateFeaturedMarkers(e, void 0);
|
262
|
-
}
|
263
|
-
},
|
264
|
-
mounted: function() {
|
265
|
-
this.getFeaturedDatasets(), r.on("show-connectivity", (e) => {
|
266
|
-
const { featureIds: t, offset: a } = e;
|
267
|
-
if (this.flatmapReady && this.$refs.multiflatmap) {
|
268
|
-
const n = this.$refs.multiflatmap.getCurrentFlatmap();
|
269
|
-
n && n.moveMap(t, {
|
270
|
-
offsetX: a ? -150 : 0,
|
271
|
-
zoom: 4
|
272
|
-
});
|
273
|
-
}
|
274
|
-
}), r.on("markerUpdate", () => {
|
275
|
-
this.flatmapReady && this.flatmapMarkerUpdate(this.$refs.multiflatmap.getCurrentFlatmap().mapImp);
|
276
|
-
}), r.on("hoverUpdate", () => {
|
277
|
-
this.flatmapReady && this.mapHoverHighlight(this.$refs.multiflatmap.getCurrentFlatmap().mapImp);
|
278
|
-
});
|
279
|
-
}
|
280
|
-
}, H = { class: "viewer-container" };
|
281
|
-
function P(e, t, a, n, o, i) {
|
282
|
-
const s = f("MultiFlatmapVuer"), l = f("HelpModeDialog");
|
283
|
-
return c(), C("div", H, [
|
284
|
-
F(s, {
|
285
|
-
availableSpecies: e.availableSpecies,
|
286
|
-
onFlatmapChanged: i.flatmapChanged,
|
287
|
-
onReady: i.multiFlatmapReady,
|
288
|
-
state: e.entry.state,
|
289
|
-
onResourceSelected: t[0] || (t[0] = (m) => i.flatmaprResourceSelected(e.entry.type, m)),
|
290
|
-
style: { height: "100%", width: "100%" },
|
291
|
-
initial: e.entry.resource,
|
292
|
-
helpMode: e.helpMode,
|
293
|
-
helpModeActiveItem: e.helpModeActiveItem,
|
294
|
-
helpModeDialog: e.useHelpModeDialog,
|
295
|
-
onHelpModeLastItem: e.onHelpModeLastItem,
|
296
|
-
onShownTooltip: e.onTooltipShown,
|
297
|
-
onShownMapTooltip: e.onMapTooltipShown,
|
298
|
-
onConnectivityInfoOpen: e.onConnectivityInfoOpen,
|
299
|
-
onConnectivityInfoClose: e.onConnectivityInfoClose,
|
300
|
-
connectivityInfoSidebar: e.connectivityInfoSidebar,
|
301
|
-
ref: "multiflatmap",
|
302
|
-
displayMinimap: !0,
|
303
|
-
showStarInLegend: e.showStarInLegend,
|
304
|
-
enableOpenMapUI: !0,
|
305
|
-
openMapOptions: e.openMapOptions,
|
306
|
-
flatmapAPI: e.flatmapAPI,
|
307
|
-
sparcAPI: e.apiLocation,
|
308
|
-
onPanZoomCallback: i.flatmapPanZoomCallback,
|
309
|
-
onOpenMap: e.openMap,
|
310
|
-
onFinishHelpMode: e.endHelp,
|
311
|
-
onPathwaySelectionChanged: i.onPathwaySelectionChanged,
|
312
|
-
onOpenPubmedUrl: i.onOpenPubmedUrl
|
313
|
-
}, null, 8, ["availableSpecies", "onFlatmapChanged", "onReady", "state", "initial", "helpMode", "helpModeActiveItem", "helpModeDialog", "onHelpModeLastItem", "onShownTooltip", "onShownMapTooltip", "onConnectivityInfoOpen", "onConnectivityInfoClose", "connectivityInfoSidebar", "showStarInLegend", "openMapOptions", "flatmapAPI", "sparcAPI", "onPanZoomCallback", "onOpenMap", "onFinishHelpMode", "onPathwaySelectionChanged", "onOpenPubmedUrl"]),
|
314
|
-
e.helpMode && e.useHelpModeDialog ? (c(), k(l, {
|
315
|
-
key: 0,
|
316
|
-
ref: "multiflatmapHelp",
|
317
|
-
multiflatmapRef: e.multiflatmapRef,
|
318
|
-
lastItem: e.helpModeLastItem,
|
319
|
-
onShowNext: e.onHelpModeShowNext,
|
320
|
-
onFinishHelpMode: e.onFinishHelpMode
|
321
|
-
}, null, 8, ["multiflatmapRef", "lastItem", "onShowNext", "onFinishHelpMode"])) : w("", !0)
|
322
|
-
]);
|
323
|
-
}
|
324
|
-
const _ = /* @__PURE__ */ u(b, [["render", P], ["__scopeId", "data-v-a23d910f"]]);
|
325
|
-
export {
|
326
|
-
_ as default
|
327
|
-
};
|
package/dist/Plot-DGrp2nRW.js
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
import { C as o } from "./plotvuer-X4h-Lj3L.js";
|
2
|
-
import { C as a } from "./ContentMixin-CVohbs0m.js";
|
3
|
-
import { resolveComponent as r, openBlock as n, createBlock as s } from "vue";
|
4
|
-
import { _ as m } from "./index-Dm50Xt50.js";
|
5
|
-
const p = {
|
6
|
-
name: "Plot",
|
7
|
-
mixins: [a],
|
8
|
-
components: {
|
9
|
-
PlotVuer: o
|
10
|
-
}
|
11
|
-
};
|
12
|
-
function l(e, c, u, d, i, f) {
|
13
|
-
const t = r("PlotVuer");
|
14
|
-
return n(), s(t, {
|
15
|
-
"data-source": e.entry.resource.dataSource,
|
16
|
-
metadata: e.entry.resource.metadata,
|
17
|
-
"supplemental-data": e.entry.resource.supplementalData,
|
18
|
-
style: { overflow: "hidden" }
|
19
|
-
}, null, 8, ["data-source", "metadata", "supplemental-data"]);
|
20
|
-
}
|
21
|
-
const $ = /* @__PURE__ */ m(p, [["render", l]]);
|
22
|
-
export {
|
23
|
-
$ as default
|
24
|
-
};
|