@unikue/ts-lang-utils
    Preparing search index...

    Function downloadCanvasElement

    • Popup a download dialog by creating a fake download link, as image format

      Parameters

      • Optionalelement: null | HTMLElement

        The element to download

      • OptionalfileName: string

        The default file name to save, when popup the download dialog

      • imageType: string = 'image/png'

        A string indicating the image format. The default type is image/png

      • imageQuality: number = 0.8

        A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support lossy compression (such as image/jpeg or image/webp)

      Returns void