API Reference
@univerjs
@univerjs/docs-ui
functions
Convertpositionstorectranges

@univerjs/docs-ui v0.4.2Docs


Function: convertPositionsToRectRanges()

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

Parameters

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

Returns

RectRange[]

Defined in

packages/docs-ui/src/services/selection/rect-range.ts:27 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.