ModeSwitcherState
import type { ModeSwitcherState } from 'pixi-silk/ui/modes';
The reactive state of a ModeSwitcher.
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
mode | Signal<string> | Current mode id. | ui/modes.ts:43 |
previous | Signal<string | null> | Mode before the current one, the target of a quick tap. | ui/modes.ts:45 |
recent | Signal<readonly string[]> | Mode ids, most recently used first. | ui/modes.ts:47 |