diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-02-08 15:43:45 -0700 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-02-08 15:43:45 -0700 |
commit | c18b81b2f26123481558cb3fffc794c2c13f74ad (patch) | |
tree | 0e459406338ce835294989865b50e989fcf9c30c /src/components/function_box.tsx | |
parent | 93dd6c53f14979ec92144ffb55606ad83eac5af6 (diff) | |
download | compiling-the-lambda-calculus-c18b81b2f26123481558cb3fffc794c2c13f74ad.tar.gz compiling-the-lambda-calculus-c18b81b2f26123481558cb3fffc794c2c13f74ad.zip |
maintenance
Diffstat (limited to 'src/components/function_box.tsx')
-rw-r--r-- | src/components/function_box.tsx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/components/function_box.tsx b/src/components/function_box.tsx index 3c65062..e046d63 100644 --- a/src/components/function_box.tsx +++ b/src/components/function_box.tsx @@ -253,11 +253,9 @@ export class FunctionBox extends Node { } public *propogateOutput(duration: number) { - const opacityChangeDuration = 0.1; - const output = this.function(...this.currentArgs.map((input) => input.val)); if (typeof output === "function") { - yield this.output().add( + this.output().add( <FunctionBox opacity={0} isChild={true} @@ -266,15 +264,16 @@ export class FunctionBox extends Node { ></FunctionBox>, ); } else { - yield this.output().add( + this.output().add( <Txt fontFamily={theme.font} fontSize={30} fill={theme.text.hex}> {output.toString()} </Txt>, ); } + yield* this.boxMoji().text(this.idlingText, duration); + yield* all( - this.boxMoji().text(this.idlingText, duration), this.outputSegment().points( [ { x: -this.delta, y: 0 }, |