aniatbr / spray

Automatically exported from code.google.com/p/spray
0 stars 0 forks source link

SVG-Generator Bugs (Size and Compartments) #188

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
There are still some issues regarding the SVG generator.

Issue 1. The SVG (and on hoover the PNG) pictures will be cutted on the right 
side. Please try to generate the attached shapes to reproduce this issue 
("issue1.shape").

Issue 2. While using nested shapes/compartments the SVG-file shows up two 
elements positionied on a wrong position. See attached file "issue2.shape".

Regards

Original issue reported on code.google.com by fabio.filippelli on 14 Oct 2012 at 9:39

Attachments:

GoogleCodeExporter commented 8 years ago
Issue 1: Thought, that I have fixed this by given +5 extra each for height and 
width in svg tag
Issue 2: For nested shapes the position should be also fixed

I tracked this is in issue #181

But I will have look at it again if its really fixed.  

Original comment by de.abg.r...@gmail.com on 15 Oct 2012 at 3:17

GoogleCodeExporter commented 8 years ago
Ok, I found the mistakes:
 * Issue 1 is related only to polygons, the width and height is now calculated correctly
 * Issue 2: shapes uses some default offset, so that they do not start in (0,0), when using those shapes as nested shapes this default offset is now not applied anymore

Original comment by de.abg.r...@gmail.com on 16 Oct 2012 at 6:19

GoogleCodeExporter commented 8 years ago
Right, the shapes used to be a hierarchy of graphics algorithms,  but has been 
changed to a hierarchy of of container shapes.  Each subshape has coordinates 
relative to the parent shape.  However,  when there is an active cotainershape 
inside a non active containershape, Graphiti does not use the relative 
coordinates. For generating the shapes in the editor, I have a "fix" operation 
that fixes these coordinates. the same should be applied to the SVG generator.

Original comment by joswar...@gmail.com on 16 Oct 2012 at 7:12

GoogleCodeExporter commented 8 years ago
 * fixed position calculation (absolute and container relative works now)
 * added style interpretation (currently only directly annotated style
information)
 * added connection decoration interpretation
 * still missing: 
  * font attribute interpretation
  * interpretation of text align
  * interpretation of placing's radius and angle, 
  * referenced style interpretation
  * gradients interpretation
  * color interpretation based on numbers

Original comment by de.abg.r...@gmail.com on 18 Nov 2012 at 3:23