@univerjs/engine-render v0.5.0-beta.1Docs


Function: getOffsetRectForDom()

function getOffsetRectForDom(ele): {
  left: number;
  top: number;
}

Parameters

ParameterType
eleHTMLElement

Returns

{
  left: number;
  top: number;
}
NameTypeDefined in
leftnumberpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/position.ts:35
topnumberpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/position.ts:34

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/position.ts:20