{"action":"created","issue":{"url":"https://api.github.com/repos/Ni55aN/d3-node-editor/issues/48","repository_url":"https://api.github.com/repos/Ni55aN/d3-node-editor","labels_url":"https://api.github.com/repos/Ni55aN/d3-node-editor/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/Ni55aN/d3-node-editor/issues/48/comments","events_url":"https://api.github.com/repos/Ni55aN/d3-node-editor/issues/48/events","html_url":"https://github.com/Ni55aN/d3-node-editor/issues/48","id":300809078,"number":48,"title":"Is there a copy feature for groups or nodes?","user":{"login":"Linkupdated","id":557140,"avatar_url":"https://avatars3.githubusercontent.com/u/557140?v=4","gravatar_id":"","url":"https://api.github.com/users/Linkupdated","html_url":"https://github.com/Linkupdated","followers_url":"https://api.github.com/users/Linkupdated/followers","following_url":"https://api.github.com/users/Linkupdated/following{/other_user}","gists_url":"https://api.github.com/users/Linkupdated/gists{/gist_id}","starred_url":"https://api.github.com/users/Linkupdated/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Linkupdated/subscriptions","organizations_url":"https://api.github.com/users/Linkupdated/orgs","repos_url":"https://api.github.com/users/Linkupdated/repos","events_url":"https://api.github.com/users/Linkupdated/events{/privacy}","received_events_url":"https://api.github.com/users/Linkupdated/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-27T21:58:50Z","updated_at":"2018-03-01T02:39:02Z","closed_at":null,"author_association":"NONE","body":"I would like to know if there is a copy feature or an api to copy nodes or groups?\r\n\r\nIf not maybe pointing me in the right direction could help.\r\n\r\nthanks!\r\n"},"comment":{"url":"https://api.github.com/repos/Ni55aN/d3-node-editor/issues/comments/369455349","html_url":"https://github.com/Ni55aN/d3-node-editor/issues/48#issuecomment-369455349","issue_url":"https://api.github.com/repos/Ni55aN/d3-node-editor/issues/48","id":369455349,"user":{"login":"Linkupdated","id":557140,"avatar_url":"https://avatars3.githubusercontent.com/u/557140?v=4","gravatar_id":"","url":"https://api.github.com/users/Linkupdated","html_url":"https://github.com/Linkupdated","followers_url":"https://api.github.com/users/Linkupdated/followers","following_url":"https://api.github.com/users/Linkupdated/following{/other_user}","gists_url":"https://api.github.com/users/Linkupdated/gists{/gist_id}","starred_url":"https://api.github.com/users/Linkupdated/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Linkupdated/subscriptions","organizations_url":"https://api.github.com/users/Linkupdated/orgs","repos_url":"https://api.github.com/users/Linkupdated/repos","events_url":"https://api.github.com/users/Linkupdated/events{/privacy}","received_events_url":"https://api.github.com/users/Linkupdated/received_events","type":"User","site_admin":false},"created_at":"2018-03-01T02:39:02Z","updated_at":"2018-03-01T02:39:02Z","author_association":"NONE","body":"I just tried but since the Id is the same it doesn't seem to duplicate correctly\r\n\r\n`var node = component.newNode();\r\ncomponent.builder(node);\r\n\r\nnode.position[0] = json.position[0]-100;\r\nnode.position[1] = json.position[1]-100;\r\n\r\nnode.data = json.data;\r\neditor.addNode(node);`\r\n\r\nThis one seem to work but the data in D3NE.Control when I save with editor.toJSON() seem to copy the same data. Even if they are not the same value when exporting. I can't figure out yet why its doing that."}}
{"actor":{"display_login":"Linkupdated"}}