replace image.getAttribute("src") with image.src.
This commit is contained in:
parent
b624e26d18
commit
14e37d734c
@ -1077,7 +1077,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
svgImage.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href",
|
svgImage.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href",
|
||||||
image.nodeName === "CANVAS" ? image.toDataURL() : image.getAttribute("src"));
|
image.nodeName === "CANVAS" ? image.toDataURL() : image.src);
|
||||||
parent.appendChild(svgImage);
|
parent.appendChild(svgImage);
|
||||||
this.__currentElement = svgImage;
|
this.__currentElement = svgImage;
|
||||||
this.translate(dx, dy);
|
this.translate(dx, dy);
|
||||||
@ -1099,7 +1099,7 @@
|
|||||||
img.setAttribute("width", image.width);
|
img.setAttribute("width", image.width);
|
||||||
img.setAttribute("height", image.height);
|
img.setAttribute("height", image.height);
|
||||||
img.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href",
|
img.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href",
|
||||||
image.nodeName === "CANVAS" ? image.toDataURL() : image.getAttribute("src"));
|
image.nodeName === "CANVAS" ? image.toDataURL() : image.src);
|
||||||
pattern.appendChild(img);
|
pattern.appendChild(img);
|
||||||
this.__defs.appendChild(pattern);
|
this.__defs.appendChild(pattern);
|
||||||
} else if(image instanceof ctx) {
|
} else if(image instanceof ctx) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user