configureGizmo
configureGizmo
Signature
configureGizmo(options: GizmoOptions): Promise<GizmoState>Parameters
Parameter
Type
Required
Description
GizmoOptions
type GizmoOptions = {
enabled?: boolean; // Show/hide the gizmo
advancedMode?: boolean; // Show plane handles (TXY, TYZ, TZX, SXY, SYZ, SZX)
localSpace?: boolean; // Use local orientation instead of world
snap?: {
enabled?: boolean; // Master snap toggle
grid?: boolean; // Grid snapping for translation
angle?: boolean; // Angle snapping for rotation
gridResolution?: number; // Grid size in scene units (e.g., 0.5)
angleParam?: number; // Angle increment in degrees (e.g., 15)
toFace?: boolean; // Snap to faces of other objects
};
handles?: GizmoHandleOptions; // Per-handle visibility controls
};GizmoHandleOptions
GizmoState
Returns
Examples
Last updated