# UndoRedo Class

# Constructors

# constructor

+ new UndoRedo(config: Config, operations: Operations): UndoRedo

Defined in src/UndoRedo.ts:419 (opens new window)

Parameters:

Name Type
config Config
operations Operations

Returns: UndoRedo

# Properties

# oldData

oldData: Map‹number, [SimpleCellAddress, string][]› = new Map()

Defined in src/UndoRedo.ts:415 (opens new window)

# Methods

# beginBatchMode

beginBatchMode(): void

Defined in src/UndoRedo.ts:436 (opens new window)

Returns: void


# clearRedoStack

clearRedoStack(): void

Defined in src/UndoRedo.ts:456 (opens new window)

Returns: void


# clearUndoStack

clearUndoStack(): void

Defined in src/UndoRedo.ts:460 (opens new window)

Returns: void


# commitBatchMode

commitBatchMode(): void

Defined in src/UndoRedo.ts:440 (opens new window)

Returns: void


# isRedoStackEmpty

isRedoStackEmpty(): boolean

Defined in src/UndoRedo.ts:468 (opens new window)

Returns: boolean


# isUndoStackEmpty

isUndoStackEmpty(): boolean

Defined in src/UndoRedo.ts:464 (opens new window)

Returns: boolean


# redo

redo(): void

Defined in src/UndoRedo.ts:653 (opens new window)

Returns: void


# redoAddColumns

redoAddColumns(operation: AddColumnsUndoEntry): void

Defined in src/UndoRedo.ts:705 (opens new window)

Parameters:

Name Type
operation AddColumnsUndoEntry

Returns: void


# redoAddNamedExpression

redoAddNamedExpression(operation: AddNamedExpressionUndoEntry): void

Defined in src/UndoRedo.ts:738 (opens new window)

Parameters:

Name Type
operation AddNamedExpressionUndoEntry

Returns: void


# redoAddRows

redoAddRows(operation: AddRowsUndoEntry): void

Defined in src/UndoRedo.ts:701 (opens new window)

Parameters:

Name Type
operation AddRowsUndoEntry

Returns: void


# redoAddSheet

redoAddSheet(operation: AddSheetUndoEntry): void

Defined in src/UndoRedo.ts:713 (opens new window)

Parameters:

Name Type
operation AddSheetUndoEntry

Returns: void


# redoBatch

redoBatch(batchOperation: BatchUndoEntry): void

Defined in src/UndoRedo.ts:665 (opens new window)

Parameters:

Name Type
batchOperation BatchUndoEntry

Returns: void


# redoChangeNamedExpression

redoChangeNamedExpression(operation: ChangeNamedExpressionUndoEntry): void

Defined in src/UndoRedo.ts:746 (opens new window)

Parameters:

Name Type
operation ChangeNamedExpressionUndoEntry

Returns: void


# redoClearSheet

redoClearSheet(operation: ClearSheetUndoEntry): void

Defined in src/UndoRedo.ts:729 (opens new window)

Parameters:

Name Type
operation ClearSheetUndoEntry

Returns: void


# redoMoveCells

redoMoveCells(operation: MoveCellsUndoEntry): void

Defined in src/UndoRedo.ts:675 (opens new window)

Parameters:

Name Type
operation MoveCellsUndoEntry

Returns: void


# redoMoveColumns

redoMoveColumns(operation: MoveColumnsUndoEntry): void

Defined in src/UndoRedo.ts:725 (opens new window)

Parameters:

Name Type
operation MoveColumnsUndoEntry

Returns: void


# redoMoveRows

redoMoveRows(operation: MoveRowsUndoEntry): void

Defined in src/UndoRedo.ts:721 (opens new window)

Parameters:

Name Type
operation MoveRowsUndoEntry

Returns: void


# redoPaste

redoPaste(operation: PasteUndoEntry): void

Defined in src/UndoRedo.ts:683 (opens new window)

Parameters:

Name Type
operation PasteUndoEntry

Returns: void


# redoRemoveColumns

redoRemoveColumns(operation: RemoveColumnsUndoEntry): void

Defined in src/UndoRedo.ts:679 (opens new window)

Parameters:

Name Type
operation RemoveColumnsUndoEntry

Returns: void


# redoRemoveNamedExpression

redoRemoveNamedExpression(operation: RemoveNamedExpressionUndoEntry): void

Defined in src/UndoRedo.ts:742 (opens new window)

Parameters:

Name Type
operation RemoveNamedExpressionUndoEntry

Returns: void


# redoRemoveRows

redoRemoveRows(operation: RemoveRowsUndoEntry): void

Defined in src/UndoRedo.ts:671 (opens new window)

Parameters:

Name Type
operation RemoveRowsUndoEntry

Returns: void


# redoRemoveSheet

redoRemoveSheet(operation: RemoveSheetUndoEntry): void

Defined in src/UndoRedo.ts:709 (opens new window)

Parameters:

Name Type
operation RemoveSheetUndoEntry

Returns: void


# redoRenameSheet

redoRenameSheet(operation: RenameSheetUndoEntry): void

Defined in src/UndoRedo.ts:717 (opens new window)

Parameters:

Name Type
operation RenameSheetUndoEntry

Returns: void


# redoSetCellContents

redoSetCellContents(operation: SetCellContentsUndoEntry): void

Defined in src/UndoRedo.ts:695 (opens new window)

Parameters:

Name Type
operation SetCellContentsUndoEntry

Returns: void


# redoSetColumnOrder

redoSetColumnOrder(operation: SetColumnOrderUndoEntry): void

Defined in src/UndoRedo.ts:754 (opens new window)

Parameters:

Name Type
operation SetColumnOrderUndoEntry

Returns: void


# redoSetRowOrder

redoSetRowOrder(operation: SetRowOrderUndoEntry): void

