Op Do, 3 april, 2008 08:46, schreef Rottgardt, Jens (K-SIB-2/3):
Hi Jens,
That would indeed be possible, but we haven't implemented it like that (yet) for circles. Storing a separate transformation, like we do now, is needed for example when stretching or skewing the circle. How does your application store such a transformation?
Storing a separate transformation, like Inkscape does, allows for any affine transformation (see wikipedia) to be applied to an object. Modifying the center position and radius, like your application does, only allows for translations and symmetrical scaling. That's why we prefer the former, although we could also have both methods (if only someone would take the time to write the code for that).
Just out of curiosity: what application are you using?
Diederik
Hi,
I don't know if I understood your answer to my 2nd question right. But when moving an object in Inkscape this move is nothing I want to store into the objects properties at least I want to place the circle to a special position. The problem is if I use the SVG graphic in my application I want to move the circle from left to right from the position where I have placed the circle in Inkscape. But what happens is that the circle first is moved to the very first position where I have placed the circle in Inkscape and then moved from that position.
In Inkscape
place the circle to position 50,50
move the circle to position 100, 100 (this move is stored in the
transform translate (why???) )
- save
In my application
The circle is placed to position 100,100
my appliction is moving the circle from left to right and the following
steps happens a) the circle is placed back to position 50,50 b) the circle is moved from left to right
To avoid this I have manually to remove the transform translate attribute in Inkscape and set the cx, cy attributes to the position I want to place the circle.
To keep it short and simple. I want to have the same behaivor for placing a circle like for rectangles !
Jens Rottgardt Buildmanagement ITP Fahrzeugherstellung, K-SIB 2
Postadresse: Volkswagen AG Brieffach 1839 38436 Wolfsburg
Besucheradresse: Volkswagen AG Hermann-Münch-Straße 1 (MobileLife Campus) 38442 Wolfsburg
Telefon +49 -5361-896-3276
Telefax +49 (0) 5361-896-3296 mailto:jens.rottgardt@...2472... http://www.volkswagen.de
VOLKSWAGEN AG Sitz/Domicile: Wolfsburg Registergericht/Court of Registry: Amtsgericht Braunschweig HRB Nr./. Commercial Register No.: 100484 Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Ferdinand Piëch Vorstand/Board of Management: Martin Winterkorn (Vorsitzender/Chairman), Francisco J. Garcia Sanz, Jochem Heizmann, Horst Neumann, Hans Dieter Pötsch
Wichtiger Hinweis: Die vorgenannten Angaben werden jeder E-Mail automatisch hinzugefügt und lassen keine Rückschlüsse auf den Rechtscharakter der E-Mail zu. Important Notice: The above information is automatically added to this e-mail. This addition does not constitute a representation that the content of this e-mail is legally relevant and/or is intended to be legally binding upon VOLKSWAGEN AG.
-----Ursprüngliche Nachricht----- Von: inkscape-user-bounces@lists.sourceforge.net [mailto:inkscape-user-bounces@lists.sourceforge.net] Im Auftrag von bulia byak Gesendet: Mittwoch, 2. April 2008 20:33 An: Inkscape User Community Betreff: Re: [Inkscape-user] translate Attribute stored in SVG Graphic
On Wed, Apr 2, 2008 at 7:39 AM, Rottgardt, Jens (K-SIB-2/3) <jens.rottgardt@...2472...> wrote:
- Why does Inkscape uses the path tag for circles instead of the
existing circle tag?
Because otherwise you wouldn't be able to put markers on it, or use text on path with it, or use live path effects.
- When painting a circle in Inkscape and moving it the move is stored
in the transform translate tag. Can anyone tell me why ?
Because you cannot, in general, embed an arbitrary transform into the circle's parameters (center and radii). Actually a move only could be embedded into cx/cy, but since other transforms cannot, we didn't special-case translation (although this is possible, and is done e.g. for rectangles - so if you desperately need that, you can submit a patch).
-- bulia byak Inkscape. Draw Freely. http://www.inkscape.org
Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user