|
@@ -29,7 +29,7 @@
|
29
|
29
|
var canvas = document.getElementById('canvas');
|
30
|
30
|
function downloadFile(evt) {
|
31
|
31
|
var styleNode = document.createElement("style");
|
32
|
|
- styleNode.innerHTML = "rect { fill:none; } path, line {fill: none;stroke-linecap: round; stroke-linejoin: round;}";
|
|
32
|
+ styleNode.innerHTML = "rect, ellipse { fill:none; } path, line {fill: none;stroke-linecap: round; stroke-linejoin: round;}";
|
33
|
33
|
canvas.appendChild(styleNode);
|
34
|
34
|
var element = document.createElement('a');
|
35
|
35
|
element.setAttribute('href', 'data:image/svg+xml;charset=utf-8,' + encodeURIComponent(canvas.outerHTML));
|