@maxgraph/core
    Preparing search index...

    Function cloneCells

    • Returns an array of clones for the given array of Cell`. Depending on the value of includeChildren, a deep clone is created for each cell. Connections are restored based if the corresponding cell is contained in the provided in array.

      Parameters

      • cells: Cell[]

        The cells to clone

      • includeChildren: boolean = true

        Boolean indicating if the cells should be cloned with all descendants.

      • mapping: any = {}

        Optional mapping for existing clones.

      Returns Cell[]