{"action":"created","issue":{"url":"https://api.github.com/repos/d3/d3/issues/1984","repository_url":"https://api.github.com/repos/d3/d3","labels_url":"https://api.github.com/repos/d3/d3/issues/1984/labels{/name}","comments_url":"https://api.github.com/repos/d3/d3/issues/1984/comments","events_url":"https://api.github.com/repos/d3/d3/issues/1984/events","html_url":"https://github.com/d3/d3/issues/1984","id":40501984,"number":1984,"title":"Improve inline docs on albersUSA","user":{"login":"jorgecarleitao","id":2772607,"avatar_url":"https://avatars.githubusercontent.com/u/2772607?v=3","gravatar_id":"","url":"https://api.github.com/users/jorgecarleitao","html_url":"https://github.com/jorgecarleitao","followers_url":"https://api.github.com/users/jorgecarleitao/followers","following_url":"https://api.github.com/users/jorgecarleitao/following{/other_user}","gists_url":"https://api.github.com/users/jorgecarleitao/gists{/gist_id}","starred_url":"https://api.github.com/users/jorgecarleitao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorgecarleitao/subscriptions","organizations_url":"https://api.github.com/users/jorgecarleitao/orgs","repos_url":"https://api.github.com/users/jorgecarleitao/repos","events_url":"https://api.github.com/users/jorgecarleitao/events{/privacy}","received_events_url":"https://api.github.com/users/jorgecarleitao/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/d3/d3/labels/docs","name":"docs","color":"8c564b"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/d3/d3/milestones/16","html_url":"https://github.com/d3/d3/milestones/Icebox","labels_url":"https://api.github.com/repos/d3/d3/milestones/16/labels","id":154298,"number":16,"title":"Icebox","description":"","creator":{"login":"mbostock","id":230541,"avatar_url":"https://avatars.githubusercontent.com/u/230541?v=3","gravatar_id":"","url":"https://api.github.com/users/mbostock","html_url":"https://github.com/mbostock","followers_url":"https://api.github.com/users/mbostock/followers","following_url":"https://api.github.com/users/mbostock/following{/other_user}","gists_url":"https://api.github.com/users/mbostock/gists{/gist_id}","starred_url":"https://api.github.com/users/mbostock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbostock/subscriptions","organizations_url":"https://api.github.com/users/mbostock/orgs","repos_url":"https://api.github.com/users/mbostock/repos","events_url":"https://api.github.com/users/mbostock/events{/privacy}","received_events_url":"https://api.github.com/users/mbostock/received_events","type":"User","site_admin":false},"open_issues":120,"closed_issues":108,"state":"open","created_at":"2012-07-30T23:32:48Z","updated_at":"2016-08-31T06:56:20Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2014-08-18T15:45:29Z","updated_at":"2016-10-02T13:08:07Z","closed_at":null,"body":"In [albers-usa](https://github.com/mbostock/d3/blob/master/src/geo/albers-usa.js), some numbers are not documented (e.g. line 44, 45):\r\n\r\n```javascript\r\nreturn (y >= .120 && y < .234 && x >= -.425 && x < -.214 ? alaska\r\n        : y >= .166 && y < .234 && x >= -.214 && x < -.115 ? hawaii\r\n        : lower48).invert(coordinates); \r\n```\r\n\r\nIt could be helpful to those trying to create custom projections to know where these numbers are coming from. I.e. from where we can get them from the shapefile/topojson? what do they mean on the final projection?\r\n\r\nThis is also valid for lines 110 onwards. The constants are difficult to understand.\r\n"},"comment":{"url":"https://api.github.com/repos/d3/d3/issues/comments/250970481","html_url":"https://github.com/d3/d3/issues/1984#issuecomment-250970481","issue_url":"https://api.github.com/repos/d3/d3/issues/1984","id":250970481,"user":{"login":"Fil","id":7001,"avatar_url":"https://avatars.githubusercontent.com/u/7001?v=3","gravatar_id":"","url":"https://api.github.com/users/Fil","html_url":"https://github.com/Fil","followers_url":"https://api.github.com/users/Fil/followers","following_url":"https://api.github.com/users/Fil/following{/other_user}","gists_url":"https://api.github.com/users/Fil/gists{/gist_id}","starred_url":"https://api.github.com/users/Fil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fil/subscriptions","organizations_url":"https://api.github.com/users/Fil/orgs","repos_url":"https://api.github.com/users/Fil/repos","events_url":"https://api.github.com/users/Fil/events{/privacy}","received_events_url":"https://api.github.com/users/Fil/received_events","type":"User","site_admin":false},"created_at":"2016-10-02T13:08:06Z","updated_at":"2016-10-02T13:08:06Z","body":"The numbers are the relative coordinates of the bounding-boxes of the rectangles encompassing Alaska and Hawaii, in the AlbersUsa referential (scale and translate).\r\n\r\nThe rectangles are visible on https://bl.ocks.org/mbostock/5629120 (with Puerto Rico as a bonus). The [0,0] in this referential is the center of the image (i.e. [480,250]). I have outlined all these elements on http://bl.ocks.org/Fil/7723167596af40d9159be34ffbf8d36b"}}
{"actor":{"display_login":"Fil"}}