{"action":"created","issue":{"url":"https://api.github.com/repos/kangax/fabric.js/issues/3504","repository_url":"https://api.github.com/repos/kangax/fabric.js","labels_url":"https://api.github.com/repos/kangax/fabric.js/issues/3504/labels{/name}","comments_url":"https://api.github.com/repos/kangax/fabric.js/issues/3504/comments","events_url":"https://api.github.com/repos/kangax/fabric.js/issues/3504/events","html_url":"https://github.com/kangax/fabric.js/issues/3504","id":193903480,"number":3504,"title":"Export Object to SVG?","user":{"login":"arminbusatlic","id":2653785,"avatar_url":"https://avatars.githubusercontent.com/u/2653785?v=3","gravatar_id":"","url":"https://api.github.com/users/arminbusatlic","html_url":"https://github.com/arminbusatlic","followers_url":"https://api.github.com/users/arminbusatlic/followers","following_url":"https://api.github.com/users/arminbusatlic/following{/other_user}","gists_url":"https://api.github.com/users/arminbusatlic/gists{/gist_id}","starred_url":"https://api.github.com/users/arminbusatlic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arminbusatlic/subscriptions","organizations_url":"https://api.github.com/users/arminbusatlic/orgs","repos_url":"https://api.github.com/users/arminbusatlic/repos","events_url":"https://api.github.com/users/arminbusatlic/events{/privacy}","received_events_url":"https://api.github.com/users/arminbusatlic/received_events","type":"User","site_admin":false},"labels":[{"id":20256606,"url":"https://api.github.com/repos/kangax/fabric.js/labels/possible_feature","name":"possible_feature","color":"e102d8","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-06T22:27:01Z","updated_at":"2016-12-09T16:54:01Z","closed_at":null,"body":"Is it possible to export an object to SVG?\r\n\r\nI'm using the canvas.toSVG() call to export but it exports the entire canvas.\r\n\r\nI could write the object on a separate canvas then export that canvas, but just curious whether there is a better way to achieve this?\r\n\r\nSomething like object.toSVG() would be great.\r\n\r\nAny suggestions?"},"comment":{"url":"https://api.github.com/repos/kangax/fabric.js/issues/comments/266063483","html_url":"https://github.com/kangax/fabric.js/issues/3504#issuecomment-266063483","issue_url":"https://api.github.com/repos/kangax/fabric.js/issues/3504","id":266063483,"user":{"login":"arminbusatlic","id":2653785,"avatar_url":"https://avatars.githubusercontent.com/u/2653785?v=3","gravatar_id":"","url":"https://api.github.com/users/arminbusatlic","html_url":"https://github.com/arminbusatlic","followers_url":"https://api.github.com/users/arminbusatlic/followers","following_url":"https://api.github.com/users/arminbusatlic/following{/other_user}","gists_url":"https://api.github.com/users/arminbusatlic/gists{/gist_id}","starred_url":"https://api.github.com/users/arminbusatlic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arminbusatlic/subscriptions","organizations_url":"https://api.github.com/users/arminbusatlic/orgs","repos_url":"https://api.github.com/users/arminbusatlic/repos","events_url":"https://api.github.com/users/arminbusatlic/events{/privacy}","received_events_url":"https://api.github.com/users/arminbusatlic/received_events","type":"User","site_admin":false},"created_at":"2016-12-09T16:54:01Z","updated_at":"2016-12-09T16:54:01Z","body":"My workaround was to write the object on empty canvas which has the same dimensions as the current object. Then I export that canvas.toSVG and get the object as an SVG file :)"}}
{"actor":{"display_login":"arminbusatlic"}}