Skip to content
Snippets Groups Projects

Resolve "export genomic context to svg or png"

Merged Remi PLANEL requested to merge export-genomic-context-to-svg-or-png into main
8 files
+ 162
20
Compare changes
  • Side-by-side
  • Inline
Files
8
+ 14
0
 
export function useDownloadBlob() {
 
function download(blob: MaybeRef<Blob>, filename: MaybeRef<string>) {
 
const toValueBlob = toValue(blob)
 
const toValueFilename = toValue(filename)
 
var a = document.createElement("a");
 
a.href = URL.createObjectURL(toValueBlob);
 
a.download = toValueFilename;
 
a.click();
 
URL.revokeObjectURL(a.href);
 
}
 
 
return { download }
 
 
}
 
\ No newline at end of file
Loading