Skip to content

v2.0.0

Compare
Choose a tag to compare
@HackbrettXXX HackbrettXXX released this 11 Aug 12:40
· 94 commits to master since this release

Awesome major release with many cool new features.

  • Major rewrite in TypeScript
  • The Public API has changed:
    • svg2pdf is now a proper plugin for jsPDF. You can use doc.svg(...) instead of svg2pdf(element, doc) now. jsPDF is now a peer dependency.
    • The call is now asynchronous and returns a promise.
    • Replaced the scale option with width and height options.
    • Renamed x/yOffset to x/y

New Features:

  • ES2015 modules and UMD module bundles.
  • Typescript support through typings file.
  • #118: Support CSS style sheets: <style> elements, <link> elements, xml-stylesheets, and inline styles.
  • #115: Support for <symbol> elements.
  • #111: Support "evenodd" fill rule.
  • #142: Correctly clip at viewport established by SVG elements.
  • #113: Support both 'gray' and 'grey' as simple color name

Bugfixes:

  • #101: Fix font-size when using a jsPDF document with a unit other than "pt"
  • #112: Fix relative units in font sizes.
  • #140: Fix rounded rects when either rx or ry is omitted; better output for regular rects.