|
const a = new SchemaFigureSyncfusion();
a.id = uuidv4();
a.width = 160;
a.height = 160;
a.offsetX = 10;
a.offsetY = 10;
// Set children as an empty collection to the node
a.children = [];
const t = new TextFigure('Some text', uuidv4());
this.diagram.add(a);
this.diagram.addChildToGroup(a, t); |
|
addNode() {
// Problematic container
const a = new SchemaFigureSyncfusion();
a.id = uuidv4();
a.width = 160;
a.height = 160;
a.offsetX = 10;
a.offsetY = 10;
var t = [{content: 'Text'}]
this.diagram.add(a);
this.diagram.addLabels(a, t);
} |