UNPKG

taxonium-component

Version:

React component for exploring large phylogenetic trees in the browser

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