scaleToFit()
pixi-wheels / index / scaleToFit
Function: scaleToFit()
function scaleToFit(
size: Size,
box: Size,
options?: FitOptions
): number;
Defined in: utils/fit.ts:34
The scale factor that fits size into box under options. Pure; no PixiJS objects.
Parameters#
| Parameter | Type |
|---|---|
size | Size |
box | Size |
options | FitOptions |
Returns#
number