Skip to content
pixi-silk
GitHub repository
Interface

SimulatedViewportOptions

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

Options of SimulatedViewport.

Properties#

PropertyTypeDescriptionDefined in
areaViewportRectThe area to show the device in, in the parent’s space.ui/layout/simulate.ts:18
bezel?numberBezel 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?numberSpace kept around the device inside the area, parent units. Default 16.ui/layout/simulate.ts:22