@univerjs/engine-render v0.5.0-beta.1Docs


Function: clampRange()

function clampRange(
   range, 
   maxRow, 
   maxColumn): {
  endColumn: number;
  endRow: number;
  startColumn: number;
  startRow: number;
}

Parameters

ParameterType
rangeIRange
maxRownumber
maxColumnnumber

Returns

{
  endColumn: number;
  endRow: number;
  startColumn: number;
  startRow: number;
}
NameTypeDefined in
endColumnnumberpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/tools.ts:778
endRownumberpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/tools.ts:776
startColumnnumberpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/tools.ts:777
startRownumberpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/tools.ts:775

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/tools.ts:773