/** * General canvas commands for zooming and filtering used by the buttons of the diagram's user interface. * @public */ export interface DiagramButtons { /** * Increase the zoom level of the diagram by this component's zoom rate. * @public */ zoomIn(): void; /** * Decrease the zoom level of the diagram by this component's zoom rate. * @public */ zoomOut(): void; /** * Center the view of the diagram. * @public */ center(): void; /** * Apply the diagram's current layout if applicable. * @public */ layout(): void; /** * Change the current priority threshold of the canvas, hide any nodes with a priority below the threshold and recalculate the diagram's layout. * @public */ filter(): void; /** * Undo the latest user change in the diagram. * @public */ undo(): void; /** * Redo the latest undone user change in the diagram. * @public */ redo(): void; }