{"action":"closed","issue":{"url":"https://api.github.com/repos/sverweij/state-machine-cat/issues/28","repository_url":"https://api.github.com/repos/sverweij/state-machine-cat","labels_url":"https://api.github.com/repos/sverweij/state-machine-cat/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/sverweij/state-machine-cat/issues/28/comments","events_url":"https://api.github.com/repos/sverweij/state-machine-cat/issues/28/events","html_url":"https://github.com/sverweij/state-machine-cat/issues/28","id":371632838,"node_id":"MDU6SXNzdWUzNzE2MzI4Mzg=","number":28,"title":"Nested states that transition to themselves look weird","user":{"login":"LevelbossMike","id":242299,"node_id":"MDQ6VXNlcjI0MjI5OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/242299?v=4","gravatar_id":"","url":"https://api.github.com/users/LevelbossMike","html_url":"https://github.com/LevelbossMike","followers_url":"https://api.github.com/users/LevelbossMike/followers","following_url":"https://api.github.com/users/LevelbossMike/following{/other_user}","gists_url":"https://api.github.com/users/LevelbossMike/gists{/gist_id}","starred_url":"https://api.github.com/users/LevelbossMike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LevelbossMike/subscriptions","organizations_url":"https://api.github.com/users/LevelbossMike/orgs","repos_url":"https://api.github.com/users/LevelbossMike/repos","events_url":"https://api.github.com/users/LevelbossMike/events{/privacy}","received_events_url":"https://api.github.com/users/LevelbossMike/received_events","type":"User","site_admin":false},"labels":[{"id":442721825,"node_id":"MDU6TGFiZWw0NDI3MjE4MjU=","url":"https://api.github.com/repos/sverweij/state-machine-cat/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":{"login":"sverweij","id":4822597,"node_id":"MDQ6VXNlcjQ4MjI1OTc=","avatar_url":"https://avatars1.githubusercontent.com/u/4822597?v=4","gravatar_id":"","url":"https://api.github.com/users/sverweij","html_url":"https://github.com/sverweij","followers_url":"https://api.github.com/users/sverweij/followers","following_url":"https://api.github.com/users/sverweij/following{/other_user}","gists_url":"https://api.github.com/users/sverweij/gists{/gist_id}","starred_url":"https://api.github.com/users/sverweij/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sverweij/subscriptions","organizations_url":"https://api.github.com/users/sverweij/orgs","repos_url":"https://api.github.com/users/sverweij/repos","events_url":"https://api.github.com/users/sverweij/events{/privacy}","received_events_url":"https://api.github.com/users/sverweij/received_events","type":"User","site_admin":false},"assignees":[{"login":"sverweij","id":4822597,"node_id":"MDQ6VXNlcjQ4MjI1OTc=","avatar_url":"https://avatars1.githubusercontent.com/u/4822597?v=4","gravatar_id":"","url":"https://api.github.com/users/sverweij","html_url":"https://github.com/sverweij","followers_url":"https://api.github.com/users/sverweij/followers","following_url":"https://api.github.com/users/sverweij/following{/other_user}","gists_url":"https://api.github.com/users/sverweij/gists{/gist_id}","starred_url":"https://api.github.com/users/sverweij/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sverweij/subscriptions","organizations_url":"https://api.github.com/users/sverweij/orgs","repos_url":"https://api.github.com/users/sverweij/repos","events_url":"https://api.github.com/users/sverweij/events{/privacy}","received_events_url":"https://api.github.com/users/sverweij/received_events","type":"User","site_admin":false}],"milestone":null,"comments":9,"created_at":"2018-10-18T17:27:10Z","updated_at":"2018-10-27T14:02:35Z","closed_at":"2018-10-27T14:02:35Z","author_association":"NONE","body":"Thanks for this great project and sorry for the strange title. When nested states reference themself the rendered outpout looks weird and it's hard to see what is happening in the statechart:\r\n\r\n<img width=\"685\" alt=\"bildschirmfoto 2018-10-18 um 19 17 40\" src=\"https://user-images.githubusercontent.com/242299/47172209-1d088a00-d30b-11e8-94ed-14a30869a633.png\">\r\n\r\n\r\n\r\n\r\n### Expected Behavior\r\nI would expect that a transition from a nested state to itself looks the same as a non nested-state to itself.\r\n\r\n### Current Behavior\r\nThe transition of a nested state to itself is drawn inside of the nested state which is easy to miss when looking at the diagram.\r\n\r\n### Possible Solution\r\nNot sure \r\n\r\n### Steps to Reproduce (for bugs)\r\nThis is the diagram I am drawing:\r\n```\r\ninitial,\r\n\"media player off\",\r\n\r\n\"media player on\" {\r\n  stopped, playing, paused;\r\n\r\n  stopped => playing : play;\r\n  playing => stopped : stop;\r\n  playing => paused  : pause;\r\n  paused  => playing : pause;\r\n  paused  => stopped : stop;\r\n};\r\n\r\ninitial            => \"media player off\";\r\n\"media player off\" => stopped           : power;\r\n\"media player on\"  => \"media player off\" : power;\r\n\"media player off\" => \"media player off\";\r\n\"media player on\" => \"media player on\";\r\n\r\n```\r\n### Context\r\nI'm trying to build a visualizer for an ember-addon https://github.com/LevelbossMike/ember-statecharts that I am working on and would like to use state-machine-cat as the project that creates the visual output. \r\n\r\n### Your Environment\r\nI'm using the web-editor.\r\n\r\nThanks again for this great project! I'm using your diagramming tool nearly every day and it makes my dev-life much easier 🍻 "}}
{"actor":{"display_login":"sverweij"}}