alafr / SVG-to-PDFKit

Insert SVG into a PDF document created with PDFKit
MIT License
397 stars 111 forks source link

Add support for vector-effect property #148

Closed yowzadave closed 2 years ago

yowzadave commented 3 years ago

This PR is intended to address the issue noted in #113.

Not being familiar with the SVG-to-PDFKit codebase, it's possible that I've missed cases where this fails; it does seem to work for the example file here:

https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/vector-effect#example_vector-effectnon-scaling-stroke

Only "non-scaling-stroke" and "none" are supported options; according to https://caniuse.com/vector-effect , the other properties are generally unsupported and at risk of being deprecated.