maintenance
This commit is contained in:
parent
93dd6c53f1
commit
c18b81b2f2
46
package-lock.json
generated
46
package-lock.json
generated
@ -8,13 +8,13 @@
|
||||
"name": "compilinglambda",
|
||||
"version": "0.0.0",
|
||||
"dependencies": {
|
||||
"@motion-canvas/2d": "^3.14.0",
|
||||
"@motion-canvas/core": "^3.14.0",
|
||||
"@motion-canvas/ffmpeg": "^1.1.0"
|
||||
"@motion-canvas/2d": "^3.14.1",
|
||||
"@motion-canvas/core": "^3.14.1",
|
||||
"@motion-canvas/ffmpeg": "^1.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@motion-canvas/ui": "^3.14.0",
|
||||
"@motion-canvas/vite-plugin": "^3.14.0",
|
||||
"@motion-canvas/ui": "^3.14.1",
|
||||
"@motion-canvas/vite-plugin": "^3.14.1",
|
||||
"typescript": "^5.2.2",
|
||||
"vite": "^4.0.0"
|
||||
}
|
||||
@ -587,9 +587,9 @@
|
||||
]
|
||||
},
|
||||
"node_modules/@motion-canvas/2d": {
|
||||
"version": "3.14.1",
|
||||
"resolved": "https://registry.npmjs.org/@motion-canvas/2d/-/2d-3.14.1.tgz",
|
||||
"integrity": "sha512-9bwpp/3bbaXycK4yGY2pD1qyZuHmVcf+cgMAhw9Xu/QSMbElh68u5bguN6AXLpaRxAWWLu9lGtf6Pws7tRgv4g==",
|
||||
"version": "3.14.2",
|
||||
"resolved": "https://registry.npmjs.org/@motion-canvas/2d/-/2d-3.14.2.tgz",
|
||||
"integrity": "sha512-SaOU0gL9RjUsIRCwNwPo/DLvcLKNPfVylfUcynSocOE6bSjsHrd8ZVNumf4X9Bedf9dxajrWf44eMBNCLQpJyg==",
|
||||
"dependencies": {
|
||||
"@motion-canvas/core": "^3.14.1",
|
||||
"code-fns": "^0.8.2",
|
||||
@ -622,9 +622,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@motion-canvas/ui": {
|
||||
"version": "3.14.1",
|
||||
"resolved": "https://registry.npmjs.org/@motion-canvas/ui/-/ui-3.14.1.tgz",
|
||||
"integrity": "sha512-6HLqzDnLUVyURGVl8hFvq6AOirlxz0ROnQlEgBiryRmdmJ/eSrZ3nVpxVCP2fp8AJ2f2KwHBNtwXyLv+xq1Uyw==",
|
||||
"version": "3.14.2",
|
||||
"resolved": "https://registry.npmjs.org/@motion-canvas/ui/-/ui-3.14.2.tgz",
|
||||
"integrity": "sha512-5KujeAd+cE88ZTLlnAzvSkKvRx87z/NhBYZo5PLIls2+Z/LdllEvhiEaZfGJuXz8ZZ0f93osDrQmlpB4LI+V7Q==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@motion-canvas/core": "^3.14.1",
|
||||
@ -705,9 +705,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@types/chroma-js": {
|
||||
"version": "2.4.3",
|
||||
"resolved": "https://registry.npmjs.org/@types/chroma-js/-/chroma-js-2.4.3.tgz",
|
||||
"integrity": "sha512-1ly5ly/7S/YF8aD7MxUQnFOZxdegimuOunJl0xDsLlguu5JrwuSTVGVH3UpIUlh6YauI0RMNT4cqjBonhgbdIQ=="
|
||||
"version": "2.4.4",
|
||||
"resolved": "https://registry.npmjs.org/@types/chroma-js/-/chroma-js-2.4.4.tgz",
|
||||
"integrity": "sha512-/DTccpHTaKomqussrn+ciEvfW4k6NAHzNzs/sts1TCqg333qNxOhy8TNIoQCmbGG3Tl8KdEhkGAssb1n3mTXiQ=="
|
||||
},
|
||||
"node_modules/@types/hast": {
|
||||
"version": "2.3.10",
|
||||
@ -834,9 +834,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/fastq": {
|
||||
"version": "1.17.0",
|
||||
"resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.0.tgz",
|
||||
"integrity": "sha512-zGygtijUMT7jnk3h26kUms3BkSDp4IfIKjmnqI2tvx6nuBfiF1UqOxbnLfzdv+apBy+53oaImsKtMw/xYbW+1w==",
|
||||
"version": "1.17.1",
|
||||
"resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz",
|
||||
"integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==",
|
||||
"dependencies": {
|
||||
"reusify": "^1.0.4"
|
||||
}
|
||||
@ -1047,9 +1047,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/postcss": {
|
||||
"version": "8.4.33",
|
||||
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.33.tgz",
|
||||
"integrity": "sha512-Kkpbhhdjw2qQs2O2DGX+8m5OVqEcbB9HRBvuYM9pgrjEFUg30A9LmXNlTAUj4S9kgtGyrMbTzVjH7E+s5Re2yg==",
|
||||
"version": "8.4.35",
|
||||
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.35.tgz",
|
||||
"integrity": "sha512-u5U8qYpBCpN13BsiEB0CbR1Hhh4Gc0zLFuedrHJKMctHCHAGrMdG0PRM/KErzAL3CU6/eckEtmHNB3x6e3c0vA==",
|
||||
"funding": [
|
||||
{
|
||||
"type": "opencollective",
|
||||
@ -1074,9 +1074,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/preact": {
|
||||
"version": "10.19.3",
|
||||
"resolved": "https://registry.npmjs.org/preact/-/preact-10.19.3.tgz",
|
||||
"integrity": "sha512-nHHTeFVBTHRGxJXKkKu5hT8C/YWBkPso4/Gad6xuj5dbptt9iF9NZr9pHbPhBrnT2klheu7mHTxTZ/LjwJiEiQ==",
|
||||
"version": "10.19.4",
|
||||
"resolved": "https://registry.npmjs.org/preact/-/preact-10.19.4.tgz",
|
||||
"integrity": "sha512-dwaX5jAh0Ga8uENBX1hSOujmKWgx9RtL80KaKUFLc6jb4vCEAc3EeZ0rnQO/FO4VgjfPMfoLFWnNG8bHuZ9VLw==",
|
||||
"dev": true,
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
|
10
package.json
10
package.json
@ -8,13 +8,13 @@
|
||||
"build": "tsc && vite build"
|
||||
},
|
||||
"dependencies": {
|
||||
"@motion-canvas/core": "^3.14.0",
|
||||
"@motion-canvas/2d": "^3.14.0",
|
||||
"@motion-canvas/ffmpeg": "^1.1.0"
|
||||
"@motion-canvas/core": "^3.14.1",
|
||||
"@motion-canvas/2d": "^3.14.1",
|
||||
"@motion-canvas/ffmpeg": "^1.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@motion-canvas/ui": "^3.14.0",
|
||||
"@motion-canvas/vite-plugin": "^3.14.0",
|
||||
"@motion-canvas/ui": "^3.14.1",
|
||||
"@motion-canvas/vite-plugin": "^3.14.1",
|
||||
"typescript": "^5.2.2",
|
||||
"vite": "^4.0.0"
|
||||
}
|
||||
|
@ -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 },
|
||||
|
5
src/scenes/doctor.meta
Normal file
5
src/scenes/doctor.meta
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"version": 0,
|
||||
"timeEvents": [],
|
||||
"seed": 3717956216
|
||||
}
|
@ -30,19 +30,20 @@ Yes, hmmm... so, do you really think this is so?
|
||||
|
||||
export default makeScene2D(function* (view) {
|
||||
const block = createRef<CodeBlock>();
|
||||
let currentConversation = conversation[0] + "\n";
|
||||
|
||||
yield view.add(
|
||||
view.add(
|
||||
<CodeBlock
|
||||
fontFamily={theme.font}
|
||||
language="markdown"
|
||||
ref={block}
|
||||
fontSize={20}
|
||||
code={currentConversation}
|
||||
></CodeBlock>,
|
||||
);
|
||||
|
||||
yield* slideTransition(Direction.Right);
|
||||
|
||||
let currentConversation = conversation[0] + "\n";
|
||||
let id = 0;
|
||||
for (const line of conversation.slice(1)) {
|
||||
yield* block().edit(1.2, false)`${currentConversation}${insert(
|
||||
|
5
src/scenes/first_box.meta
Normal file
5
src/scenes/first_box.meta
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"version": 0,
|
||||
"timeEvents": [],
|
||||
"seed": 2023703521
|
||||
}
|
@ -36,10 +36,9 @@ export default makeScene2D(function* (view) {
|
||||
yield* beginSlide("Add Inputs " + inputId);
|
||||
|
||||
yield* functionBox().propogateInput(0.5);
|
||||
yield* waitFor(0.3);
|
||||
yield* functionBox().propogateOutput(0.5);
|
||||
yield* beginSlide("Propogate Inputs " + inputId);
|
||||
|
||||
yield* functionBox().propogateOutput(0.5);
|
||||
yield* beginSlide("Propogate Outputs of " + inputId);
|
||||
yield* beginSlide("Propogate Outputs of 1" + inputId);
|
||||
}
|
||||
});
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"version": 0,
|
||||
"timeEvents": [],
|
||||
"seed": 487503470
|
||||
"seed": 1241573774
|
||||
}
|
@ -1,5 +1,12 @@
|
||||
import { Img, Video, makeScene2D } from "@motion-canvas/2d";
|
||||
import { beginSlide, createRef, map, tween } from "@motion-canvas/core";
|
||||
import {
|
||||
Direction,
|
||||
beginSlide,
|
||||
createRef,
|
||||
map,
|
||||
slideTransition,
|
||||
tween,
|
||||
} from "@motion-canvas/core";
|
||||
import sad from "../../public/img/sad.mp4";
|
||||
import emacsmac from "../../public/img/emacsmac.jpg";
|
||||
|
||||
@ -9,8 +16,10 @@ export default makeScene2D(function* (view) {
|
||||
const startX = 1200;
|
||||
const endX = 300;
|
||||
|
||||
yield view.add(<Video width={300} ref={vid} src={sad} x={0} />);
|
||||
yield view.add(<Img width={200} ref={img} src={emacsmac} x={startX} />);
|
||||
view.add(<Video width={300} ref={vid} src={sad} x={0} />);
|
||||
view.add(<Img width={200} ref={img} src={emacsmac} x={startX} />);
|
||||
|
||||
yield* slideTransition(Direction.Right);
|
||||
|
||||
yield vid().play();
|
||||
yield vid().loop(true);
|
||||
|
@ -2,8 +2,8 @@ import title from "./title?scene";
|
||||
import me from "./me?scene";
|
||||
import partone from "./partone?scene";
|
||||
import flirtingwithfunctions from "./flirtingwithfunctions?scene";
|
||||
import doctor from "./doctor";
|
||||
import first_box from "./first_box";
|
||||
import doctor from "./doctor?scene";
|
||||
import first_box from "./first_box?scene";
|
||||
|
||||
export const scenes = [
|
||||
title,
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"version": 0,
|
||||
"timeEvents": [],
|
||||
"seed": 3928486110
|
||||
"seed": 1659460094
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"version": 0,
|
||||
"timeEvents": [],
|
||||
"seed": 2742200033
|
||||
"seed": 2918980577
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"version": 0,
|
||||
"timeEvents": [],
|
||||
"seed": 3229939754
|
||||
"seed": 294700475
|
||||
}
|
Loading…
Reference in New Issue
Block a user