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
Parameter | Type | Default value |
---|---|---|
_scene | Scene | undefined |
_document | Documents | undefined |
_docSkeleton | DocumentSkeleton | undefined |
anchorNodePosition | INodePosition | undefined |
focusNodePosition | INodePosition | undefined |
style | ITextSelectionStyle | NORMAL_TEXT_SELECTION_PLUGIN_STYLE |
_segmentId | string | '' |
_segmentPage | number | -1 |
Returns
Properties
Property | Modifier | Type | Default value | Defined in |
---|---|---|---|---|
anchorNodePosition | public | INodePosition | undefined | submodules/univer/packages/docs-ui/src/services/selection/rect-range.ts:67 |
focusNodePosition | public | INodePosition | undefined | submodules/univer/packages/docs-ui/src/services/selection/rect-range.ts:68 |
rangeType | public | DOC_RANGE_TYPE | DOC_RANGE_TYPE.RECT | submodules/univer/packages/docs-ui/src/services/selection/rect-range.ts:47 |
style | public | ITextSelectionStyle | NORMAL_TEXT_SELECTION_PLUGIN_STYLE | submodules/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
direction
Get Signature
get direction(): RANGE_DIRECTION
Defined in: submodules/univer/packages/docs-ui/src/services/selection/rect-range.ts:164
Returns
Implementation of
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
Implementation of
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
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
segmentPage
Get Signature
get segmentPage(): number
Defined in: submodules/univer/packages/docs-ui/src/services/selection/rect-range.ts:116
Returns
number
Implementation of
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
Implementation of
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
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
isActive()
isActive(): boolean
Defined in: submodules/univer/packages/docs-ui/src/services/selection/rect-range.ts:171
Returns
boolean
Implementation of
isIntersection()
isIntersection(compareRange): boolean
Defined in: submodules/univer/packages/docs-ui/src/services/selection/rect-range.ts:188
Parameters
Parameter | Type |
---|---|
compareRange | RectRange |
Returns
boolean
refresh()
refresh(): void
Defined in: submodules/univer/packages/docs-ui/src/services/selection/rect-range.ts:207
Returns
void