@univerjs/docs-ui v0.5.0-beta.1Docs


Interface: IDocRange

Properties

PropertyTypeDefined in
anchorNodePosition?Nullable<INodePosition>submodules/univer/packages/docs-ui/src/services/selection/range-interface.ts:24
focusNodePosition?Nullable<INodePosition>submodules/univer/packages/docs-ui/src/services/selection/range-interface.ts:25
rangeTypeDOC_RANGE_TYPEsubmodules/univer/packages/docs-ui/src/services/selection/range-interface.ts:22
styleITextSelectionStylesubmodules/univer/packages/docs-ui/src/services/selection/range-interface.ts:27

Accessors

collapsed

Get Signature

get collapsed(): boolean
Returns

boolean

Defined in

submodules/univer/packages/docs-ui/src/services/selection/range-interface.ts:34


direction

Get Signature

get direction(): RANGE_DIRECTION
Returns

RANGE_DIRECTION

Defined in

submodules/univer/packages/docs-ui/src/services/selection/range-interface.ts:37


endNodePosition

Get Signature

get endNodePosition(): Nullable<INodePosition>
Returns

Nullable<INodePosition>

Defined in

submodules/univer/packages/docs-ui/src/services/selection/range-interface.ts:36


endOffset

Get Signature

get endOffset(): Nullable<number>
Returns

Nullable<number>

Defined in

submodules/univer/packages/docs-ui/src/services/selection/range-interface.ts:32


segmentId

Get Signature

get segmentId(): string
Returns

string

Defined in

submodules/univer/packages/docs-ui/src/services/selection/range-interface.ts:39


segmentPage

Get Signature

get segmentPage(): number
Returns

number

Defined in

submodules/univer/packages/docs-ui/src/services/selection/range-interface.ts:41


startNodePosition

Get Signature

get startNodePosition(): Nullable<INodePosition>
Returns

Nullable<INodePosition>

Defined in

submodules/univer/packages/docs-ui/src/services/selection/range-interface.ts:35


startOffset

Get Signature

get startOffset(): Nullable<number>
Returns

Nullable<number>

Defined in

submodules/univer/packages/docs-ui/src/services/selection/range-interface.ts:30

Methods

dispose()

dispose(): void

Returns

void

Defined in

submodules/univer/packages/docs-ui/src/services/selection/range-interface.ts:45


isActive()

isActive(): boolean

Returns

boolean

Defined in

submodules/univer/packages/docs-ui/src/services/selection/range-interface.ts:43


refresh()

refresh(): void

Returns

void

Defined in

submodules/univer/packages/docs-ui/src/services/selection/range-interface.ts:47