Function: restoreViewport()
restoreViewport(
canvas):Command
Defined in: diagram/commands.ts:222
Command to restore canvas viewport position and scale.
Example:
const restoreScale = restoreViewport(canvas);
canvas.zoomToFit();
model.registerToUndo(restoreScale);
Parameters
| Parameter | Type |
|---|---|
|