taxonium-component
Version:
React component for exploring large phylogenetic trees in the browser
17 lines (16 loc) • 715 B
JavaScript
import { jsx as s } from "react/jsx-runtime";
import { useCallback as c } from "react";
import { o as a, u as h } from "./JBrowsePanel-BNE3gNW1.js";
import { B as p } from "./BaseDisplayComponent-4h8vJvX5.js";
const u = a(function({ model: t }) {
const e = h.getContainingView(t), o = Math.round(e.dynamicBlocks.totalWidthPx), n = t.height, i = c((r) => {
t.setRef(r);
}, [t, o, n]);
return s("canvas", { "data-testid": "arc-canvas", ref: i, style: { width: o, height: n, position: "absolute" }, width: o * 2, height: n * 2 });
}), g = a(function({ model: t }) {
return s(p, { model: t, children: s(u, { model: t }) });
});
export {
g as default
};
//# sourceMappingURL=ReactComponent-BfpDrAna.js.map