Skip to content

Commit

Permalink
Show workflow diagram ASAP
Browse files Browse the repository at this point in the history
  • Loading branch information
FyreByrd committed Sep 17, 2024
1 parent 7b90209 commit d41ad08
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
input: {}
});
let selected: string = actorRef.getSnapshot().value;
let selected: string | any = actorRef.getSnapshot().value;
type StateNode = {
id: number;
Expand Down Expand Up @@ -124,6 +124,8 @@
() => {},
() => {}, // onRenderStart
() => {
ready = true;
// onRenderFrame
// begin showing earlier, still simulating, just less loading time
if (layout.totalEnergy() < 0.5) {
Expand All @@ -132,6 +134,14 @@
}
);
renderer.start();
const snapshotUnsub = snapshot.subscribe((s) => {
console.log(JSON.stringify(s, null, 4));
})
return () => {
snapshotUnsub();
}
});
</script>

Expand Down Expand Up @@ -169,6 +179,7 @@
minimap
controls
fitView
edgeStyle="straight"
theme="dark"
translation={{ x: 0, y: 0 }}
endStyles={[null, 'arrow']}
Expand Down

0 comments on commit d41ad08

Please sign in to comment.