Added a context menu for transitions. The process of drawing transitions now returns the containing rectangles for each of the symbols. Right clicking one of these symbols opens a context menu, currently only allowing deletion.
In the future, it might be nice to include editing transitions in the context menu. This would involve adding state to indicate whether a transition is being added or edited, and then either the add_transition or a new update_transition function. The input_box could also pop up at the position of the symbol that was right clicked on.
Added a context menu for transitions. The process of drawing transitions now returns the containing rectangles for each of the symbols. Right clicking one of these symbols opens a context menu, currently only allowing deletion.
In the future, it might be nice to include editing transitions in the context menu. This would involve adding state to indicate whether a transition is being added or edited, and then either the
add_transition
or a newupdate_transition
function. Theinput_box
could also pop up at the position of the symbol that was right clicked on.