API Reference
@univerjs
@univerjs/sheets
functions
Convertprimarywithcoordtoprimary

@univerjs/sheets v0.4.2Docs


Function: convertPrimaryWithCoordToPrimary()

function convertPrimaryWithCoordToPrimary(primaryWithCoord): {
  actualColumn: number;
  actualRow: number;
  endColumn: number;
  endRow: number;
  isMerged: boolean;
  isMergedMainCell: boolean;
  startColumn: number;
  startRow: number;
}

Parameters

ParameterType
primaryWithCoordISelectionCellWithMergeInfo

Returns

{
  actualColumn: number;
  actualRow: number;
  endColumn: number;
  endRow: number;
  isMerged: boolean;
  isMergedMainCell: boolean;
  startColumn: number;
  startRow: number;
}
NameTypeDefined in
actualColumnnumberpackages/sheets/src/basics/selection.ts:225 (opens in a new tab)
actualRownumberpackages/sheets/src/basics/selection.ts:224 (opens in a new tab)
endColumnnumberpackages/sheets/src/basics/selection.ts:231 (opens in a new tab)
endRownumberpackages/sheets/src/basics/selection.ts:230 (opens in a new tab)
isMergedbooleanpackages/sheets/src/basics/selection.ts:226 (opens in a new tab)
isMergedMainCellbooleanpackages/sheets/src/basics/selection.ts:227 (opens in a new tab)
startColumnnumberpackages/sheets/src/basics/selection.ts:229 (opens in a new tab)
startRownumberpackages/sheets/src/basics/selection.ts:228 (opens in a new tab)

Defined in

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


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