Nodes

Basic shapes include circle, rectangle, diamond and more…

Circle

Example of a cricle.

const layers = {
  x: 180,
  y: 120,
  shapes: nodes.circle.shapes({ radius: 64 }, nodeStyle.normal),
},
graph.updateQueue(0, [[n]]);

Diamond

Example of a diamond.

const n = {
  x: 180,
  y: 120,
  shapes: nodes.diamond.shapes({ width: 120, height: 90 }, nodeStyle.normal),
};
graph.updateQueue(0, [[n]]);

Rectangle

Example of a rectangle.

const n = {
  x: 180,
  y: 120,
  shapes: nodes.rectangle.shapes({ width: 120, height: 90, radius: 9 }, nodeStyle.normal),
};
graph.updateQueue(0, [[n]]);