{"action":"created","issue":{"url":"https://api.github.com/repos/almende/vis/issues/711","labels_url":"https://api.github.com/repos/almende/vis/issues/711/labels{/name}","comments_url":"https://api.github.com/repos/almende/vis/issues/711/comments","events_url":"https://api.github.com/repos/almende/vis/issues/711/events","html_url":"https://github.com/almende/vis/issues/711","id":60808402,"number":711,"title":"network: start nodes at user-defined position, but don't fix","user":{"login":"klmdb","id":7534041,"avatar_url":"https://avatars.githubusercontent.com/u/7534041?v=3","gravatar_id":"","url":"https://api.github.com/users/klmdb","html_url":"https://github.com/klmdb","followers_url":"https://api.github.com/users/klmdb/followers","following_url":"https://api.github.com/users/klmdb/following{/other_user}","gists_url":"https://api.github.com/users/klmdb/gists{/gist_id}","starred_url":"https://api.github.com/users/klmdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klmdb/subscriptions","organizations_url":"https://api.github.com/users/klmdb/orgs","repos_url":"https://api.github.com/users/klmdb/repos","events_url":"https://api.github.com/users/klmdb/events{/privacy}","received_events_url":"https://api.github.com/users/klmdb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/almende/vis/labels/Network","name":"Network","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-03-12T12:01:15Z","updated_at":"2015-05-22T13:37:37Z","closed_at":"2015-05-22T13:37:37Z","body":"When I set the node's x and y attributes before adding it to my network's Dataset, the nodes are initialized at that position, but they can't be moved anymore. I would like to be able to give them a starting position from where they continue to stabilize. \r\n\r\nFor now, I modified the Node.js source file to achieve this functionality:\r\n\r\nCHANGE\r\n\r\n    if (properties.allowedToMoveX !== undefined) {\r\n      this.xFixed = !properties.allowedToMoveX;\r\n      this.allowedToMoveX = properties.allowedToMoveX;\r\n    }\r\n    else if (properties.x !== undefined && this.allowedToMoveX == false) {\r\n      this.xFixed = true;\r\n    }\r\n\r\n\r\n    if (properties.allowedToMoveY !== undefined) {\r\n      this.yFixed = !properties.allowedToMoveY;\r\n      this.allowedToMoveY = properties.allowedToMoveY;\r\n    }\r\n    else if (properties.y !== undefined && this.allowedToMoveY == false) {\r\n      this.yFixed = true;\r\n    }\r\n\r\nFOR\r\n\r\n\r\n    if (properties.allowedToMoveX !== undefined) {\r\n      this.xFixed = !properties.allowedToMoveX;\r\n      this.allowedToMoveX = properties.allowedToMoveX;\r\n    }\r\n    else if (properties.x !== undefined && this.allowedToMoveX == false) {\r\n      this.xFixed = true;\r\n    }\r\n\r\n\r\n    if (properties.allowedToMoveY !== undefined) {\r\n      this.yFixed = !properties.allowedToMoveY;\r\n      this.allowedToMoveY = properties.allowedToMoveY;\r\n    }\r\n    else if (properties.y !== undefined && this.allowedToMoveY == false) {\r\n      this.yFixed = true;\r\n    }\r\n\r\n\r\n    if(properties.startX !== undefined){\r\n\r\n      if(this.x === null){\r\n        this.x = properties.startX;\r\n      }\r\n    }\r\n    if(properties.startY !== undefined){\r\n\r\n      if(this.y === null){\r\n        this.y = properties.startY;\r\n      }\r\n    }"},"comment":{"url":"https://api.github.com/repos/almende/vis/issues/comments/104662429","html_url":"https://github.com/almende/vis/issues/711#issuecomment-104662429","issue_url":"https://api.github.com/repos/almende/vis/issues/711","id":104662429,"user":{"login":"AlexDM0","id":5363277,"avatar_url":"https://avatars.githubusercontent.com/u/5363277?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexDM0","html_url":"https://github.com/AlexDM0","followers_url":"https://api.github.com/users/AlexDM0/followers","following_url":"https://api.github.com/users/AlexDM0/following{/other_user}","gists_url":"https://api.github.com/users/AlexDM0/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexDM0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexDM0/subscriptions","organizations_url":"https://api.github.com/users/AlexDM0/orgs","repos_url":"https://api.github.com/users/AlexDM0/repos","events_url":"https://api.github.com/users/AlexDM0/events{/privacy}","received_events_url":"https://api.github.com/users/AlexDM0/received_events","type":"User","site_admin":false},"created_at":"2015-05-22T13:37:37Z","updated_at":"2015-05-22T13:37:37Z","body":"Hi,\r\n\r\nIs this still an issue? We just released v4 with a lot of changes on this part. If you supply an x and y coordinate the nodes will spawn there (or snap there if already initialized) but they will not be fixed unless you supply the fixed option. I'll close this issue as most of what we discussed here is no longer relevant with v4. If you encounter a similar problem in v4, please make a new issue.\r\n\r\nRegards,\r\n\r\nAlex"}}