{"action":"opened","issue":{"url":"https://api.github.com/repos/topojson/topojson-specification/issues/10","repository_url":"https://api.github.com/repos/topojson/topojson-specification","labels_url":"https://api.github.com/repos/topojson/topojson-specification/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/topojson/topojson-specification/issues/10/comments","events_url":"https://api.github.com/repos/topojson/topojson-specification/issues/10/events","html_url":"https://github.com/topojson/topojson-specification/issues/10","id":190031329,"number":10,"title":"Request for documentation: negative arc index is -1 based","user":{"login":"tomvantilburg","id":1998463,"avatar_url":"https://avatars.githubusercontent.com/u/1998463?v=3","gravatar_id":"","url":"https://api.github.com/users/tomvantilburg","html_url":"https://github.com/tomvantilburg","followers_url":"https://api.github.com/users/tomvantilburg/followers","following_url":"https://api.github.com/users/tomvantilburg/following{/other_user}","gists_url":"https://api.github.com/users/tomvantilburg/gists{/gist_id}","starred_url":"https://api.github.com/users/tomvantilburg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomvantilburg/subscriptions","organizations_url":"https://api.github.com/users/tomvantilburg/orgs","repos_url":"https://api.github.com/users/tomvantilburg/repos","events_url":"https://api.github.com/users/tomvantilburg/events{/privacy}","received_events_url":"https://api.github.com/users/tomvantilburg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-17T12:18:14Z","updated_at":"2016-11-17T12:18:14Z","closed_at":null,"body":"Took me a while to find out that you cannot just use Math.abs(idx) to get the correct reference to an arc when the index is negative (and the coordinate order needs to be reversed). Although I got it after reading the docs 3 times (2.1.4. Arc Indexes), it would be helpful to write this down more explicit.\r\n\r\nUltimately I think a 1-based index might be more appropriate for the arcs, although it might introduce other inconsistencies. A solution might be to always put an empty value at the first position, so iterators still do their jobs."}}
{"actor":{"display_login":"tomvantilburg"}}