I do not know if this a bug, but it is an issue (for me then).
If I "shape script" a connector. All comes out right. The (0,0) position is where the shape hits the Element.
Question:
Why does it draw the line "through" the shape? Even though the shape is "fillandstrokepath()"? If a draw a circle the connector line has to start "outside" the shape? I had to moveTo (in main shape) to get the line outside the shape, but then it leaves a gap. When the Element is further away from the other Element then gap will get wider?
I will put my shape script below (Source->Target):
[Modified]
// Connector Example
shape main
{
// draw a line
noshadow=true;
setlinestyle("SOLID");
moveto(0,0); //compensation for line going thhrough the shape
lineto(100,0); //compensation for line going through shape
}
shape source
{
rotatable = true;
startpath();
Polygon(0,0,4,6,90);
endpath();
fillandstrokepath();
}
shape target
{
rotatable = true;
startpath();
Polygon(0,0,3,9,180);
endpath();
fillandstrokepath();
}