{"action":"opened","issue":{"url":"https://api.github.com/repos/magjac/d3-graphviz/issues/91","repository_url":"https://api.github.com/repos/magjac/d3-graphviz","labels_url":"https://api.github.com/repos/magjac/d3-graphviz/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/magjac/d3-graphviz/issues/91/comments","events_url":"https://api.github.com/repos/magjac/d3-graphviz/issues/91/events","html_url":"https://github.com/magjac/d3-graphviz/issues/91","id":352989569,"node_id":"MDU6SXNzdWUzNTI5ODk1Njk=","number":91,"title":"In Chrome, the drawEdge method throws error when an edge with zero length is drawn","user":{"login":"magjac","id":6350376,"node_id":"MDQ6VXNlcjYzNTAzNzY=","avatar_url":"https://avatars1.githubusercontent.com/u/6350376?v=4","gravatar_id":"","url":"https://api.github.com/users/magjac","html_url":"https://github.com/magjac","followers_url":"https://api.github.com/users/magjac/followers","following_url":"https://api.github.com/users/magjac/following{/other_user}","gists_url":"https://api.github.com/users/magjac/gists{/gist_id}","starred_url":"https://api.github.com/users/magjac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magjac/subscriptions","organizations_url":"https://api.github.com/users/magjac/orgs","repos_url":"https://api.github.com/users/magjac/repos","events_url":"https://api.github.com/users/magjac/events{/privacy}","received_events_url":"https://api.github.com/users/magjac/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-22T14:50:17Z","updated_at":"2018-08-22T14:50:17Z","closed_at":null,"author_association":"OWNER","body":"The reason is that d3-graphviz does not guard for division by zero, eventually resulting in:\r\n\r\n```\r\nError: <path> attribute d: Expected number, \"….24012756347656LNaN,NaN\".\r\n(anonymous) @ attr.js:17\r\n../d3-graphviz/node_modules/d3-selection/src/selection/each.js.__webpack_exports__.a @ each.js:5\r\n../d3-graphviz/node_modules/d3-selection/src/selection/attr.js.__webpack_exports__.a @ attr.js:53\r\n_moveEdge @ d3-graphviz.js:1536\r\n_updateEdge @ d3-graphviz.js:1497\r\ndrawEdge @ d3-graphviz.js:1453\r\nhandleRightClickNode @ Graph.js:359\r\n(anonymous) @ on.js:27\r\nattr.js:17 Error: <polygon> attribute points: Expected number, \"NaN,NaN NaN,NaN …\".\r\n```\r\n\r\nThis ought to be a problem in other browsers as well, but at least in Firefox the length seems to never become exactly zero for some reason."}}
{"actor":{"display_login":"magjac"}}