showing results for - "jointjs documentation"
Luca
30 Nov 2020
1var graph = new joint.dia.Graph
2var paper = new joint.dia.Paper({
3    el: $('#paper'),
4    width: 600,
5    height: 400,
6    gridSize: 10,
7    model: graph
8});
9
10var rect = new joint.shapes.basic.Rect({
11    position: { x: 50, y: 70 },
12    size: { width: 100, height: 40 }
13});
14
15graph.addCell(rect);
similar questions
queries leading to this page
jointjs documentation