MCPcopy
hub / github.com/methodofaction/Method-Draw / openImage

Function openImage

src/js/Import.js:90–102  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

88 }
89
90 function openImage(e){
91 $('#menu_bar').removeClass('active')
92 const f = this;
93 if(f.files.length === 1) {
94 svgCanvas.clear();
95 var reader = new FileReader();
96 reader.onloadend = function(e) {
97 loadSvgString(e.target.result);
98 editor.canvas.update(true);
99 };
100 reader.readAsText(f.files[0]);
101 }
102 }
103
104 function onDragEnter(e) {
105 e.stopPropagation();

Callers

nothing calls this directly

Calls 2

$Function · 0.85
loadSvgStringFunction · 0.70

Tested by

no test coverage detected