This commit is contained in:
Nathan Bierema 2024-02-08 17:40:27 -05:00
parent 41ccdba929
commit 22b7cbecbc

View File

@ -473,9 +473,10 @@ export default function (DOMNode: HTMLElement, options: Partial<Options> = {}) {
// update the links // update the links
const link = vis const link = vis
.selectAll<SVGPathElement, HierarchyPointLink<InternalNode>>( .selectAll<
'path.link', SVGPathElement,
) HierarchyPointLink<InternalNode>
>('path.link')
.data(links, (d) => d.target.data.id); .data(links, (d) => d.target.data.id);
// enter any new links at the parent's previous position // enter any new links at the parent's previous position