Search
DiagramView.viewport Property
See Also
 





Returns the visible portion of the diagram area.

Namespace: MindFusion.Diagramming
Package: DiagramView.js

 Syntax

JavaScript  Copy Code

get viewport() {}

 Property Value

Rect

A Rect instance specifying the viewport coordinates.

 Remarks

When the view's canvas element is placed inside a scrollable div element, this method returns what part of the diagram is currently visible within the div. The result is specified in the current measure unit.

 See Also