pixi-wheels

FitOptions

pixi-wheels


pixi-wheels / index / FitOptions

Interface: FitOptions

Defined in: utils/fit.ts:20

Properties#

PropertyTypeDescriptionDefined in
max?numberUpper 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?FitModeHow the content meets the box. Default 'contain'.utils/fit.ts:22
padding?numberFraction of the box kept free on each side, 0 to 0.49. Default 0.utils/fit.ts:30