@univerjs/docs-ui v0.5.0-beta.1 • Docs
Class: NodePositionConvertToRectRange
Constructors
new NodePositionConvertToRectRange()
new NodePositionConvertToRectRange(_documentOffsetConfig, _docSkeleton): NodePositionConvertToRectRange
Parameters
Parameter | Type |
---|---|
_documentOffsetConfig | IDocumentOffsetConfig |
_docSkeleton | DocumentSkeleton |
Returns
NodePositionConvertToRectRange
Defined in
submodules/univer/packages/docs-ui/src/services/selection/convert-rect-range.ts:129
Methods
getNodePositionGroup()
getNodePositionGroup(anchorNodePosition, focusNodePosition): Nullable<IRectRangeNodePositions[]>
Parameters
Parameter | Type |
---|---|
anchorNodePosition | INodePosition |
focusNodePosition | INodePosition |
Returns
Nullable
<IRectRangeNodePositions
[]>
Defined in
submodules/univer/packages/docs-ui/src/services/selection/convert-rect-range.ts:234
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
submodules/univer/packages/docs-ui/src/services/selection/convert-rect-range.ts:137