This is documentation for JointJS Docs 4.0, which is no longer actively maintained.
For up-to-date documentation, see the latest version (4.1).
Diagram basics
JointJS diagrams are built using several JointJS objects - all JointJS applications need to have a Graph and a Paper. The graph contains a reference to all contents of your diagram, while the paper is responsible for rendering the graph.