@abi-software/mapintegratedvuer 1.20.1 → 1.21.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.
Files changed (42) hide show
  1. package/cypress.config.js +8 -7
  2. package/dist/ConnectivityGraph-CZMROk9r.js +121 -0
  3. package/dist/ContentMixin-Vn34n5t2.js +1672 -0
  4. package/dist/DynamicMarkerMixin-BS6t7w_i.js +50 -0
  5. package/dist/Flatmap-BejxA0uz.js +193 -0
  6. package/dist/Iframe-BWbhTjCR.js +18 -0
  7. package/dist/MultiFlatmap-nlmsH-Ib.js +303 -0
  8. package/dist/Plot-ChbPsDZX.js +28 -0
  9. package/dist/Scaffold-C6f7c7Ha.js +308 -0
  10. package/dist/Simulation-DcJScRYo.js +25 -0
  11. package/dist/connectivities-UXTqf7_0.js +35743 -0
  12. package/dist/mapintegratedvuer.js +43234 -3
  13. package/dist/mapintegratedvuer.umd.cjs +556 -297
  14. package/dist/style.css +2 -1
  15. package/eslint.config.js +33 -0
  16. package/package.json +61 -76
  17. package/src/assets/fonts.scss +2 -0
  18. package/src/assets/header-icon.scss +2 -1
  19. package/src/assets/styles.scss +2 -3
  20. package/src/components/CustomSplitter.vue +3 -3
  21. package/src/components/SearchControls.vue +1 -1
  22. package/src/components/index.js +1 -0
  23. package/src/components/scripts/simulation_data.js +461 -0
  24. package/src/components/viewers/Flatmap.vue +11 -7
  25. package/src/components/viewers/MultiFlatmap.vue +12 -8
  26. package/src/components.d.ts +6 -2
  27. package/src/main.js +2 -1
  28. package/src/mixins/DynamicMarkerMixin.js +3 -3
  29. package/vite.bundle-build.js +19 -4
  30. package/vite.config.js +16 -1
  31. package/babel.config.js +0 -0
  32. package/dist/ConnectivityGraph-C2SH21O2.js +0 -123
  33. package/dist/ContentMixin-DyNQa5V5.js +0 -1725
  34. package/dist/Flatmap-2O4GdIZV.js +0 -203
  35. package/dist/Iframe-ComVJ_Ev.js +0 -20
  36. package/dist/MultiFlatmap-oVdJqKEz.js +0 -317
  37. package/dist/Plot-CYyVTjHQ.js +0 -25
  38. package/dist/Scaffold-DXGZqxdu.js +0 -305
  39. package/dist/Simulation-DNOubbSn.js +0 -28
  40. package/dist/index-BkejiyeA.js +0 -79223
  41. package/dist/style-3VbUVJif.js +0 -57
  42. package/static.json +0 -7
