Returns the visible portion of the diagram area. Namespace: MindFusion.Diagramming
|
JavaScript
![]() |
---|
function getViewport () |
A Rect instance specifying the viewport coordinates.
When the Diagram 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.