@univerjs/docs-ui v0.5.4


Class: RectRange

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

Implements

Constructors

new RectRange()

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

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

Parameters

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

Returns

RectRange

Properties

PropertyModifierTypeDefault valueDefined in
anchorNodePositionpublicINodePositionundefinedsubmodules/univer/packages/docs-ui/src/services/selection/rect-range.ts:67
focusNodePositionpublicINodePositionundefinedsubmodules/univer/packages/docs-ui/src/services/selection/rect-range.ts:68
rangeTypepublicDOC_RANGE_TYPEDOC_RANGE_TYPE.RECTsubmodules/univer/packages/docs-ui/src/services/selection/rect-range.ts:47
stylepublicITextSelectionStyleNORMAL_TEXT_SELECTION_PLUGIN_STYLEsubmodules/univer/packages/docs-ui/src/services/selection/rect-range.ts:69

Accessors

collapsed

Get Signature

get collapsed(): boolean

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

Returns

boolean

Implementation of

IDocRange.collapsed


direction

Get Signature

get direction(): RANGE_DIRECTION

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

Returns

RANGE_DIRECTION

Implementation of

IDocRange.direction


endColumn

Get Signature

get endColumn(): number

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

Returns

number


endNodePosition

Get Signature

get endNodePosition(): INodePosition

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

Returns

INodePosition

Implementation of

IDocRange.endNodePosition


endOffset

Get Signature

get endOffset(): Nullable<number>

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

Returns

Nullable<number>

Implementation of

IDocRange.endOffset


endRow

Get Signature

get endRow(): number

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

Returns

number


segmentId

Get Signature

get segmentId(): string

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

Returns

string

Implementation of

IDocRange.segmentId


segmentPage

Get Signature

get segmentPage(): number

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

Returns

number

Implementation of

IDocRange.segmentPage


spanEntireColumn

Get Signature

get spanEntireColumn(): boolean

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

Returns

boolean


spanEntireRow

Get Signature

get spanEntireRow(): boolean

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

Returns

boolean


spanEntireTable

Get Signature

get spanEntireTable(): boolean

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

Returns

boolean


startColumn

Get Signature

get startColumn(): number

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

Returns

number


startNodePosition

Get Signature

get startNodePosition(): INodePosition

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

Returns

INodePosition

Implementation of

IDocRange.startNodePosition


startOffset

Get Signature

get startOffset(): Nullable<number>

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

Returns

Nullable<number>

Implementation of

IDocRange.startOffset


startRow

Get Signature

get startRow(): number

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

Returns

number


tableId

Get Signature

get tableId(): string

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

Returns

string

Methods

activate()

activate(): void

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

Returns

void


deactivate()

deactivate(): void

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

Returns

void


dispose()

dispose(): void

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

Returns

void

Implementation of

IDocRange.dispose


isActive()

isActive(): boolean

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

Returns

boolean

Implementation of

IDocRange.isActive


isIntersection()

isIntersection(compareRange): boolean

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

Parameters

ParameterType
compareRangeRectRange

Returns

boolean


refresh()

refresh(): void

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

Returns

void

Implementation of

IDocRange.refresh