interface INodeState {
    depth: number;
    id: number;
    key: string;
    path: string;
    rect: { height: number; width: number; x: number; y: number };
    size: [width: number, height: number];
}

Properties

Properties

depth: number
id: number

An auto-increment unique ID for each node.

key: string

The unique identifier of a node, supposed to be based on content.

path: string

A dot separated sequence of the node and its ancestors.

rect: { height: number; width: number; x: number; y: number }

Position info

size: [width: number, height: number]

DOM element size