kahunamoore / svg-edit

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

Resize image leaves elements behind and warps/stretches them #471

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open certain SVG file
2. Select all with marquee style select
3. Resize with control handles

What is the expected output? What do you see instead?
Certain elements get left behind and warped/stretched, even though
everything looks good until mouse button is released. I have attached the
problem svg and a screenshot of what happens.

In what browser did you experience this problem? (ALL, Firefox, Opera 10
Alpha, etc)
Only testes in FF

Please provide any additional information below.

Original issue reported on code.google.com by adrianbj...@gmail.com on 9 Feb 2010 at 12:41

Attachments:

GoogleCodeExporter commented 9 years ago
Just to follow up - even moving the group results in something similar - I 
wonder if
this relates at all to issue 469 and the gradient using "userSpaceOnUse"

Original comment by adrianbj...@gmail.com on 9 Feb 2010 at 1:44

GoogleCodeExporter commented 9 years ago
Definitely a problem with the way we're manipulating path segments.  I will try 
to
isolate this to a single path element that causes the problem at some point, 
then add
a unit test, then fix...

Original comment by codedr...@gmail.com on 9 Feb 2010 at 2:18

GoogleCodeExporter commented 9 years ago
Reduced it down to:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg" width="1625" height="1405">

<g transform="matrix(1.25,0,0,-1.25,0,1405)" >
    <g transform="translate(756.582,330.3252)">
        <path d="m 0,0 c 0,-2.796 -3.247,-5.059 -7.285,-5.059 -4.028,0 -7.284,2.263
-7.284,5.059 0,2.806 3.256,5.041 7.284,5.041 C -3.247,5.041 0,2.806 0,0"
             fill="#5d3e41"/>
    </g>
</g>

</svg>

Select that little path and some weird deformation goes on

Original comment by codedr...@gmail.com on 9 Feb 2010 at 2:41

GoogleCodeExporter commented 9 years ago
I've fixed one problem we had with path remapping (the minimal test case path 
is no
longer deformed).

However, there is still the larger problem of the selector boxes not being in 
the
correct location (as a result of the twice-nested transformed groups).  We need 
to be
able to either:

 a) flatten the transformations or
 b) collapse the groups (particularly when there's only one child) or
 c) properly handle the total transformation stack so the selector boxes are
displayed appropriately

Original comment by codedr...@gmail.com on 12 Feb 2010 at 3:17

GoogleCodeExporter commented 9 years ago
Ok, I think this is taken care of in r1380 now

Original comment by codedr...@gmail.com on 12 Feb 2010 at 3:54