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

make headSize and tailSize back into ArrowOpts fields #177

Merged
merged 1 commit into from
Apr 13, 2014

Conversation

byorgey
Copy link
Member

@byorgey byorgey commented Apr 12, 2014

As attributes, there are situations where it is actually impossible (or
at least very difficult) to get things the way you want. E.g. imagine
creating a whole bunch of arrows via connectOutside and applyAll, but
you want them to have all different head sizes. I am not sure how to
accomplish this via attributes at the moment.

It is also simply annoying to have some arrow attributes set via
ArrowOpts and some as normal attributes. I ran into this when updating
the website gallery, it was a confusing error and would have been
annoying to fix.

In the long term, I would love to have all arrow attributes be normal
attributes... but that may have to wait until we have constraint solving
and can declare arrows as separate standalone diagrams (to which
attributes can be applied).

Note this does mean deleting headSizeG, headSizeO, etc. It would be
ideal to be able to write e.g. ... & headSizeG .~ 3 & ...
rather than ... & headSize (Global 3) & ..., however, such a
headSizeG would not be a valid lens.

As attributes, there are situations where it is actually impossible (or
at least very difficult) to get things the way you want.  E.g. imagine
creating a whole bunch of arrows via connectOutside and applyAll, but
you want them to have all different head sizes.  I am not sure how to
accomplish this via attributes at the moment.

It is also simply annoying to have some arrow attributes set via
ArrowOpts and some as normal attributes.  I ran into this when updating
the website gallery, it was a confusing error and would have been
annoying to fix.

In the long term, I would love to have all arrow attributes be normal
attributes... but that may have to wait until we have constraint solving
and can declare arrows as separate standalone diagrams (to which
attributes can be applied).

Note this does mean deleting headSizeG, headSizeO, etc. It would be
ideal to be able to write e.g. `... & headSizeG .~ 3 & ...`
rather than `... & headSize (Global 3) & ...`, however, such a
`headSizeG` would not be a valid lens.
@jeffreyrosenbluth
Copy link
Member

Yes, having headSize as an attribute and everything else as an ArrowOpt field is terrible.
I've been meaning to bring this back up for discussion so I'm glad you made the changes.

jeffreyrosenbluth added a commit that referenced this pull request Apr 13, 2014
make headSize and tailSize back into ArrowOpts fields
@jeffreyrosenbluth jeffreyrosenbluth merged commit 74fed72 into master Apr 13, 2014
@jeffreyrosenbluth jeffreyrosenbluth deleted the ht-size branch April 13, 2014 04:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants