SimulatedViewportOptions
import type { SimulatedViewportOptions } from 'pixi-silk/ui/layout';
Options of SimulatedViewport.
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
area | ViewportRect | The area to show the device in, in the parent’s space. | ui/layout/simulate.ts:18 |
bezel? | number | Bezel colour, 0xRRGGBB. Default 0x2c2c2e. | ui/layout/simulate.ts:24 |
device? | string | readonly [number, number] | The window size to simulate: a size or a DEVICES name. Default phone portrait. | ui/layout/simulate.ts:20 |
margin? | number | Space kept around the device inside the area, parent units. Default 16. | ui/layout/simulate.ts:22 |