Skip to content
pixi-silk
GitHub repository
Entry point

pixi-silk/selection

Selection store and bindOutline, bindGizmo, bindMeasure.

import { Selection, bindGizmo, bindMeasure, bindOutline } from 'pixi-silk/selection';

Classes#

ClassDescription
SelectionThe selected set of an editor, ordered by when each item was picked.

Interfaces#

InterfaceDescription
BindGizmoOptionsOptions of bindGizmo.
BindMeasureOptionsOptions of bindMeasure.
GizmoLikeWhat bindGizmo needs from a gizmo, such as TransformGizmo.
MeasureLikeWhat bindMeasure needs from a measure, such as Measure.
OutlineLikeWhat bindOutline needs from an outline, such as SelectionOutline.
SelectionChangeWhat one change did, as Selection.onChange reports it.
SelectionOptionsOptions of Selection.
SelectionStateThe signals of a Selection.

Type Aliases#

Type AliasDescription
SelectModeHow a pick changes the selection.

Functions#

FunctionDescription
bindGizmoAttaches gizmo to the primary item. Returns the function that stops following.
bindMeasureShows the primary item’s size and the distances to the hovered item with measure. Call the returned sync again when a condition of between changes (a modifier key). The returned stop stops following.
bindOutlineFrames the selection with outline. Pass a second outline to show the hovered item too, while it is not selected. Returns the function that stops following.