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

Bounds. Function.combine

sprotty-protocol / Bounds / combine

Function: combine()

combine(b0, b1): Bounds

Defined in: utils/geometry.ts:255

Combines the bounds of two objects into one, so that the new bounds are the minimum bounds that covers both of the original bounds.

Parameters

b0

Bounds

First bounds object

b1

Bounds

Second bounds object

Returns

Bounds

The combined bounds