Skip to main content

addToCameraQueue

@combeenation/custom-code-utils


Variable: addToCameraQueue()

const addToCameraQueue: (target, isZoomCommand, transitionMS?, sdCtrlName?) => void = SdvCamera.addToCameraQueue

Adds a camera or zoom command to the camera queue but does not trigger the update yet.
This function can be used to accumulate various camera commands before executing the camera update.
=> Use processCameraQueue for executing the accumulated camera commands.

Parameters

target

Camera position or zoom target

string | string[] | Box3 | CameraDefinition

isZoomCommand

boolean

Defines the type of camera queue entry (false: move camera, true: zoom camera)

transitionMS?

number

Duration of the movement in milliseconds

sdCtrlName?

string

If not configured, the first shapediver instance of the configurator is used

Returns

void