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
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
cellOverGridPosition | ICellOverGridPosition |
width | number |
height | number |
selectionRenderService | ISheetSelectionRenderService |
sheetSkeletonManagerService | SheetSkeletonManagerService |
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;
}