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

@univerjs/engine-render v0.4.2Docs


Function: getSizeForDom()

function getSizeForDom(dom): {
  bottom: number;
  height: number;
  left: number;
  right: number;
  top: number;
  width: number;
}

Parameters

ParameterType
domHTMLElement

Returns

{
  bottom: number;
  height: number;
  left: number;
  right: number;
  top: number;
  width: number;
}
NameTypeDefined in
bottomnumbersubmodules/univer/packages/engine-render/src/basics/tools.ts:763 (opens in a new tab)
heightnumbersubmodules/univer/packages/engine-render/src/basics/tools.ts:765 (opens in a new tab)
leftnumbersubmodules/univer/packages/engine-render/src/basics/tools.ts:761 (opens in a new tab)
rightnumbersubmodules/univer/packages/engine-render/src/basics/tools.ts:762 (opens in a new tab)
topnumbersubmodules/univer/packages/engine-render/src/basics/tools.ts:760 (opens in a new tab)
widthnumbersubmodules/univer/packages/engine-render/src/basics/tools.ts:764 (opens in a new tab)

Defined in

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


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