// define nodes
public nodes: NodeModel[] = [
{
id: 'Process', width: 200, height:300, offsetX:200,offsetY:300, style: {fill:'grey',strokeColor: '#80b3ff'}, shape: { type: 'Flow', shape: 'Process' },
},
{
id: 'nodeA', width: 200, height:50, offsetX:200,offsetY:200, style: {fill:'#80b3ff',strokeColor: '#80b3ff'}, shape: { type: 'Flow', shape: 'Terminator' },
annotations: [{content: 'Will i be sent', style: {fontSize:14}}]
},
{
id: 'nodeB', width: 200, height:50, offsetX:200,offsetY:270, style: {fill:'#80b3ff',strokeColor: '#80b3ff'}, shape: { type: 'Flow', shape: 'Terminator' },
annotations: [{content: 'What timezone', style: {fontSize:14}}]
},
{
id: 'nodeC', width: 200, height:50, offsetX:200,offsetY:340, style: {fill:'#80b3ff',strokeColor: '#80b3ff'}, shape: { type: 'Flow', shape: 'Terminator' },
annotations: [{content: 'Can i register', style: {fontSize:14}}]
},
{
id: 'nodeD', width: 200, height:50, offsetX:200,offsetY:410, style: {fill:'#80b3ff',strokeColor: '#80b3ff'}, shape: { type: 'Flow', shape: 'Terminator' },
annotations: [{content: 'Is this a virtual', style: {fontSize:14}}]
},
//create group node
{
id:'Group', children: ['Process', 'nodeA', 'nodeB', 'nodeC', 'nodeD']
}
]; |