xstate-plantuml
Version:
Visualize a xstate or react-automata statechart as a plantuml state diagram
38 lines (37 loc) • 903 B
JSON
{
"key": "textEditor",
"parallel": true,
"states": {
"bold": {
"initial": "off",
"states": {
"on": { "on": { "TOGGLE_BOLD": "off" } },
"off": { "on": { "TOGGLE_BOLD": "on" } }
}
},
"underline": {
"initial": "off",
"states": {
"on": { "on": { "TOGGLE_UNDERLINE": "off" } },
"off": { "on": { "TOGGLE_UNDERLINE": "on" } }
}
},
"italics": {
"initial": "off",
"states": {
"on": { "on": { "TOGGLE_ITALICS": "off" } },
"off": { "on": { "TOGGLE_ITALICS": "on" } }
}
},
"list": {
"initial": "none",
"states": {
"none": {
"on": { "BULLETS": "bullets", "NUMBERS": "numbers" }
},
"bullets": { "on": { "NONE": "none", "NUMBERS": "numbers" } },
"numbers": { "on": { "BULLETS": "bullets", "NONE": "none" } }
}
}
}
}