taxonium-component
Version:
React component for exploring large phylogenetic trees in the browser
13 lines (12 loc) • 589 B
JavaScript
import { jsxs as o, Fragment as i, jsx as r } from "react/jsx-runtime";
import { w as s, u as m } from "./JBrowsePanel-BNE3gNW1.js";
import { Y as x } from "./YScaleBars--OMCRyp4.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-CTRk8ufX.js.map