Zooms and scrolls the view to fit the specified document rectangle in the Diagram's visible area.
Namespace: MindFusion.DiagrammingFile: Diagram.js
function zoomToRect (rect)
A Rect instance specifying the viewport position and size.
Diagram MembersDiagram ClassMindFusion.Diagramming NamespacescrollTo MethodzoomToFit Method