UNPKG

taxonium-component

Version:

React component for exploring large phylogenetic trees in the browser

12 lines (11 loc) 579 B
import { jsxs as s, Fragment as c, jsx as n } from "react/jsx-runtime"; import { w as g, u as m, Y as d } from "./JBrowsePanel-BNE3gNW1.js"; async function l(t, a, r) { await g(() => !!t.stats && !!t.regionCannotBeRenderedText); const { graphType: e, stats: o } = t, { offsetPx: i } = m.getContainingView(t); return s(c, { children: [n("g", { children: await r(a) }), e && o ? n("g", { transform: `translate(${Math.max(-i, 0)})`, children: n(d, { model: t, orientation: "left" }) }) : null] }); } export { l as renderSvg }; //# sourceMappingURL=renderSvg-CCbmygwF.js.map