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

Local dashing on shaft style isn't local #274

Closed
byorgey opened this issue May 20, 2016 · 1 comment · Fixed by #276
Closed

Local dashing on shaft style isn't local #274

byorgey opened this issue May 20, 2016 · 1 comment · Fixed by #276

Comments

@byorgey
Copy link
Member

byorgey commented May 20, 2016

Consider this code:

dia = mconcat
  [ arrowV' (with & shaftStyle %~ dashingL [5, 5] 0) unitX
  , square 2
  ]

main = defaultMain (dia # frame 1)

It creates an arrow on top of a square, with a dashed arrow shaft. The dashing is supposedly using a local measure; since the arrow is only 1 unit long, local dash lengths of [5,5] are ridiculously large and there shouldn't be any dashing visible at all. But in fact we get this:

dashedshaft1

Moreover, look what happens when we change frame 1 to frame 0.1:

dashedshaft2

The square and arrow get relatively bigger, but the dashing remains exactly the same size.

So it seems that dashingL within an arrow shaft is not actually using a local measure. (Incidentally, if you make a normal dashed path with dashingL, it works fine.)

@byorgey
Copy link
Member Author

byorgey commented May 20, 2016

This seems related: f057ada but it's been a while since I've thought about any of this.

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 a pull request may close this issue.

1 participant