Skip to content
pixi-silk
GitHub repository
Interface

GizmoState

import type { GizmoState } from 'pixi-silk/ui/gizmo';

The reactive state of a TransformGizmo.

Properties#

PropertyTypeDescriptionDefined in
activeSignal<GizmoHandle | null>Handle being dragged.ui/gizmo.ts:96
draggingSignal<boolean>True while any handle is dragged.ui/gizmo.ts:98
hoverSignal<GizmoHandle | null>Handle under the pointer.ui/gizmo.ts:94
modeSignal<GizmoMode>Tools shown. Write it to switch tools.ui/gizmo.ts:90
snappingSignal<boolean>True while the current drag snaps to steps.ui/gizmo.ts:100
spaceSignal<GizmoSpace>Axes of the move handles. Write it to switch.ui/gizmo.ts:92