@univerjs/sheets v0.4.2 • 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
packages/sheets/src/commands/commands/utils/selection-utils.ts:128 (opens in a new tab)