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

@univerjs/engine-render v0.4.2Docs


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
endAbsoluteRefTypeAbsoluteRefType-submodules/univer/packages/core/src/sheets/typedef.ts:442 (opens in a new tab)
endColumnnumberThe end column (exclusive) of the range endColumnsubmodules/univer/packages/core/src/sheets/typedef.ts:419 (opens in a new tab)
endRownumberThe end row (exclusive) of the range endRowsubmodules/univer/packages/core/src/sheets/typedef.ts:405 (opens in a new tab)
endXnumber-submodules/univer/packages/core/src/sheets/typedef.ts:584 (opens in a new tab)
endYnumber-submodules/univer/packages/core/src/sheets/typedef.ts:585 (opens in a new tab)
rangeTypeRANGE_TYPE-submodules/univer/packages/core/src/sheets/typedef.ts:438 (opens in a new tab)
sheetIdstringId 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.submodules/univer/packages/core/src/sheets/typedef.ts:391 (opens in a new tab)
startAbsoluteRefTypeAbsoluteRefType-submodules/univer/packages/core/src/sheets/typedef.ts:440 (opens in a new tab)
startColumnnumberThe start column (inclusive) of the range startColumnsubmodules/univer/packages/core/src/sheets/typedef.ts:413 (opens in a new tab)
startRownumberThe start row (inclusive) of the range startRowsubmodules/univer/packages/core/src/sheets/typedef.ts:399 (opens in a new tab)
startXnumber-submodules/univer/packages/core/src/sheets/typedef.ts:582 (opens in a new tab)
startYnumber-submodules/univer/packages/core/src/sheets/typedef.ts:583 (opens in a new tab)
unitIdstringId 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.submodules/univer/packages/core/src/sheets/typedef.ts:385 (opens in a new tab)

Defined in

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


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