@univerjssheets-uiindexfunctionsConvertpositioncelltosheetovergrid

@univerjs/sheets-ui v0.5.4


Function: convertPositionCellToSheetOverGrid()

function convertPositionCellToSheetOverGrid(
   unitId, 
   subUnitId, 
   cellOverGridPosition, 
   width, 
   height, 
   selectionRenderService, 
   sheetSkeletonManagerService): {
  sheetTransform: {
     from: {
        column: number;
        columnOffset: number;
        row: number;
        rowOffset: number;
       };
     to: {
        column: number;
        columnOffset: number;
        row: number;
        rowOffset: number;
       };
    };
  subUnitId: string;
  transform: {
     height: number;
     left: number;
     top: number;
     width: number;
    };
  unitId: string;
}

Defined in: submodules/univer/packages/sheets-ui/src/services/utils/drawing-position-util.ts:77

Parameters

ParameterType
unitIdstring
subUnitIdstring
cellOverGridPositionICellOverGridPosition
widthnumber
heightnumber
selectionRenderServiceISheetSelectionRenderService
sheetSkeletonManagerServiceSheetSkeletonManagerService

Returns

{
  sheetTransform: {
     from: {
        column: number;
        columnOffset: number;
        row: number;
        rowOffset: number;
       };
     to: {
        column: number;
        columnOffset: number;
        row: number;
        rowOffset: number;
       };
    };
  subUnitId: string;
  transform: {
     height: number;
     left: number;
     top: number;
     width: number;
    };
  unitId: string;
}
NameTypeDefault valueDefined in
sheetTransform{ from: { column: number; columnOffset: number; row: number; rowOffset: number; }; to: { column: number; columnOffset: number; row: number; rowOffset: number; }; }-submodules/univer/packages/sheets-ui/src/services/utils/drawing-position-util.ts:114
sheetTransform.from{ column: number; columnOffset: number; row: number; rowOffset: number; }-submodules/univer/packages/sheets-ui/src/services/utils/drawing-position-util.ts:115
sheetTransform.from.columnnumberfromColumnsubmodules/univer/packages/sheets-ui/src/services/utils/drawing-position-util.ts:116
sheetTransform.from.columnOffsetnumberfromColumnOffsetsubmodules/univer/packages/sheets-ui/src/services/utils/drawing-position-util.ts:117
sheetTransform.from.rownumberfromRowsubmodules/univer/packages/sheets-ui/src/services/utils/drawing-position-util.ts:118
sheetTransform.from.rowOffsetnumberfromRowOffsetsubmodules/univer/packages/sheets-ui/src/services/utils/drawing-position-util.ts:119
sheetTransform.to{ column: number; columnOffset: number; row: number; rowOffset: number; }-submodules/univer/packages/sheets-ui/src/services/utils/drawing-position-util.ts:121
sheetTransform.to.columnnumberendSelectionCell.actualColumnsubmodules/univer/packages/sheets-ui/src/services/utils/drawing-position-util.ts:105
sheetTransform.to.columnOffsetnumber-submodules/univer/packages/sheets-ui/src/services/utils/drawing-position-util.ts:106
sheetTransform.to.rownumberendSelectionCell.actualRowsubmodules/univer/packages/sheets-ui/src/services/utils/drawing-position-util.ts:107
sheetTransform.to.rowOffsetnumber-submodules/univer/packages/sheets-ui/src/services/utils/drawing-position-util.ts:108
subUnitIdstring-submodules/univer/packages/sheets-ui/src/services/utils/drawing-position-util.ts:113
transform{ height: number; left: number; top: number; width: number; }-submodules/univer/packages/sheets-ui/src/services/utils/drawing-position-util.ts:123
transform.heightnumber-submodules/univer/packages/sheets-ui/src/services/utils/drawing-position-util.ts:127
transform.leftnumber-submodules/univer/packages/sheets-ui/src/services/utils/drawing-position-util.ts:124
transform.topnumber-submodules/univer/packages/sheets-ui/src/services/utils/drawing-position-util.ts:125
transform.widthnumber-submodules/univer/packages/sheets-ui/src/services/utils/drawing-position-util.ts:126
unitIdstring-submodules/univer/packages/sheets-ui/src/services/utils/drawing-position-util.ts:112