Releases: yWorks/svg2pdf.js
Releases · yWorks/svg2pdf.js
v2.2.4
Bump dependencies.
What's Changed
- Bump follow-redirects from 1.14.8 to 1.15.4 by @dependabot in #282
- Bump follow-redirects from 1.15.4 to 1.15.6 by @dependabot in #285
- Bump braces from 3.0.2 to 3.0.3 by @dependabot in #293
Full Changelog: v2.2.3...v2.2.4
v2.2.3
v2.2.2
v2.2.1
Make getAttribute safer
v2.2.0
This release mainly brings some bugfixes and the support for numerical font weights.
- #181: add support for numerical font weights
- #188: fix rendering two SVGs with the same ids in the same PDF document
- #187: fix exception when parsing CSS with
@import
rules - #186: fix rendering elements with empty or invalid
clip-path
attribute - #185: fix gradients with zero or one stop
- #184: fix bounding boxes and attribute inheritance for
<marker>
elements
v2.1.0
Added support for some awesome new features thanks to @Mrfence97. Also thanks to the other contributions in context of the Hacktoberfest!
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:
v1.5.0
- Add support for fill-rule attribute
- update jspdf dependency
v1.4.0
- Many bugfixes
- Added support for
stroke
andstroke-width
attributes ontext
/tSpan
attributes
v1.3.4
- fixed invisibility bugs for clipPath elements
- fix title element within text
- add support for some SVG 2.0 css properties
- fix CSS/attribute precedence
- fix gradient stop offsets with percentage values