{"action":"closed","issue":{"url":"https://api.github.com/repos/bmershon/d3-equidecompose/issues/3","repository_url":"https://api.github.com/repos/bmershon/d3-equidecompose","labels_url":"https://api.github.com/repos/bmershon/d3-equidecompose/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/bmershon/d3-equidecompose/issues/3/comments","events_url":"https://api.github.com/repos/bmershon/d3-equidecompose/issues/3/events","html_url":"https://github.com/bmershon/d3-equidecompose/issues/3","id":141760461,"number":3,"title":"Name module d3-scissors (or not)","user":{"login":"bmershon","id":3190945,"avatar_url":"https://avatars.githubusercontent.com/u/3190945?v=3","gravatar_id":"","url":"https://api.github.com/users/bmershon","html_url":"https://github.com/bmershon","followers_url":"https://api.github.com/users/bmershon/followers","following_url":"https://api.github.com/users/bmershon/following{/other_user}","gists_url":"https://api.github.com/users/bmershon/gists{/gist_id}","starred_url":"https://api.github.com/users/bmershon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmershon/subscriptions","organizations_url":"https://api.github.com/users/bmershon/orgs","repos_url":"https://api.github.com/users/bmershon/repos","events_url":"https://api.github.com/users/bmershon/events{/privacy}","received_events_url":"https://api.github.com/users/bmershon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-18T02:58:51Z","updated_at":"2016-03-20T04:39:16Z","closed_at":"2016-03-20T04:39:16Z","body":"```js\r\n\r\nvar scissors = d3_scissors; // global variable\r\n\r\n// setting up the generator accessors and other configuration\r\nvar cut = scissors.cut()\r\n            .x(function(d) { return d.x; }) // point accessor\r\n            .y(function(d) { return d.y; });\r\n\r\nvar P = [ ... ];\r\nvar Q = [ ... ];\r\n\r\n// layout object (polygons, centroid, hinge points, etc.)\r\nvar layout = cut(P, Q);\r\n\r\n// draw the cuts, transition cuts to their position in Q, etc.\r\n\r\n```\r\n\r\nIf [d3-chernoff](https://github.com/d3/d3-plugins/tree/master/chernoff) exists, this can too."}}