Skip to content

Class

+ new PasteUndoEntry(targetLeftCorner: SimpleCellAddress, oldContent: [SimpleCellAddress, ClipboardCell][], newContent: ClipboardCell[][], addedGlobalNamedExpressions: string[], overwrittenCells: [SimpleCellAddress, ClipboardCell][]): PasteUndoEntry

Defined in hyperformula/src/UndoRedo.ts:373

Parameters:

Name Type Default
targetLeftCorner SimpleCellAddress -
oldContent [SimpleCellAddress, ClipboardCell][] -
newContent ClipboardCell[][] -
addedGlobalNamedExpressions string[] -
overwrittenCells [SimpleCellAddress, ClipboardCell][] []

Returns: PasteUndoEntry

Readonly

• addedGlobalNamedExpressions: string[]

Defined in hyperformula/src/UndoRedo.ts:378


Readonly

• newContent: ClipboardCell[][]

Defined in hyperformula/src/UndoRedo.ts:377


Readonly

• oldContent: [SimpleCellAddress, ClipboardCell][]

Defined in hyperformula/src/UndoRedo.ts:376


Readonly

• overwrittenCells: [SimpleCellAddress, ClipboardCell][]

Defined in hyperformula/src/UndoRedo.ts:380

The cells that array spills overwrote during the paste, in the order they were overwritten.


Readonly

• targetLeftCorner: SimpleCellAddress

Defined in hyperformula/src/UndoRedo.ts:375

▸ doRedo(undoRedo: UndoRedo): void

Defined in hyperformula/src/UndoRedo.ts:389

Parameters:

Name Type
undoRedo UndoRedo

Returns: void


▸ doUndo(undoRedo: UndoRedo): void

Defined in hyperformula/src/UndoRedo.ts:385

Parameters:

Name Type
undoRedo UndoRedo

Returns: void


▸ getReferencedOldDataVersions(): number[]

Defined in hyperformula/src/UndoRedo.ts:43

Returns LazilyTransformingAstService version keys referenced by this entry’s oldData. Default implementation returns empty — override in entries that store oldData.

Returns: number[]