API Reference
@univerjs
@univerjs/sheets-ui
functions
Getcoordbyoffset

@univerjs/sheets-ui v0.4.2Docs


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
columnnumberpackages/sheets-ui/src/controllers/utils/component-tools.ts:140 (opens in a new tab)
endXnumberpackages/sheets-ui/src/controllers/utils/component-tools.ts:137 (opens in a new tab)
endYnumberpackages/sheets-ui/src/controllers/utils/component-tools.ts:138 (opens in a new tab)
rownumberpackages/sheets-ui/src/controllers/utils/component-tools.ts:139 (opens in a new tab)
startXnumberpackages/sheets-ui/src/controllers/utils/component-tools.ts:135 (opens in a new tab)
startYnumberpackages/sheets-ui/src/controllers/utils/component-tools.ts:136 (opens in a new tab)

Defined in

packages/sheets-ui/src/controllers/utils/component-tools.ts:103 (opens in a new tab)


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