{"action":"created","issue":{"url":"https://api.github.com/repos/makinacorpus/Leaflet.TextPath/issues/26","labels_url":"https://api.github.com/repos/makinacorpus/Leaflet.TextPath/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/makinacorpus/Leaflet.TextPath/issues/26/comments","events_url":"https://api.github.com/repos/makinacorpus/Leaflet.TextPath/issues/26/events","html_url":"https://github.com/makinacorpus/Leaflet.TextPath/issues/26","id":67520275,"number":26,"title":"Flip upside down text on right to left lines...?","user":{"login":"kirkau","id":11882580,"avatar_url":"https://avatars.githubusercontent.com/u/11882580?v=3","gravatar_id":"","url":"https://api.github.com/users/kirkau","html_url":"https://github.com/kirkau","followers_url":"https://api.github.com/users/kirkau/followers","following_url":"https://api.github.com/users/kirkau/following{/other_user}","gists_url":"https://api.github.com/users/kirkau/gists{/gist_id}","starred_url":"https://api.github.com/users/kirkau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirkau/subscriptions","organizations_url":"https://api.github.com/users/kirkau/orgs","repos_url":"https://api.github.com/users/kirkau/repos","events_url":"https://api.github.com/users/kirkau/events{/privacy}","received_events_url":"https://api.github.com/users/kirkau/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-10T06:18:57Z","updated_at":"2015-04-13T01:39:11Z","closed_at":null,"body":"Is there any way to flip the text when the line runs left to right (so it isn't upside down?)\r\n\r\ncheers\r\n"},"comment":{"url":"https://api.github.com/repos/makinacorpus/Leaflet.TextPath/issues/comments/92163026","html_url":"https://github.com/makinacorpus/Leaflet.TextPath/issues/26#issuecomment-92163026","issue_url":"https://api.github.com/repos/makinacorpus/Leaflet.TextPath/issues/26","id":92163026,"user":{"login":"kirkau","id":11882580,"avatar_url":"https://avatars.githubusercontent.com/u/11882580?v=3","gravatar_id":"","url":"https://api.github.com/users/kirkau","html_url":"https://github.com/kirkau","followers_url":"https://api.github.com/users/kirkau/followers","following_url":"https://api.github.com/users/kirkau/following{/other_user}","gists_url":"https://api.github.com/users/kirkau/gists{/gist_id}","starred_url":"https://api.github.com/users/kirkau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirkau/subscriptions","organizations_url":"https://api.github.com/users/kirkau/orgs","repos_url":"https://api.github.com/users/kirkau/repos","events_url":"https://api.github.com/users/kirkau/events{/privacy}","received_events_url":"https://api.github.com/users/kirkau/received_events","type":"User","site_admin":false},"created_at":"2015-04-13T01:39:11Z","updated_at":"2015-04-13T01:39:11Z","body":"Cheers for the link. \r\n\r\nI've made a patch and submitted a PR\r\n\r\n    if (options.flipvertical) {   \r\n\t\t\tvar rotatecenterX = (textNode.getBBox().x + textNode.getBBox().width / 2);\r\n\t\t\tvar rotatecenterY = (textNode.getBBox().y + textNode.getBBox().height / 2);\t\t\t\r\n\t\t\ttextNode.setAttribute('transform', 'rotate(90 ' + rotatecenterX + ' ' + rotatecenterY + ')');\t\t\t\r\n\t\t}\r\n\r\nI'd like to integrate the directional check and also perhaps provide a specific rotation angle/allow for perpendicular labels.  Any input on structure? I've linked bearing and direction code above... "}}