@univerjs/docs-ui v0.5.0-beta.1 • Docs
Class: NodePositionConvertToCursor
Constructors
new NodePositionConvertToCursor()
new NodePositionConvertToCursor(_documentOffsetConfig, _docSkeleton): NodePositionConvertToCursor
Parameters
Parameter | Type |
---|---|
_documentOffsetConfig | IDocumentOffsetConfig |
_docSkeleton | DocumentSkeleton |
Returns
Defined in
submodules/univer/packages/docs-ui/src/services/selection/convert-text-range.ts:222
Methods
getRangePointData()
getRangePointData(startOrigin, endOrigin): {
borderBoxPointGroup: IPoint[][];
contentBoxPointGroup: IPoint[][];
cursorList: ITextRange[];
}
Parameters
Parameter | Type |
---|---|
startOrigin | Nullable <INodePosition > |
endOrigin | Nullable <INodePosition > |
Returns
{
borderBoxPointGroup: IPoint[][];
contentBoxPointGroup: IPoint[][];
cursorList: ITextRange[];
}
Name | Type | Defined in |
---|---|---|
borderBoxPointGroup | IPoint [][] | submodules/univer/packages/docs-ui/src/services/selection/convert-text-range.ts:237 |
contentBoxPointGroup | IPoint [][] | submodules/univer/packages/docs-ui/src/services/selection/convert-text-range.ts:238 |
cursorList | ITextRange [] | submodules/univer/packages/docs-ui/src/services/selection/convert-text-range.ts:239 |
Defined in
submodules/univer/packages/docs-ui/src/services/selection/convert-text-range.ts:230