You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if i try to use transitions like { name : 'goto', from: 'A' to: newState => newState) - visualisation doesn't work as expected.
a little fix can improve this ->
dotcfg.transitions = function(config, options) {
let init = config.init,
transitions = config.options.transitions || [], // easier to visualize using the ORIGINAL transition declarations rather than our run-time mapping
output = [];
if (options.init && init.active) {
dotcfg.transition(init.name, init.from, init.to, init.dot, config, options, output)
}
transitions.forEach(transition => {
let to = typeof (transition.to) === 'function' ? transition.to() : transition.to;
to && dotcfg.transition(transition.name, transition.from, to, transition.dot, config, options, output);
})
return output;
}
The text was updated successfully, but these errors were encountered:
if i try to use transitions like { name : 'goto', from: 'A' to: newState => newState) - visualisation doesn't work as expected.
a little fix can improve this ->
dotcfg.transitions = function(config, options) {
let init = config.init,
transitions = config.options.transitions || [], // easier to visualize using the ORIGINAL transition declarations rather than our run-time mapping
output = [];
}
The text was updated successfully, but these errors were encountered: