Skip to content
pixi-silk
GitHub repository
Interface

Breakpoint

import type { Breakpoint } from 'pixi-silk/ui/layout';

A named layout record that applies when when returns true for the window size.

Properties#

PropertyTypeDescriptionDefined in
dataLayoutDataThe record to apply. Missing values default as in landscape.ui/layout/smart-container.ts:53
namestringReported by SmartContainer.breakpoint while this record is active.ui/layout/smart-container.ts:49
when(width: number, height: number) => booleanTested in order with the full window size. The first match wins.ui/layout/smart-container.ts:51