UNPKG

taxonium-component

Version:

React component for exploring large phylogenetic trees in the browser

13 lines (12 loc) 589 B
import { jsxs as o, Fragment as i, jsx as r } from "react/jsx-runtime"; import { w as s, u as m } from "./JBrowsePanel-uJIA-L6s.js"; import { Y as x } from "./YScaleBars-Bq0UZpom.js"; async function p(t, e, n) { await s(() => !!t.stats && !!t.regionCannotBeRenderedText); const { offsetPx: a } = m.getContainingView(t); return o(i, { children: [r("g", { children: await n(e) }), r("g", { transform: `translate(${Math.max(-a, 0)})`, children: r(x, { model: t, orientation: "left", exportSVG: !0 }) })] }); } export { p as renderSvg }; //# sourceMappingURL=renderSvg-CejBcVCZ.js.map