In JointJS+, various methods exist for determining the paper size. One option involves arbitrary definition, while another allows for dynamic adjustments when an element exceeds its boundary. The canvas dimensions can be specified as a singular sheet or as multiple sheets with distinct borders. This proves particularly effective when utilized alongside the print function. Alternatively, users can opt for an infinite paper approach, which lacks defined borders. To gain a deeper understanding of these techniques, we invite you to explore our interactive demo below, where both approaches can be experimented with.
Use the toolbar to switch between infinite paper and sheets. With infinite paper turned off, move the elements to a new area and watch the paper dynamically enlarge. In addition, you can change the grid style.
The source code of this demo is available as part of the JointJS+ commercial license. Don't have a license yet? Start a trial and use the source code of this and many other demos for free, with no obligations, for 30 days.