Stack

modules/history.Stack

Implements

constructor

new Stack(size): Stack

Parameters

Name Type
size number

Returns

Stack

Defined in

src/modules/history/stack.ts#19

length

get length(): number

Returns

number

Implementation of

IStack.length

Defined in

src/modules/history/stack.ts#21

clear

clear(): void

Returns

void

Implementation of

IStack.clear

Defined in

src/modules/history/stack.ts#29


push

push(command): void

Parameters

Name Type
command Command

Returns

void

Implementation of

IStack.push

Defined in

src/modules/history/stack.ts#34


replace

replace(command): void

Parameters

Name Type
command Command

Returns

void

Implementation of

IStack.replace

Defined in

src/modules/history/stack.ts#45


current

current(): CanUndef<Command>

Returns

CanUndef<Command>

Implementation of

IStack.current

Defined in

src/modules/history/stack.ts#49


undo

undo(): boolean

Returns

boolean

Implementation of

IStack.undo

Defined in

src/modules/history/stack.ts#53


redo

redo(): boolean

Returns

boolean

Implementation of

IStack.redo

Defined in

src/modules/history/stack.ts#67


canUndo

canUndo(): boolean

Returns

boolean

Implementation of

IStack.canUndo

Defined in

src/modules/history/stack.ts#81


canRedo

canRedo(): boolean

Returns

boolean

Implementation of

IStack.canRedo

Defined in

jodit/src/modules/history/stack.ts:85