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

Function.Apply Bounds

sprotty-protocol / applyBounds

Function: applyBounds()

applyBounds(root, action): void

Defined in: utils/model-utils.ts:32

Apply the computed bounds to the given model. This ensures that the model has complete information about positions and sizes derived from its actual rendering in the frontend.

Parameters

root

SModelRoot

action

ComputedBoundsAction

Returns

void