I used cytoscape.js
in my project angular.
I want to detect any change in graph(cytoscape.js) with only a event.
Changes can include anything from resizing, changing colors, moving the nodes, and so on.
Is there just one event to detect all of these changes?
Asked
Active
Viewed 527 times
-3

or123456
- 2,091
- 8
- 28
- 50
-
1Please share your code and describe your current approach. Cytoscape.js has extensive documentation on events, so please do some research and refine your question. – Stephan T. Mar 07 '21 at 14:48
1 Answers
0
There are user input events, collections events, and graph events. There are lots of events. For example, for collection events you can write an event listener like
cy.on('add remove move select unselect tapselect tapunselect boxselect box lock', function(ev) { console.log('hey some event happened on cy: ', ev);}
Then listen for all the events.

canbax
- 3,432
- 1
- 27
- 44