Connector's (Empty)Triangle In/Out bug

Bug #588132 reported by Horus on 2010-06-01
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Wishlist
Unassigned

Bug Description

Sorry to report bug for this marvelous software.

Connector's start and end markers have some bugs when we use (Empty) Triangle In/Out. The uploaded SVG file could show you this:
* Both connectors start from the bottom to the top.
* The left connector is using EmptyTriangleIn/Out while the right one TriangleIn/Out.

IMO, only the upper-left one is correct because the tip of the triangle touches rectangle's border. The others have the tip or the bottom of the triangle passes the border.

Open stroke view and change the start/end markers to see the results.

I'm using Inscape 0.47

Revision history for this message
Horus (lapsap7+inks) wrote :
su_v (suv-lp) on 2010-06-01
tags: added: connectors markers
Revision history for this message
su_v (suv-lp) wrote :

IMHO these differences are not bugs - the markers are rendered according to their definition in 'share/inkscape/markers/markers.svg'.

Connectors connect with the nodes of the connector lines to the connected objects. The precise location of the (stock) markers at the start and end nodes of the connector lines depends on how it is defined in the SVG code of the 'template' marker. As you see markers can differ with regard to their position relative to the node they 'mark'. It seems that 'TriangleIn/Out' was more intended to be used as mid-marker, whereas 'EmptyTriangleIn/Out' is positioned similar to the plain arrow heads and better suited for start and end nodes.

You could create new custom markers if the stock markers provided by Inkscape lack symbols you need. Or maybe someone can contribute a set of start and end markers that are better suited to use with connectors.

Note: markers in Inkscape (try to) follow the SVG 1.1 specification.

References:
<http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Attributes-Stroke.html#Attributes-Stroke-Markers>
<http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Customize-Files.html#Customize-Files-Markers>
<http://www.w3.org/TR/SVG11/painting.html#Markers>

Proposing to close as 'Invalid' or mark as 'Wishlist' for new stock markers specially suited for connector lines.

Revision history for this message
Horus (lapsap7+inks) wrote :

Well, if that's not considered as bug, definition of bug needs to be reviewed!

Even if it's not a bug in Inskscape, it's a bug in that svg file.

Revision history for this message
Horus (lapsap7+inks) wrote :

I trust Inkscape and also think it follows SVG1.1 specification (that, I have to admit, I don't master at all).

But I don't think SVG1.1 spec would specify where to put the "precise location" in the marker.

Furthermore, if you compare Triangle markers with Diamond markers, you could see that those empty and full Diamond markers are more "symmetric": a proof that both of them are supposed to be counterpart of the others.

Revision history for this message
su_v (suv-lp) wrote :

> Even if it's not a bug in Inskscape, it's a bug in that svg file.

In 'share/markers/markers.svg', the difference seems intentional (though I admittedly don't know why): same path data but the empty triangle has an additional 'translate' attribute moving the triangle to align the tip with the node, e.g.:

<!-- triangles -->
 <path transform="scale(-0.8)" … d="M 5.77,0.0 L -2.88,5.0 L -2.88,-5.0 L 5.77,0.0 z "/>

<!-- Empty Triangles -->
 <path transform="scale(-0.8) translate(-6,0)" … d="M 5.77,0.0 L -2.88,5.0 L -2.88,-5.0 L 5.77,0.0 z "/>

@JazzyNico - bug or wish/request for additional markers? ;-)

Changed in inkscape:
status: New → Confirmed
Revision history for this message
su_v (suv-lp) wrote :

Related to bug #171070 “Adjustable arrow's position for connectors” (<https://bugs.launchpad.net/inkscape/+bug/171070>) - IMHO that report is not really a duplicate of bug #171027 (which is about enhanced connector/glue points and not about stroke attributes of the connector line).

Revision history for this message
su_v (suv-lp) wrote :

> Even if it's not a bug in Inskscape, it's a bug in that svg file.

The current differences are the result of stock markers added to address the connector issues for diagrams - see bug #169989 “Triangle and Diamond Marker clean-ups” (<https://bugs.launchpad.net/inkscape/+bug/169989>)

Changed in inkscape:
importance: Undecided → Wishlist
Revision history for this message
Horus (lapsap7+inks) wrote :

Hello, any update to this bug? Also, please take a look at what I wrote earlier, quoted here:
Furthermore, if you compare Triangle markers with Diamond markers, you could see that those empty and full Diamond markers are more "symmetric": a proof that both of them are supposed to be counterpart of the others.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers