pixi-wheels

FitMode

pixi-wheels


pixi-wheels / index / FitMode

Type Alias: FitMode

type FitMode = "contain" | "cover" | "width" | "height" | "none";

Defined in: utils/fit.ts:13

How content meets the box it is fitted into.

  • 'contain': the whole content stays inside the box (default).
  • 'cover': the content fills the box, overflowing on one axis.
  • 'width' / 'height': match one axis only.
  • 'none': leave the content at scale 1.