Skip to content

Instantly share code, notes, and snippets.

// State Machine for Charting
const stateMachine = Machine(
{
id: 'stateMachine',
initial: 'idle',
context: {
file: undefined,
svg: undefined,
error: undefined
},
@plugboy
plugboy / machine.js
Last active April 30, 2020 17:24
Generated by XState Viz: https://xstate.js.org/viz
const stateMachine = Machine(
{
id: 'stateMachine',
initial: 'idle',
context: {
file: undefined,
svg: undefined,
error: undefined
},
@plugboy
plugboy / machine.js
Last active March 17, 2020 06:02
Generated by XState Viz: https://xstate.js.org/viz
function getSelectedAngle() {
return 60
}
function getSliceNumber() {
return 6
}
const pizzaMachine = Machine(
{