GizmoState
import type { GizmoState } from 'pixi-silk/ui/gizmo';
The reactive state of a TransformGizmo.
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
active | Signal<GizmoHandle | null> | Handle being dragged. | ui/gizmo.ts:96 |
dragging | Signal<boolean> | True while any handle is dragged. | ui/gizmo.ts:98 |
hover | Signal<GizmoHandle | null> | Handle under the pointer. | ui/gizmo.ts:94 |
mode | Signal<GizmoMode> | Tools shown. Write it to switch tools. | ui/gizmo.ts:90 |
snapping | Signal<boolean> | True while the current drag snaps to steps. | ui/gizmo.ts:100 |
space | Signal<GizmoSpace> | Axes of the move handles. Write it to switch. | ui/gizmo.ts:92 |