v2.0.0
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 ofsvg2pdf(element, doc)
now. jsPDF is now a peer dependency. - The call is now asynchronous and returns a promise.
- Replaced the
scale
option withwidth
andheight
options. - Renamed
x/yOffset
tox/y
- svg2pdf is now a proper plugin for jsPDF. You can use
New Features:
- ES2015 modules and UMD module bundles.
- Typescript support through typings file.
- #118: Support CSS style sheets:
<style>
elements,<link>
elements,xml-stylesheet
s, 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: