{"action":"created","comment":{"url":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/comments/42979046","id":42979046,"diff_hunk":"@@ -1556,27 +1556,11 @@ public void Copy()\n         /// </summary>\n         public void Paste()\n         {\n-            // Provide a small offset when pasting so duplicate pastes aren't directly on top of each other","path":"src/DynamoCore/Models/DynamoModel.cs","position":4,"original_position":4,"commit_id":"eff6687b8f379b463b9ab865ba882300813fc77e","original_commit_id":"eff6687b8f379b463b9ab865ba882300813fc77e","user":{"login":"aosyatnik","id":8158404,"avatar_url":"https://avatars.githubusercontent.com/u/8158404?v=3","gravatar_id":"","url":"https://api.github.com/users/aosyatnik","html_url":"https://github.com/aosyatnik","followers_url":"https://api.github.com/users/aosyatnik/followers","following_url":"https://api.github.com/users/aosyatnik/following{/other_user}","gists_url":"https://api.github.com/users/aosyatnik/gists{/gist_id}","starred_url":"https://api.github.com/users/aosyatnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aosyatnik/subscriptions","organizations_url":"https://api.github.com/users/aosyatnik/orgs","repos_url":"https://api.github.com/users/aosyatnik/repos","events_url":"https://api.github.com/users/aosyatnik/events{/privacy}","received_events_url":"https://api.github.com/users/aosyatnik/received_events","type":"User","site_admin":false},"body":"All these manipulations with coordinates moved in DynamoView.","created_at":"2015-10-26T10:51:54Z","updated_at":"2015-10-26T10:51:54Z","html_url":"https://github.com/DynamoDS/Dynamo/pull/5556#discussion_r42979046","pull_request_url":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/5556","_links":{"self":{"href":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/comments/42979046"},"html":{"href":"https://github.com/DynamoDS/Dynamo/pull/5556#discussion_r42979046"},"pull_request":{"href":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/5556"}}},"pull_request":{"url":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/5556","id":48072550,"html_url":"https://github.com/DynamoDS/Dynamo/pull/5556","diff_url":"https://github.com/DynamoDS/Dynamo/pull/5556.diff","patch_url":"https://github.com/DynamoDS/Dynamo/pull/5556.patch","issue_url":"https://api.github.com/repos/DynamoDS/Dynamo/issues/5556","number":5556,"state":"open","locked":false,"title":"Copy paste nodes: additional functionality","user":{"login":"aosyatnik","id":8158404,"avatar_url":"https://avatars.githubusercontent.com/u/8158404?v=3","gravatar_id":"","url":"https://api.github.com/users/aosyatnik","html_url":"https://github.com/aosyatnik","followers_url":"https://api.github.com/users/aosyatnik/followers","following_url":"https://api.github.com/users/aosyatnik/following{/other_user}","gists_url":"https://api.github.com/users/aosyatnik/gists{/gist_id}","starred_url":"https://api.github.com/users/aosyatnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aosyatnik/subscriptions","organizations_url":"https://api.github.com/users/aosyatnik/orgs","repos_url":"https://api.github.com/users/aosyatnik/repos","events_url":"https://api.github.com/users/aosyatnik/events{/privacy}","received_events_url":"https://api.github.com/users/aosyatnik/received_events","type":"User","site_admin":false},"body":"### Purpose\r\n\r\nLink to YouTrack:\r\n[MAGN-8386](http://adsk-oss.myjetbrains.com/youtrack/issue/MAGN-8386) As a user, when I copy and paste nodes, I want the pasted nodes to appear in their original location with a slight offset, so I can easily find them.\r\n\r\n*******Acceptance Criteria*********\r\n - If a copied node is visible on canvas, paste the node to the right of the original node. If pasting the node will cause the duplicate to appear off-canvas move it to the center of the canvas.\r\n - If copied node is not visible on canvas, paste the node underneath the mouse cursor. If the mouse cursor is off of the canvas, paste the node in the center of the canvas\r\n\r\nWhat's done:\r\n* updated `public void Paste(Point2D targetPoint, bool useOffset = true)`, now it takes `useOffset` as input. It's used, when paste node under mouse cursor. In this case we don't use offset, in other cases we need offset.\r\n* `CenterX` and `CenterY` for WorkspaceModel now return right values. (It didn't work)\r\n* Updated `private void Paste(object parameter)` according to Acceptance Criteria.\r\n\r\n### Declarations\r\n\r\n- [x] The code base is in a better state after this PR\r\n- [x] Is documented according to the [standards](https://github.com/DynamoDS/Dynamo/wiki/Coding-Standards)\r\n- [ ] The level of testing this PR includes is appropriate\r\n- [ ] User facing strings, if any, are extracted into `*.resx` files\r\n\r\n### Reviewers\r\n\r\n@ikeough \r\n@marimano , I think you should be interested in it.\r\n\r\n### FYIs\r\n\r\n@Racel ","created_at":"2015-10-19T13:39:54Z","updated_at":"2015-10-26T10:51:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"55872ea98071e0820a531d2ea93e1268bab09df5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/5556/commits","review_comments_url":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/5556/comments","review_comment_url":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DynamoDS/Dynamo/issues/5556/comments","statuses_url":"https://api.github.com/repos/DynamoDS/Dynamo/statuses/eff6687b8f379b463b9ab865ba882300813fc77e","head":{"label":"aosyatnik:CopyPasteNodes","ref":"CopyPasteNodes","sha":"eff6687b8f379b463b9ab865ba882300813fc77e","user":{"login":"aosyatnik","id":8158404,"avatar_url":"https://avatars.githubusercontent.com/u/8158404?v=3","gravatar_id":"","url":"https://api.github.com/users/aosyatnik","html_url":"https://github.com/aosyatnik","followers_url":"https://api.github.com/users/aosyatnik/followers","following_url":"https://api.github.com/users/aosyatnik/following{/other_user}","gists_url":"https://api.github.com/users/aosyatnik/gists{/gist_id}","starred_url":"https://api.github.com/users/aosyatnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aosyatnik/subscriptions","organizations_url":"https://api.github.com/users/aosyatnik/orgs","repos_url":"https://api.github.com/users/aosyatnik/repos","events_url":"https://api.github.com/users/aosyatnik/events{/privacy}","received_events_url":"https://api.github.com/users/aosyatnik/received_events","type":"User","site_admin":false},"repo":{"id":21854907,"name":"Dynamo","full_name":"aosyatnik/Dynamo","owner":{"login":"aosyatnik","id":8158404,"avatar_url":"https://avatars.githubusercontent.com/u/8158404?v=3","gravatar_id":"","url":"https://api.github.com/users/aosyatnik","html_url":"https://github.com/aosyatnik","followers_url":"https://api.github.com/users/aosyatnik/followers","following_url":"https://api.github.com/users/aosyatnik/following{/other_user}","gists_url":"https://api.github.com/users/aosyatnik/gists{/gist_id}","starred_url":"https://api.github.com/users/aosyatnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aosyatnik/subscriptions","organizations_url":"https://api.github.com/users/aosyatnik/orgs","repos_url":"https://api.github.com/users/aosyatnik/repos","events_url":"https://api.github.com/users/aosyatnik/events{/privacy}","received_events_url":"https://api.github.com/users/aosyatnik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aosyatnik/Dynamo","description":"Visual Programming For Revit","fork":true,"url":"https://api.github.com/repos/aosyatnik/Dynamo","forks_url":"https://api.github.com/repos/aosyatnik/Dynamo/forks","keys_url":"https://api.github.com/repos/aosyatnik/Dynamo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aosyatnik/Dynamo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aosyatnik/Dynamo/teams","hooks_url":"https://api.github.com/repos/aosyatnik/Dynamo/hooks","issue_events_url":"https://api.github.com/repos/aosyatnik/Dynamo/issues/events{/number}","events_url":"https://api.github.com/repos/aosyatnik/Dynamo/events","assignees_url":"https://api.github.com/repos/aosyatnik/Dynamo/assignees{/user}","branches_url":"https://api.github.com/repos/aosyatnik/Dynamo/branches{/branch}","tags_url":"https://api.github.com/repos/aosyatnik/Dynamo/tags","blobs_url":"https://api.github.com/repos/aosyatnik/Dynamo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aosyatnik/Dynamo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aosyatnik/Dynamo/git/refs{/sha}","trees_url":"https://api.github.com/repos/aosyatnik/Dynamo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aosyatnik/Dynamo/statuses/{sha}","languages_url":"https://api.github.com/repos/aosyatnik/Dynamo/languages","stargazers_url":"https://api.github.com/repos/aosyatnik/Dynamo/stargazers","contributors_url":"https://api.github.com/repos/aosyatnik/Dynamo/contributors","subscribers_url":"https://api.github.com/repos/aosyatnik/Dynamo/subscribers","subscription_url":"https://api.github.com/repos/aosyatnik/Dynamo/subscription","commits_url":"https://api.github.com/repos/aosyatnik/Dynamo/commits{/sha}","git_commits_url":"https://api.github.com/repos/aosyatnik/Dynamo/git/commits{/sha}","comments_url":"https://api.github.com/repos/aosyatnik/Dynamo/comments{/number}","issue_comment_url":"https://api.github.com/repos/aosyatnik/Dynamo/issues/comments{/number}","contents_url":"https://api.github.com/repos/aosyatnik/Dynamo/contents/{+path}","compare_url":"https://api.github.com/repos/aosyatnik/Dynamo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aosyatnik/Dynamo/merges","archive_url":"https://api.github.com/repos/aosyatnik/Dynamo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aosyatnik/Dynamo/downloads","issues_url":"https://api.github.com/repos/aosyatnik/Dynamo/issues{/number}","pulls_url":"https://api.github.com/repos/aosyatnik/Dynamo/pulls{/number}","milestones_url":"https://api.github.com/repos/aosyatnik/Dynamo/milestones{/number}","notifications_url":"https://api.github.com/repos/aosyatnik/Dynamo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aosyatnik/Dynamo/labels{/name}","releases_url":"https://api.github.com/repos/aosyatnik/Dynamo/releases{/id}","created_at":"2014-07-15T10:00:34Z","updated_at":"2015-05-06T07:46:29Z","pushed_at":"2015-10-26T10:46:45Z","git_url":"git://github.com/aosyatnik/Dynamo.git","ssh_url":"git@github.com:aosyatnik/Dynamo.git","clone_url":"https://github.com/aosyatnik/Dynamo.git","svn_url":"https://github.com/aosyatnik/Dynamo","homepage":"http://dynamobim.org","size":788022,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"DynamoDS:master","ref":"master","sha":"99499e55a2d3318b1c8622d800d04cee1e5c8df7","user":{"login":"DynamoDS","id":6528209,"avatar_url":"https://avatars.githubusercontent.com/u/6528209?v=3","gravatar_id":"","url":"https://api.github.com/users/DynamoDS","html_url":"https://github.com/DynamoDS","followers_url":"https://api.github.com/users/DynamoDS/followers","following_url":"https://api.github.com/users/DynamoDS/following{/other_user}","gists_url":"https://api.github.com/users/DynamoDS/gists{/gist_id}","starred_url":"https://api.github.com/users/DynamoDS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DynamoDS/subscriptions","organizations_url":"https://api.github.com/users/DynamoDS/orgs","repos_url":"https://api.github.com/users/DynamoDS/repos","events_url":"https://api.github.com/users/DynamoDS/events{/privacy}","received_events_url":"https://api.github.com/users/DynamoDS/received_events","type":"Organization","site_admin":false},"repo":{"id":3395179,"name":"Dynamo","full_name":"DynamoDS/Dynamo","owner":{"login":"DynamoDS","id":6528209,"avatar_url":"https://avatars.githubusercontent.com/u/6528209?v=3","gravatar_id":"","url":"https://api.github.com/users/DynamoDS","html_url":"https://github.com/DynamoDS","followers_url":"https://api.github.com/users/DynamoDS/followers","following_url":"https://api.github.com/users/DynamoDS/following{/other_user}","gists_url":"https://api.github.com/users/DynamoDS/gists{/gist_id}","starred_url":"https://api.github.com/users/DynamoDS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DynamoDS/subscriptions","organizations_url":"https://api.github.com/users/DynamoDS/orgs","repos_url":"https://api.github.com/users/DynamoDS/repos","events_url":"https://api.github.com/users/DynamoDS/events{/privacy}","received_events_url":"https://api.github.com/users/DynamoDS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DynamoDS/Dynamo","description":"Visual Programming","fork":false,"url":"https://api.github.com/repos/DynamoDS/Dynamo","forks_url":"https://api.github.com/repos/DynamoDS/Dynamo/forks","keys_url":"https://api.github.com/repos/DynamoDS/Dynamo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DynamoDS/Dynamo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DynamoDS/Dynamo/teams","hooks_url":"https://api.github.com/repos/DynamoDS/Dynamo/hooks","issue_events_url":"https://api.github.com/repos/DynamoDS/Dynamo/issues/events{/number}","events_url":"https://api.github.com/repos/DynamoDS/Dynamo/events","assignees_url":"https://api.github.com/repos/DynamoDS/Dynamo/assignees{/user}","branches_url":"https://api.github.com/repos/DynamoDS/Dynamo/branches{/branch}","tags_url":"https://api.github.com/repos/DynamoDS/Dynamo/tags","blobs_url":"https://api.github.com/repos/DynamoDS/Dynamo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DynamoDS/Dynamo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DynamoDS/Dynamo/git/refs{/sha}","trees_url":"https://api.github.com/repos/DynamoDS/Dynamo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DynamoDS/Dynamo/statuses/{sha}","languages_url":"https://api.github.com/repos/DynamoDS/Dynamo/languages","stargazers_url":"https://api.github.com/repos/DynamoDS/Dynamo/stargazers","contributors_url":"https://api.github.com/repos/DynamoDS/Dynamo/contributors","subscribers_url":"https://api.github.com/repos/DynamoDS/Dynamo/subscribers","subscription_url":"https://api.github.com/repos/DynamoDS/Dynamo/subscription","commits_url":"https://api.github.com/repos/DynamoDS/Dynamo/commits{/sha}","git_commits_url":"https://api.github.com/repos/DynamoDS/Dynamo/git/commits{/sha}","comments_url":"https://api.github.com/repos/DynamoDS/Dynamo/comments{/number}","issue_comment_url":"https://api.github.com/repos/DynamoDS/Dynamo/issues/comments{/number}","contents_url":"https://api.github.com/repos/DynamoDS/Dynamo/contents/{+path}","compare_url":"https://api.github.com/repos/DynamoDS/Dynamo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DynamoDS/Dynamo/merges","archive_url":"https://api.github.com/repos/DynamoDS/Dynamo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DynamoDS/Dynamo/downloads","issues_url":"https://api.github.com/repos/DynamoDS/Dynamo/issues{/number}","pulls_url":"https://api.github.com/repos/DynamoDS/Dynamo/pulls{/number}","milestones_url":"https://api.github.com/repos/DynamoDS/Dynamo/milestones{/number}","notifications_url":"https://api.github.com/repos/DynamoDS/Dynamo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DynamoDS/Dynamo/labels{/name}","releases_url":"https://api.github.com/repos/DynamoDS/Dynamo/releases{/id}","created_at":"2012-02-09T07:35:33Z","updated_at":"2015-10-24T15:03:12Z","pushed_at":"2015-10-26T10:46:46Z","git_url":"git://github.com/DynamoDS/Dynamo.git","ssh_url":"git@github.com:DynamoDS/Dynamo.git","clone_url":"https://github.com/DynamoDS/Dynamo.git","svn_url":"https://github.com/DynamoDS/Dynamo","homepage":"http://dynamobim.org","size":1052211,"stargazers_count":285,"watchers_count":285,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":208,"mirror_url":null,"open_issues_count":778,"forks":208,"open_issues":778,"watchers":285,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/5556"},"html":{"href":"https://github.com/DynamoDS/Dynamo/pull/5556"},"issue":{"href":"https://api.github.com/repos/DynamoDS/Dynamo/issues/5556"},"comments":{"href":"https://api.github.com/repos/DynamoDS/Dynamo/issues/5556/comments"},"review_comments":{"href":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/5556/comments"},"review_comment":{"href":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/5556/commits"},"statuses":{"href":"https://api.github.com/repos/DynamoDS/Dynamo/statuses/eff6687b8f379b463b9ab865ba882300813fc77e"}}}}