bug 478157: Mid-markers are rendered above end-markers
Hi all,
Who knows what determines the rendering order of the different markers? See https://bugs.edge.launchpad.net/inkscape/+bug/478157. Currently, endmarkers are drawn beneath midmarkers, although the code calls sp_marker_show_instance last for endmarkers. Perhaps this has to do with the 'key' that is passed to sp_marker_show_instance? (determines the layer?)
Have a look at sp_shape_update_marker_view in sp-shape.cpp.
Thanks, Johan
On Sat, Dec 5, 2009 at 6:50 PM, <J.B.C.Engelen@...1578...> wrote:
Hi all,
Who knows what determines the rendering order of the different markers? See https://bugs.edge.launchpad.net/inkscape/+bug/478157. Currently, endmarkers are drawn beneath midmarkers, although the code calls sp_marker_show_instance last for endmarkers. Perhaps this has to do with the 'key' that is passed to sp_marker_show_instance? (determines the layer?)
Have a look at sp_shape_update_marker_view in sp-shape.cpp.
I'm afraid that code is in a different layer altogether. This deals with SPObjects, but what you need is ArenaItems. As I recollect without looking at the code, the path/shape arena item also stores markers and eventually renders them. Look into libnr/.
Who knows (in precise detail) how markers are rendered ? For some reason, the history of markers rendered determines the render order of the markers. Have a look at bug478157.svg in our testsuite. Open the XML editor, and select the 2nd path from the left. Change the path from "m 30,140 -0.5,-100 0,0" to "m 30,140 0,0 -0.5,-100 0,0" and then back. The render order of markers has changed.
Thanks for any answer, Johan
-----Original Message----- From: bulia byak [mailto:buliabyak@...400...] Sent: zondag 6 december 2009 23:54 To: Engelen, J.B.C. (Johan) Cc: inkscape-devel@lists.sourceforge.net Subject: Re: [Inkscape-devel] bug 478157: Mid-markers are rendered above end-markers
On Sat, Dec 5, 2009 at 6:50 PM, <J.B.C.Engelen@...1578...> wrote:
Hi all,
Who knows what determines the rendering order of the
different markers?
See https://bugs.edge.launchpad.net/inkscape/+bug/478157. Currently, endmarkers are drawn beneath midmarkers,
although the code
calls sp_marker_show_instance last for endmarkers. Perhaps
this has to
do with the 'key' that is passed to sp_marker_show_instance? (determines the layer?)
Have a look at sp_shape_update_marker_view in sp-shape.cpp.
I'm afraid that code is in a different layer altogether. This deals with SPObjects, but what you need is ArenaItems. As I recollect without looking at the code, the path/shape arena item also stores markers and eventually renders them. Look into libnr/.
participants (2)
-
unknown@example.com
-
bulia byak