taxonium-component
Version:
React component for exploring large phylogenetic trees in the browser
26 lines (25 loc) • 870 B
JavaScript
import { O as g, Q as u, u as s, R as p, t as S, j as r } from "./JBrowsePanel-uJIA-L6s.js";
import { a as d } from "./aborting-DAWWmOkt.js";
function E(o) {
g(o, u(async () => {
try {
const t = s.getContainingView(o);
if (!t.initialized)
return;
const { rpcManager: n } = s.getSession(o), { adapterConfig: e } = o, a = p.createStopToken();
o.setSourcesLoading(a);
const i = S.getRpcSessionId(o), c = await n.call(i, "MultiWiggleGetSources", {
regions: t.staticBlocks.contentBlocks,
sessionId: i,
adapterConfig: e
});
r(o) && o.setSources(c);
} catch (t) {
!d.isAbortException(t) && r(o) && (console.error(t), s.getSession(o).notifyError(`${t}`, t));
}
}));
}
export {
E as getMultiWiggleSourcesAutorun
};
//# sourceMappingURL=getMultiWiggleSourcesAutorun-IB6zb0dH.js.map