Skip to content

viewport.controller

3 functions / 1 types

Index

FunctionDescription
activateDefaultAcquire default navigation of the selected camera, preserving its current pose.
getInspect the selected camera’s controller. An uncontrolled camera returns no controller.
releaseRelease the selected camera without activating another controller.
TypeDescription
ControllerInfoThe active controller and an acquisition identity suitable for a conditional release.

activateDefault

activateDefault(args?: { viewport?: string }, transactionId?: string): Promise<ViewportControllerControllerInfo>

Acquire default navigation of the selected camera, preserving its current pose.

Returns: The active controller and an acquisition identity suitable for a conditional release.

Returns Promise<ViewportControllerControllerInfo>.

viewport optional : string

Select exactly one camera by viewport label. Absent, exactly one camera must exist.

transactionId optional : string

get

get(args?: { viewport?: string }, transactionId?: string): Promise<ViewportControllerControllerInfo | undefined>

Inspect the selected camera’s controller. An uncontrolled camera returns no controller.

Returns Promise<ViewportControllerControllerInfo | undefined>.

viewport optional : string

Select exactly one camera by viewport label. Absent, exactly one camera must exist.

transactionId optional : string

release

release(args?: { ownership?: string; viewport?: string }, transactionId?: string): Promise<void>

Release the selected camera without activating another controller.

Returns Promise<void>.

ownership optional : string

When supplied, release only this acquisition. A stale acquisition fails.

viewport optional : string

Select exactly one camera by viewport label. Absent, exactly one camera must exist.

transactionId optional : string

ControllerInfo

The active controller and an acquisition identity suitable for a conditional release.

kind : string

The registered controller name, such as editor or geo.

ownership : string

Identifies this acquisition. It changes when another controller takes control.