API Reference
@univerjs
@univerjs/engine-render
functions
Getoffsetrectfordom

@univerjs/engine-render v0.4.2Docs


Function: getOffsetRectForDom()

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

Parameters

ParameterType
eleHTMLElement

Returns

{
  left: number;
  top: number;
}
NameTypeDefined in
leftnumbersubmodules/univer/packages/engine-render/src/basics/position.ts:35 (opens in a new tab)
topnumbersubmodules/univer/packages/engine-render/src/basics/position.ts:34 (opens in a new tab)

Defined in

submodules/univer/packages/engine-render/src/basics/position.ts:20 (opens in a new tab)


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