mirror of
https://github.com/bendtherules/line_chart_demo.git
synced 2026-08-18 13:52:30 +00:00
Process CORS image before svg eport
This commit is contained in:
+7
-5
@@ -39692,15 +39692,17 @@ FusionCharts.register('module', ['private', 'modules.exporter.main',
|
||||
canvas = doc.createElement('canvas');
|
||||
canvas.width = paper.width;
|
||||
canvas.height = paper.height;
|
||||
if (exportFormat === 'svg') {
|
||||
getSvgDataurl(svgForClientSideExport, function (dataUri) {
|
||||
sendPost(dataUri);
|
||||
});
|
||||
} else if (crossDomainImageFlag) {
|
||||
|
||||
if (crossDomainImageFlag) {
|
||||
getSVGRawInternalImagesProcessed(svg,
|
||||
function (svg) {
|
||||
sendPost(svg,crossDomainImageFlag);
|
||||
})
|
||||
} else if (exportFormat === 'svg') {
|
||||
getSvgDataurl(svgForClientSideExport, function (dataUri) {
|
||||
sendPost(dataUri);
|
||||
});
|
||||
|
||||
} else {
|
||||
lib.drawSvgOnCanvas(svgForClientSideExport, canvas, 0, 0, paper.width,
|
||||
paper.height, function () {
|
||||
|
||||
Reference in New Issue
Block a user