(e)
| 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(); |
nothing calls this directly
no test coverage detected