nodeEnter(enterSelection) - code to draw new nodes when they appear
linkEnter(enterSelection) - same for links
nodeExit(exitSelection) - code to take action when nodes disappear
linkExit(exitSelection) - same for links
onTick() - actions to take on each tick
The this context for all the methods will be set to the view itself. All of the methods are optional - if omitted, the behavior seen in the Cola view up until now will be preserved.
Adds several properties to
Cola
's constructor:nodeEnter(enterSelection)
- code to draw new nodes when they appearlinkEnter(enterSelection)
- same for linksnodeExit(exitSelection)
- code to take action when nodes disappearlinkExit(exitSelection)
- same for linksonTick()
- actions to take on each tickThe
this
context for all the methods will be set to the view itself. All of the methods are optional - if omitted, the behavior seen in the Cola view up until now will be preserved.