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

Function.Get Model Bounds

sprotty / getModelBounds

Function: getModelBounds()

getModelBounds(model): undefined | Bounds

Defined in: packages/sprotty/src/features/projection/model.ts:108

Determine the total bounds of a model; this takes the viewport into consideration so it can be shown in the projections.

Parameters

model

SModelRootImpl & Viewport

Returns

undefined | Bounds