@univerjs/docs-ui v0.4.2 • Docs
Class: RectRange
Implements
Constructors
new RectRange()
new RectRange(
_scene,
_document,
_docSkeleton,
anchorNodePosition,
focusNodePosition,
style,
_segmentId,
_segmentPage): RectRange
Parameters
Parameter | Type | Default value |
---|---|---|
_scene | ThinScene | 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
packages/docs-ui/src/services/selection/rect-range.ts:63 (opens in a new tab)
Properties
Property | Modifier | Type | Default value | Defined in |
---|---|---|---|---|
anchorNodePosition | public | INodePosition | undefined | packages/docs-ui/src/services/selection/rect-range.ts:67 (opens in a new tab) |
focusNodePosition | public | INodePosition | undefined | packages/docs-ui/src/services/selection/rect-range.ts:68 (opens in a new tab) |
rangeType | public | DOC_RANGE_TYPE | DOC_RANGE_TYPE.RECT | packages/docs-ui/src/services/selection/rect-range.ts:47 (opens in a new tab) |
style | public | ITextSelectionStyle | NORMAL_TEXT_SELECTION_PLUGIN_STYLE | packages/docs-ui/src/services/selection/rect-range.ts:69 (opens in a new tab) |
Accessors
collapsed
get collapsed(): boolean
Returns
boolean
Implementation of
Defined in
packages/docs-ui/src/services/selection/rect-range.ts:88 (opens in a new tab)
direction
get direction(): RANGE_DIRECTION
Returns
Implementation of
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
Implementation of
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
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
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
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
Implementation of
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
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
Defined in
packages/docs-ui/src/services/selection/rect-range.ts:183 (opens in a new tab)
isActive()
isActive(): boolean
Returns
boolean
Implementation of
Defined in
packages/docs-ui/src/services/selection/rect-range.ts:171 (opens in a new tab)
isIntersection()
isIntersection(compareRange): boolean
Parameters
Parameter | Type |
---|---|
compareRange | RectRange |
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
Defined in
packages/docs-ui/src/services/selection/rect-range.ts:207 (opens in a new tab)