Sprotty
Toggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

Interface. Fit to Screen Action

sprotty-protocol / FitToScreenAction

Interface: FitToScreenAction

Defined in: actions.ts:538

Triggered when the user requests the viewer to fit its content to the available drawing area. The resulting FitToScreenCommand changes the zoom and scroll settings of the viewport so the model can be shown completely. This action can also be sent from the model source to the client in order to perform such a viewport change programmatically.

Extends

Properties

animate

animate: boolean

Defined in: actions.ts:543


elementIds

elementIds: string[]

Defined in: actions.ts:540


kind

kind: "fit"

Defined in: actions.ts:539

Overrides

Action.kind


maxZoom?

optional maxZoom: number

Defined in: actions.ts:542


padding?

optional padding: number

Defined in: actions.ts:541