4xx / svg-edit

Automatically exported from code.google.com/p/svg-edit
MIT License
0 stars 0 forks source link

Svg-Edit throws away transforms #1104

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Paste the following svg into svg edit:
<svg width="1000" height="1000" xmlns="http://www.w3.org/2000/svg">
 <!-- Created with SVG-edit - http://svg-edit.googlecode.com/ -->
 <title>Eater World Concept</title>
 <g id="container" transform="translate(500,500)">
  <title>Layer 1</title>
  <ellipse id="svg_1" cy="0" cx="0" rx="400" ry="400" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke="#000000" fill="#ffff00"/>
 </g>
</svg>
2.Apply the changes
3.Reopen the svg code 
<svg width="1000" height="1000" xmlns="http://www.w3.org/2000/svg">
 <!-- Created with SVG-edit - http://svg-edit.googlecode.com/ -->
 <title>Eater World Concept</title>
 <g id="container">
  <title>Layer 1</title>
  <ellipse id="svg_1" cy="500" cx="500" rx="400" ry="400" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke="#000000" fill="#ffff00"/>
 </g>
</svg>

What is the expected output? What do you see instead?
I expect to see the transforms maintained.

I see the end result of the transform coded into the svg.

In what browser did you experience this problem? (ALL, Firefox, Opera, etc)
Current versions of IE,Chrome,Opera

In what version of SVG-edit does the problem occur? (Latest trunk, 2.5.1,
etc)
Current.

Please provide any additional information below.
Applying the transform is the proper job of the renderer, the renderer should 
not modify the svg.
In this specific case I am working on a virtual environment which will be 1000 
x 1000 units. I will be using polar coordinates as such it will be convenient 
to have the cartesian center (0,0) be at host co-ordinate 500,500.  Applying a 
simple translation transform at the outermost level accomplishes this.

SVG Site, by modifying the svg makes this much more difficult that it needs to 
be.  

Original issue reported on code.google.com by charles....@gmail.com on 10 Jun 2013 at 4:01