Zooms and scrolls the view to fit the specified document rectangle in the Diagram's visible area.
Namespace: MindFusion.Diagramming
Package: Diagram.js
JavaScript Copy Code |
---|
function zoomToRect (rect) |
A Rect instance specifying the viewport position and size.