Skip to content

Instantly share code, notes, and snippets.

@igauravsehrawat
Created July 27, 2018 14:08
Show Gist options
  • Save igauravsehrawat/8fdf0f3c70b30e88761d3c560e8f68de to your computer and use it in GitHub Desktop.
Save igauravsehrawat/8fdf0f3c70b30e88761d3c560e8f68de to your computer and use it in GitHub Desktop.
const model: EntityState = [
{
"linksTo": [
{
"points": [
{
"y": 375,
"x": 150
},
{
"x": 150,
"y": 475
},
{
"x": 300,
"y": 475
},
{
"x": 300,
"y": 525
}
],
"label": "active",
"name": "Node-2",
"target": 2,
"type": "Task"
},
{
"points": [
{
"y": 400,
"x": 250
},
{
"x": 350,
"y": 400
},
{
"x": 350,
"y": 475
},
],
"label": "inactive",
"name": "Node-2",
"target": 2,
"type": "Task"
}
],
"y": 325,
"x": 50,
"name": "Node-1",
"height": 100,
"width": 200,
"type": "Task",
"id": 1
},
{
"linksTo": [],
"y": 475,
"x": 275,
"height": 100,
"width": 200,
"type": "Task",
"name": "Node-2",
"nodeId": 2,
"id": 2
}
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment