jpegasus
Globals / "services/scaleService"
▸ Const
determineScale(__namedParameters
: { height: number ; width: number }, __namedParameters
: { maxHeight: undefined | number ; maxWidth: undefined | number ; scaleImageBy: number }): number
Defined in services/scaleService.ts:5
Name | Type |
---|---|
__namedParameters |
{ height: number ; width: number } |
__namedParameters |
{ maxHeight: undefined | number ; maxWidth: undefined | number ; scaleImageBy: number } |
Returns: number
▸ Const
toCanvas(file
: File, options
: Options): Promise<HTMLCanvasElement>
Defined in services/scaleService.ts:19
Name | Type |
---|---|
file |
File |
options |
Options |
Returns: Promise<HTMLCanvasElement>