jgraph / mxgraph

mxGraph is a fully client side JavaScript diagramming library
Other
6.82k stars 2.06k forks source link

Can I help add a better UML Composite State? Double click to enter state. #282

Closed adamfk closed 5 years ago

adamfk commented 5 years ago

Hello!

very impressed with mxgraph & draw.io.

I'd like to build support for an advanced UML composite state that supports entering the state when double clicked. A basic example of the functionality I would like is shown below:

simple-composite-state-example

Double clicking on a collapsed composite state would jump to viewing the contents. This is super useful when dealing with large diagrams with hundreds of states in them.

The demo above isn't entirely ideal - the composite state would ideally be shown too when entered to show its internal event handlers do / common_stuff( );. But it's good enough for now.

I've built a pretty decent UML state machine code generator that my workplace is looking to open source, but we need a better UI as we currently just analyze yEd XML files which has a bunch of problems. I'm hoping to use mxgraph to create our GUI and thought that this advanced composite state would be useful to the project in general.

adamfk commented 5 years ago

This is currently possible with mxGraph and draw.io already. thanks!

image