ktmprabhu / spray

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

wrong svg-conncection-preview #273

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I attached an image including pictures of the svg-preview, the Graphiti-output 
and the used shape-code for the three steps i did in this explanation.

When we define special connections in the shape-dsl, for example a connection 
with an arrow at the beginnig and the end:

When we want to define a connection with arrows at both it’s ends the 
logically correct solution will not work, while also showing the wrong result 
in the svg-preview. 

1. Logical solution:
The arrow at the beginning of the connection is aiming left, while the second 
arrow is aiming right. The svg-preview shows the desired result (see the 
svg-preview for 1. in the attached image). Graphiti shows a different shape for 
the connection: The start of the connection is located in the first element.

2. Turn the arrow:
Therefore we tried to turn the first arrow and let him aim right. The arrow is 
now still located inside the element, but at least is aiming in the right 
direction.

3. Move the arrow into negative:
The svg-preview displays the result we would expect for the given source-code. 
In Graphiti we finally have achieved our goal.

Original issue reported on code.google.com by dicheri...@googlemail.com on 22 Jun 2013 at 2:53

Attachments: