diff options
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 }, |