Commit 65d07231 authored by Jerome Mariette's avatar Jerome Mariette

svg export ok

parent 41e71d62
......@@ -2078,9 +2078,8 @@
$(this).css('border-color', "white");
});
select_form.hide();
var svgContent = "data:img/svg;charset=utf-8,";
svgContent += __context.getSerializedSvg(true);
var encodedUri = encodeURI(svgContent);
var svgContent = "data:image/svg+xml;base64,"+window.btoa(__context.getSerializedSvg(true)),
encodedUri = encodeURI(svgContent);
$('#data-export').attr("href", encodedUri);
$('#data-export').attr("download", "jVenn_chart.svg");
$('#data-export')[0].click();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment