You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I've been experimenting with your program (awesome by the way) and added some features I needed for my app for personal use (i added some display filters and touch gestures). I was thinking of adding a feature to add nodes and edges (ie: adding a node where I click with the mouse or tap). If this is likekly to happen I would need to understand how do you map position from the gexf coordinates to the canvas. I see that you use a function called calcCoord but I am not understanding how it works. could you provide some pointers or general ideas so I can understand this? what i would try to make is an inverse function so i can get the gexf coordinates from the mouse position.
By the way if you are curious about my app here is a link (its in spanish):
There is a function called nodeFromPos that looks up nodes at the mouse position.
I know the code for that part is a bit complicated and tends to mix french and english and that the words I use to describe coordinate properties may be improper.
The coordinates are transformed 3 times to convert node positions from the Gexf file to screen positions:
Hi, I've been experimenting with your program (awesome by the way) and added some features I needed for my app for personal use (i added some display filters and touch gestures). I was thinking of adding a feature to add nodes and edges (ie: adding a node where I click with the mouse or tap). If this is likekly to happen I would need to understand how do you map position from the gexf coordinates to the canvas. I see that you use a function called calcCoord but I am not understanding how it works. could you provide some pointers or general ideas so I can understand this? what i would try to make is an inverse function so i can get the gexf coordinates from the mouse position.
By the way if you are curious about my app here is a link (its in spanish):
http://www.kalliope.com.ar/gexf-js-master/index.html
And an article explaining it (sadly also in spanish only):
http://vikingobjj.blogspot.com.ar/2014/01/war-inside-my-head.html
The text was updated successfully, but these errors were encountered: