{"action":"opened","issue":{"url":"https://api.github.com/repos/alexandersimoes/d3plus/issues/331","labels_url":"https://api.github.com/repos/alexandersimoes/d3plus/issues/331/labels{/name}","comments_url":"https://api.github.com/repos/alexandersimoes/d3plus/issues/331/comments","events_url":"https://api.github.com/repos/alexandersimoes/d3plus/issues/331/events","html_url":"https://github.com/alexandersimoes/d3plus/issues/331","id":80454021,"number":331,"title":"Wrong position of textwrap","user":{"login":"miceno","id":315830,"avatar_url":"https://avatars.githubusercontent.com/u/315830?v=3","gravatar_id":"","url":"https://api.github.com/users/miceno","html_url":"https://github.com/miceno","followers_url":"https://api.github.com/users/miceno/followers","following_url":"https://api.github.com/users/miceno/following{/other_user}","gists_url":"https://api.github.com/users/miceno/gists{/gist_id}","starred_url":"https://api.github.com/users/miceno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miceno/subscriptions","organizations_url":"https://api.github.com/users/miceno/orgs","repos_url":"https://api.github.com/users/miceno/repos","events_url":"https://api.github.com/users/miceno/events{/privacy}","received_events_url":"https://api.github.com/users/miceno/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-25T08:48:48Z","updated_at":"2015-05-25T08:48:48Z","closed_at":null,"body":"I am integrating textwrap in a zoomable treemap visualization directly on d3.js (not using d3plus :(\r\n\r\nThe issue I have perceived is the \"dy\" attribute of the original text is used to position the new tspan into the \"text\" SVG, but the textwrap function is not considering the units of the dy attribute.\r\n\r\nI have prepared a fiddle showing it, I have fixed \"dy\" to \"0.75em\" and textwrap uses it as it was measured in pixels. http://jsfiddle.net/miceno/jte74dj5/"}}