Basic shapes include circle, rectangle, diamond and more…
Example of a cricle.
const layers = {
x: 180,
y: 120,
shapes: nodes.circle.shapes({ radius: 64 }, nodeStyle.normal),
},
graph.updateQueue(0, [[n]]);
Example of a diamond.
const n = {
x: 180,
y: 120,
shapes: nodes.diamond.shapes({ width: 120, height: 90 }, nodeStyle.normal),
};
graph.updateQueue(0, [[n]]);
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]]);