Class ChildChange

Action to add or remove a child in a model.

Constructor: mxChildChange

Constructs a change of a child in the specified model.

ChildChange

Implements

Constructors

Properties

child: Cell
index: number
parent: null | Cell
previous: null | Cell
previousIndex: number

Methods

  • Disconnects the given cell recursively from its terminals and stores the previous terminal in the cell's terminals.

    Parameters

    • cell: Cell
    • isConnect: boolean = true

    Returns void

    doc from mxGraph source code is incorrect

  • Changes the parent of child` using <Transactions.parentForCellChanged> and removes or restores the cell's connections.

    Returns void