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

Interface. Center Action

sprotty-protocol / CenterAction

Interface: CenterAction

Defined in: actions.ts:511

Triggered when the user requests the viewer to center on the current model. The resulting CenterCommand changes the scroll setting of the viewport accordingly. It also resets the zoom to its default if retainZoom is false. 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:514


elementIds

elementIds: string[]

Defined in: actions.ts:513


kind

kind: "center"

Defined in: actions.ts:512

Overrides

Action.kind


retainZoom

retainZoom: boolean

Defined in: actions.ts:515


zoomScale?

optional zoomScale: number

Defined in: actions.ts:516