-
Notifications
You must be signed in to change notification settings - Fork 16
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
Bug while drawing certain vertex #38
Comments
I can reproduce this on Windows with what I think is Cairo 1.10.2. What OS and Cairo version were you using? Cairo's SVG output looks correct. My guess is that we are emitting both a start and end point for the path (that due to numerical wibbles don't quite match) and then we call |
I can reproduce this bug on OSX 10.8.5, Cairo 1.16 as well. |
I'm using Ubuntu 13.04 and what looks like Cairo 1.12.14. Producing an SVG image with the Cairo backend actually has the same bugged result for me. I don't know if that's what you meant? |
I just checked and I think triangle here eventually ends up calling
|
@JakeBr This is interesting, can you upload the SVG produced by Cairo somewhere? |
I guess uploading svg files to github is a bit awkward, but it should work if you copy the text into a local file and rename it to be a .svg file. Unless someone knows of a better place to upload them. edit: thanks! |
It looks to me like |
@JakeBr There is a trick to doing that using http://htmlpreview.github.io/: Anyway, this renders fine for me in Chrome, but you can see in the SVG code that the start and end values are different, with (0.429059, -0.38632) for the start and (0.429047, -0.38632). My output from Cairo has them the same as (0.429059 ,-0.38632). Go figure. Anyway, I think there are some ways for us to avoid this. |
I think I was able to fix this. Patch coming soon. |
See diagrams/diagrams-cairo#38. This wasn't actually causing any observable problems in the SVG backend output, but this seems a better/more robust way to do things in any case.
Reopening this, since there may be a bit more we want to fix (though the original problem is solved). See the comment thread here: 0f5e399#commitcomment-5102368 |
If you use this code with a width of 400 and produce a png, there's a small black line next to the rightmost vertex that should not be there. That also happens with different rotations, but only with that vertex (see this gif).
I tried it with the Cairo and the SVG backend; with the SVG backend, it looked fine.
The text was updated successfully, but these errors were encountered: