UNPKG

taxonium-component

Version:

React component for exploring large phylogenetic trees in the browser

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