Search
DrawingUtils.unionRects Method
See Also
 





Returns the smallest possible rectangle containing both of the specified rectangles.

Namespace: MindFusion.Drawing
Package: DrawingUtils.js

 Syntax

JavaScript  Copy Code

function unionRects (rect1, rect2)

 Parameters

rect1

Rect. The first rectangle.

rect2

Rect. The second rectangle.

 Return Value

Rect. A Rect instance that represents the union of the specified arguments.

 See Also