updateLayouts Example - cytoscape/cytoscape-web GitHub Wiki
Format of response for updateLayouts results.
[
{
"action": "updateLayouts",
"data": [
{
"id": number,
"x": number,
"y": number,
"z": number // Optional
}
]
}
]
Example:
[
{
"action": "updateLayouts",
"data": [
{
"id": 7,
"x": 25.2,
"y": -473.6,
},
{
"id": 100,
"x": 15,
"y": 100,
}
]
}
]