{"action":"created","issue":{"url":"https://api.github.com/repos/paperjs/paper.js/issues/978","repository_url":"https://api.github.com/repos/paperjs/paper.js","labels_url":"https://api.github.com/repos/paperjs/paper.js/issues/978/labels{/name}","comments_url":"https://api.github.com/repos/paperjs/paper.js/issues/978/comments","events_url":"https://api.github.com/repos/paperjs/paper.js/issues/978/events","html_url":"https://github.com/paperjs/paper.js/issues/978","id":134236751,"number":978,"title":"Trasform attribute problem in SVGImport","user":{"login":"sapics","id":11169954,"avatar_url":"https://avatars.githubusercontent.com/u/11169954?v=3","gravatar_id":"","url":"https://api.github.com/users/sapics","html_url":"https://github.com/sapics","followers_url":"https://api.github.com/users/sapics/followers","following_url":"https://api.github.com/users/sapics/following{/other_user}","gists_url":"https://api.github.com/users/sapics/gists{/gist_id}","starred_url":"https://api.github.com/users/sapics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sapics/subscriptions","organizations_url":"https://api.github.com/users/sapics/orgs","repos_url":"https://api.github.com/users/sapics/repos","events_url":"https://api.github.com/users/sapics/events{/privacy}","received_events_url":"https://api.github.com/users/sapics/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-17T10:08:05Z","updated_at":"2016-02-17T11:05:25Z","closed_at":null,"body":"I tried to show you the problem by sketch, but, I cannot access with my pc during the past few hours.\r\nThus, I write the code below which would work in sketch.\r\n\r\nI have a problem in SVGImport.\r\nEach of the \"base-lv1\" object would not be rotated.\r\n```javascript\r\nvar svg = \"\"\r\nsvg += '<?xml version=\"1.0\" encoding=\"UTF-8\"?>'\r\nsvg += '<svg xmlns=\"http://www.w3.org/2000/svg\"'\r\nsvg += '     xmlns:xlink=\"http://www.w3.org/1999/xlink\"'\r\nsvg += '     width=\"600\" height=\"600\">'\r\nsvg += '\t<defs>'\r\nsvg += '\t\t<g id=\"base-lv1\">'\r\nsvg += '\t\t\t<circle cx=\"300\" cy=\"110\" r=\"42\" fill=\"#48f\"/>'\r\nsvg += '\t\t\t<circle cx=\"300\" cy=\"490\" r=\"42\" fill=\"#48f\"/>'\r\nsvg += '\t\t\t<rect x=\"270\" y=\"140\" width=\"60\" height=\"320\" fill=\"#48f\"/>'\r\nsvg += '\t\t</g>'\r\nsvg += '\t\t<g id=\"base-lv2\">'\r\nsvg += '\t\t\t<use xlink:href=\"#base-lv1\" transform=\"rotate(0   300,300)\"/>'\r\nsvg += '\t\t\t<use xlink:href=\"#base-lv1\" transform=\"rotate(45  300,300)\"/>'\r\nsvg += '\t\t\t<use xlink:href=\"#base-lv1\" transform=\"rotate(90  300,300)\"/>'\r\nsvg += '\t\t\t<use xlink:href=\"#base-lv1\" transform=\"rotate(135 300,300)\"/>'\r\nsvg += '\t\t</g>'\r\nsvg += '\t</defs>'\r\nsvg += '\t<use xlink:href=\"#base-lv2\" stroke=\"#f90\" stroke-width=\"136\"/>'\r\nsvg += '\t<use xlink:href=\"#base-lv2\" stroke=\"#000\" stroke-width=\"72\"/>'\r\nsvg += '\t<use xlink:href=\"#base-lv2\"/>'\r\nsvg += '</svg>'\r\n\r\nvar g = new Group()\r\ng.importSVG(svg)\r\n```\r\n\r\nMy expected result is like this.\r\n![logo](https://cloud.githubusercontent.com/assets/11169954/13105905/d1833952-d5a8-11e5-86b7-3d3090c63ca8.png)"},"comment":{"url":"https://api.github.com/repos/paperjs/paper.js/issues/comments/185156165","html_url":"https://github.com/paperjs/paper.js/issues/978#issuecomment-185156165","issue_url":"https://api.github.com/repos/paperjs/paper.js/issues/978","id":185156165,"user":{"login":"lehni","id":213275,"avatar_url":"https://avatars.githubusercontent.com/u/213275?v=3","gravatar_id":"","url":"https://api.github.com/users/lehni","html_url":"https://github.com/lehni","followers_url":"https://api.github.com/users/lehni/followers","following_url":"https://api.github.com/users/lehni/following{/other_user}","gists_url":"https://api.github.com/users/lehni/gists{/gist_id}","starred_url":"https://api.github.com/users/lehni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lehni/subscriptions","organizations_url":"https://api.github.com/users/lehni/orgs","repos_url":"https://api.github.com/users/lehni/repos","events_url":"https://api.github.com/users/lehni/events{/privacy}","received_events_url":"https://api.github.com/users/lehni/received_events","type":"User","site_admin":false},"created_at":"2016-02-17T11:05:25Z","updated_at":"2016-02-17T11:05:25Z","body":"To explain why it goes too far: This actually requires path offsetting to work with the Canvas renderer, and that's an expensive, imprecise operation. "}}