Search
Diagram.getContentBounds Method
See Also
 





Returns the smallest rectangle that bounds all diagram items.

Namespace: MindFusion.Diagramming
File: Diagram.js

 Syntax

JavaScript  Copy Code

function getContentBounds ([onlyVisible, [repaintBounds]])

 Parameters

onlyVisible
Optional.

Boolean. Specifies whether only visible items should be considered.

repaintBounds
Optional.

Boolean. Specifies whether to consider the items' repaint bounds.

 Return Value

Rect. A Rect instance specifying the smallest rectangle that bounds all diagram items.

 See Also