Skip to content

Commit

Permalink
current_hidden_fsm fixed in viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
mgonzs13 committed Aug 9, 2024
1 parent 599d0df commit 740dcaf
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"files": {
"main.css": "/static/css/main.073c9b0a.css",
"main.js": "/static/js/main.259d4f59.js",
"main.js": "/static/js/main.713a3c3e.js",
"static/js/787.d1eb2cfc.chunk.js": "/static/js/787.d1eb2cfc.chunk.js",
"index.html": "/index.html",
"main.073c9b0a.css.map": "/static/css/main.073c9b0a.css.map",
"main.259d4f59.js.map": "/static/js/main.259d4f59.js.map",
"main.713a3c3e.js.map": "/static/js/main.713a3c3e.js.map",
"787.d1eb2cfc.chunk.js.map": "/static/js/787.d1eb2cfc.chunk.js.map"
},
"entrypoints": [
"static/css/main.073c9b0a.css",
"static/js/main.259d4f59.js"
"static/js/main.713a3c3e.js"
]
}
2 changes: 1 addition & 1 deletion yasmin_viewer/yasmin_viewer_web_client/build/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>YASMIN Viewer</title><script defer="defer" src="/static/js/main.259d4f59.js"></script><link href="/static/css/main.073c9b0a.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>YASMIN Viewer</title><script defer="defer" src="/static/js/main.713a3c3e.js"></script><link href="/static/css/main.073c9b0a.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>

Large diffs are not rendered by default.

Large diffs are not rendered by default.

14 changes: 13 additions & 1 deletion yasmin_viewer/yasmin_viewer_web_client/src/components/FSM.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ class FSM extends React.Component {
type = "fsm";
} else {
if (current_state === state.id) {
type = "current_state";
if (state.is_fsm && hide_nested_fsm) {
type = "current_hidden_fsm";
} else {
type = "current_state";
}
} else if (state.is_fsm && hide_nested_fsm) {
type = "hidden_fsm";
}
Expand Down Expand Up @@ -248,6 +252,14 @@ class FSM extends React.Component {
borderWidth: 3,
},
},
{
selector: "node[type = 'current_hidden_fsm']",
style: {
shape: "octagon",
borderWidth: 3,
backgroundColor: "green",
},
},
{
selector: "node[type = 'fsm']",
style: {
Expand Down

0 comments on commit 740dcaf

Please sign in to comment.