@univerjs/docs-ui v0.5.4


Interface: IDocRange

Defined in: submodules/univer/packages/docs-ui/src/services/selection/range-interface.ts:20

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

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

Returns

boolean


direction

Get Signature

get direction(): RANGE_DIRECTION

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

Returns

RANGE_DIRECTION


endNodePosition

Get Signature

get endNodePosition(): Nullable<INodePosition>

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

Returns

Nullable<INodePosition>


endOffset

Get Signature

get endOffset(): Nullable<number>

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

Returns

Nullable<number>


segmentId

Get Signature

get segmentId(): string

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

Returns

string


segmentPage

Get Signature

get segmentPage(): number

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

Returns

number


startNodePosition

Get Signature

get startNodePosition(): Nullable<INodePosition>

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

Returns

Nullable<INodePosition>


startOffset

Get Signature

get startOffset(): Nullable<number>

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

Returns

Nullable<number>

Methods

dispose()

dispose(): void

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

Returns

void


isActive()

isActive(): boolean

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

Returns

boolean


refresh()

refresh(): void

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

Returns

void