Breakpoint
import type { Breakpoint } from 'pixi-silk/ui/layout';
A named layout record that applies when when returns true for the window size.
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
data | LayoutData | The record to apply. Missing values default as in landscape. | ui/layout/smart-container.ts:53 |
name | string | Reported by SmartContainer.breakpoint while this record is active. | ui/layout/smart-container.ts:49 |
when | (width: number, height: number) => boolean | Tested in order with the full window size. The first match wins. | ui/layout/smart-container.ts:51 |