mode (setter)

Returns the current mode of the control.

Signatures

  •   GUIControls.TransformGizmo.mode

Details

The setter accessor that sets the current mode of the control. The mode determines which gizmo component ('translate' | 'rotate' | 'scale') is currently active.

Remark

Note that setting the mode will cause the redraw of the page. However, triggering default key events will change the currently set mode. It is therefore advised to use this setter either after the initialization of the control or in combination with custom key handlers. In the latter case, the default key handlers should be removed beforehand using ref_removeKeyListeners.

Example

 GUIControls.TransformGizmo.mode = 'rotate';
 

Return value

of type 'translate' | 'rotate' | 'scale'