PasteUndoEntry
Class
Constructors
Section titled “Constructors”constructor
Section titled “constructor”+ 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
Properties
Section titled “Properties”addedGlobalNamedExpressions
Section titled “addedGlobalNamedExpressions”Readonly
• addedGlobalNamedExpressions: string[]
Defined in hyperformula/src/UndoRedo.ts:378
newContent
Section titled “newContent”Readonly
• newContent: ClipboardCell[][]
Defined in hyperformula/src/UndoRedo.ts:377
oldContent
Section titled “oldContent”Readonly
• oldContent: [SimpleCellAddress, ClipboardCell][]
Defined in hyperformula/src/UndoRedo.ts:376
overwrittenCells
Section titled “overwrittenCells”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.
targetLeftCorner
Section titled “targetLeftCorner”Readonly
• targetLeftCorner: SimpleCellAddress
Defined in hyperformula/src/UndoRedo.ts:375
Methods
Section titled “Methods”doRedo
Section titled “doRedo”▸ doRedo(undoRedo: UndoRedo): void
Defined in hyperformula/src/UndoRedo.ts:389
Parameters:
| Name | Type |
|---|---|
undoRedo |
UndoRedo |
Returns: void
doUndo
Section titled “doUndo”▸ doUndo(undoRedo: UndoRedo): void
Defined in hyperformula/src/UndoRedo.ts:385
Parameters:
| Name | Type |
|---|---|
undoRedo |
UndoRedo |
Returns: void
getReferencedOldDataVersions
Section titled “getReferencedOldDataVersions”▸ 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[]