-
-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
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
enhancement: add support for fill
in svg
#797
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not fill
instead of color
? The former is used for text
I thought that adding a new property to |
color
in svg
fill
in svg
@marc2332 done! |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #797 +/- ##
==========================================
- Coverage 73.81% 73.69% -0.13%
==========================================
Files 201 201
Lines 21530 21568 +38
==========================================
+ Hits 15893 15895 +2
- Misses 5637 5673 +36 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also add an example?
fix(docs/color-syntax): `rect` -> `red` feat(docs/attributes/fill): add docs for fill atribute feat(examples/svg-fill): add example for svg with specified fill color
Does this implementation really make sense? For example, given this code: <svg width="525" height="190" viewBox="0 0 525 190" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="250" height="190" fill="#D9D9D9"/>
<rect x="275.5" y="0.5" width="249" height="189" stroke="black"/>
</svg> Both Do you think that makes sense? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
btw
Co-authored-by: Marc Espin <[email protected]>
Honestly, I don't think so. Based on the Skia source code, there is a function |
Closes #796