@fabwcie/free-drawing / utils/drawingFile / saveFile
Function: saveFile()
saveFile(
name,content,type?):Promise<void>
Defined in: packages/free-drawing/src/utils/drawingFile.ts:147
Save content in a file: browser save dialog when available (Chromium), else download
Parameters
name
string
File name with extension
content
string | Blob
file content: text or binary data (exported image)
type?
string = 'application/json'
Mime type of content
Returns
Promise<void>
Throws
AbortError when dialog is canceled