We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7387b2b commit 2d39879Copy full SHA for 2d39879
src/components/images/draw.js
@@ -11,6 +11,7 @@
11
var d3 = require('d3');
12
var Drawing = require('../drawing');
13
var Axes = require('../../plots/cartesian/axes');
14
+var xmlnsNamespaces = require('../../constants/xmlns_namespaces');
15
16
module.exports = function draw(gd) {
17
@@ -52,9 +53,10 @@ module.exports = function draw(gd) {
52
53
54
// Images must be converted to dataURL's for exporting.
55
function setImage(d) {
-
56
var thisImage = d3.select(this);
57
58
+ thisImage.attr('xmlns', xmlnsNamespaces.svg);
59
+
60
var imagePromise = new Promise(function(resolve) {
61
62
var img = new Image();
0 commit comments