Member Junction
    Preparing search index...

    Represents a single node within the visual hierarchy tree.

    Contains both domain entity data and layout/interactive state (expansion, selection, highlight, descendant counts, and primary key composite mapping).

    interface HierarchyNodeData<T = Record<string, unknown>> {
        _allChildren?: HierarchyNodeData<T>[];
        Children: HierarchyNodeData<T>[];
        Color?: string;
        Depth: number;
        DirectChildCount: number;
        Icon?: string;
        ID: string;
        IsExpanded: boolean;
        IsFocusRoot: boolean;
        IsHighlighted: boolean;
        IsSelected: boolean;
        Name: string;
        ParentID?: string | null;
        PrimaryKey: CompositeKey;
        Record?: T;
        Subtitle?: string;
        TotalDescendantCount: number;
        x?: number;
        y?: number;
    }

    Type Parameters

    • T = Record<string, unknown>
    Index

    Properties

    _allChildren?: HierarchyNodeData<T>[]

    Full set of child nodes preserved when the node is collapsed.

    Children: HierarchyNodeData<T>[]

    Currently visible child nodes in the visual layout.

    Color?: string

    Accent color hex or CSS variable string for the node's visual badge and border indicator.

    Depth: number

    The depth level of this node within the hierarchy (0 for root nodes).

    DirectChildCount: number

    Number of immediate direct child nodes.

    Icon?: string

    Font Awesome icon class or image URL displayed in the node card header (e.g. 'fa-solid fa-building').

    ID: string

    Unique string identifier for the node, typically the serialized primary key or single ID value.

    IsExpanded: boolean

    Whether this node's children are currently expanded (true) or collapsed (false).

    IsFocusRoot: boolean

    Whether this node is currently set as the temporary focused subtree root.

    IsHighlighted: boolean

    Whether this node matches an active search query or highlighted path.

    IsSelected: boolean

    Whether this node is currently selected/active in the view.

    Name: string

    Primary display label for the node card (e.g. Organization Name, Category Name).

    ParentID?: string | null

    The primary key string of the parent node, or null/undefined for root nodes.

    PrimaryKey: CompositeKey

    The MemberJunction composite primary key representing this entity record. Derived dynamically from entity metadata to support composite keys.

    Record?: T

    The underlying MemberJunction entity instance or record object if loaded.

    Subtitle?: string

    Optional secondary subtitle or description (e.g. Type, Account Code, Role).

    TotalDescendantCount: number

    Total recursive count of all descendants under this subtree.

    x?: number

    Layout coordinate X computed by D3.

    y?: number

    Layout coordinate Y computed by D3.