API Reference
@univerjs
@univerjs/engine-render
functions
Getcellpositionbyindex

@univerjs/engine-render v0.4.2Docs


Function: getCellPositionByIndex()

function getCellPositionByIndex(
   row, 
   column, 
   rowHeightAccumulation, 
   columnWidthAccumulation): {
  endX: number;
  endY: number;
  startX: number;
  startY: number;
}

Parameters

ParameterType
rownumber
columnnumber
rowHeightAccumulationnumber[]
columnWidthAccumulationnumber[]

Returns

{
  endX: number;
  endY: number;
  startX: number;
  startY: number;
}
NameTypeDefined in
endXnumbersubmodules/univer/packages/engine-render/src/basics/tools.ts:522 (opens in a new tab)
endYnumbersubmodules/univer/packages/engine-render/src/basics/tools.ts:520 (opens in a new tab)
startXnumbersubmodules/univer/packages/engine-render/src/basics/tools.ts:521 (opens in a new tab)
startYnumbersubmodules/univer/packages/engine-render/src/basics/tools.ts:519 (opens in a new tab)

Defined in

submodules/univer/packages/engine-render/src/basics/tools.ts:495 (opens in a new tab)


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