public nodes: NodeModel[] = [
{
id: 'nodeA', width: 200, height:30, offsetX:200,offsetY:200, style: {fill:'Magenta',strokeColor: 'Magenta'}
},
{
id: 'nodeB', width: 200, height:100, offsetX:200,offsetY:270, style: {fill:'red', strokeColor:'red'},
annotations: [{content: 'No i have few queries', style: {fontSize:14}}]
},
//create group node
{
id:'Group', children: ['nodeA', 'nodeB']
}
] |