ikrauchanka / jsdot

Automatically exported from code.google.com/p/jsdot
0 stars 0 forks source link

Event Handlers #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
How easy is it to attach event handlers to nodes through the API? This way,
some user-defined code can be written to react to the mouse interactions
with the graph (for example, if you use the library to show the navigation
graph of the site, double clicking on the node takes you to the page
represented by the node)

Original issue reported on code.google.com by cesare.p...@gmail.com on 17 Dec 2009 at 3:39

GoogleCodeExporter commented 8 years ago
No Way.

We need a read-only mode for that. At present we have editor handlers attached
everywhere, even if the menu is not shown.
Actually labels could easily be made <a> tags (in svg) but they could get in 
the way
when dragging.

Original comment by silh...@gmail.com on 17 Dec 2009 at 5:20

GoogleCodeExporter commented 8 years ago
Just to clarify, I was just recording some thoughts for future work. (In other 
words,
adding an API for attaching/detaching custom event listeners is not a 
requirement for
completing the project)

Original comment by cesare.p...@gmail.com on 17 Dec 2009 at 5:48