Skip to content
pixi-silk
GitHub repository
Interface

Placement

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

Where placeBox put a design box: position and scale in the window’s space, and the box size.

Properties#

PropertyTypeDescriptionDefined in
heightnumber-ui/layout/smart-container.ts:147
scaleXnumberWindow units per design unit, horizontally.ui/layout/smart-container.ts:142
scaleYnumberWindow units per design unit, vertically.ui/layout/smart-container.ts:144
widthnumberThe design box after extend, in design units.ui/layout/smart-container.ts:146
xnumberLeft of the design box, window units.ui/layout/smart-container.ts:138
ynumberTop of the design box, window units.ui/layout/smart-container.ts:140