This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// State Machine for Charting | |
const stateMachine = Machine( | |
{ | |
id: 'stateMachine', | |
initial: 'idle', | |
context: { | |
file: undefined, | |
svg: undefined, | |
error: undefined | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const stateMachine = Machine( | |
{ | |
id: 'stateMachine', | |
initial: 'idle', | |
context: { | |
file: undefined, | |
svg: undefined, | |
error: undefined | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getSelectedAngle() { | |
return 60 | |
} | |
function getSliceNumber() { | |
return 6 | |
} | |
const pizzaMachine = Machine( | |
{ |