Skip to content
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

Allow the user to choose the fill rule used for paths when stroking #14

Closed
fryguybob opened this issue Aug 4, 2012 · 1 comment
Closed

Comments

@fryguybob
Copy link
Member

(Imported from http://code.google.com/p/diagrams/issues/detail?id=28. Original issue from byor...@gmail.com on May 4, 2011, 08:00:07 PM UTC)

The stroke and strokeT functions should take an extra argument (actually, we should make functions stroke' and strokeT' that take a record of optional arguments, like e.g. cat) specifying the "fill rule" (winding rule or even/odd; default should probably be winding). This should have two effects: 1. use the appropriate testing function for constructing the stroked diagram's Query; 2. set an attribute on the stroked diagram informing the backend which fill rule to use. The Cairo backend should also be updated to take this attribute into account.

@fryguybob
Copy link
Member Author

(Imported. Original comment by byor...@gmail.com on September 2, 2011, 09:20:16 PM UTC)

in diagrams-lib:

Fri Sep 2 17:18:37 EDT 2011 Brent Yorgey byorgey@cis.upenn.edu

  • add user-controllable fill rules for paths

in diagrams-cairo:

Fri Sep 2 17:18:58 EDT 2011 Brent Yorgey byorgey@cis.upenn.edu

  • handle fill rule attribute

@ghost ghost assigned byorgey Aug 4, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants