API Reference
@univerjs
@univerjs/sheets
functions
Convertselectiondatatorange

@univerjs/sheets v0.4.2Docs


Function: convertSelectionDataToRange()

function convertSelectionDataToRange(selectionWithCoordAndStyle): ISelectionWithStyle

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
selectionWithCoordAndStyleISelectionWithCoordAndStyleSelection with coordinates and style

Returns

ISelectionWithStyle

Defined in

packages/sheets/src/basics/selection.ts:197 (opens in a new tab)


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