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

Interface. Set Viewport Action

sprotty-protocol / SetViewportAction

Interface: SetViewportAction

Defined in: actions.ts:564

Directly set the diagram viewport to the given scroll and zoom values. The ID of the viewport element to manipulate must be given with the action (usually it is the root element’s ID).

Extends

Properties

animate

animate: boolean

Defined in: actions.ts:568


elementId

elementId: string

Defined in: actions.ts:566


kind

kind: "viewport"

Defined in: actions.ts:565

Overrides

Action.kind


newViewport

newViewport: Viewport

Defined in: actions.ts:567