ashiguruma / patternomaly

Easily generate patterns for use in data graphics
MIT License
524 stars 37 forks source link

Add support for SVG patterns #1

Open ashiguruma opened 7 years ago

ashiguruma commented 7 years ago

Many data graphics libraries use an SVG element instead of a Canvas element. It would be helpful if the library provided a way to choose what type of elements to output.

Possible API Formats

// global format
pattern.format('svg');
pattern.draw('circle', '#333');

// pattern specific format
pattern
  .format('svg')
  .draw('circle', '#333');

// default format
pattern
  .draw('circle', '#333');
JewelsJLF commented 6 years ago

+1 we're trying to export a canvas chart using patternomaly to SVG using canvas2svg, but it's not working