Skip to content

Latest commit

 

History

History
46 lines (27 loc) · 1.29 KB

_services_scaleservice_.md

File metadata and controls

46 lines (27 loc) · 1.29 KB

jpegasus

Globals / "services/scaleService"

Module: "services/scaleService"

Index

Functions

Functions

determineScale

ConstdetermineScale(__namedParameters: { height: number ; width: number }, __namedParameters: { maxHeight: undefined | number ; maxWidth: undefined | number ; scaleImageBy: number }): number

Defined in services/scaleService.ts:5

Parameters:

Name Type
__namedParameters { height: number ; width: number }
__namedParameters { maxHeight: undefined | number ; maxWidth: undefined | number ; scaleImageBy: number }

Returns: number


toCanvas

ConsttoCanvas(file: File, options: Options): Promise<HTMLCanvasElement>

Defined in services/scaleService.ts:19

Parameters:

Name Type
file File
options Options

Returns: Promise<HTMLCanvasElement>