{"action":"created","issue":{"url":"https://api.github.com/repos/kangax/fabric.js/issues/2037","labels_url":"https://api.github.com/repos/kangax/fabric.js/issues/2037/labels{/name}","comments_url":"https://api.github.com/repos/kangax/fabric.js/issues/2037/comments","events_url":"https://api.github.com/repos/kangax/fabric.js/issues/2037/events","html_url":"https://github.com/kangax/fabric.js/issues/2037","id":60800117,"number":2037,"title":"Issue with drawing svg onto canvas","user":{"login":"sudheer496","id":11438997,"avatar_url":"https://avatars.githubusercontent.com/u/11438997?v=3","gravatar_id":"","url":"https://api.github.com/users/sudheer496","html_url":"https://github.com/sudheer496","followers_url":"https://api.github.com/users/sudheer496/followers","following_url":"https://api.github.com/users/sudheer496/following{/other_user}","gists_url":"https://api.github.com/users/sudheer496/gists{/gist_id}","starred_url":"https://api.github.com/users/sudheer496/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudheer496/subscriptions","organizations_url":"https://api.github.com/users/sudheer496/orgs","repos_url":"https://api.github.com/users/sudheer496/repos","events_url":"https://api.github.com/users/sudheer496/events{/privacy}","received_events_url":"https://api.github.com/users/sudheer496/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kangax/fabric.js/labels/needs_confirmation","name":"needs_confirmation","color":"fad8c7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-12T10:44:54Z","updated_at":"2015-03-14T06:43:18Z","closed_at":"2015-03-13T17:17:16Z","body":"Hi,\r\nI tried to draw the following svg from fabric onto canvas.\r\nhttp://fabricjs.com/assets/116.svg  \r\nThe drawing is not exactly matching the preview.\r\nCurrently I used fabric version:\"1.4.0\".\r\nHere is the fiddle. Try running multiple times you will get the output.\r\nhttp://jsfiddle.net/oLLvzqa0/\r\n\r\nMy observations:\r\nWhen I tried to render the same svg using fabric latest version: \"1.4.13\" , the drawing is perfect.\r\n\r\nSo can you let me know the exact commit that fixed the issue with drawing , so that I can merge into my local fabric library.\r\n\r\nAnd also, When I tried to use fabric.loadSVGFromURL to load svg from external url , I got the following error.\r\n\"XMLHttpRequest cannot load http://fabricjs.com/assets/116.svg. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.\"\r\n\r\nBut when I tried to load it multiple times it worked for me :) , What's the reason ?\r\n\r\nThanks,\r\nSudheer\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/kangax/fabric.js/issues/comments/80013030","html_url":"https://github.com/kangax/fabric.js/issues/2037#issuecomment-80013030","issue_url":"https://api.github.com/repos/kangax/fabric.js/issues/2037","id":80013030,"user":{"login":"sudheer496","id":11438997,"avatar_url":"https://avatars.githubusercontent.com/u/11438997?v=3","gravatar_id":"","url":"https://api.github.com/users/sudheer496","html_url":"https://github.com/sudheer496","followers_url":"https://api.github.com/users/sudheer496/followers","following_url":"https://api.github.com/users/sudheer496/following{/other_user}","gists_url":"https://api.github.com/users/sudheer496/gists{/gist_id}","starred_url":"https://api.github.com/users/sudheer496/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudheer496/subscriptions","organizations_url":"https://api.github.com/users/sudheer496/orgs","repos_url":"https://api.github.com/users/sudheer496/repos","events_url":"https://api.github.com/users/sudheer496/events{/privacy}","received_events_url":"https://api.github.com/users/sudheer496/received_events","type":"User","site_admin":false},"created_at":"2015-03-14T06:43:18Z","updated_at":"2015-03-14T06:43:18Z","body":"Some how I manged to fix the issue by changing 'polygon , ellipse, circle classes entirely and render method of fabric.object class'.\r\n\r\nThat lefts me with only one already mentioned issue.\r\nCan you help me get over this one and whats the reason?\r\nIssue:\r\n\"XMLHttpRequest cannot load http://fabricjs.com/assets/116.svg. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.\"\r\n\r\n"}}