mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-01 21:03:47 -10:00
Proved by bench/direction/proof/proof.sh: five checks that import nothing of Bevy's (a lyric layer over footage, a footage cut, a cue in a mix, a caption in a vertical ad, a rider on a 3D seat), each passing its piece and failing its cheat, and a taste line failing the ad's cheat as the named check of its form. Fixed on the way: a text's box grows over words drawn past it (the caption cheat passed); a word a cut passes through is in each clip's words (the cut cheat passed); a Part carries its own box before its transform, so a turned part is tested as turned; the help reads `[A|B]` as one argument. Copies folded rather than added: a command's words (apps/check, now also raea workspace's), the printed report and exit code, the person's taste folder, a controller read from JSON (core/brief, now also apps/workspace's), and a path made plain (runtime/bundle's). The spec's lines that the code showed wrong are fixed beside them: --stage moves to DR10, a note's checks to DR6, and the rule field from DR8 to DR4.
19 lines
864 B
TypeScript
19 lines
864 B
TypeScript
// DR4's proof, the edit as asked: two pieces of one take, cut between its words (media/take.words.json: "one" ends
|
|
// at 0.95 s, "two" runs 1.05 to 1.90, "three" starts at 2.05). checks/cut.ts holds it.
|
|
import { AbsoluteFill, Composition, Sequence, Video, registerRoot } from "raea";
|
|
|
|
function Edit() {
|
|
return (
|
|
<AbsoluteFill style={{ background: "#000" }}>
|
|
<Sequence from={0} durationInFrames={30} name="a">
|
|
<Video src="media/take.mp4" startFrom={0} endAt={30} style={{ width: 540, height: 960 }} />
|
|
</Sequence>
|
|
<Sequence from={30} durationInFrames={30} name="b">
|
|
<Video src="media/take.mp4" startFrom={60} endAt={90} style={{ width: 540, height: 960 }} />
|
|
</Sequence>
|
|
</AbsoluteFill>
|
|
);
|
|
}
|
|
|
|
registerRoot(() => <Composition id="cut" component={Edit} width={540} height={960} fps={30} durationInFrames={60} />);
|