{"action":"opened","issue":{"url":"https://api.github.com/repos/dhobsd/ASCIIToSVG/issues/20","labels_url":"https://api.github.com/repos/dhobsd/ASCIIToSVG/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/dhobsd/ASCIIToSVG/issues/20/comments","events_url":"https://api.github.com/repos/dhobsd/ASCIIToSVG/issues/20/events","html_url":"https://github.com/dhobsd/ASCIIToSVG/issues/20","id":55380779,"number":20,"title":"Group text inside most specific box enclosing it","user":{"login":"dhobsd","id":168647,"avatar_url":"https://avatars.githubusercontent.com/u/168647?v=3","gravatar_id":"","url":"https://api.github.com/users/dhobsd","html_url":"https://github.com/dhobsd","followers_url":"https://api.github.com/users/dhobsd/followers","following_url":"https://api.github.com/users/dhobsd/following{/other_user}","gists_url":"https://api.github.com/users/dhobsd/gists{/gist_id}","starred_url":"https://api.github.com/users/dhobsd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhobsd/subscriptions","organizations_url":"https://api.github.com/users/dhobsd/orgs","repos_url":"https://api.github.com/users/dhobsd/repos","events_url":"https://api.github.com/users/dhobsd/events{/privacy}","received_events_url":"https://api.github.com/users/dhobsd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-24T18:51:28Z","updated_at":"2015-01-24T18:51:28Z","closed_at":null,"body":"Currently text lives on its own. We attempt to find the box it lives in for purposes of determining what color to use for it, but this finds the first box, which isn't always correct. Additionally, since it lives in a separate group, there's no good way to apply filters to the box and the text, or to all of the text inside the box. This would make that a bit easier. You'd have something like:\n\n<g boxes>\n <g id=\"ref\">\n   <path>\n   <g id=\"refText\">\n     <text>...</text><text>...</text>...\n   </g>\n</g>\n\nTo find the correct box, we need to scan all boxes with X coordinates < textX and Y coordinates < textY. The box with (maxX, maxY) wins. If that box has no fill, we need to move to the next largest box, etc. \n\n----------------------------------------\n- Bitbucket: https://bitbucket.org/dhobsd/asciitosvg/issue/7\n- Originally reported by: Devon O'Dell\n- Originally created at: 2012-03-19T21:48:38.357\n"}}