@univerjs/sheets v0.5.0-beta.1 • Docs
Function: getPrimaryForRange()
function getPrimaryForRange(range, worksheet): ISelectionCell
Get the default primary cell (the most top-left cell) of a range.
Parameters
Parameter | Type |
---|---|
range | IRange |
worksheet | Worksheet |
Returns
Defined in
submodules/univer/packages/sheets/src/commands/commands/utils/selection-utils.ts:128