4xx / svg-edit

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

Flip Tools #76

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
SVG-edit needs to support Flip Horizontal and Flip Vertical tools in the
select panel.

Starter icon:
http://tango.freedesktop.org/static/cvs/tango-art-libre/22x22/transformations/tr
ansform-flip.png

Original issue reported on code.google.com by codedr...@gmail.com on 15 Jul 2009 at 1:03

GoogleCodeExporter commented 9 years ago

Original comment by codedr...@gmail.com on 22 Jul 2009 at 6:27

GoogleCodeExporter commented 9 years ago

Original comment by codedr...@gmail.com on 31 Jul 2009 at 2:38

GoogleCodeExporter commented 9 years ago
Pushing this out to 2.4 as I don't think I'll be able to work on it

Original comment by codedr...@gmail.com on 13 Aug 2009 at 4:04

GoogleCodeExporter commented 9 years ago

Original comment by codedr...@gmail.com on 17 Aug 2009 at 7:14

GoogleCodeExporter commented 9 years ago
I'd assume we want to achieve this by offering a negative scale transform 
value, is
that correct? Or is there another (better way) you had in mind?

Original comment by adeve...@gmail.com on 29 Sep 2009 at 11:06

GoogleCodeExporter commented 9 years ago
Well, here's the thing.  I've been doing my best to keep transforms out of the
elements unless they are needed.  So while transform="scale(-1,1)" sounds like 
the
right approach at first, you also have to realize that you'll need to translate,
scale, then translate back to achieve the effect you want.  This means you'd 
have
markup that looks like:

   <path transform="translate(200,200) scale(-1,1) translate(-200,-200)" d="...."/>

And that's looking a little too messy for my tastes :)

On that note, I think it would be more appropriate to calculate the new 
dimensions of
the element.  So if we have a path, that means calculating the new position of 
each
point when flipped on the x-axis (or whatever).

Original comment by codedr...@gmail.com on 29 Sep 2009 at 11:54

GoogleCodeExporter commented 9 years ago
Yeah, I see what you mean. But would that work on elements like <text> and 
<image>?
If not, I think it would be better to use a method consistent among elements. 
And
would the translate really be necessary? You couldn't just reposition the 
element
using recalculateDimensions() ?.

Original comment by adeve...@gmail.com on 30 Sep 2009 at 12:33

GoogleCodeExporter commented 9 years ago
Fyrd,,, I think you are right.  Means more complex xform handling tho

Original comment by codedr...@gmail.com on 30 Sep 2009 at 12:48

GoogleCodeExporter commented 9 years ago
I'm pushing this out.  There is a chance that my work with transforms and 
groups make
this an achievable feature in the short term, but I'm not counting on it.

Original comment by codedr...@gmail.com on 8 Oct 2009 at 5:14

GoogleCodeExporter commented 9 years ago
I created an extension based on the conversation above (interestingly enough, I 
didn't see this discussion until Alexis pointed it out on the other thread). 

There are two issues identified with this extension so far:
1. If a shape uses a gradient, it flips the gradient
as well. This may affect other shapes that share the same gradient (in my code 
I have made the clone tool to clone the gradients as well).
2. If the object is rotated, it doesn't flip correctly (as pointed out by 
Alexis here 
http://groups.google.com/group/svg-edit/browse_thread/thread/3a5d5222a522ec8a).

Original comment by senthil....@gmail.com on 21 Apr 2011 at 4:28

Attachments:

GoogleCodeExporter commented 9 years ago
Attaching an updated version. Fixed the issue with the rotation. Also,
made some changes to preserve 'undo' history so undo & redo works as
expected. 

Original comment by senthil....@gmail.com on 27 Apr 2011 at 5:50

Attachments:

GoogleCodeExporter commented 9 years ago
This extension doesn't seem to work for me with the 2.6.  Should it?

Original comment by stonewar...@gmail.com on 13 Jul 2011 at 7:13

GoogleCodeExporter commented 9 years ago
I've made a few changes to get the flip to work with version 2.6. I hope this 
helps.

Original comment by stonewar...@gmail.com on 14 Jul 2011 at 2:39

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
images and text are fliiping only once.

Original comment by imranash...@gmail.com on 19 Jun 2012 at 12:18

GoogleCodeExporter commented 9 years ago
Issue 1055 has been merged into this issue.

Original comment by codedr...@gmail.com on 19 Feb 2013 at 1:05

GoogleCodeExporter commented 9 years ago
thanks for your replies but I am looking forward to work with a canvas where I 
can work simultaneously on 2 sides of paper (SVG).

thanks

Original comment by gary.mar...@gmail.com on 19 Feb 2013 at 6:05

GoogleCodeExporter commented 9 years ago
HI Sir, Can this editor save background image as well as edit image????

Original comment by mctarifa...@gmail.com on 25 Jun 2013 at 11:23

GoogleCodeExporter commented 9 years ago
and sir how i can save this image in jpg, gif format??

Original comment by mctarifa...@gmail.com on 25 Jun 2013 at 11:25