@@ -1,203 +0,0 @@
1
- import { _ as d, q as c, T as h, E as l } from "./index-BkejiyeA.js";
2
- import { C as u } from "./ContentMixin-DyNQa5V5.js";
3
- import { D as y } from "./style-3VbUVJif.js";
4
- import { FlatmapVuer as g } from "@abi-software/flatmapvuer";
5
- import { resolveComponent as r, openBlock as p, createElementBlock as M, createVNode as C, createBlock as v, createCommentVNode as I } from "vue";
6
- const S = {
7
- name: "Flatmap",
8
- mixins: [u, y],
9
- components: {
10
- FlatmapVuer: g,
11
- HelpModeDialog: c
12
- },
13
- data: function() {
14
- return {
15
- flatmapReady: !1,
16
- displayMinimap: !1
17
- };
18
- },
19
- methods: {
20
- getState: function() {
21
- return this.$refs.flatmap.getState();
22
- },
23
- /**
24
- * Perform a local search on this contentvuer
25
- * This is similar to directly clicking on the map
26
- */
27
- search: function(e) {
28
- return this.$refs.flatmap.searchAndShowResult(e, !0, !0);
29
- },
30
- getFlatmapImp() {
31
- var e;
32
- return (e = this.$refs.flatmap) == null ? void 0 : e.mapImp;
33
- },
34
- contextRestored(e) {
35
- this.flatmapReadyForMarkerUpdates(e), this.updateViewerSettings();
36
- },
37
- flatmapReadyCall: function(e) {
38
- var n, i, o;
39
- this.flatmapReady = !0;
40
- const t = this.getFlatmapImp();
41
- (n = t == null ? void 0 : t.mapMetadata) != null && n.name && (this.updateEntryLabel((i = t == null ? void 0 : t.mapMetadata) == null ? void 0 : i.name), this.updateEntryTitle((o = t == null ? void 0 : t.mapMetadata) == null ? void 0 : o.name));
42
- let a = { id: this.entry.id, prov: t.mapMetadata };
43
- l.emit("mapImpProv", a), this.$emit("flatmap-provenance-ready", a), this.flatmapReadyForMarkerUpdates(e), this.updateViewerSettings(), this.loadConnectivityExplorerConfig(e).then(() => {
44
- l.emit("mapLoaded", e);
45
- });
46
- },
47
- onPathwaySelectionChanged: function(e) {
48
- const { label: t, property: a, checked: n, selectionsTitle: i } = e;
49
- h.sendEvent({
50
- event: "interaction_event",
51
- event_name: "portal_maps_pathway_change",
52
- category: t + " [" + a + "] " + n,
53
- location: i
54
- });
55
- },
56
- onSidebarAnnotationClose: function() {
57
- this.flatmapReady && this.$refs.flatmap && this.$refs.flatmap.annotationEventCallback({}, { type: "aborted" });
58
- },
59
- /**
60
- * Append the list of suggested terms to suggestions
61
- */
62
- searchSuggestions: function(e, t) {
63
- if (e && this.$refs.flatmap.mapImp) {
64
- const a = this.$refs.flatmap.mapImp.search(e);
65
- (a.__featureIds || a.featureIds).forEach((i) => {
66
- const o = this.$refs.flatmap.mapImp.annotation(i);
67
- o && o.label && t.push(o.label);
68
- });
69
- }
70
- },
71
- showConnectivity: function(e) {
72
- if (this != null && this.alive) {
73
- const { featureIds: t, offset: a } = e, n = this.$refs.flatmap;
74
- n && n.moveMap(t, {
75
- offsetX: a ? -150 : 0,
76
- zoom: 4
77
- });
78
- }
79
- },
80
- showConnectivityTooltips: function(e) {
81
- this != null && this.alive && this.flatmapReady && this.$refs.multiflatmap.getCurrentFlatmap().showConnectivityTooltips(e);
82
- },
83
- showConnectivitiesByReference: function(e) {
84
- if (this != null && this.alive) {
85
- const t = this.$refs.flatmap;
86
- t && t.showConnectivitiesByReference(e);
87
- }
88
- },
89
- changeConnectivitySource: function(e, t) {
90
- if (this != null && this.alive && this.flatmapReady) {
91
- const a = this.$refs.flatmap, n = a.mapImp.mapMetadata.uuid;
92
- t.includes(n) || (t.push(n), a.changeConnectivitySource(e));
93
- }
94
- },
95
- zoomToFeatures: function(e, t) {
96
- let a = e.name;
97
- const n = this.$refs.flatmap.mapImp;
98
- if (a) {
99
- const i = n.search(a);
100
- if (i.featureIds.length) {
101
- let o = n.modelForFeature(i.featureIds[0]);
102
- o ? (t && n.selectFeatures(o), n.zoomToFeatures(o)) : n.clearSearchResults();
103
- }
104
- } else
105
- n.clearSearchResults();
106
- },
107
- changeViewingMode: function(e) {
108
- this.$refs.flatmap.changeViewingMode(e);
109
- },
110
- updateViewerSettings: function() {
111
- const {
112
- backgroundDisplay: e,
113
- viewingMode: t,
114
- flightPathDisplay: a,
115
- organsDisplay: n,
116
- outlinesDisplay: i,
117
- connectionType: o
118
- } = this.settingsStore.globalSettings, s = this.$refs.flatmap;
119
- s.changeViewingMode(t), s.setFlightPath3D(a), s.setColour(n), s.setOutlines(i), s.backgroundChangeCallback(e), s.setConnectionType(o);
120
- },
121
- setVisibilityFilter: function(e) {
122
- if (this != null && this.alive) {
123
- const t = this.$refs.flatmap;
124
- t && t.setVisibilityFilter(e);
125
- }
126
- },
127
- getKnowledgeTooltip: async function(e) {
128
- if (this != null && this.alive) {
129
- const t = this.$refs.flatmap;
130
- if (t) {
131
- const a = e.data[0];
132
- t.searchAndShowResult(a.id, !0, !1);
133
- }
134
- }
135
- }
136
- },
137
- computed: {
138
- facetSpecies() {
139
- return this.settingsStore.facets.species;
140
- }
141
- }
142
- }, w = { class: "viewer-container" };
143
- function F(e, t, a, n, i, o) {
144
- const s = r("FlatmapVuer"), f = r("HelpModeDialog");
145
- return p(), M("div", w, [
146
- C(s, {
147
- state: e.entry.state,
148
- entry: e.entry.resource,
149
- mapManager: e.mapManager,
150
- onResourceSelected: t[0] || (t[0] = (m) => e.flatmapResourceSelected(e.entry.type, m)),
151
- onPanZoomCallback: e.flatmapPanZoomCallback,
152
- name: e.entry.resource,
153
- style: { height: "100%", width: "100%" },
154
- minZoom: e.entry.minZoom,
155
- helpMode: e.helpMode,
156
- helpModeActiveItem: e.helpModeActiveItem,
157
- helpModeInitialIndex: -1,
158
- helpModeDialog: e.useHelpModeDialog,
159
- onHelpModeLastItem: e.onHelpModeLastItem,
160
- onShownTooltip: e.onTooltipShown,
161
- onShownMapTooltip: e.onMapTooltipShown,
162
- onAnnotationOpen: e.onAnnotationOpen,
163
- onAnnotationClose: e.onAnnotationClose,
164
- onUpdateOfflineAnnotationEnabled: e.updateOfflineAnnotationEnabled,
165
- annotationSidebar: e.annotationSidebar,
166
- onConnectivityInfoOpen: e.onConnectivityInfoOpen,
167
- onConnectivityError: e.onConnectivityError,
168
- onConnectivityInfoClose: e.onConnectivityInfoClose,
169
- onNeuronConnectionFeatureClick: e.onNeuronConnectionFeatureClick,
170
- connectivityInfoSidebar: e.connectivityInfoSidebar,
171
- pathControls: !0,
172
- ref: "flatmap",
173
- onContextRestored: o.contextRestored,
174
- onReady: o.flatmapReadyCall,
175
- displayMinimap: e.displayMinimap,
176
- displayWarning: !1,
177
- enableOpenMapUI: !0,
178
- flatmapAPI: e.flatmapAPI,
179
- render: e.visible,
180
- sparcAPI: e.apiLocation,
181
- showLocalSettings: e.showLocalSettings,
182
- showOpenMapButton: e.showOpenMapButton,
183
- onOpenMap: e.openMap,
184
- onPathwaySelectionChanged: o.onPathwaySelectionChanged,
185
- onMapmanagerLoaded: e.onMapmanagerLoaded,
186
- showPathwayFilter: !1,
187
- tooltipContentProvider: e.tooltipPathLabelProvider,
188
- onTrackEvent: e.trackEvent
189
- }, null, 8, ["state", "entry", "mapManager", "onPanZoomCallback", "name", "minZoom", "helpMode", "helpModeActiveItem", "helpModeDialog", "onHelpModeLastItem", "onShownTooltip", "onShownMapTooltip", "onAnnotationOpen", "onAnnotationClose", "onUpdateOfflineAnnotationEnabled", "annotationSidebar", "onConnectivityInfoOpen", "onConnectivityError", "onConnectivityInfoClose", "onNeuronConnectionFeatureClick", "connectivityInfoSidebar", "onContextRestored", "onReady", "displayMinimap", "flatmapAPI", "render", "sparcAPI", "showLocalSettings", "showOpenMapButton", "onOpenMap", "onPathwaySelectionChanged", "onMapmanagerLoaded", "tooltipContentProvider", "onTrackEvent"]),
190
- e.helpMode && e.useHelpModeDialog ? (p(), v(f, {
191
- key: 0,
192
- ref: "flatmapHelp",
193
- flatmapRef: e.flatmapRef,
194
- lastItem: e.helpModeLastItem,
195
- onShowNext: e.onHelpModeShowNext,
196
- onFinishHelpMode: e.onFinishHelpMode
197
- }, null, 8, ["flatmapRef", "lastItem", "onShowNext", "onFinishHelpMode"])) : I("", !0)
198
- ]);
199
- }
200
- const T = /* @__PURE__ */ d(S, [["render", F], ["__scopeId", "data-v-2e86ecd7"]]);
201
- export {
202
- T as default
203
- };
@@ -1,20 +0,0 @@
1
- import { C as r } from "./ContentMixin-DyNQa5V5.js";
2
- import { openBlock as o, createElementBlock as t, createElementVNode as a } from "vue";
3
- import { _ as s } from "./index-BkejiyeA.js";
4
- const n = {
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
- a("iframe", {
11
- class: "my-iframe",
12
- src: e.entry.resource.share_link,
13
- ref: "iframe"
14
- }, null, 8, i)
15
- ]);
16
- }
17
- const $ = /* @__PURE__ */ s(n, [["render", m], ["__scopeId", "data-v-fde9a2bb"]]);
18
- export {
19
- $ as default
20
- };
@@ -1,317 +0,0 @@
1
- import { _ as c, q as h, E as r, T as l, a as g } from "./index-BkejiyeA.js";
2
- import { C } from "./ContentMixin-DyNQa5V5.js";
3
- import { D as M } from "./style-3VbUVJif.js";
4
- import { MultiFlatmapVuer as y } from "@abi-software/flatmapvuer";
5
- import { resolveComponent as p, openBlock as m, createElementBlock as v, createVNode as I, createBlock as S, createCommentVNode as F } from "vue";
6
- const w = '<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
- {
8
- display: "Open AC Map",
9
- key: "AC"
10
- },
11
- {
12
- display: "Open FC Map",
13
- key: "FC"
14
- },
15
- {
16
- display: "Open 3D Human Map",
17
- key: "3D"
18
- },
19
- {
20
- display: "Open Connectivity Graph",
21
- key: "CG"
22
- }
23
- ], k = {
24
- name: "MultiFlatmap",
25
- mixins: [C, M],
26
- components: {
27
- MultiFlatmapVuer: y,
28
- HelpModeDialog: h
29
- },
30
- data: function() {
31
- return {
32
- availableSpecies: g(),
33
- flatmapReady: !1,
34
- scaffoldResource: {},
35
- showStarInLegend: !1,
36
- speciesHasChanged: !1,
37
- openMapOptions: d(),
38
- zoomLevel: 6
39
- };
40
- },
41
- methods: {
42
- getState: function() {
43
- if (this.flatmapReady) return this.$refs.multiflatmap.getState();
44
- },
45
- flatmapPanZoomCallback: function(e) {
46
- if (this.mouseHovered) {
47
- const t = {
48
- paneIndex: this.entry.id,
49
- eventType: "panZoom",
50
- payload: e,
51
- type: this.entry.type
52
- };
53
- this.$emit("resource-selected", t);
54
- }
55
- },
56
- /**
57
- * Perform a local search on this contentvuer
58
- */
59
- search: function(e) {
60
- return this.$refs.multiflatmap.getCurrentFlatmap().searchAndShowResult(e, !0, !0);
61
- },
62
- /**
63
- * Append the list of suggested terms to suggestions
64
- */
65
- searchSuggestions: function(e, t) {
66
- const a = this.$refs.multiflatmap.getCurrentFlatmap();
67
- if (e && a.mapImp) {
68
- const n = a.mapImp.search(e);
69
- (n.__featureIds || n.featureIds).forEach((o) => {
70
- const s = a.mapImp.annotation(o);
71
- s && s.label && t.push(s.label);
72
- });
73
- }
74
- },
75
- onPathwaySelectionChanged: function(e) {
76
- const { label: t, property: a, checked: n, selectionsTitle: i } = e;
77
- l.sendEvent({
78
- event: "interaction_event",
79
- event_name: "portal_maps_pathway_change",
80
- category: t + " [" + a + "] " + n,
81
- location: i
82
- });
83
- },
84
- onSidebarAnnotationClose: function() {
85
- this.flatmapReady && this.$refs.multiflatmap.getCurrentFlatmap().annotationEventCallback({}, { type: "aborted" });
86
- },
87
- onOpenPubmedUrl: function(e) {
88
- l.sendEvent({
89
- event: "interaction_event",
90
- event_name: "portal_maps_pubmed_url",
91
- file_path: e,
92
- location: "map_popup_button"
93
- });
94
- },
95
- zoomToFeatures: function(e, t) {
96
- let a = e.name;
97
- const n = this.getFlatmapImp();
98
- if (a) {
99
- const i = n.search(a);
100
- i.featureIds.length > 0 ? (t && n.selectFeatures(i.featureIds), n.zoomToFeatures(i.featureIds)) : n.clearSearchResults();
101
- } else
102
- n.clearSearchResults();
103
- },
104
- updateProvCard: function() {
105
- const e = this.getFlatmapImp();
106
- if (e) {
107
- let t = { id: this.entry.id, prov: e.mapMetadata };
108
- r.emit("mapImpProv", t), this.$emit("flatmap-provenance-ready", t);
109
- }
110
- },
111
- contextRestored: function(e) {
112
- e && (this.flatmapMarkerUpdate(e.mapImp), this.updateViewerSettings(), this.speciesHasChanged && (this.speciesHasChanged = !1, this.$emit("species-changed", this.activeSpecies)));
113
- },
114
- flatmapChanged: async function(e) {
115
- this.activeSpecies = e, this.openMapOptions = d();
116
- const t = this.getFlatmapImp();
117
- this.updateProvCard(), t && (t.contextLost ? this.speciesHasChanged = !0 : (this.flatmapMarkerUpdate(t), this.updateViewerSettings(), this.speciesHasChanged = !1, this.$emit("species-changed", e))), l.sendEvent({
118
- event: "interaction_event",
119
- event_name: "portal_maps_species_change",
120
- category: this.activeSpecies
121
- });
122
- },
123
- multiFlatmapReady: function(e) {
124
- if (e) {
125
- e.enablePanZoomEvents(!0), this.flatmapReady = !0;
126
- const t = e.mapImp;
127
- this.flatmapMarkerUpdate(t), this.updateProvCard(), this.updateViewerSettings(), this.loadConnectivityExplorerConfig(e).then(() => {
128
- r.emit("mapLoaded", e);
129
- });
130
- }
131
- },
132
- getFlatmapImp: function() {
133
- if (this.entry.type === "MultiFlatmap" && this.flatmapReady && this.$refs.multiflatmap)
134
- return this.$refs.multiflatmap.getCurrentFlatmap().mapImp;
135
- },
136
- flatmapAreaSearch() {
137
- let a = {
138
- type: "Facets",
139
- label: "Unused",
140
- val: this.getFlatmapImp().visibleMarkerAnatomicalIds().map((n) => this.idNamePair[n])
141
- };
142
- r.emit("PopoverActionClick", a);
143
- },
144
- flatmapIsReady() {
145
- return this.flatmapReady;
146
- },
147
- restoreFeaturedMarkers: function(e) {
148
- this.settingsStore.resetFeaturedMarkerIdentifier();
149
- const t = this.settingsStore.featuredMarkers;
150
- this.updateFeaturedMarkers(t, e);
151
- },
152
- // updateFeaturedMarkers will step through the featured markers and add them to the map
153
- updateFeaturedMarkers: function(e, t) {
154
- this.showStarInLegend = !1;
155
- for (let a = 0; a < e.length; ++a)
156
- e[a] && (this.settingsStore.featuredMarkerIdentifiers[a] || this.addFeaturedMarker(e[a], a, t) && (this.showStarInLegend = !0));
157
- },
158
- // addFeaturedMarker: add a featured marker to the map at the specified uberon location
159
- addFeaturedMarker: function(e, t, a) {
160
- const n = this.settingsStore.featuredMarkerSpecies[t];
161
- if (n && !this.activeSpecies.startsWith(n))
162
- return !1;
163
- let i = a;
164
- if (i || (i = this.getFlatmapImp()), i) {
165
- let o = document.createElement("div");
166
- o.innerHTML = w;
167
- const s = i.addMarker(e, {
168
- element: o,
169
- className: "highlight-marker",
170
- cluster: !1
171
- });
172
- return this.settingsStore.updateFeaturedMarkerIdentifier({
173
- index: t,
174
- markerIdentifier: s
175
- }), !0;
176
- }
177
- return !1;
178
- },
179
- /**
180
- * Change the view mode of the current flatmap
181
- */
182
- changeViewingMode: function(e) {
183
- this.$refs.multiflatmap.getCurrentFlatmap().changeViewingMode(e);
184
- },
185
- showConnectivity: function(e) {
186
- if (this != null && this.alive && this.flatmapReady && this.$refs.multiflatmap) {
187
- const { featureIds: t, offset: a } = e, n = this.$refs.multiflatmap.getCurrentFlatmap();
188
- n && n.moveMap(t, {
189
- offsetX: a ? -150 : 0,
190
- zoom: 4
191
- });
192
- }
193
- },
194
- showConnectivityTooltips: function(e) {
195
- this != null && this.alive && this.flatmapReady && this.$refs.multiflatmap.getCurrentFlatmap().showConnectivityTooltips(e);
196
- },
197
- showConnectivitiesByReference: function(e) {
198
- if (this != null && this.alive && this.flatmapReady && this.$refs.multiflatmap) {
199
- const t = this.$refs.multiflatmap.getCurrentFlatmap();
200
- t && t.showConnectivitiesByReference(e);
201
- }
202
- },
203
- changeConnectivitySource: function(e, t) {
204
- if (this != null && this.alive && this.flatmapReady) {
205
- const a = this.$refs.multiflatmap.getCurrentFlatmap(), n = a.mapImp.mapMetadata.uuid;
206
- t.includes(n) || (t.push(n), a.changeConnectivitySource(e));
207
- }
208
- },
209
- updateViewerSettings: function() {
210
- const {
211
- backgroundDisplay: e,
212
- viewingMode: t,
213
- flightPathDisplay: a,
214
- organsDisplay: n,
215
- outlinesDisplay: i,
216
- connectionType: o
217
- } = this.settingsStore.globalSettings;
218
- if (this.flatmapReady) {
219
- const s = this.$refs.multiflatmap.getCurrentFlatmap();
220
- s.changeViewingMode(t), s.setFlightPath3D(a), s.setColour(n), s.setOutlines(i), s.backgroundChangeCallback(e), s.setConnectionType(o);
221
- }
222
- },
223
- setVisibilityFilter: function(e) {
224
- if (this != null && this.alive && this.flatmapReady && this.$refs.multiflatmap) {
225
- const t = this.$refs.multiflatmap.getCurrentFlatmap();
226
- t && t.setVisibilityFilter(e);
227
- }
228
- },
229
- getKnowledgeTooltip: async function(e) {
230
- if (this != null && this.alive && this.flatmapReady) {
231
- const t = e.data[0];
232
- this.$refs.multiflatmap.getCurrentFlatmap().searchAndShowResult(t.id, !0, !1);
233
- }
234
- }
235
- },
236
- computed: {
237
- facetSpecies() {
238
- return this.settingsStore.facets.species;
239
- },
240
- featuredMarkers() {
241
- return this.settingsStore.featuredMarkers;
242
- },
243
- displayMinimap() {
244
- return this.settingsStore.displayMinimap;
245
- }
246
- },
247
- watch: {
248
- featuredMarkers: function(e) {
249
- this.flatmapReady && this.updateFeaturedMarkers(e, void 0);
250
- }
251
- },
252
- mounted: function() {
253
- this.getFeaturedDatasets();
254
- }
255
- }, b = { class: "viewer-container" };
256
- function R(e, t, a, n, i, o) {
257
- const s = p("MultiFlatmapVuer"), f = p("HelpModeDialog");
258
- return m(), v("div", b, [
259
- I(s, {
260
- availableSpecies: e.availableSpecies,
261
- onContextRestored: o.contextRestored,
262
- onFlatmapChanged: o.flatmapChanged,
263
- onReady: o.multiFlatmapReady,
264
- state: e.entry.state,
265
- mapManager: e.mapManager,
266
- onResourceSelected: t[0] || (t[0] = (u) => e.flatmapResourceSelected(e.entry.type, u)),
267
- style: { height: "100%", width: "100%" },
268
- initial: e.entry.resource,
269
- helpMode: e.helpMode,
270
- helpModeActiveItem: e.helpModeActiveItem,
271
- helpModeDialog: e.useHelpModeDialog,
272
- onHelpModeLastItem: e.onHelpModeLastItem,
273
- onShownTooltip: e.onTooltipShown,
274
- onShownMapTooltip: e.onMapTooltipShown,
275
- onAnnotationOpen: e.onAnnotationOpen,
276
- onAnnotationClose: e.onAnnotationClose,
277
- onUpdateOfflineAnnotationEnabled: e.updateOfflineAnnotationEnabled,
278
- annotationSidebar: e.annotationSidebar,
279
- onConnectivityInfoOpen: e.onConnectivityInfoOpen,
280
- onConnectivityError: e.onConnectivityError,
281
- onConnectivityInfoClose: e.onConnectivityInfoClose,
282
- onNeuronConnectionFeatureClick: e.onNeuronConnectionFeatureClick,
283
- connectivityInfoSidebar: e.connectivityInfoSidebar,
284
- ref: "multiflatmap",
285
- displayMinimap: o.displayMinimap,
286
- showStarInLegend: e.showStarInLegend,
287
- enableOpenMapUI: !0,
288
- openMapOptions: e.openMapOptions,
289
- flatmapAPI: e.flatmapAPI,
290
- render: e.visible,
291
- sparcAPI: e.apiLocation,
292
- showLocalSettings: e.showLocalSettings,
293
- showOpenMapButton: e.showOpenMapButton,
294
- onPanZoomCallback: o.flatmapPanZoomCallback,
295
- onOpenMap: e.openMap,
296
- onFinishHelpMode: e.endHelp,
297
- onPathwaySelectionChanged: o.onPathwaySelectionChanged,
298
- onOpenPubmedUrl: o.onOpenPubmedUrl,
299
- onMapmanagerLoaded: e.onMapmanagerLoaded,
300
- showPathwayFilter: !1,
301
- tooltipContentProvider: e.tooltipPathLabelProvider,
302
- onTrackEvent: e.trackEvent
303
- }, null, 8, ["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"]),
304
- e.helpMode && e.useHelpModeDialog ? (m(), S(f, {
305
- key: 0,
306
- ref: "multiflatmapHelp",
307
- multiflatmapRef: e.multiflatmapRef,
308
- lastItem: e.helpModeLastItem,
309
- onShowNext: e.onHelpModeShowNext,
310
- onFinishHelpMode: e.onFinishHelpMode
311
- }, null, 8, ["multiflatmapRef", "lastItem", "onShowNext", "onFinishHelpMode"])) : F("", !0)
312
- ]);
313
- }
314
- const E = /* @__PURE__ */ c(k, [["render", R], ["__scopeId", "data-v-758ee9d2"]]);
315
- export {
316
- E as default
317
- };
@@ -1,25 +0,0 @@
1
- import { PlotVuer as o } from "@abi-software/plotvuer";
2
- import { C as r } from "./ContentMixin-DyNQa5V5.js";
3
- import { resolveComponent as a, openBlock as n, createBlock as s } from "vue";
4
- import { _ as p } from "./index-BkejiyeA.js";
5
- const l = {
6
- name: "Plot",
7
- mixins: [r],
8
- components: {
9
- PlotVuer: o
10
- }
11
- };
12
- function m(e, c, u, d, i, f) {
13
- const t = a("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
- ref: "plot"
20
- }, null, 8, ["data-source", "metadata", "supplemental-data"]);
21
- }
22
- const C = /* @__PURE__ */ p(l, [["render", m]]);
23
- export {
24
- C as default
25
- };