Блоки
Node
node = new Node();
node.move(x, y); // перемещение блока
node.setColor();
node.setName();
node.setDescription();
node.setTitle(); // текст снизу блока
// работа с портами
// добавить порт
node.addPort();
Опции
| Month | Savings |
|---|---|
| January | $250 |
| February | $80 |
| March | $420 |
Методы
// создать PortType
diagram.addPortType({})
// добавить ноды в палитру
diagram.addPaletteNode({})
diagram.addNode()
cont node = diagram.getNodeByID('123')