@univerjscoreclassesActioniterator

@univerjs/core v0.5.4


Class: ActionIterator

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/action-iterator.ts:24

Constructors

new ActionIterator()

new ActionIterator(_actions): ActionIterator

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/action-iterator.ts:28

Parameters

ParameterType
_actionsTextXAction[]

Returns

ActionIterator

Methods

hasNext()

hasNext(): boolean

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/action-iterator.ts:32

Returns

boolean


next()

next(length?): TextXAction

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/action-iterator.ts:36

Parameters

ParameterType
length?number

Returns

TextXAction


peek()

peek(): TextXAction

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/action-iterator.ts:88

Returns

TextXAction


peekLength()

peekLength(): number

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/action-iterator.ts:92

Returns

number


peekType()

peekType(): TextXActionType

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/action-iterator.ts:101

Returns

TextXActionType


rest()

rest(): TextXAction[]

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/action-iterator.ts:110

Returns

TextXAction[]