Constructs a new D3Renderer.
The HTML element to render into.
The FamilyTree instance to visualize.
Optional
opts: Partial<D3RendererOptions>Optional renderer options to override defaults.
Gets the current container element.
Sets the container element and initializes the SVG and tooltip.
Deletes all rendered elements from the SVG.
Main render function. Draws the current layout, updates nodes and links, tooltips, and labels. Also centers the view on the clicked node unless running in JSDOM.
The layout result to render.
Optional
previousPosition: CoordinatesOptional previous position for transitions.
Optional
newPosition: CoordinatesOptional new position for transitions.
D3Renderer is responsible for rendering the family tree using D3. It handles SVG creation, zoom/pan, node and link rendering, tooltips, and labels.