@univerjs/docs-ui v0.4.2 • Docs
Function: convertPositionsToRectRanges()
function convertPositionsToRectRanges(
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:27 (opens in a new tab)