{"action":"created","issue":{"url":"https://api.github.com/repos/lexelby/inkstitch/issues/127","repository_url":"https://api.github.com/repos/lexelby/inkstitch","labels_url":"https://api.github.com/repos/lexelby/inkstitch/issues/127/labels{/name}","comments_url":"https://api.github.com/repos/lexelby/inkstitch/issues/127/comments","events_url":"https://api.github.com/repos/lexelby/inkstitch/issues/127/events","html_url":"https://github.com/lexelby/inkstitch/pull/127","id":306277518,"number":127,"title":"WIP: print through web browser","user":{"login":"lexelby","id":4446653,"avatar_url":"https://avatars1.githubusercontent.com/u/4446653?v=4","gravatar_id":"","url":"https://api.github.com/users/lexelby","html_url":"https://github.com/lexelby","followers_url":"https://api.github.com/users/lexelby/followers","following_url":"https://api.github.com/users/lexelby/following{/other_user}","gists_url":"https://api.github.com/users/lexelby/gists{/gist_id}","starred_url":"https://api.github.com/users/lexelby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lexelby/subscriptions","organizations_url":"https://api.github.com/users/lexelby/orgs","repos_url":"https://api.github.com/users/lexelby/repos","events_url":"https://api.github.com/users/lexelby/events{/privacy}","received_events_url":"https://api.github.com/users/lexelby/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-18T20:16:47Z","updated_at":"2018-03-18T22:39:34Z","closed_at":null,"author_association":"OWNER","pull_request":{"url":"https://api.github.com/repos/lexelby/inkstitch/pulls/127","html_url":"https://github.com/lexelby/inkstitch/pull/127","diff_url":"https://github.com/lexelby/inkstitch/pull/127.diff","patch_url":"https://github.com/lexelby/inkstitch/pull/127.patch"},"body":"After a ton of work from all of us, here's a first pass at a printing extension.  To use, install it like normal and be sure to restart inkscape so that it recognizes the new extension.  Extensions -> Embroider -> Print should pop up a new tab in your default browser.\r\n\r\nThe extension starts a simple web server and points the web browser at it.  The web server has to stay open to serve all of the rest of the content (fonts, icons, etc), so inkscape will sit and wait.  To shut down the web server, visit http://localhost:5000/shutdown.  That will return control to inkscape.\r\n\r\nIn this first version, inkscape will then show some debugging output.  Don't worry about it, I'll get rid of it in a later version.  No need to paste it here.\r\n\r\nNext up:\r\n\r\n* refine the templates\r\n  * @kaalleen has a new version with the swatches implemented entirely in SVG\r\n  * get the page sized correctly (I shrunk it down so it would fit but I didn't pay particular attention to getting the size right)\r\n* perhaps add a simple wxPython popup window that lets them shut down the extension\r\n* add a button on the web page to print\r\n* add a button on the web page to shut down/finish\r\n* fill in values for stitch counts, number of jumps, etc\r\n\r\nThe above should get us a \"minimum viable product\".  I'd like to get this basic version ready and release it, and we can add in more features in later versions.  That would be things like toggling whether certain pages are printed, adding in notes, etc."},"comment":{"url":"https://api.github.com/repos/lexelby/inkstitch/issues/comments/374059942","html_url":"https://github.com/lexelby/inkstitch/pull/127#issuecomment-374059942","issue_url":"https://api.github.com/repos/lexelby/inkstitch/issues/127","id":374059942,"user":{"login":"X3msnake","id":11083514,"avatar_url":"https://avatars2.githubusercontent.com/u/11083514?v=4","gravatar_id":"","url":"https://api.github.com/users/X3msnake","html_url":"https://github.com/X3msnake","followers_url":"https://api.github.com/users/X3msnake/followers","following_url":"https://api.github.com/users/X3msnake/following{/other_user}","gists_url":"https://api.github.com/users/X3msnake/gists{/gist_id}","starred_url":"https://api.github.com/users/X3msnake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/X3msnake/subscriptions","organizations_url":"https://api.github.com/users/X3msnake/orgs","repos_url":"https://api.github.com/users/X3msnake/repos","events_url":"https://api.github.com/users/X3msnake/events{/privacy}","received_events_url":"https://api.github.com/users/X3msnake/received_events","type":"User","site_admin":false},"created_at":"2018-03-18T22:39:33Z","updated_at":"2018-03-18T22:39:33Z","author_association":"COLLABORATOR","body":"@lexelby @kaalleen Thanks for your great work Masters.\r\n\r\nWhere is the release for testing?\r\n\r\nWe really need a tutorial on how to compile from source ;)"}}
{"actor":{"display_login":"X3msnake"}}