{"action":"closed","issue":{"url":"https://api.github.com/repos/fontello/svgpath/issues/10","labels_url":"https://api.github.com/repos/fontello/svgpath/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/fontello/svgpath/issues/10/comments","events_url":"https://api.github.com/repos/fontello/svgpath/issues/10/events","html_url":"https://github.com/fontello/svgpath/issues/10","id":111386260,"number":10,"title":"Translate doesn't work for relative paths made with .rel","user":{"login":"bojidar-bg","id":5276727,"avatar_url":"https://avatars.githubusercontent.com/u/5276727?v=3","gravatar_id":"","url":"https://api.github.com/users/bojidar-bg","html_url":"https://github.com/bojidar-bg","followers_url":"https://api.github.com/users/bojidar-bg/followers","following_url":"https://api.github.com/users/bojidar-bg/following{/other_user}","gists_url":"https://api.github.com/users/bojidar-bg/gists{/gist_id}","starred_url":"https://api.github.com/users/bojidar-bg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bojidar-bg/subscriptions","organizations_url":"https://api.github.com/users/bojidar-bg/orgs","repos_url":"https://api.github.com/users/bojidar-bg/repos","events_url":"https://api.github.com/users/bojidar-bg/events{/privacy}","received_events_url":"https://api.github.com/users/bojidar-bg/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-14T12:22:25Z","updated_at":"2015-10-27T05:13:19Z","closed_at":"2015-10-27T05:13:19Z","body":"If one attempts to translate a path and calls `.rel` nothing will happen.\r\n````javascript\r\ntestPath = \"m 70, 70 l 20, 20 l -20, 0 l 0, -20\"\r\nsvgpath(testPath).translate(100, 100).toString()\r\n// \"M170 170l20 20-20 0 0-20\" - as expected\r\nsvgpath(testPath).translate(100, 100).rel().toString()\r\n// \"m70 70l20 20-20 0 0-20\" - now.. that one is not translated\r\nsvgpath( svgpath(testPath).rel().toString() ).translate(100,100).toString()\r\n// \"M170 170l20 20-20 0 0-20\" - as expected\r\n````"}}