mayakraft / SVG

creative code svg

Home Page:https://robbykraft.github.io/SVG/examples/code/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SVG load from string in args

mayakraft opened this issue · comments

add ability to pass in a SVG xml string for the constructor.

  const xmlString = fs.readFileSync(path, "utf-8");
  const svg = SVG(xmlString);