{"action":"closed","issue":{"url":"https://api.github.com/repos/almende/vis/issues/1920","repository_url":"https://api.github.com/repos/almende/vis","labels_url":"https://api.github.com/repos/almende/vis/issues/1920/labels{/name}","comments_url":"https://api.github.com/repos/almende/vis/issues/1920/comments","events_url":"https://api.github.com/repos/almende/vis/issues/1920/events","html_url":"https://github.com/almende/vis/issues/1920","id":161412936,"number":1920,"title":"Update Cluster node properties","user":{"login":"sarjandesai","id":20065787,"avatar_url":"https://avatars.githubusercontent.com/u/20065787?v=3","gravatar_id":"","url":"https://api.github.com/users/sarjandesai","html_url":"https://github.com/sarjandesai","followers_url":"https://api.github.com/users/sarjandesai/followers","following_url":"https://api.github.com/users/sarjandesai/following{/other_user}","gists_url":"https://api.github.com/users/sarjandesai/gists{/gist_id}","starred_url":"https://api.github.com/users/sarjandesai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarjandesai/subscriptions","organizations_url":"https://api.github.com/users/sarjandesai/orgs","repos_url":"https://api.github.com/users/sarjandesai/repos","events_url":"https://api.github.com/users/sarjandesai/events{/privacy}","received_events_url":"https://api.github.com/users/sarjandesai/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/almende/vis/labels/duplicate","name":"duplicate","color":"cccccc"},{"url":"https://api.github.com/repos/almende/vis/labels/Network","name":"Network","color":"009800"},{"url":"https://api.github.com/repos/almende/vis/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-21T11:31:53Z","updated_at":"2016-09-01T08:01:44Z","closed_at":"2016-09-01T08:01:44Z","body":"Is There any way of updating ClusterNode Properties? \r\n\r\nMy requirement is to change the background and someother properties of the ClusterNode on click event of Network.\r\n\r\nWhen i try  **update** on cluster node its converting it to normal Node. I tried to assign all cluster node related properties as well.\r\n\r\nSample Code :\r\n\r\n```\r\nvar Nodes = network.body.nodes;\r\nvar xNodes = Object.keys(Nodes).map(function(k) { return Nodes[k] });// JSON to array\r\n\t\t\t\r\n\t\t\tfor(var x = 0;x < xNodes.length;x++)\r\n\t\t\t{\r\n\t\t\t\tif(network.isCluster(xNodes[x].id))\r\n\t\t\t\t{\r\n\t\t\t\t\tnodes.update({ id: xNodes[x].id, label: xNodes[x].options.label,cid:xNodes[x].options.cid, shape: 'image', image: xNodes[x].options.image,color:{border: '#406897', background: '#efeded',highlight:{background:'gray',border:'blue'}}, shapeProperties: {useBorderWithImage:true}, clusterEdgeProperties : xNodes[x].clusterEdgeProperties, containedEdges : xNodes[x].containedEdges , containedNodes : xNodes[x].containedNodes, isCluster : true});\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tnodes.update({ id: xNodes[x].id, label: xNodes[x].options.label,cid:xNodes[x].options.cid, shape: 'image', image: xNodes[x].options.image,color:{border: '#406897', background: '#efeded',highlight:{background:'gray',border:'blue'}}, shapeProperties: {useBorderWithImage:true}});\r\n\t\t\t\t}\r\n\t\t\t}\r\n```"}}
{"actor":{"display_login":"mojoaxel"}}