sigmajs lets you add buttons to trigger events, in static documents.
A button to export the graph as SVG, not that you can export to an image (png, jpeg, gif or tiff).
You can also trigger mutliple events with the button by passing a vector of events to
event. Below we add a button that will start the forceAtlas2 layout and stop it after 3 seconds.
Events that can be triggered via a button (corresponding function name minus
You will examples of the above scattered throughout the documentation.