Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Grid lines and arrow (Read 2331 times)
koosala
Full Member
***
Offline


Java Happens

Posts: 136
Joined: May 13th, 2007
Grid lines and arrow
Apr 5th, 2008 at 5:08pm
Print Post  
Hi,

When if the grid is enabled, and a box is dragged, the box is aligned to the grid. Is it possible to make the arrows too align to the grid when they are being created?

Thanks,
Praveen
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Grid lines and arrow
Reply #1 - Apr 9th, 2008 at 8:25am
Print Post  
Hi,

This can be done only if the node outlines pass through grid points, i.e. if the node has a rectangular shape and it is aligned to the grid. How would you suggest to align the arrow end when the node is not aligned, or it has an oval shape?

Stoyan
  
Back to top
 
IP Logged
 
koosala
Full Member
***
Offline


Java Happens

Posts: 136
Joined: May 13th, 2007
Re: Grid lines and arrow
Reply #2 - Apr 9th, 2008 at 8:40am
Print Post  
Hi,

Is it possible for rectangular shapes aligned to the grid?

Thanks,
Praveen
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Grid lines and arrow
Reply #3 - Apr 9th, 2008 at 10:37am
Print Post  
Yes, but it's still tricky. The control treats all node shapes as closed sequences of lines and beziers, and does not keep any intrinsic information whether a shape is a rectangle. So we'll have to use a lot of geometric calculations to find grid points that lie on the node borders, or otherwise define a Rectangle shape element (as there is already a RoundRect) and implement that just for shapes whose outlines are defined as a Rectangle.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint