{"action":"created","issue":{"url":"https://api.github.com/repos/bramp/js-sequence-diagrams/issues/129","labels_url":"https://api.github.com/repos/bramp/js-sequence-diagrams/issues/129/labels{/name}","comments_url":"https://api.github.com/repos/bramp/js-sequence-diagrams/issues/129/comments","events_url":"https://api.github.com/repos/bramp/js-sequence-diagrams/issues/129/events","html_url":"https://github.com/bramp/js-sequence-diagrams/issues/129","id":103075520,"number":129,"title":"Angled arrows","user":{"login":"raboof","id":131856,"avatar_url":"https://avatars.githubusercontent.com/u/131856?v=3","gravatar_id":"","url":"https://api.github.com/users/raboof","html_url":"https://github.com/raboof","followers_url":"https://api.github.com/users/raboof/followers","following_url":"https://api.github.com/users/raboof/following{/other_user}","gists_url":"https://api.github.com/users/raboof/gists{/gist_id}","starred_url":"https://api.github.com/users/raboof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raboof/subscriptions","organizations_url":"https://api.github.com/users/raboof/orgs","repos_url":"https://api.github.com/users/raboof/repos","events_url":"https://api.github.com/users/raboof/events{/privacy}","received_events_url":"https://api.github.com/users/raboof/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bramp/js-sequence-diagrams/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-25T17:20:00Z","updated_at":"2015-08-25T19:15:18Z","closed_at":null,"body":"It'd be really great to have support for angled (and even crossing!) arrows, to represent messages being sent e.g. over a network.\r\n\r\nExample: http://tex.stackexchange.com/questions/99436/network-message-sequence-diagram\r\n\r\nI fully realize this would be nontrivial to add: finding a good way to represent such diagrams in text is a challenge on its own. It'd probably be wise to consider this a 'other diagram' (I don't seem to be able to add milestones to issues though). Hopefully much of the rendering and styling code can be generalized/re-used, though.\r\n\r\nInspiration for the textual representation could be:\r\n* http://satoss.uni.lu/software/mscpackage/ \r\n* https://code.google.com/p/msc2svg/wiki/Example\r\n* http://www.mcternan.me.uk/mscgen/\r\n\r\nThough none of those are particularly appealing."},"comment":{"url":"https://api.github.com/repos/bramp/js-sequence-diagrams/issues/comments/134705807","html_url":"https://github.com/bramp/js-sequence-diagrams/issues/129#issuecomment-134705807","issue_url":"https://api.github.com/repos/bramp/js-sequence-diagrams/issues/129","id":134705807,"user":{"login":"raboof","id":131856,"avatar_url":"https://avatars.githubusercontent.com/u/131856?v=3","gravatar_id":"","url":"https://api.github.com/users/raboof","html_url":"https://github.com/raboof","followers_url":"https://api.github.com/users/raboof/followers","following_url":"https://api.github.com/users/raboof/following{/other_user}","gists_url":"https://api.github.com/users/raboof/gists{/gist_id}","starred_url":"https://api.github.com/users/raboof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raboof/subscriptions","organizations_url":"https://api.github.com/users/raboof/orgs","repos_url":"https://api.github.com/users/raboof/repos","events_url":"https://api.github.com/users/raboof/events{/privacy}","received_events_url":"https://api.github.com/users/raboof/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T19:15:18Z","updated_at":"2015-08-25T19:15:18Z","body":"Thanks for the quick reply. That is actually an interesting proposal - though extending it to the other 3 arrow types (`A\\\\>B`, `A\\>>B`, `A\\\\>>B`) seems a bit nasty.\r\n\r\nAn alternative might be to keep the existing arrows but allow annotations specifying how many lines to 'drop' (where a 'drop' of 0 would be a horizontal line). This would also fairly naturally support diagrams like the first one at https://w3.cs.jmu.edu/bernstdh/Web/CS460/study-aids/exam2-sample.php: \r\n\r\n```\r\n(...)\r\nT->R [drop = 1]: F3\r\nR->T [drop = 4]: ACK 4\r\nT->R [drop = 1]: F4\r\nT->R [drop = 1]: F5\r\n```\r\n\r\nThis could be made more readable by allowing to set a 'default drop' at the top of the file, and set that to '1' if you're drawing these kinds of diagrams."}}