@benportner/js_family_tree
    Preparing search index...

    Interface D3RendererOptions

    Options for configuring the D3Renderer. Allows customization of transitions, link and node rendering, labeling, and tooltips.

    interface D3RendererOptions {
        transitionDuration: number;
        linkCSSClassFunction(link: LayoutedLink): string;
        linkPathFunction(link: CoordLink, orientation: Orientation): string;
        nodeClickFunction(node: LayoutedNode, ft: FamilyTree): void;
        nodeCSSClassFunction(node: LayoutedNode): string;
        nodeLabelFunction(node: LayoutedNode, missingData?: string): string[];
        nodeSizeFunction(node: LayoutedNode): number;
        nodeTooltipFunction(
            node: LayoutedNode,
            missingData?: string,
        ): undefined | string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    transitionDuration: number

    Duration of transitions in milliseconds.

    Methods

    • Function to generate the label (text displayed next to the node).

      Parameters

      Returns string[]

    • Function to generate the tooltip content for a node.

      Parameters

      Returns undefined | string