Closed pwichmann closed 7 years ago
pattern.svg()
returns a dom node object, not a string.
In the case of Node, it returns a jsdom object.
Anyways, just replace the line:
var pattern_as_svg = pattern.svg({includeNamespace: true}).outerHTML;
and you should be good to go
You are my hero of the day. Thank you!
First of all: This looks like an amazing library! Thank you.
How would I export the result into SVG (so that I could import it into paper.js)? Currently, if I try to run (on node.js):
I run into errors: