UI Functions
setGestures
Configures which user gestures are enabled, including translation, rotation, and scaling.
Name
Type
Description
Required/Optional
Default
params
Object
Object containing gesture settings.
Required
params.modelId
String
ID of the tracker to which the gestures should be applied.
Required
params.gestures.enableTranslate
Boolean
Enables or disables translation gestures.
Optional
true
params.gestures.enableRotate
Boolean
Enables or disables rotation gestures.
Optional
true
params.gestures.enableScale
Boolean
Enables or disables scaling gestures.
Optional
true
successCallback
Function
Called when the operation completes successfully.
Optional
errorCallback
Function
Called when the operation fails.
Optional
resetGestureTransforms
Name
Type
Description
Required/Optional
successCallback
Function
Called when the operation completes successfully.
Optional
errorCallback
Function
Called when the operation fails.
Optional
* 
This function only affects gesture-based transforms on the Spatial Target that were enabled via setGestures.
Transforms applied through other API calls (for example, programmatic positioning or scaling) remain unchanged.
Was this helpful?