@univerjs/sheets-ui v0.5.0-beta.1Docs


Function: getCoordByOffset()

function getCoordByOffset(
   evtOffsetX, 
   evtOffsetY, 
   scene, 
   skeleton, 
   viewport?, 
   closeFirst?): {
  column: number;
  endX: number;
  endY: number;
  row: number;
  startX: number;
  startY: number;
}

Parameters

ParameterType
evtOffsetXnumber
evtOffsetYnumber
sceneScene
skeletonSpreadsheetSkeleton
viewport?Viewport
closeFirst?boolean

Returns

{
  column: number;
  endX: number;
  endY: number;
  row: number;
  startX: number;
  startY: number;
}
NameTypeDefined in
columnnumbersubmodules/univer/packages/sheets-ui/src/controllers/utils/component-tools.ts:140
endXnumbersubmodules/univer/packages/sheets-ui/src/controllers/utils/component-tools.ts:137
endYnumbersubmodules/univer/packages/sheets-ui/src/controllers/utils/component-tools.ts:138
rownumbersubmodules/univer/packages/sheets-ui/src/controllers/utils/component-tools.ts:139
startXnumbersubmodules/univer/packages/sheets-ui/src/controllers/utils/component-tools.ts:135
startYnumbersubmodules/univer/packages/sheets-ui/src/controllers/utils/component-tools.ts:136

Defined in

submodules/univer/packages/sheets-ui/src/controllers/utils/component-tools.ts:103