taxonium-component
Version:
React component for exploring large phylogenetic trees in the browser
13 lines (12 loc) • 627 B
JavaScript
import { jsxs as h, Fragment as o, jsx as i } from "react/jsx-runtime";
import { u as n } from "./JBrowsePanel-BNE3gNW1.js";
import { A as s } from "./Arcs-D2BU3PrX.js";
async function w(t, a) {
await n.when(() => !t.loading);
const c = n.getContainingView(t).dynamicBlocks.totalWidthPx, e = t.height, r = `arc-${t.id}`;
return h(o, { children: [i("defs", { children: i("clipPath", { id: r, children: i("rect", { x: 0, y: 0, width: c, height: e }) }) }), i("g", { clipPath: `url(#${r})`, children: i(s, { model: t, exportSVG: !0 }) })] });
}
export {
w as renderArcSvg
};
//# sourceMappingURL=renderSvg-BVWIXf4E.js.map