SVG.toDataURL
SVG.toDataURL copied to clipboard
Gives your SVG elements the missing toDataURL function (same as Canvas has)
Special character like öäüß in SVG-text-nodes will cause a XML error 5617 when using window.btoa for base64 encoding. console: SVG.toDataURL: using native renderer for png export. THIS MIGHT FAIL. SVG.toDataURL:...
It's just a little param to deactivate console.log in production mode.
SVG.toDataURL does not work for imported fonts. Even though the actual `` tag next to the image, displays the font perfectly fine. ``` html ``` ``` css @import url(https://fonts.googleapis.com/css?family=Open+Sans); ```