W3C home > Mailing lists > Public > www-svg@w3.org > April 2003

Marker Behavior

From: Brian Cuthie <brian@systemix.com>
Date: Mon, 14 Apr 2003 14:21:04 -0400
To: www-svg@w3.org
Message-id: <004a01c302b2$9f5751c0$6501a8c0@gizmo>


I was wondering how people feel about marker behavior.

Let me start this topic rolling by stating that I'm not happy with the
way markers work right now.

I have two issues:

Problem #1:

As I understand things (documentation and empirical results) markers
inherit attributes from the <defs> part of the tree, rather than at the
point they're used. The consequence of this is that if you want an arrow
head to match the stroke attribute of the line its applied to, you need
a separate marker for each color line. This seems, well, dumb.  Am I
missing something?

Suggestion:

Have markers inherit attributes from the line they're applied to.  If
you want to fix the attributes of a marker (essentially the current
behavior), then do that in the marker definition. But any attribute set
to "inherit" would use the current attribute of the line it's applied to
when it's rendered.


Problem #2:

Markers are oriented only one way. This means that you need two arrow
head definitions (potentially in a variety of colors -- see above): one
for the start and the other for the end of lines.

Suggestion:

Add an attribute to markers that would allow them to automatically
orient themselves appropriately for use either at the start or end of
lines. Essentially this means that start markers should be automatically
rotated 180 degrees about their RefX and RefY.

So what do other people think? Does anyone else care?

-Brian

Brian Cuthie
Systemix Software
Received on Monday, 14 April 2003 14:21:01 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:24 GMT