@univerjssheetsindexfunctionsConvertselectiondatatorange

@univerjs/sheets v0.5.4


Function: convertSelectionDataToRange()

function convertSelectionDataToRange(selectionWithCoordAndStyle): ISelectionWithStyle

Defined in: submodules/univer/packages/sheets/src/basics/selection.ts:177

Process a selection with coordinates and style, and extract the coordinate information, because the render needs coordinates when drawing. Since the selection.manager.service is unrelated to the coordinates, it only accepts data of type ISelectionWithStyle, so a conversion is necessary.

Parameters

ParameterTypeDescription
selectionWithCoordAndStyleISelectionWithCoordSelection with coordinates and style

Returns

ISelectionWithStyle