Skip to content
pixi-silk
GitHub repository
Entry point

pixi-silk/ui/gizmo

TransformGizmo: move, rotate, scale and box handles.

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

Classes#

ClassDescription
TransformGizmoTransform handles for editors: move, rotate, scale and a bounding box with resize and rotate handles.

Interfaces#

InterfaceDescription
GizmoSnapSnap steps. Snapping is on while Shift is held, or always with enabled (then Shift turns it off).
GizmoStateThe reactive state of a TransformGizmo.
GizmoThemeColours of a TransformGizmo (any Pixi colour).
GizmoTransformPosition, rotation and scale of the target, in its parent’s space.
TransformGizmoOptionsOptions of TransformGizmo.

Type Aliases#

Type AliasDescription
GizmoHandleA grabbable part of the gizmo.
GizmoModeWhich tools the gizmo shows. universal combines move, rotate and scale.
GizmoSpaceAxes of move handles: the object’s own (local) or its parent’s (world).

Variables#

VariableDescription
GIZMO_THEMEDefault theme: red X, green Y, blue rotate and free move, white box handles, yellow while dragged.