Defined in src/UndoRedo.ts:750 (opens new window)

Parameters:

Name Type
operation SetRowOrderUndoEntry

Returns: void


# redoSetSheetContent

redoSetSheetContent(operation: SetSheetContentUndoEntry): void

Defined in src/UndoRedo.ts:733 (opens new window)

Parameters:

Name Type
operation SetSheetContentUndoEntry

Returns: void


# saveOperation

saveOperation(operation: UndoEntry): void

Defined in src/UndoRedo.ts:428 (opens new window)

Parameters:

Name Type
operation UndoEntry

Returns: void


# storeDataForVersion

storeDataForVersion(version: number, address: SimpleCellAddress, astHash: string): void

Defined in src/UndoRedo.ts:448 (opens new window)

Parameters:

Name Type
version number
address SimpleCellAddress
astHash string

Returns: void


# undo

undo(): void

Defined in src/UndoRedo.ts:472 (opens new window)

Returns: void


# undoAddColumns

undoAddColumns(operation: AddColumnsUndoEntry): void

Defined in src/UndoRedo.ts:529 (opens new window)

Parameters:

Name Type
operation AddColumnsUndoEntry

Returns: void


# undoAddNamedExpression

undoAddNamedExpression(operation: AddNamedExpressionUndoEntry): void

Defined in src/UndoRedo.ts:633 (opens new window)

Parameters:

Name Type
operation AddNamedExpressionUndoEntry

Returns: void


# undoAddRows

undoAddRows(operation: AddRowsUndoEntry): void

Defined in src/UndoRedo.ts:521 (opens new window)

Parameters:

Name Type
operation AddRowsUndoEntry

Returns: void


# undoAddSheet

undoAddSheet(operation: AddSheetUndoEntry): void

Defined in src/UndoRedo.ts:579 (opens new window)

Parameters:

Name Type
operation AddSheetUndoEntry

Returns: void


# undoBatch

undoBatch(batchOperation: BatchUndoEntry): void

Defined in src/UndoRedo.ts:483 (opens new window)

Parameters:

Name Type
batchOperation BatchUndoEntry

Returns: void


# undoChangeNamedExpression

undoChangeNamedExpression(operation: ChangeNamedExpressionUndoEntry): void

Defined in src/UndoRedo.ts:641 (opens new window)

Parameters:

Name Type
operation ChangeNamedExpressionUndoEntry

Returns: void


# undoClearSheet

undoClearSheet(operation: ClearSheetUndoEntry): void

Defined in src/UndoRedo.ts:608 (opens new window)

Parameters:

Name Type
operation ClearSheetUndoEntry

Returns: void


# undoMoveCells

undoMoveCells(operation: MoveCellsUndoEntry): void

Defined in src/UndoRedo.ts:567 (opens new window)

Parameters:

Name Type
operation MoveCellsUndoEntry

Returns: void


# undoMoveColumns

undoMoveColumns(operation: MoveColumnsUndoEntry): void

Defined in src/UndoRedo.ts:561 (opens new window)

Parameters:

Name Type
operation MoveColumnsUndoEntry

Returns: void


# undoMoveRows

undoMoveRows(operation: MoveRowsUndoEntry): void

Defined in src/UndoRedo.ts:555 (opens new window)

Parameters:

Name Type
operation MoveRowsUndoEntry

Returns: void


# undoPaste

undoPaste(operation: PasteUndoEntry): void

Defined in src/UndoRedo.ts:548 (opens new window)

Parameters:

Name Type
operation PasteUndoEntry

Returns: void


# undoRemoveColumns

undoRemoveColumns(operation: RemoveColumnsUndoEntry): void

Defined in src/UndoRedo.ts:505 (opens new window)

Parameters:

Name Type
operation RemoveColumnsUndoEntry

Returns: void


# undoRemoveNamedExpression

undoRemoveNamedExpression(operation: RemoveNamedExpressionUndoEntry): void

Defined in src/UndoRedo.ts:637 (opens new window)

Parameters:

Name Type
operation RemoveNamedExpressionUndoEntry

Returns: void


# undoRemoveRows

undoRemoveRows(operation: RemoveRowsUndoEntry): void

Defined in src/UndoRedo.ts:489 (opens new window)

Parameters:

Name Type
operation RemoveRowsUndoEntry

Returns: void


# undoRemoveSheet

undoRemoveSheet(operation: RemoveSheetUndoEntry): void

Defined in src/UndoRedo.ts:584 (opens new window)

Parameters:

Name Type
operation RemoveSheetUndoEntry

Returns: void


# undoRenameSheet

undoRenameSheet(operation: RenameSheetUndoEntry): void

Defined in src/UndoRedo.ts:604 (opens new window)

Parameters:

Name Type
operation RenameSheetUndoEntry

Returns: void


# undoSetCellContents

undoSetCellContents(operation: SetCellContentsUndoEntry): void

Defined in src/UndoRedo.ts:537 (opens new window)

Parameters:

Name Type
operation SetCellContentsUndoEntry

Returns: void


# undoSetColumnOrder

undoSetColumnOrder(operation: SetColumnOrderUndoEntry): void

Defined in src/UndoRedo.ts:649 (opens new window)

Parameters:

Name Type
operation SetColumnOrderUndoEntry

Returns: void


# undoSetRowOrder

undoSetRowOrder(operation: SetRowOrderUndoEntry): void

Defined in src/UndoRedo.ts:645 (opens new window)

Parameters:

Name Type
operation SetRowOrderUndoEntry

Returns: void


# undoSetSheetContent

undoSetSheetContent(operation: SetSheetContentUndoEntry): void

Defined in src/UndoRedo.ts:620 (opens new window)

Parameters:

Name Type
operation SetSheetContentUndoEntry

Returns: void