API Reference
@univerjs
@univerjs/docs-ui
interfaces
Idocrange

@univerjs/docs-ui v0.4.2Docs


Interface: IDocRange

Properties

PropertyTypeDefined in
anchorNodePosition?Nullable<INodePosition>packages/docs-ui/src/services/selection/range-interface.ts:24 (opens in a new tab)
focusNodePosition?Nullable<INodePosition>packages/docs-ui/src/services/selection/range-interface.ts:25 (opens in a new tab)
rangeTypeDOC_RANGE_TYPEpackages/docs-ui/src/services/selection/range-interface.ts:22 (opens in a new tab)
styleITextSelectionStylepackages/docs-ui/src/services/selection/range-interface.ts:27 (opens in a new tab)

Accessors

collapsed

get collapsed(): boolean

Returns

boolean

Defined in

packages/docs-ui/src/services/selection/range-interface.ts:34 (opens in a new tab)


direction

get direction(): RANGE_DIRECTION

Returns

RANGE_DIRECTION

Defined in

packages/docs-ui/src/services/selection/range-interface.ts:37 (opens in a new tab)


endNodePosition

get endNodePosition(): Nullable<INodePosition>

Returns

Nullable<INodePosition>

Defined in

packages/docs-ui/src/services/selection/range-interface.ts:36 (opens in a new tab)


endOffset

get endOffset(): Nullable<number>

Returns

Nullable<number>

Defined in

packages/docs-ui/src/services/selection/range-interface.ts:32 (opens in a new tab)


segmentId

get segmentId(): string

Returns

string

Defined in

packages/docs-ui/src/services/selection/range-interface.ts:39 (opens in a new tab)


segmentPage

get segmentPage(): number

Returns

number

Defined in

packages/docs-ui/src/services/selection/range-interface.ts:41 (opens in a new tab)


startNodePosition

get startNodePosition(): Nullable<INodePosition>

Returns

Nullable<INodePosition>

Defined in

packages/docs-ui/src/services/selection/range-interface.ts:35 (opens in a new tab)


startOffset

get startOffset(): Nullable<number>

Returns

Nullable<number>

Defined in

packages/docs-ui/src/services/selection/range-interface.ts:30 (opens in a new tab)

Methods

dispose()

dispose(): void

Returns

void

Defined in

packages/docs-ui/src/services/selection/range-interface.ts:45 (opens in a new tab)


isActive()

isActive(): boolean

Returns

boolean

Defined in

packages/docs-ui/src/services/selection/range-interface.ts:43 (opens in a new tab)


refresh()

refresh(): void

Returns

void

Defined in

packages/docs-ui/src/services/selection/range-interface.ts:47 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.