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