Family Chart API Documentation - v0.8.1
    Preparing search index...

    Interface TreeDatum

    Represents a node in the family tree.

    interface TreeDatum {
        __label?: string;
        __node?: HTMLElement;
        _ignore_spouses?: string[];
        _x?: number;
        _y?: number;
        added?: boolean;
        all_rels_displayed?: boolean;
        children?: TreeDatum[];
        coparent?: TreeDatum;
        data: Datum;
        depth: number;
        duplicate?: number;
        exiting?: boolean;
        is_ancestry?: boolean;
        is_private?: boolean;
        parent?: TreeDatum;
        parents?: TreeDatum[];
        psx?: number;
        psy?: number;
        sibling?: boolean;
        spouse?: TreeDatum;
        spouses?: TreeDatum[];
        sx?: number;
        sy?: number;
        tid?: string;
        x: number;
        y: number;
    }
    Index

    Properties

    __label?: string

    Reference to the label for this tree datum. (for debugging)

    __node?: HTMLElement

    Reference to the DOM node for this tree datum. (for debugging)

    _ignore_spouses?: string[]

    if we want to modify hierarchy of the tree, we can omit displaying some spouses

    _x?: number

    Previous X position (for transitions/animations).

    _y?: number

    Previous Y position (for transitions/animations).

    added?: boolean

    True if the node was just added.

    all_rels_displayed?: boolean

    True if not all relatives of this person are displayed in the current tree view.

    children?: TreeDatum[]

    Children of this node (main person and progeny).

    coparent?: TreeDatum

    For ancestry nodes, connects to spouse.

    data: Datum

    The underlying data for this node.

    depth: number

    Depth of the node in the tree.

    duplicate?: number

    If this person is a duplicate, this is the number of duplicates.

    exiting?: boolean

    True if the card is transitioning out of the tree (e.g., during view change).

    is_ancestry?: boolean

    True if this person is an ancestor.

    is_private?: boolean

    True if this card is private and should be treated differently.

    parent?: TreeDatum

    Reference to the parent node (d3 hierarchy parent).

    parents?: TreeDatum[]

    Parents of this node (main person and ancestry).

    psx?: number

    Parent spouse X position.

    psy?: number

    Parent spouse Y position.

    sibling?: boolean

    True if this node is a sibling (setShowSiblingsOfMain is true).

    spouse?: TreeDatum

    If this person is added as a spouse of progeny or main person, this property is set.

    spouses?: TreeDatum[]

    Spouses of this person (progeny and main person only).

    sx?: number

    Spouse X position.

    sy?: number

    Spouse Y position.

    tid?: string

    Unique tree node ID.

    x: number

    X position in the tree layout.

    y: number

    Y position in the tree layout.