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