FitOptions
pixi-wheels / index / FitOptions
Interface: FitOptions
Defined in: utils/fit.ts:20
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
max? | number | Upper bound for the scale. Default 1: content shrinks to fit and is never enlarged, so a label authored at the right size stays crisp. Pass Infinity to also grow small content into the room it has. | utils/fit.ts:28 |
mode? | FitMode | How the content meets the box. Default 'contain'. | utils/fit.ts:22 |
padding? | number | Fraction of the box kept free on each side, 0 to 0.49. Default 0. | utils/fit.ts:30 |