On Wed, Mar 16, 2005 at 06:21:43PM -0300, Fernan Aguero wrote:
Hi!
I've done a very simple drawing: a straight line (a rect) and then I changed the stroke style to add an ending arrowhead.
Now I can select the rect (it is an object) and I can do things with it: change its color, resize it, etc.
But I'm not yet figuring how to select the arrowhead so that I can, for example, change its color to match the rest of the line. I drag, click, shift-click, etc. to no avail.
Arrowhead style modification is not currently implemented. There's at least a few feature requests in to add it, but afaik no one is working on it. If/when I ever get done with the gtkmm work, I'd like to get back to helping on the marker code, but that won't be in the near future unfortunately.
There is a semi-manual trick/hack for doing this, but it's an undocumented feature. If you dig around in /usr/share/inkscape you can find some info about it.
Anyone can give me a hint? In Adobe Illustrator once you add an arrowhead to a line, it is added as another object, though initially grouped. How is this dealt with in inkscape?
In SVG, arrowheads, or 'markers' as they're called, are actually not grouped with the line but are "referenced links". You define the way the marker looks in another section of the SVG file (the <defs> section) and give it an ID. In the given line definition you can assign three marker IDs to the line - one each for start, middle, and end. You also assign it a rotation angle. Unfortunately, it's not as clearcut how to handle color, size, etc. alterations, so those aspects were left unimplemented. We either need to find out how to do them properly in SVG, or come up with something on our own. If anyone would be interested in working on this, I can give some pointers.
Bryce
P.S., sorry for the pun.