MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / downloadSvg

Function downloadSvg

ui/src/lib/export-image.ts:78–80  ·  view source on GitHub ↗
(svg: string, filename: string)

Source from the content-addressed store, hash-verified

76}
77
78export function downloadSvg(svg: string, filename: string): void {
79 downloadBlob(new Blob([svg], { type: 'image/svg+xml;charset=utf-8' }), filename);
80}
81
82/**
83 * Put a PNG on the clipboard, falling back to a download.

Callers

nothing calls this directly

Calls 1

downloadBlobFunction · 0.85

Tested by

no test coverage detected