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

Class. Hidden Bounds Updater

root

root: undefined | SModelRootImpl

Defined in: packages/sprotty/src/features/bounds/hidden-bounds-updater.ts:58

Methods

decorate()

decorate(vnode, element): VNode

Defined in: packages/sprotty/src/features/bounds/hidden-bounds-updater.ts:60

Parameters

vnode

VNode

element

SModelElementImpl

Returns

VNode

Implementation of

IVNodePostprocessor.decorate


getBounds()

protected getBounds(elm, element): Bounds

Defined in: packages/sprotty/src/features/bounds/hidden-bounds-updater.ts:158

Compute the bounds of the given DOM element. Override this method to customize how the bounding box of a rendered view is determined.

In case your Sprotty model element contains children that are rendered outside of their parent, you can add the ATTR_BBOX_ELEMENT attribute to the SVG element that shall be used to compute the bounding box.

Parameters

elm

Node

element

SModelElementImpl & InternalBoundsAware

Returns

Bounds


getBoundsFromDOM()

protected getBoundsFromDOM(): void

Defined in: packages/sprotty/src/features/bounds/hidden-bounds-updater.ts:115

Returns

void


postUpdate()

postUpdate(cause?): void

Defined in: packages/sprotty/src/features/bounds/hidden-bounds-updater.ts:75

Parameters

cause?

Action

Returns

void

Implementation of

IVNodePostprocessor.postUpdate