Sprotty
Toggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

Function.Get Absolute Client Bounds

sprotty / getAbsoluteClientBounds

Function: getAbsoluteClientBounds()

getAbsoluteClientBounds(element, domHelper, viewerOptions): Bounds

Defined in: packages/sprotty/src/features/bounds/model.ts:128

Returns the “client-absolute” bounds of the specified element.

The client-absolute bounds are relative to the entire browser page.

Parameters

element

SModelElementImpl

The element to get the bounds for.

domHelper

DOMHelper

The dom helper to obtain the SVG element’s id.

viewerOptions

ViewerOptions

The viewer options to obtain sprotty’s container div id.

Returns

Bounds