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
ART add fillRule prop on iOS #5477
Conversation
ART add fileRule prop on iOS
By analyzing the blame information on this pull request, we identified @spicyj, @kmagiera and @brentvatne to be potential reviewers. |
move RCT_ENUM_CONVERTER to RCTConvert + ART
@magicismight updated the pull request. |
We'd like to keep this in sync with what https://github.com/reactjs/react-art supports, which currently only supports things that can be rendered to SVG, VML, or Canvas – not sure if fullRule falls into that bucket. cc @sebmarkbage |
SVG supports fill-rule. And it seems like VML also supports evenodd fill-rule.Link there And canvas fill-rule there If fillRule:evenodd not supported.this can`t be draw easily by using ART |
@magicismight updated the pull request. |
VML doesn't have a fillRule. It has the opposite rule of the canvas one. That doesn't matter much since IE is dying quickly. It would only be useful for MS Office exports. However, last I checked, the canvas fillRule support wasn't available cross-browser in currently active browser versions. It leads to strange artifacts when you have a browser that doesn't support it. If you develop with the assumption that it exists, you may build something fairly complex around it that later can't be ported. ART provides a certain level of portability guarantees that is nice to have. Even if you don't think you'll need to target a browser right now. On the flip side, you can always draw any shape with either fillrule. E.g. that star shape can be drawn using five triangles. Any decent vector graphics application will let you export it as such. Do you have concrete use case where you're generating these on the fly where that is impractical? |
@magicismight updated the pull request. |
ART add fileRule prop on iOS
fillRule="nonzero" // default value
fillRule="evenodd"