In the previous chapter we learned how modify nodes and node properties. Now we see how to listen and react to such changes.
The webvis API has an event system, which responds to all kind of changes, e.g. modifications to the instanceGraph or user interactions. Most actions, such as adding a node to the InstanceGraph or clicking the visible geometry of a node, will generate events. Events are handled by event listener, which are callbacks registered for a to be specified set of events, which will be triggered when the event is generated.
Webvis generates more than 70 different events.
Try to add nodes using the button and delete them using the UI menu.