@univerjs/docs-ui v0.4.2 • Docs
Class: NodePositionConvertToCursor
Constructors
new NodePositionConvertToCursor()
new NodePositionConvertToCursor(_documentOffsetConfig, _docSkeleton): NodePositionConvertToCursor
Parameters
Parameter | Type |
---|---|
_documentOffsetConfig | IDocumentOffsetConfig |
_docSkeleton | DocumentSkeleton |
Returns
Defined in
packages/docs-ui/src/services/selection/convert-text-range.ts:222 (opens in a new tab)
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 [][] | packages/docs-ui/src/services/selection/convert-text-range.ts:237 (opens in a new tab) |
contentBoxPointGroup | IPoint [][] | packages/docs-ui/src/services/selection/convert-text-range.ts:238 (opens in a new tab) |
cursorList | ITextRange [] | packages/docs-ui/src/services/selection/convert-text-range.ts:239 (opens in a new tab) |
Defined in
packages/docs-ui/src/services/selection/convert-text-range.ts:230 (opens in a new tab)