Restrict the shape connection areas
Posted: Tue Jul 07, 2009 1:07 pm
Hi guys,
1- I have a need that is dificult to explain. But i'll try.
When connecting squares, it should not allow connections between the square's corners.
The TeeEditor component must only allow to connect at the middle of a square's side (when I move the connection point at this position, I have a small circle around the red dot). That can be in upper, lower, left or right side.
In other words, seeing the image above, lock the possible connection points to the green circles.
2- Other question is to restrict the user to create points over the connection line.
Image:
It's possible to restrict this by code?
Thanks.
1- I have a need that is dificult to explain. But i'll try.
When connecting squares, it should not allow connections between the square's corners.
The TeeEditor component must only allow to connect at the middle of a square's side (when I move the connection point at this position, I have a small circle around the red dot). That can be in upper, lower, left or right side.
In other words, seeing the image above, lock the possible connection points to the green circles.
2- Other question is to restrict the user to create points over the connection line.
Image:
It's possible to restrict this by code?
Thanks.