We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vector-effect
SVG paths with vector-effect="non-scaling-stroke" are not rendered properly.
vector-effect="non-scaling-stroke"
From https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/vector-effect#setting_vector-effect_as_non-scaling-stroke this is the expected rendering:
With dart_pdf, we're getting this rendering:
dart_pdf
This is the source SVG, the last triangle has attribute vector-effect="non-scaling-stroke":
<svg viewBox="0 0 500 240"> <!-- normal --> <path d="M10,20 L40,100 L39,200 z" stroke="black" stroke-width="2px" fill="none"></path> <!-- scaled --> <path transform="translate(100,0) scale(4,1)" d="M10,20 L40,100 L39,200 z" stroke="black" stroke-width="2px" fill="none"></path> <!-- fixed--> <path vector-effect="non-scaling-stroke" transform="translate(300, 0) scale(4, 1)" d="M10,20 L40,100 L39,200 z" stroke="black" stroke-width="2px" fill="none"></path> </svg>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
SVG paths with
vector-effect="non-scaling-stroke"
are not rendered properly.From https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/vector-effect#setting_vector-effect_as_non-scaling-stroke
![Screenshot 2024-05-21 at 8 45 16 AM](https://private-user-images.githubusercontent.com/87088015/332449277-06b600f5-aa4c-4037-be4e-5538c53a166c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk5NzM0NjYsIm5iZiI6MTcxOTk3MzE2NiwicGF0aCI6Ii84NzA4ODAxNS8zMzI0NDkyNzctMDZiNjAwZjUtYWE0Yy00MDM3LWJlNGUtNTUzOGM1M2ExNjZjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzAzVDAyMTkyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTAwNzVkYTViYzlmMDBiYmE3NmFjMTg2MTMyMGI3OGNmZjJiNmI1MzczZjJlMGI5NGVjOGQxNGEwMWVjMGE1Y2QmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.6eNFvPvMAxJ4t2N5Y22zIv6K7dZZnlTdlWh96nhnKbc)
this is the expected rendering:
With
![Screenshot 2024-05-21 at 8 45 51 AM](https://private-user-images.githubusercontent.com/87088015/332449476-4d64003c-8830-4d7f-a10e-5779ea3a9080.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk5NzM0NjYsIm5iZiI6MTcxOTk3MzE2NiwicGF0aCI6Ii84NzA4ODAxNS8zMzI0NDk0NzYtNGQ2NDAwM2MtODgzMC00ZDdmLWExMGUtNTc3OWVhM2E5MDgwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzAzVDAyMTkyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY1MmI2NDAxNjQyNzFlY2U2ZWFlN2FkMzFjYmYwYmVlMjliNTE5ODQ2ZGY5NWMyOTQ5N2Y3NmJlZGI2YWNmYjcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.lQHL-aaRUBwAFMcA7zmXLibkeOZECQ1_ye7UygafvVQ)
dart_pdf
, we're getting this rendering:This is the source SVG, the last triangle has attribute
vector-effect="non-scaling-stroke"
:The text was updated successfully, but these errors were encountered: