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
Parameter | Type |
---|---|
op ? | JSONOp |
Returns
Inherited from
Cursor.constructor
Properties
Property | Type | Inherited from | Defined in |
---|---|---|---|
container | JSONOp | Cursor.container | packages/api/tmp/univer-pro/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/cursor.d.ts:8 |
idx | number | Cursor.idx | packages/api/tmp/univer-pro/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/cursor.d.ts:9 |
indexes | number [] | Cursor.indexes | packages/api/tmp/univer-pro/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/cursor.d.ts:6 |
lcIdx | number | Cursor.lcIdx | packages/api/tmp/univer-pro/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/cursor.d.ts:7 |
parents | JSONOp [] | Cursor.parents | packages/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
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
Parameter | Type |
---|---|
w | W |
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
Parameter | Type |
---|---|
w | W |
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
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
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
Parameter | Type |
---|---|
w | W |
fn | (c , w ) => void |
Returns
void