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


Function: mergeInfoOffset()

function mergeInfoOffset(
   mergeInfo, 
   offsetX, 
   offsetY): {
  endAbsoluteRefType: AbsoluteRefType;
  endColumn: number;
  endRow: number;
  endX: number;
  endY: number;
  rangeType: RANGE_TYPE;
  sheetId: string;
  startAbsoluteRefType: AbsoluteRefType;
  startColumn: number;
  startRow: number;
  startX: number;
  startY: number;
  unitId: string;
}

Parameters

ParameterType
mergeInfoIRangeWithCoord
offsetXnumber
offsetYnumber

Returns

{
  endAbsoluteRefType: AbsoluteRefType;
  endColumn: number;
  endRow: number;
  endX: number;
  endY: number;
  rangeType: RANGE_TYPE;
  sheetId: string;
  startAbsoluteRefType: AbsoluteRefType;
  startColumn: number;
  startRow: number;
  startX: number;
  startY: number;
  unitId: string;
}
NameTypeDescriptionDefined in
endAbsoluteRefType?AbsoluteRefType-packages/api/tmp/univer-pro/submodules/univer/packages/core/src/sheets/typedef.ts:442
endColumnnumberThe end column (exclusive) of the range endColumnpackages/api/tmp/univer-pro/submodules/univer/packages/core/src/sheets/typedef.ts:419
endRownumberThe end row (exclusive) of the range endRowpackages/api/tmp/univer-pro/submodules/univer/packages/core/src/sheets/typedef.ts:405
endXnumber-packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/tools.ts:642
endYnumber-packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/tools.ts:640
rangeType?RANGE_TYPE-packages/api/tmp/univer-pro/submodules/univer/packages/core/src/sheets/typedef.ts:438
sheetId?stringId of the Worksheet the range belongs to. When this field is not defined, it should be considered as the range in the currently activated worksheet.packages/api/tmp/univer-pro/submodules/univer/packages/core/src/sheets/typedef.ts:391
startAbsoluteRefType?AbsoluteRefType-packages/api/tmp/univer-pro/submodules/univer/packages/core/src/sheets/typedef.ts:440
startColumnnumberThe start column (inclusive) of the range startColumnpackages/api/tmp/univer-pro/submodules/univer/packages/core/src/sheets/typedef.ts:413
startRownumberThe start row (inclusive) of the range startRowpackages/api/tmp/univer-pro/submodules/univer/packages/core/src/sheets/typedef.ts:399
startXnumber-packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/tools.ts:641
startYnumber-packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/tools.ts:639
unitId?stringId of the Workbook the range belongs to. When this field is not defined, it should be considered as the range in the currently activated worksheet.packages/api/tmp/univer-pro/submodules/univer/packages/core/src/sheets/typedef.ts:385

Defined in

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