{"action":"created","issue":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/4952","labels_url":"https://api.github.com/repos/mrdoob/three.js/issues/4952/labels{/name}","comments_url":"https://api.github.com/repos/mrdoob/three.js/issues/4952/comments","events_url":"https://api.github.com/repos/mrdoob/three.js/issues/4952/events","html_url":"https://github.com/mrdoob/three.js/issues/4952","id":36199404,"number":4952,"title":"Editor: Export directly to file","user":{"login":"theo-armour","id":547626,"avatar_url":"https://avatars.githubusercontent.com/u/547626?v=3","gravatar_id":"","url":"https://api.github.com/users/theo-armour","html_url":"https://github.com/theo-armour","followers_url":"https://api.github.com/users/theo-armour/followers","following_url":"https://api.github.com/users/theo-armour/following{/other_user}","gists_url":"https://api.github.com/users/theo-armour/gists{/gist_id}","starred_url":"https://api.github.com/users/theo-armour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theo-armour/subscriptions","organizations_url":"https://api.github.com/users/theo-armour/orgs","repos_url":"https://api.github.com/users/theo-armour/repos","events_url":"https://api.github.com/users/theo-armour/events{/privacy}","received_events_url":"https://api.github.com/users/theo-armour/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mrdoob/three.js/labels/Suggestion","name":"Suggestion","color":"ffffcf"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2014-06-20T20:20:12Z","updated_at":"2015-01-24T20:25:55Z","closed_at":"2015-01-24T20:25:55Z","body":"\r\nHi everybody\r\n\r\nIn the Three.js Editor, when you export geometry, objects, scenes etc, the data is currently sent as text to a new window.\r\n\r\nAn alternative would be to export the data directly to file. I have such an implementation working with a demo here:\r\n\r\nhttp://jaanga.github.io/three.js/editor/\r\n\r\nTo operate: Add some objects, click any of the export options in the File menu, then the 'Save As' dialog should appear and you can save the data to a file of your choice.\r\n\r\nThis enhancement uses Eli Gray's filesaver.js which I have used quite extensively elsewhere and seems to work OK.\r\n\r\nhttps://github.com/eligrey/FileSaver.js/\r\n\r\nIf this is considered a good idea then I will work on a pull request or it's only four lines of code and a file copy so perhaps somebody skillful at merging could do this much faster then me.\r\n\r\nTheo \r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/comments/71335702","html_url":"https://github.com/mrdoob/three.js/issues/4952#issuecomment-71335702","issue_url":"https://api.github.com/repos/mrdoob/three.js/issues/4952","id":71335702,"user":{"login":"mrdoob","id":97088,"avatar_url":"https://avatars.githubusercontent.com/u/97088?v=3","gravatar_id":"","url":"https://api.github.com/users/mrdoob","html_url":"https://github.com/mrdoob","followers_url":"https://api.github.com/users/mrdoob/followers","following_url":"https://api.github.com/users/mrdoob/following{/other_user}","gists_url":"https://api.github.com/users/mrdoob/gists{/gist_id}","starred_url":"https://api.github.com/users/mrdoob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrdoob/subscriptions","organizations_url":"https://api.github.com/users/mrdoob/orgs","repos_url":"https://api.github.com/users/mrdoob/repos","events_url":"https://api.github.com/users/mrdoob/events{/privacy}","received_events_url":"https://api.github.com/users/mrdoob/received_events","type":"User","site_admin":false},"created_at":"2015-01-24T20:25:55Z","updated_at":"2015-01-24T20:25:55Z","body":"This landed in r70 (File/Publish) ^^"}}