File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed
src/features/envVisualizer Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -34,3 +34,4 @@ yarn-error.log
34
34
# emacs backup files
35
35
36
36
* ~
37
+ yarn.lock
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { InstrType } from "js-slang/dist/ec-evaluator/types";
2
2
3
3
import { AgendaStack , isInstr } from "./compactComponents/AgendaStack" ;
4
4
import { AnimationItemComponent } from "./compactComponents/AnimationItemComponent" ;
5
+ import EnvVisualizer from './EnvVisualizer' ;
5
6
6
7
export class EnvVisualizerAnimation {
7
8
private static animationEnabled = false ;
@@ -61,7 +62,8 @@ export class EnvVisualizerAnimation {
61
62
}
62
63
63
64
static startAnimation ( ) : void {
64
- if ( ! EnvVisualizerAnimation . enableAnimations ) {
65
+ if ( ! EnvVisualizerAnimation . animationEnabled || ! EnvVisualizer . getAgendaStash ( ) ) {
66
+ EnvVisualizerAnimation . disableAnimations ( ) ;
65
67
return ;
66
68
}
67
69
EnvVisualizerAnimation . disableAnimations ( ) ;
Original file line number Diff line number Diff line change @@ -584,6 +584,7 @@ export class Layout {
584
584
EnvVisualizer . getAgendaStash ( ) &&
585
585
Layout . stashComponent . draw ( ) }
586
586
{ EnvVisualizer . getCompactLayout ( ) &&
587
+ EnvVisualizer . getAgendaStash ( ) &&
587
588
EnvVisualizerAnimation . getAnimationComponents ( ) . map ( c => c . draw ( ) ) }
588
589
</ Layer >
589
590
</ Stage >
You can’t perform that action at this time.
0 commit comments