Remove redundant style nodes from clone

This commit is contained in:
MoyuScript
2017-08-18 22:22:24 +08:00
parent 0d127c0121
commit 3d7959a1af
2 changed files with 5 additions and 1 deletions

View File

@ -44,6 +44,8 @@ export default class ForeignObjectRenderer {
resolve(this.canvas);
};
img.onerror = reject;
img.src = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(
new XMLSerializer().serializeToString(svg)
)}`;