@univerjs/docs-ui v0.4.2 • Docs
Class: NodePositionConvertToRectRange
Constructors
new NodePositionConvertToRectRange()
new NodePositionConvertToRectRange(_documentOffsetConfig, _docSkeleton): NodePositionConvertToRectRange
Parameters
Parameter | Type |
---|---|
_documentOffsetConfig | IDocumentOffsetConfig |
_docSkeleton | DocumentSkeleton |
Returns
NodePositionConvertToRectRange
Defined in
packages/docs-ui/src/services/selection/convert-rect-range.ts:129 (opens in a new tab)
Methods
getNodePositionGroup()
getNodePositionGroup(anchorNodePosition, focusNodePosition): Nullable<IRectRangeNodePositions[]>
Parameters
Parameter | Type |
---|---|
anchorNodePosition | INodePosition |
focusNodePosition | INodePosition |
Returns
Nullable
<IRectRangeNodePositions
[]>
Defined in
packages/docs-ui/src/services/selection/convert-rect-range.ts:233 (opens in a new tab)
getRangePointData()
getRangePointData(startNodePosition, endNodePosition): undefined | {
endColumn: number;
endRow: number;
pointGroup: IPoint[][];
startColumn: number;
startRow: number;
tableId: string;
}
Parameters
Parameter | Type |
---|---|
startNodePosition | INodePosition |
endNodePosition | INodePosition |
Returns
undefined
| {
endColumn
: number
;
endRow
: number
;
pointGroup
: IPoint
[][];
startColumn
: number
;
startRow
: number
;
tableId
: string
;
}
Defined in
packages/docs-ui/src/services/selection/convert-rect-range.ts:137 (opens in a new tab)