Skip to content

Commit

Permalink
hidden fsm represented as octagon in viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
mgonzs13 committed Aug 9, 2024
1 parent ee45bb5 commit 964947b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions yasmin_viewer/yasmin_viewer_web_client/src/components/FSM.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ class FSM extends React.Component {
} else {
if (current_state === state.id) {
type = "current_state";
} else if (state.is_fsm && hide_nested_fsm) {
type = "hidden_fsm";
}
}

Expand Down Expand Up @@ -239,6 +241,13 @@ class FSM extends React.Component {
paddingLeft: 20,
},
},
{
selector: "node[type = 'hidden_fsm']",
style: {
shape: "octagon",
borderWidth: 3,
},
},
{
selector: "node[type = 'fsm']",
style: {
Expand Down

0 comments on commit 964947b

Please sign in to comment.