Skip to content

findScaleToFit

findScaleToFit(source, destination): number

Parameters

source: TSize

natural unscaled size of the object

destination: TSize

natural unscaled size of the object

Returns

number

scale factor to apply to source to fit into destination

Defined in

src/util/misc/findScaleTo.ts:11