Skip to content

fitScaleTo

fitScaleTo(size, maxSize, maxScale): number[]

Return scale-downed size with scale fit inside the given maximum size

Parameters

size: number[]

maxSize: number[]

maxScale: number= 1

Returns

number[]

[scaled-width, scaled-height, scale]

Source

graphics/geometry.ts:357