Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic X and Y position of node when zoomed in/out. (Read 936 times)
Shafi
Full Member
***
Offline


I Love MindFusion!

Posts: 109
Joined: Nov 8th, 2016
X and Y position of node when zoomed in/out.
Nov 26th, 2018 at 9:50am
Print Post  
Hello,

I would like to get the X and Y coordinates of the canvas node when canvas is in zoomed in/out state.
Currently getting the X and Y coordinates those represents the data when the canvas is in FitToScreen State.

Do we have any option to get the X and Y coordinates when diagram is in zoomed in/out state?

Thank you.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: X and Y position of node when zoomed in/out.
Reply #1 - Nov 26th, 2018 at 11:09am
Print Post  
Hi,

Try calling diagram's docToClient method -
Code
Select All
var pxPoint = diagram.docToClient(
    node.getBounds().topLeft()); 



Regards,
Slavcho
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint