{"action":"created","issue":{"url":"https://api.github.com/repos/goessner/mec2/issues/9","repository_url":"https://api.github.com/repos/goessner/mec2","labels_url":"https://api.github.com/repos/goessner/mec2/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/goessner/mec2/issues/9/comments","events_url":"https://api.github.com/repos/goessner/mec2/issues/9/events","html_url":"https://github.com/goessner/mec2/issues/9","id":349833903,"node_id":"MDU6SXNzdWUzNDk4MzM5MDM=","number":9,"title":"purgeNode() removes independent shapes","user":{"login":"jauhl","id":19715408,"node_id":"MDQ6VXNlcjE5NzE1NDA4","avatar_url":"https://avatars2.githubusercontent.com/u/19715408?v=4","gravatar_id":"","url":"https://api.github.com/users/jauhl","html_url":"https://github.com/jauhl","followers_url":"https://api.github.com/users/jauhl/followers","following_url":"https://api.github.com/users/jauhl/following{/other_user}","gists_url":"https://api.github.com/users/jauhl/gists{/gist_id}","starred_url":"https://api.github.com/users/jauhl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jauhl/subscriptions","organizations_url":"https://api.github.com/users/jauhl/orgs","repos_url":"https://api.github.com/users/jauhl/repos","events_url":"https://api.github.com/users/jauhl/events{/privacy}","received_events_url":"https://api.github.com/users/jauhl/received_events","type":"User","site_admin":false},"labels":[{"id":1015038373,"node_id":"MDU6TGFiZWwxMDE1MDM4Mzcz","url":"https://api.github.com/repos/goessner/mec2/labels/bug","name":"bug","color":"d73a4a","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-12T18:33:34Z","updated_at":"2018-08-12T21:15:11Z","closed_at":"2018-08-12T21:15:11Z","author_association":"COLLABORATOR","body":"```javascript\r\n{\r\n    id: '4bar',\r\n    nodes: [\r\n        {id:'A0',x:100,y:100,base:true},\r\n        {id:'A',x:100,y:150},\r\n        {id:'B',x:350,y:220},\r\n        {id:'B0',x:300,y:100,base:true},\r\n    ],\r\n    constraints: [\r\n        { id:'a',p1:'A0',p2:'A',len:{type:'const'} },\r\n        { id:'b',p1:'A', p2:'B',len:{type:'const'} },\r\n        { id:'c',p1:'B0', p2:'B',len:{type:'const'} }\r\n    ],\r\n    shapes: [\r\n        {type:'wheel',p:'A0',r:40,wref:'a'},\r\n        {type:'fix',p:'A0'},\r\n        {type:'flt',p:'B0'}\r\n    ]\r\n}\r\n```\r\n![grafik](https://user-images.githubusercontent.com/19715408/44005138-9cbdd254-9e6e-11e8-86d0-669ef331b1c8.png)\r\n\r\n`\"flt\"` and `\"wheel\"` should not be purged since they only depend on node `\"A\"`.\r\n"},"comment":{"url":"https://api.github.com/repos/goessner/mec2/issues/comments/412372215","html_url":"https://github.com/goessner/mec2/issues/9#issuecomment-412372215","issue_url":"https://api.github.com/repos/goessner/mec2/issues/9","id":412372215,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjM3MjIxNQ==","user":{"login":"goessner","id":4902746,"node_id":"MDQ6VXNlcjQ5MDI3NDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4902746?v=4","gravatar_id":"","url":"https://api.github.com/users/goessner","html_url":"https://github.com/goessner","followers_url":"https://api.github.com/users/goessner/followers","following_url":"https://api.github.com/users/goessner/following{/other_user}","gists_url":"https://api.github.com/users/goessner/gists{/gist_id}","starred_url":"https://api.github.com/users/goessner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goessner/subscriptions","organizations_url":"https://api.github.com/users/goessner/orgs","repos_url":"https://api.github.com/users/goessner/repos","events_url":"https://api.github.com/users/goessner/events{/privacy}","received_events_url":"https://api.github.com/users/goessner/received_events","type":"User","site_admin":false},"created_at":"2018-08-12T21:15:11Z","updated_at":"2018-08-12T21:15:11Z","author_association":"OWNER","body":"... good catch .. !\r\n\r\nthis ...\r\n```js\r\n            for (const shape of this.shapes)\r\n                this.shapes.splice(this.shapes.indexOf(shape),1);\r\n```\r\nshould read ...\r\n```js\r\n            for (const shape of elems.shapes)\r\n                this.shapes.splice(this.shapes.indexOf(shape),1);\r\n```\r\n"}}
{"actor":{"display_login":"goessner"}}