ASP.NET Pack Programmer's Guide
Diagram.getViewport Method
See Also
 





Returns the visible portion of the diagram area.

Namespace: MindFusion.Diagramming
Package: Diagram.js

 Syntax

JavaScript  Copy Code

function getViewport ()

 Return Value

A Rect instance specifying the viewport coordinates.

 Remarks

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.

 See Also

Diagram Members
Diagram Class
MindFusion.Diagramming Namespace