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.
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?
I'm using inkscape-0.41 on FreeBSD-4.11 (i386).
Thanks in advance,
Fernan
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.
Hi Fernan, Arrowheads are done using the marker tag as defined in the SVG spec. At the minute markers are a bit of a pain wrt to changing the style applied to them. The only way to do it currently is to use the xml editor to edit the <def> that defines the marker being used.
The quickest way to do this is probably to open the xml editor, drag the path from within the def into the man doc, edit its fill then drag it back into the def in the xml editor. When you first move it back you may find it disappears from the line, to fix select the line, go to the stroke properties and switch to another marker, then back again.
Theres a bug/RFE in the tracker about this, and its been on my list of things to try look at for a while, just gets very complicated when you've potentially got multiple objects referencing the same markers. (you may want to rename the defs when you change them from being default color)
hope that helps
John
--- Fernan Aguero <fernan@...543...> 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.
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?
I'm using inkscape-0.41 on FreeBSD-4.11 (i386).
Thanks in advance,
Fernan
SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
__________________________________ Do you Yahoo!? Yahoo! Sports - Sign up for Fantasy Baseball. http://baseball.fantasysports.yahoo.com/
On Wed, 16 Mar 2005 13:38:00 -0800 (PST), John Cliff <simarilius@...12...> wrote:
Arrowheads are done using the marker tag as defined in the
SVG spec. At the minute markers are a bit of a pain wrt to changing the style applied to them. The only way to do it currently is to use the xml editor to edit the <def> that defines the marker being used.
I just thought that maybe we can define markers without style and have them inherit style from the objects that reference them. It would be an easy and clean solution. Unfortunately SVG spec explicitly prohibits this:
Properties inherit into the 'marker' element from its ancestors; properties do not inherit from the element referencing the 'marker' element.
Maybe they had reasons for this, but I still think it's stupid.
--- bulia byak <buliabyak@...155...> wrote:
I just thought that maybe we can define markers without style and have them inherit style from the objects that reference them. It would be an easy and clean solution. Unfortunately SVG spec explicitly prohibits this:
Properties inherit into the 'marker' element from its ancestors;
properties do not inherit from the element referencing the 'marker' element.
Maybe they had reasons for this, but I still think it's stupid.
What I'd hoped to do was make the default markers styleless, then to xlink:href them from defs with a style applied (ala gradients and the vectors), as they should be able to inherit then (or can they? that was how i read it anyhow) Problem is we dont support xlinked markers atm. and I didnt know where to start adding support for it.
Cheers
John btw, other complication is that some markers are solid filled paths, while others are just stroked, so you have to work out where to apply the style. What you do if the marker refs a gradient I dont know :)
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
participants (4)
-
Bryce Harrington
-
bulia byak
-
Fernan Aguero
-
John Cliff