-
Notifications
You must be signed in to change notification settings - Fork 40
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
SVG backend doesn't fill loops if they occur in the same subtree as a line #43
Comments
To do this in |
I agree, we should not try to rush a fix in before 1.0. Additionally, I On Thu, Nov 21, 2013 at 4:17 PM, Brent Yorgey notifications@github.comwrote:
|
stop using ignoreFill; use splitFills instead. Fixes #43.
It looks like #42 was a bit more subtle than I thought. See the last line of http://projects.haskell.org/diagrams/backend-tests/all-index.html .
The problem is that a style node may occur at the root of a subtree which contains both lines and loops. In that case it seems that the only possible solution is to actually split the style node and push fill attributes down until they are over a subtree which contains only loops.
In fact, perhaps we even ought to do this as a compilation pass, in diagrams-core. We could make sure that fill attributes are only ever at the root of subtrees containing all loops. Then backends wouldn't have to worry about it at all, but could simply issue a fill attribute when they see it.
The text was updated successfully, but these errors were encountered: