
-----Original Message----- From: Thomas Holder [mailto:admin@...2024...] On Behalf Of Thomas Holder Sent: zaterdag 3 januari 2009 21:34 To: Engelen, J.B.C. (Johan) Cc: inkscape-devel@lists.sourceforge.net Subject: Re: [Inkscape-devel] testsuite painting-marker-02-f.svg
J.B.C.Engelen wrote, On 01/03/09 19:56:
yes, markers should be clipped by their viewBox, but
inkscape does
not do that.
this test file reveals another issue with markers: The
bounding box
is to big, it looks like it gets calculated for orient="auto" even though these examples all use the default orient="0".
Could you tell me exactly what the problem is? Perhaps
create a test
file for me? I've worked on markers before so I might be
able to fix
it, but I forgot what the orient attribute exactly means.
from http://www.w3.org/TR/SVG/painting.html#MarkerElement
orient = "auto | <angle>" Indicates how the marker is rotated.
The default value is an angle of 0 degrees, this means no rotation. A value of "auto" rotates the marker so that it's x-axis matches the bisecting line between incoming and outgoing path segment. I attached a test file, the guidelines match the bounding box of the two paths. For the path with the blue marker this is correct, for the path with the red marker this is not correct as you can see. However, it's only the boundig box, rendering is fine.
Thank you very much for the bug report and especially the test file. I think I've fixed the bbox calculation in trunk now.
The viewbox problem, I do not know how to approach so can't fix it now.
Johan