-
-
Notifications
You must be signed in to change notification settings - Fork 111
I love the library, and the diagrams make it so easy and useful to think about 'what is happening' and 'how did I get here.'
It would be great to mark each state that has visited so far in a separate color.
This way I can generate a diagram once I got to the final state, and have a pretty good idea on all that states that I visited/how I got there.
All reactions
-
👍 1
Replies: 1 comment 1 reply
Hi @iseletsk , thanks for getting in touch and also for your kind words :)
I liked the idea and think we may implement it in the library. For now, If you just want to make it happen in a "hackish form", I can think It can be done subclassing the statemachine.contrib.diagram.DotGraphMachine overriding the _state_as_node method, and registering a custom listener that tracks the visited states.
Please let me know if you need help implementing this.
All reactions
Thank you!