Skip to content
pixi-silk
GitHub repository
Function

bindGizmo

import { bindGizmo } from 'pixi-silk/selection';
function bindGizmo<T>(
   selection: Selection<T>, 
   gizmo: GizmoLike<T>, 
   options?: BindGizmoOptions
): () => void;

Attaches gizmo to the primary item. Returns the function that stops following.

Type Parameters#

Type Parameter
T

Parameters#

ParameterType
selectionSelection<T>
gizmoGizmoLike<T>
optionsBindGizmoOptions

Returns#

() => void