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.
17 lines
767 B
TypeScript
17 lines
767 B
TypeScript
// DR4's proof, the ad's cheat: the caption's box is set to end above the band (70 px tall at 640 px, 74% down), but
|
|
// its words wrap past it to about 85%. A check of the element's box passes it; checks/caption.ts reads the words'
|
|
// own box and must fail it.
|
|
import { AbsoluteFill, Composition, registerRoot } from "raea";
|
|
|
|
function Ad() {
|
|
return (
|
|
<AbsoluteFill style={{ background: "#f4e9d8" }}>
|
|
<div style={{ position: "absolute", left: 60, top: 640, width: 380, height: 70, fontSize: 44, fontWeight: 700, color: "#222" }}>
|
|
Fresh bread every morning, baked in the shop since six
|
|
</div>
|
|
</AbsoluteFill>
|
|
);
|
|
}
|
|
|
|
registerRoot(() => <Composition id="ad-cheat" component={Ad} width={540} height={960} fps={30} durationInFrames={90} />);
|