@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
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
Defined in
submodules/univer/packages/docs-ui/src/services/selection/rect-range.ts:63
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
Returns
boolean
Implementation of
Defined in
submodules/univer/packages/docs-ui/src/services/selection/rect-range.ts:88
direction
Get Signature
get direction(): RANGE_DIRECTION
Returns
Implementation of
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
Implementation of
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
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
Defined in
submodules/univer/packages/docs-ui/src/services/selection/rect-range.ts:112
segmentPage
Get Signature
get segmentPage(): number
Returns
number
Implementation of
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
Implementation of
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
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
Defined in
submodules/univer/packages/docs-ui/src/services/selection/rect-range.ts:183
isActive()
isActive(): boolean
Returns
boolean
Implementation of
Defined in
submodules/univer/packages/docs-ui/src/services/selection/rect-range.ts:171
isIntersection()
isIntersection(compareRange): boolean
Parameters
Parameter | Type |
---|---|
compareRange | RectRange |
Returns
boolean
Defined in
submodules/univer/packages/docs-ui/src/services/selection/rect-range.ts:188
refresh()
refresh(): void
Returns
void
Implementation of
Defined in
submodules/univer/packages/docs-ui/src/services/selection/rect-range.ts:207