Skip to content

Instantly share code, notes, and snippets.

@joakin
Created April 11, 2018 16:43
Show Gist options
  • Save joakin/9773723a9f3b51ad49c2ce9f09bc5a0c to your computer and use it in GitHub Desktop.
Save joakin/9773723a9f3b51ad49c2ce9f09bc5a0c to your computer and use it in GitHub Desktop.
Popups state chart as in the integration test
{
"id": "popup",
"initial": "inactive",
"states": {
"inactive": {
"on": {
"LINK_DWELL": "active"
}
},
"active": {
"parallel": true,
"states": {
"hover": {
"initial": "on_link",
"states": {
"on_link":{
"on": {
"LINK_ABANDON_START": "off_link",
"PREVIEW_ABANDON_START": "off_link",
}
},
"off_link":{
"on": {
"CURRENT_LINK_DWELL": "on_link",
"CURRENT_PREVIEW_DWELL": "on_link",
"LINK_ABANDON_END": "inactive",
"PREVIEW_ABANDON_END": "inactive",
}
}
}
},
"data": {
"initial": "no_data",
"states": {
"no_data":{
"on": { "FETCH_END": "data_loaded" }
},
"data_loaded":{}
}
}
},
"on": {
"LINK_DWELL": "inactive"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment