@univerjscorenamespacesJSON1classesReadcursor

@univerjs/core v0.5.4


Class: ReadCursor

Defined in: packages/api/tmp/univer-pro/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/cursor.d.ts:14

Extends

  • Cursor

Constructors

new ReadCursor()

new ReadCursor(op?): ReadCursor

Defined in: packages/api/tmp/univer-pro/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/cursor.d.ts:10

Parameters

ParameterType
op?JSONOp

Returns

ReadCursor

Inherited from

Cursor.constructor

Properties

PropertyTypeInherited fromDefined in
containerJSONOpCursor.containerpackages/api/tmp/univer-pro/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/cursor.d.ts:8
idxnumberCursor.idxpackages/api/tmp/univer-pro/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/cursor.d.ts:9
indexesnumber[]Cursor.indexespackages/api/tmp/univer-pro/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/cursor.d.ts:6
lcIdxnumberCursor.lcIdxpackages/api/tmp/univer-pro/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/cursor.d.ts:7
parentsJSONOp[]Cursor.parentspackages/api/tmp/univer-pro/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/cursor.d.ts:5

Methods

[iterator]()

iterator: Generator<Key, void>

Defined in: packages/api/tmp/univer-pro/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/cursor.d.ts:22

Returns

Generator<Key, void>


ascend()

ascend(): void

Defined in: packages/api/tmp/univer-pro/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/cursor.d.ts:11

Returns

void

Inherited from

Cursor.ascend

clone()

clone(): ReadCursor

Defined in: packages/api/tmp/univer-pro/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/cursor.d.ts:21

Returns

ReadCursor


descendFirst()

descendFirst(): boolean

Defined in: packages/api/tmp/univer-pro/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/cursor.d.ts:18

Returns

boolean


eachDrop()

eachDrop<W>(w, fn): void

Defined in: packages/api/tmp/univer-pro/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/cursor.d.ts:25

Type Parameters

Type Parameter
W extends null | WriteCursor

Parameters

ParameterType
wW
fn(slot, w) => void

Returns

void


eachPick()

eachPick<W>(w, fn): void

Defined in: packages/api/tmp/univer-pro/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/cursor.d.ts:24

Type Parameters

Type Parameter
W extends null | WriteCursor

Parameters

ParameterType
wW
fn(slot, w) => void

Returns

void


get()

get(): 
  | null
  | (
  | string
  | number
  | JSONOpList
  | JSONOpComponent)[]

Defined in: packages/api/tmp/univer-pro/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/cursor.d.ts:15

Returns

| null | ( | string | number | JSONOpList | JSONOpComponent)[]


getComponent()

getComponent(): null | JSONOpComponent

Defined in: packages/api/tmp/univer-pro/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/cursor.d.ts:17

Returns

null | JSONOpComponent


getKey()

getKey(): Key

Defined in: packages/api/tmp/univer-pro/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/cursor.d.ts:16

Returns

Key


getPath()

getPath(): Path

Defined in: packages/api/tmp/univer-pro/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/cursor.d.ts:12

Returns

Path

Inherited from

Cursor.getPath

nextSibling()

nextSibling(): boolean

Defined in: packages/api/tmp/univer-pro/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/cursor.d.ts:19

Returns

boolean


traverse()

traverse<W>(w, fn): void

Defined in: packages/api/tmp/univer-pro/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/cursor.d.ts:23

Type Parameters

Type Parameter
W extends null | WriteCursor

Parameters

ParameterType
wW
fn(c, w) => void

Returns

void