API Reference
@univerjs
@univerjs/docs-ui
classes
Rectrange

@univerjs/docs-ui v0.4.2Docs


Class: RectRange

Implements

Constructors

new RectRange()

new RectRange(
   _scene, 
   _document, 
   _docSkeleton, 
   anchorNodePosition, 
   focusNodePosition, 
   style, 
   _segmentId, 
   _segmentPage): RectRange

Parameters

ParameterTypeDefault value
_sceneThinSceneundefined
_documentDocumentsundefined
_docSkeletonDocumentSkeletonundefined
anchorNodePositionINodePositionundefined
focusNodePositionINodePositionundefined
styleITextSelectionStyleNORMAL_TEXT_SELECTION_PLUGIN_STYLE
_segmentIdstring''
_segmentPagenumber-1

Returns

RectRange

Defined in

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

Properties

PropertyModifierTypeDefault valueDefined in
anchorNodePositionpublicINodePositionundefinedpackages/docs-ui/src/services/selection/rect-range.ts:67 (opens in a new tab)
focusNodePositionpublicINodePositionundefinedpackages/docs-ui/src/services/selection/rect-range.ts:68 (opens in a new tab)
rangeTypepublicDOC_RANGE_TYPEDOC_RANGE_TYPE.RECTpackages/docs-ui/src/services/selection/rect-range.ts:47 (opens in a new tab)
stylepublicITextSelectionStyleNORMAL_TEXT_SELECTION_PLUGIN_STYLEpackages/docs-ui/src/services/selection/rect-range.ts:69 (opens in a new tab)

Accessors

collapsed

get collapsed(): boolean

Returns

boolean

Implementation of

IDocRange.collapsed

Defined in

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


direction

get direction(): RANGE_DIRECTION

Returns

RANGE_DIRECTION

Implementation of

IDocRange.direction

Defined in

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


endColumn

get endColumn(): number

Returns

number

Defined in

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


endNodePosition

get endNodePosition(): INodePosition

Returns

INodePosition

Implementation of

IDocRange.endNodePosition

Defined in

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


endOffset

get endOffset(): Nullable<number>

Returns

Nullable<number>

Implementation of

IDocRange.endOffset

Defined in

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


endRow

get endRow(): number

Returns

number

Defined in

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


segmentId

get segmentId(): string

Returns

string

Implementation of

IDocRange.segmentId

Defined in

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


segmentPage

get segmentPage(): number

Returns

number

Implementation of

IDocRange.segmentPage

Defined in

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


spanEntireColumn

get spanEntireColumn(): boolean

Returns

boolean

Defined in

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


spanEntireRow

get spanEntireRow(): boolean

Returns

boolean

Defined in

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


spanEntireTable

get spanEntireTable(): boolean

Returns

boolean

Defined in

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


startColumn

get startColumn(): number

Returns

number

Defined in

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


startNodePosition

get startNodePosition(): INodePosition

Returns

INodePosition

Implementation of

IDocRange.startNodePosition

Defined in

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


startOffset

get startOffset(): Nullable<number>

Returns

Nullable<number>

Implementation of

IDocRange.startOffset

Defined in

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


startRow

get startRow(): number

Returns

number

Defined in

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


tableId

get tableId(): string

Returns

string

Defined in

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

Methods

activate()

activate(): void

Returns

void

Defined in

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


deactivate()

deactivate(): void

Returns

void

Defined in

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


dispose()

dispose(): void

Returns

void

Implementation of

IDocRange.dispose

Defined in

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


isActive()

isActive(): boolean

Returns

boolean

Implementation of

IDocRange.isActive

Defined in

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


isIntersection()

isIntersection(compareRange): boolean

Parameters

ParameterType
compareRangeRectRange

Returns

boolean

Defined in

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


refresh()

refresh(): void

Returns

void

Implementation of

IDocRange.refresh

Defined in

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


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