@univerjsdocs-uiindexfunctionsConvertpositionstorectranges

@univerjs/docs-ui v0.5.0-beta.1Docs


Function: convertPositionsToRectRanges()

function convertPositionsToRectRanges(
   scene, 
   document, 
   docSkeleton, 
   anchorNodePosition, 
   focusNodePosition, 
   style, 
   segmentId, 
   segmentPage): RectRange[]

Parameters

ParameterTypeDefault value
sceneSceneundefined
documentDocumentsundefined
docSkeletonDocumentSkeletonundefined
anchorNodePositionINodePositionundefined
focusNodePositionINodePositionundefined
styleITextSelectionStyleNORMAL_TEXT_SELECTION_PLUGIN_STYLE
segmentIdstring''
segmentPagenumber-1

Returns

RectRange[]

Defined in

submodules/univer/packages/docs-ui/src/services/selection/rect-range.ts:27