Skip to content
pixi-silk
GitHub repository
Interface

PanelViewport

import type { PanelViewport } from 'pixi-silk/ui/panel';

The screen a panel docks in: numbers, or signals such as camera.state.width and height.

Properties#

PropertyTypeDescriptionDefined in
height| number | ReadSignal<number>Screen height in the panel’s parent units. A signal re-docks the panel when it changes.ui/panels/Panel.ts:45
width| number | ReadSignal<number>Screen width in the panel’s parent units. A signal re-docks the panel when it changes.ui/panels/Panel.ts:43