MCPcopy Index your code
hub / github.com/methodofaction/Method-Draw / importSvgFile

Function importSvgFile

src/js/Image.js:51–56  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

49 }
50
51 function importSvgFile(file){
52 reader.onloadend = function(e) {
53 importSvg(e.target.result);
54 };
55 reader.readAsText(file);
56 }
57
58 function importSvg(string) {
59 svgCanvas.importSvgString(e.target.result, true);

Callers

nothing calls this directly

Calls 1

importSvgFunction · 0.85

Tested by

no test coverage detected