{"action":"created","issue":{"url":"https://api.github.com/repos/Lightforger/Note-Assist/issues/2","labels_url":"https://api.github.com/repos/Lightforger/Note-Assist/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/Lightforger/Note-Assist/issues/2/comments","events_url":"https://api.github.com/repos/Lightforger/Note-Assist/issues/2/events","html_url":"https://github.com/Lightforger/Note-Assist/issues/2","id":93845278,"number":2,"title":"Feature request: fit outer rectangle","user":{"login":"Type-kun","id":3628092,"avatar_url":"https://avatars.githubusercontent.com/u/3628092?v=3","gravatar_id":"","url":"https://api.github.com/users/Type-kun","html_url":"https://github.com/Type-kun","followers_url":"https://api.github.com/users/Type-kun/followers","following_url":"https://api.github.com/users/Type-kun/following{/other_user}","gists_url":"https://api.github.com/users/Type-kun/gists{/gist_id}","starred_url":"https://api.github.com/users/Type-kun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Type-kun/subscriptions","organizations_url":"https://api.github.com/users/Type-kun/orgs","repos_url":"https://api.github.com/users/Type-kun/repos","events_url":"https://api.github.com/users/Type-kun/events{/privacy}","received_events_url":"https://api.github.com/users/Type-kun/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-08T17:23:01Z","updated_at":"2015-07-08T19:35:12Z","closed_at":null,"body":"Once the script is able to handle rectangular bubbles (topmost and top-right notes on post http://danbooru.donmai.us/posts/2062744 ), it's pretty much a finished product. I do some note maintenance when I stumble upon poorly positioned notes, and fitting to the outer rectangle is pretty much the only thing that requires manual positioning, the script can handle practically everything else.\r\n\r\nIf implemented, it would require some form of different shortcut or a checkbox switch to size existing note. Not sure if possible to automatically detect if the bubble is rectangular, probably not even needed. Also, it's probably best to assume border color to be black (near black) or be more sensitive to color differences - otherwise, dark-background bubbles like that topmost one will be incorrectly sized to include the border."},"comment":{"url":"https://api.github.com/repos/Lightforger/Note-Assist/issues/comments/119707921","html_url":"https://github.com/Lightforger/Note-Assist/issues/2#issuecomment-119707921","issue_url":"https://api.github.com/repos/Lightforger/Note-Assist/issues/2","id":119707921,"user":{"login":"Type-kun","id":3628092,"avatar_url":"https://avatars.githubusercontent.com/u/3628092?v=3","gravatar_id":"","url":"https://api.github.com/users/Type-kun","html_url":"https://github.com/Type-kun","followers_url":"https://api.github.com/users/Type-kun/followers","following_url":"https://api.github.com/users/Type-kun/following{/other_user}","gists_url":"https://api.github.com/users/Type-kun/gists{/gist_id}","starred_url":"https://api.github.com/users/Type-kun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Type-kun/subscriptions","organizations_url":"https://api.github.com/users/Type-kun/orgs","repos_url":"https://api.github.com/users/Type-kun/repos","events_url":"https://api.github.com/users/Type-kun/events{/privacy}","received_events_url":"https://api.github.com/users/Type-kun/received_events","type":"User","site_admin":false},"created_at":"2015-07-08T19:35:12Z","updated_at":"2015-07-08T19:35:12Z","body":"Actually I thought it should fit to the rectangle *outside* the selected area, rather than inside. Like, try to determine selected area background color, then flood-fill outwards until border is reached. I don't think of it as a part of feature for auto-creating notes: script will automatically create a note on the text inside the box anyway, and then the user could ask the script to expand note to fit rectangle, if necessary (it's not always necessary, I think). This way seems simpler at a glance and it'll also be fast enough to end user."}}