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


Class: RectRange

Implements

Constructors

new RectRange()

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

Parameters

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

Returns

RectRange

Defined in

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

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
Returns

boolean

Implementation of

IDocRange.collapsed

Defined in

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


direction

Get Signature

get direction(): RANGE_DIRECTION
Returns

RANGE_DIRECTION

Implementation of

IDocRange.direction

Defined in

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


endColumn

Get Signature

get endColumn(): number
Returns

number

Defined in

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


endNodePosition

Get Signature

get endNodePosition(): INodePosition
Returns

INodePosition

Implementation of

IDocRange.endNodePosition

Defined in

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


endOffset

Get Signature

get endOffset(): Nullable<number>
Returns

Nullable<number>

Implementation of

IDocRange.endOffset

Defined in

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


endRow

Get Signature

get endRow(): number
Returns

number

Defined in

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


segmentId

Get Signature

get segmentId(): string
Returns

string

Implementation of

IDocRange.segmentId

Defined in

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


segmentPage

Get Signature

get segmentPage(): number
Returns

number

Implementation of

IDocRange.segmentPage

Defined in

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


spanEntireColumn

Get Signature

get spanEntireColumn(): boolean
Returns

boolean

Defined in

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


spanEntireRow

Get Signature

get spanEntireRow(): boolean
Returns

boolean

Defined in

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


spanEntireTable

Get Signature

get spanEntireTable(): boolean
Returns

boolean

Defined in

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


startColumn

Get Signature

get startColumn(): number
Returns

number

Defined in

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


startNodePosition

Get Signature

get startNodePosition(): INodePosition
Returns

INodePosition

Implementation of

IDocRange.startNodePosition

Defined in

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


startOffset

Get Signature

get startOffset(): Nullable<number>
Returns

Nullable<number>

Implementation of

IDocRange.startOffset

Defined in

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


startRow

Get Signature

get startRow(): number
Returns

number

Defined in

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


tableId

Get Signature

get tableId(): string
Returns

string

Defined in

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

Methods

activate()

activate(): void

Returns

void

Defined in

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


deactivate()

deactivate(): void

Returns

void

Defined in

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


dispose()

dispose(): void

Returns

void

Implementation of

IDocRange.dispose

Defined in

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


isActive()

isActive(): boolean

Returns

boolean

Implementation of

IDocRange.isActive

Defined in

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


isIntersection()

isIntersection(compareRange): boolean

Parameters

ParameterType
compareRangeRectRange

Returns

boolean

Defined in

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


refresh()

refresh(): void

Returns

void

Implementation of

IDocRange.refresh

Defined in

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