Skip to content
pixi-silk
GitHub repository
Interface

SelectionState

import type { SelectionState } from 'pixi-silk/selection';

The signals of a Selection.

Type Parameters#

Type Parameter
T

Properties#

PropertyTypeDescriptionDefined in
hoveredSignal<T | null>The item under the pointer. Set it from your pointer handlers.selection.ts:40
itemsReadSignal<readonly T[]>Selected items, in the order they were picked.selection.ts:36
primaryReadSignal<T | null>The item the gizmo and the inspector work on: the last one picked, or the one passed to focus().selection.ts:38