Enumeration: ToolbarRotateMode
Behaviour of the modular toolbar's quick-rotate action.
Controls whether (and how) the toolbar shows a quick-rotate button for a scene product, independently of the 3D rotation gizmo. Configured per scene product in Product Admin → Modular Settings → Rotation Gizmo.
Example
if (toolbarRotate === ToolbarRotateMode.OFF) {
hideQuickRotateButton();
}
Enumeration Members
LINKED
LINKED:
"LINKED"
Follows the rotation mode (default).
Hidden when rotation is RotationGizmoMode.DISABLED, steps by the
configured snapAngle for RotationGizmoMode.SNAP /
RotationGizmoMode.MAGNETIC, and by 45° for
RotationGizmoMode.FREE.
Example
// quick-rotate steps mirror the 3D rotation mode
{ toolbarRotate: ToolbarRotateMode.LINKED }
OFF
OFF:
"OFF"
Never shown.
The toolbar quick-rotate button is hidden regardless of the rotation mode.
Example
{ toolbarRotate: ToolbarRotateMode.OFF }
ON
ON:
"ON"
Always shown with its own step angle, even when 3D rotation is disabled.
Uses toolbarRotateAngle for its step, enabling toolbar-only rotation for
products whose 3D rotation gizmo is RotationGizmoMode.DISABLED.
Example
// toolbar-only rotation in 90° steps
{ toolbarRotate: ToolbarRotateMode.ON, toolbarRotateAngle: 90 }