fix broken pseudo-states (they work more like regular transitions now)
This commit is contained in:
parent
3e192f8e26
commit
43e3b2117c
15 changed files with 1038 additions and 346 deletions
9
src/statecharts/mtl/helpers.ts
Normal file
9
src/statecharts/mtl/helpers.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
|
||||
export function _evolve(object, changes) {
|
||||
return Object.assign(
|
||||
Object.create(Object.getPrototypeOf(object)), // create empty object with same prototype as original
|
||||
{
|
||||
...object,
|
||||
...changes,
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue