taxonium-component
Version:
React component for exploring large phylogenetic trees in the browser
12 lines (11 loc) • 534 B
JavaScript
import { jsxs as o, Fragment as i, jsx as e } from "react/jsx-runtime";
import { w as s, u as d, ab as g } from "./JBrowsePanel-BNE3gNW1.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-D4d2SOpu.js.map