commit b211a9c282c85f09a6967f85a639869bbba45acf
parent 82ca3c0540afdbadbb06430be2b61875376b8f71
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Sat, 14 Nov 2026 00:45:21 -0500
umtool full-frame follow-ups: a clip's stamp and posts window keep their exit, traits combine by rule, Play says and does what the build does
1. The stamp region carries `ownFade` beside `drawsMarks`, and the posts windows region `ownFade`: a clip's stamp
or posts window leaves over the next segment's dissolve, and into a full-frame item that exit now plays whole
(its span starts once the dissolve in is over). Combined traits are a rule, not an accident:
fullFrameTraitProblem (full-frame.mjs), which the module contract calls -- `followsDeck` stands alone; `ownFade`
with `drawsMarks`: drawsMarks wins over a teaser with marks (no span), ownFade shapes the rest.
2. Play: `data-play-chrome` says what is true -- "off" over a video entry or an analysis item (nothing of the deck
drawn), "extras-off" over a teaser, the intro or a card (the deck slides on its own, the other layers are off).
Over a video entry or an analysis item the deck's page, the feed and the instruments are hidden, as the build
blacks those regions out there (layerOffOver: followsDeck is off over both kinds); DeckFrame takes `chromeOff`
again for that.
3. Docs and CHANGELOG say what was unmentioned: the regions without followsDeck end an analysis item's span a
frame sooner than before (a cut with one encodes its overlays once more), and a chapter bumper after a video
entry or an analysis item also starts after the span.
Tests (teaser-chrome-off.test.mjs): the stamp's and the posts window's exit through the dissolve, the combined
traits, the validator, Play's followsDeck parity.
Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat:
10 files changed, 129 insertions(+), 34 deletions(-)
diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md
@@ -11,10 +11,15 @@
made black. They are back on the last frame of its dissolve out, which shows only the next clip.
- The deck, the dial, the odometer, the trail and the feed are laid as before: they keep their own slide away and
back.
- - The finale's pages finish their fade out through the dissolve into the item. A teaser that carries marks keeps
- its stamps.
- - A chapter bumper on the clip after such an item starts once the item has gone, so its entrance plays whole.
- - Play the cut hides the same layers while such an item is on screen.
+ - The finale's pages, a clip's stamp and a posts window finish their exit through the dissolve into the item. A
+ teaser that carries marks keeps its stamps.
+ - A chapter bumper on the clip after such an item starts once the item has gone, so its entrance plays whole. That
+ includes a video entry and an analysis item.
+ - Over an analysis item, those layers now come back one frame sooner than before, on the frame that shows only
+ the next clip. A cut with an analysis item encodes its overlays once more.
+ - Play the cut hides the same layers while such an item is on screen. Over a video entry or an analysis item it
+ hides the deck, the feed and the instruments too, as the build does. Its root says `data-play-chrome="off"`
+ there and `"extras-off"` over a teaser, the intro or a card, where the deck slides away on its own.
- A cut with none of these items is laid exactly as before. The change is in how the overlays are laid (and, after
such an item, in a chapter's window): other cached chrome frames are reused.
- **Clip windows can be asked for taller than 720, and the 720 window stays.** A `maxHeight` above 720 on
diff --git a/umtool/components/projects/OnscreenSection.tsx b/umtool/components/projects/OnscreenSection.tsx
@@ -212,6 +212,7 @@ export function DeckFrame({
testid,
children,
className = "",
+ chromeOff = false,
}: {
preview: DeckPreviewDoc;
t: number;
@@ -220,6 +221,8 @@ export function DeckFrame({
testid?: string;
children?: React.ReactNode;
className?: string;
+ /** Over a video entry or an analysis item (full-frame.mjs): the deck's page is not drawn, as the build lays it (kept loaded and seeked). */
+ chromeOff?: boolean;
}) {
const box = useRef<HTMLDivElement | null>(null);
const frame = useRef<HTMLIFrameElement | null>(null);
@@ -307,8 +310,9 @@ export function DeckFrame({
// behind a transparent frame on a dark page.
colorScheme: "normal",
pointerEvents: "none",
- visibility: scale > 0 ? "visible" : "hidden",
+ visibility: scale > 0 && !chromeOff ? "visible" : "hidden",
}}
+ data-deck-chrome={chromeOff ? "off" : undefined}
/>
</div>
);
diff --git a/umtool/components/projects/review/PlayCut.tsx b/umtool/components/projects/review/PlayCut.tsx
@@ -818,9 +818,10 @@ export default function PlayCut({
data-play-state={ui.ended ? "ended" : ui.playing ? (ui.waiting ? "waiting" : "playing") : "paused"}
data-play-t={String(Math.round(t * 100) / 100)}
data-play-item={item?.id ?? ""}
- // A full-frame item is on screen (full-frame.mjs: a video entry with the chrome off, a teaser the deck hides
- // over, the intro, an analysis item, a card under overCards "hide"): the deck is away and its layers are off.
- data-play-chrome={videoNow?.video.noChrome || core.chromeOff ? "off" : undefined}
+ // A full-frame item is on screen (full-frame.mjs): "off" -- nothing of the deck is drawn (a video entry with the
+ // chrome off, an analysis item); "extras-off" -- the deck slides away on its own and the layers that keep no
+ // time of their own are off (a teaser the deck hides over, the intro, a card under overCards "hide").
+ data-play-chrome={videoNow?.video.noChrome ? "off" : (core.chromeOff ?? undefined)}
data-play-compose={composeState}
data-play-basic={view.basic ? "" : undefined}
data-play-edges={edges.state}
diff --git a/umtool/components/projects/review/playCore.tsx b/umtool/components/projects/review/playCore.tsx
@@ -293,7 +293,10 @@ export function usePlayCore(view: PlayViewData, { showRejected = false }: { show
// "over it" is while it is the item on screen.
const fullItems = useMemo(() => fullFrameItems(schedule), [schedule]);
const fullNow = item ? (fullItems.find((x) => x.id === item.id) ?? null) : null;
- const chromeOff = !!fullNow;
+ // "off": nothing of the deck is drawn (a video entry, an analysis item: the build blacks the deck's own regions out
+ // there too); "extras-off": the deck slides away on its own and only the layers that keep no time of theirs are
+ // off (a teaser, the intro, a card).
+ const chromeOff: "off" | "extras-off" | null = fullNow ? (fullNow.kind === "page" ? "extras-off" : "off") : null;
// Each layer by its module's traits: the deck's page, the feed and the instruments keep their own slide; the
// stamps stay over a teaser with marks; the finale's pages finish their fade out.
const layerOff = useCallback((region: string, traits?: FullFrameTraits | null) => layerOffOver(fullNow, traits ?? doc?.fullFrame?.[region] ?? null, tc), [fullNow, doc?.fullFrame, tc]);
@@ -368,7 +371,7 @@ const pct = (n: number, of: number) => `${(n / of) * 100}%`;
* `basic`: a basic cut -- the bare footage, as the basic render cuts it.
*/
export function PlayStage({ core, basic = false, plainClassName }: { core: PlayCore; basic?: boolean; plainClassName?: string }) {
- const { project, take, doc, g, box, rect, move, tc, t, bg, engine, postNow, entryOf, plan, videoNow, vstage, teaserNow, introNow, placeholder, teaserPage, introPage, sideEntry, item, postsWin, finaleNow, asPublished, uncensored, onPostReady, layerOff } = core;
+ const { project, take, doc, g, box, rect, move, tc, t, bg, engine, postNow, entryOf, plan, videoNow, vstage, teaserNow, introNow, placeholder, teaserPage, introPage, sideEntry, item, postsWin, finaleNow, asPublished, uncensored, onPostReady, layerOff, chromeOff } = core;
const { ui, rate, failed } = engine;
const footageCanvas = (style: React.CSSProperties | undefined, w: number, h: number) => (
<canvas ref={engine.canvasRef} data-play-footage="" data-play-move={move ? move.segment : ""} width={w} height={h} className="absolute" style={style} />
@@ -476,7 +479,7 @@ export function PlayStage({ core, basic = false, plainClassName }: { core: PlayC
</div>
<div className="relative">
{doc && g && box ? (
- <DeckFrame preview={doc} t={tc} texts={{}} testid="play-deck">
+ <DeckFrame preview={doc} t={tc} texts={{}} testid="play-deck" chromeOff={chromeOff === "off"}>
<div className="absolute inset-0" style={{ background: bg }} />
{footageCanvas(rect ? { left: pct(rect.x, g.W), top: pct(rect.y, g.H), width: pct(rect.width, g.W), height: pct(rect.height, g.H) } : undefined, box.width, box.height)}
{videoUnder}
@@ -497,8 +500,12 @@ export function PlayStage({ core, basic = false, plainClassName }: { core: PlayC
{sideNow && rect && <div className="pointer-events-none absolute" style={{ left: pct(rect.x, g.W), top: pct(rect.y, g.H), width: pct(rect.width, g.W), height: pct(rect.height, g.H) }}>{sideNow}</div>}
{/* Over a full-frame item (full-frame.mjs) a layer that keeps no time of its own is not drawn (layerOff):
kept mounted, transparent, so its page is ready and seeked when the item after it comes up. The feed
- follows the deck (followsDeck), as the deck's own page does. */}
- {doc.feed && <FeedOverlay key={doc.feed.src ?? "none"} feed={doc.feed} frame={g} t={tc} testid="play-feed" />}
+ follows the deck (followsDeck), as the deck's own page does: off over a video entry or an analysis item. */}
+ {doc.feed && (
+ <div className="pointer-events-none absolute inset-0" style={layerOff("feed") ? { opacity: 0 } : undefined} data-play-off={layerOff("feed") ? "feed" : undefined}>
+ <FeedOverlay key={doc.feed.src ?? "none"} feed={doc.feed} frame={g} t={tc} testid="play-feed" />
+ </div>
+ )}
{postsWin && doc.posts && (
<div className="pointer-events-none absolute inset-0" style={layerOff("posts") ? { opacity: 0 } : undefined} data-play-off={layerOff("posts") ? "posts" : undefined}>
<PostsOverlay key={`${postsWin.segment}:${postsWin.src ?? "none"}`} win={postsWin} geometry={doc.posts.geometry} frame={g} t={tc} />
diff --git a/umtool/docs/report-video.md b/umtool/docs/report-video.md
@@ -1868,19 +1868,29 @@ What a region's module says (`fullFrame` in the module contract):
too), the dial, the odometer, the trail, the feed. They hide themselves over the item and slide back after it
(deckChoreography), so they keep exactly the blackouts they had: a video entry's span and an analysis item's
(to the end of its dissolve out), nothing over a teaser, the intro or a card.
-- **`ownFade`** -- the finale, the dial's finale, the diet runs. Their page fades out through the dissolve after the
- run, so over an item that follows the finale they are left out only once the dissolve into it is over.
+- **`ownFade`** -- the finale, the dial's finale, the diet runs, the stamps, the posts windows. Each leaves through
+ the dissolve into the next segment (the finale's fade out after the run; a clip's stamp or posts window, `out`
+ over the next segment's dissolve), so over a full-frame item that follows they are left out only once the
+ dissolve into it is over -- their exit plays whole.
- **`drawsMarks`** -- the stamps. A teaser that carries marks keeps its stamps over it, a teaser that dips too: the
stamp is that card's own content, and its tally steps as it lands.
-
-**A chapter bumper** on the clip right after a full-frame item starts on the first frame after the item's span
-(its entrance plays whole, never cut by the span), for its `seconds`, never past the clip. **What keeps every
+- **Together**: `followsDeck` stands alone (the module contract refuses it with another trait: it lays main's
+ spans as they are). `ownFade` with `drawsMarks` (the stamps): `drawsMarks` wins over a teaser that carries marks
+ -- no span at all -- and `ownFade` shapes every other span.
+
+**A chapter bumper** on the clip right after a full-frame item -- a video entry and an analysis item included --
+starts on the first frame after the item's span (its entrance plays whole, never cut by the span), for its
+`seconds`, never past the clip. **Over an analysis item** the regions without `followsDeck` now end its span a frame
+sooner than before (the frame at the end of its dissolve out is the next clip's alone), so a cut with one encodes
+its overlays once more; the deck's own regions lay it as before. **What keeps every
layer**: a teaser that counts (marks and no dip, deck.mjs `teaserCounts`: the deck stays up so the count is seen to
step), a card under `overCards: "show"`, a video entry with `deck: "shown"`. A cut with none of these items lays
every overlay exactly as before. **Play the cut** does the same while such an item is on screen (it cuts at
mid-dissolve): each layer by the same traits (the preview's `fullFrame` map; a play layer's own `fullFrame`), kept
-loaded and seeked; the deck's page, the feed and the instruments draw their own slide; `data-play-chrome="off"` on
-its root. Present draws no chrome at all.
+loaded and seeked; over a teaser, the intro or a card the deck's page, the feed and the instruments draw their own
+slide, and over a video entry or an analysis item they are off as the build lays them. Its root says which:
+`data-play-chrome="extras-off"` (the deck sliding on its own, the other layers off) or `"off"` (nothing of the deck
+drawn). Present draws no chrome at all.
### The video's knobs (the pipeline's side)
diff --git a/umtool/report-to-video/full-frame.mjs b/umtool/report-to-video/full-frame.mjs
@@ -21,10 +21,15 @@
// `followsDeck` (shell, dial, odometer, trail, feed): only a video entry's and an analysis item's spans, as the
// build laid them before (an analysis item's to the end of its dissolve out) -- over a teaser, the intro or a
// card their own slide away and back is kept.
-// `ownFade` (the finale, the dial's finale, the diet runs): an item's span starts once its dissolve in is over, so
-// the page's own fade out through that dissolve plays whole (a video entry's as above).
+// `ownFade` (the finale, the dial's finale, the diet runs, the stamps, the posts windows): an item's span starts
+// once its dissolve in is over, so a page's own exit through that dissolve -- the finale's fade out, a clip's
+// stamp or posts window leaving over the next segment's dissolve -- plays whole (a video entry's as above).
// `drawsMarks` (the stamps): not over a teaser that carries marks -- the stamp is that card's own content.
//
+// Together (`fullFrameTraitProblem` says which may be): `followsDeck` stands alone -- it already lays only the
+// video entry's and the analysis item's spans, so nothing else may shape them. `ownFade` with `drawsMarks` (the
+// stamps): `drawsMarks` wins over a teaser that carries marks (no span at all), `ownFade` shapes every other span.
+//
// A segment that keeps the deck up is not full frame: a teaser that COUNTS (deck.mjs teaserCounts: marks, no dip),
// a card under `overCards: "show"`, a video entry with `deck: "shown"`. A cut with no full-frame item: [] -- and
// every graph is the one it was.
@@ -38,6 +43,23 @@ const r4 = (v) => Math.round(v * 1e4) / 1e4;
export const FULL_FRAME_TRAITS = Object.freeze(["followsDeck", "ownFade", "drawsMarks"]);
/**
+ * Why a `fullFrame` traits object cannot be laid, as a sentence, or null: each a trait set to `true`, at least one,
+ * and `followsDeck` alone (it lays main's video and analysis spans as they are -- nothing to shape). `ownFade` with
+ * `drawsMarks` is allowed: `drawsMarks` wins over a teaser with marks, `ownFade` shapes the rest.
+ *
+ * @param {unknown} f
+ */
+export function fullFrameTraitProblem(f) {
+ if (f === null || typeof f !== "object" || Array.isArray(f) || !Object.keys(f).length) return "an object of one or more traits";
+ for (const [k, v] of Object.entries(f)) {
+ if (!FULL_FRAME_TRAITS.includes(k)) return `${k} is not a trait (${FULL_FRAME_TRAITS.join(", ")})`;
+ if (v !== true) return `${k} must be true`;
+ }
+ if (f.followsDeck && Object.keys(f).length > 1) return "followsDeck stands alone: it lays only a video entry's and an analysis item's spans, as they are";
+ return null;
+}
+
+/**
* Is this schedule segment full frame? A video entry by its `noChrome`, an analysis item always, anything else by
* its `hideDeck`.
*
@@ -140,8 +162,9 @@ export function itemSpans(schedule, kind) {
/**
* PLAY: is a layer with these traits hidden while `item` (a full-frame item, or null) is the one on screen, at cut
- * second `tc`? Play cuts at mid-dissolve, so "over it" is while it is on screen. A `followsDeck` layer hides itself;
- * the stamps stay over a teaser with marks; an `ownFade` page goes once the dissolve into the item is over.
+ * second `tc`? Play cuts at mid-dissolve, so "over it" is while it is on screen. A `followsDeck` layer is off over a
+ * video entry and an analysis item (as the build lays it) and slides away on its own over any other; the stamps stay
+ * over a teaser with marks; an `ownFade` page goes once the dissolve into the item is over.
*
* @param {FullFrameItem | null | undefined} item
* @param {{ followsDeck?: boolean, ownFade?: boolean, drawsMarks?: boolean } | null | undefined} traits
@@ -150,7 +173,8 @@ export function itemSpans(schedule, kind) {
export function layerOffOver(item, traits, tc) {
if (!item) return false;
const t = traits ?? {};
- if (t.followsDeck) return false;
+ // As the build lays it: off over a video entry and an analysis item, its own slide over everything else.
+ if (t.followsDeck) return item.kind !== "page";
if (t.drawsMarks && item.type === "teaser" && item.marks) return false;
if (t.ownFade && item.kind !== "video" && item.index > 0) return tc >= item.start + item.D;
return true;
diff --git a/umtool/report-to-video/modules/contract.mjs b/umtool/report-to-video/modules/contract.mjs
@@ -32,7 +32,7 @@
// imported by the build, the composer and umtool alike.
/** What a module is: how its pixels reach the cut. */
-import { FULL_FRAME_TRAITS } from "../full-frame.mjs";
+import { fullFrameTraitProblem } from "../full-frame.mjs";
export const MODULE_KINDS = Object.freeze([
// A page over the whole cut (or a window of it), laid by its region at frame 1.
@@ -119,7 +119,7 @@ const SPEC = Object.freeze({
names: "a function ({ preview, window, entry, suffix }) => { project, stem }",
entry: "a function (manifest, segment) => the timeline entry a segment module draws",
seconds: "a function (entry, transition, fps) => how long a segment module's page is",
- fullFrame: "how its region is laid over a full-frame item (full-frame.mjs): { followsDeck?, ownFade?, drawsMarks? } -- each true; absent, it is off over every one",
+ fullFrame: "how its region is laid over a full-frame item (full-frame.mjs): { followsDeck } alone, or { ownFade?, drawsMarks? } (together: drawsMarks wins over a teaser with marks, ownFade shapes the rest) -- each true; absent, it is off over every one",
});
/**
@@ -190,9 +190,8 @@ export function defineModule(def) {
if (def.workers !== undefined && !["wide", "narrow"].includes(def.workers)) throw new Error(`${where}: workers must be ${SPEC.workers}`);
if (def.fullFrame !== undefined) {
const f = def.fullFrame;
- if (!isObj(f) || !Object.keys(f).length || Object.entries(f).some(([k, v]) => !FULL_FRAME_TRAITS.includes(k) || v !== true)) {
- throw new Error(`${where}: fullFrame must be ${SPEC.fullFrame}`);
- }
+ const why = fullFrameTraitProblem(f);
+ if (why) throw new Error(`${where}: fullFrame must be ${SPEC.fullFrame} (${why})`);
if (!(def.kind === "overlay-whole" || def.kind === "overlay-window")) throw new Error(`${where}: only an overlay is laid over a full-frame item`);
}
return Object.freeze({ ...def });
diff --git a/umtool/report-to-video/modules/popup-posts.mjs b/umtool/report-to-video/modules/popup-posts.mjs
@@ -56,6 +56,9 @@ export default defineModule({
],
},
region: "posts",
+ // A clip's posts window leaves over the next segment's dissolve (deck.mjs postSchedule `out`): into a full-frame
+ // item that exit plays whole (full-frame.mjs `ownFade`).
+ fullFrame: { ownFade: true },
workers: "narrow",
noun: "the posts window's",
on: (schedule) => postWindows(schedule).length > 0,
diff --git a/umtool/report-to-video/modules/stamp.mjs b/umtool/report-to-video/modules/stamp.mjs
@@ -43,8 +43,9 @@ export default defineModule({
],
},
region: "stamp",
- // A teaser that carries marks keeps its stamps (they are the card's own content): full-frame.mjs `drawsMarks`.
- fullFrame: { drawsMarks: true },
+ // A teaser that carries marks keeps its stamps (they are the card's own content), and a clip's stamp leaves
+ // over the next segment's dissolve whole when that segment is full frame: full-frame.mjs `drawsMarks`, `ownFade`.
+ fullFrame: { drawsMarks: true, ownFade: true },
workers: "narrow",
noun: "the stamps'",
on: (schedule, render) => stampsDrawn(schedule, render),
diff --git a/umtool/report-to-video/teaser-chrome-off.test.mjs b/umtool/report-to-video/teaser-chrome-off.test.mjs
@@ -19,8 +19,8 @@ import { chromeBlackouts, chromeOverlayChain, xfadeConcatArgs } from "./build-vi
import { analysisBlackouts } from "./analysis-plan.mjs";
import { chapterWindows } from "./chrome-story.mjs";
import { deckSchedule, estimateSchedule, scheduleFrom } from "./deck.mjs";
-import { fullFrameIds, fullFrameItems, fullFrameSegment, fullFrameSpans, layerOffOver, regionSpans } from "./full-frame.mjs";
-import { deckOverlays, moduleOfRegion } from "./modules/index.mjs";
+import { fullFrameIds, fullFrameItems, fullFrameSegment, fullFrameSpans, fullFrameTraitProblem, layerOffOver, regionSpans } from "./full-frame.mjs";
+import { defineModule, deckOverlays, moduleOfRegion } from "./modules/index.mjs";
import { blackoutEnable, videoBlackouts } from "./video-entry.mjs";
const HERE = path.dirname(fileURLToPath(import.meta.url));
@@ -180,6 +180,40 @@ test("drawsMarks (the stamps): a teaser that dips and carries marks keeps its st
assert.deepEqual(regionSpans(fullFrameItems(SCHEDULE), { drawsMarks: true }), [[400, END]]);
});
+test("a clip's stamp and posts window leave over the next segment's dissolve whole when it is full frame (ownFade)", () => {
+ assert.deepEqual(moduleOfRegion("stamp")?.fullFrame, { drawsMarks: true, ownFade: true });
+ assert.deepEqual(moduleOfRegion("posts")?.fullFrame, { ownFade: true });
+ const items = fullFrameItems(SCHEDULE);
+ const chain = chromeOverlayChain(RENDER, [
+ { name: "stamp", frames: "/f/stamp", x: 0, y: 0 },
+ { name: "posts", frames: "/f/posts", x: 0, y: 0, offset: 395 },
+ { name: "diet", frames: "/f/diet", x: 0, y: 0 },
+ ], "[0:v]", 1, { blackouts: items });
+ const [stamp, posts, diet] = chain.chain.split(";").filter((p) => p.includes("overlay="));
+ for (const part of [stamp, posts]) {
+ // Their exit: the teaser's dissolve in, 400.0–400.4 -- drawn; then off to the frame before its dissolve out ends.
+ for (const t of frames(400, 400.4 - 1 / FPS)) assert.equal(enabledAt(part, t), true, `the exit at ${t}`);
+ for (const t of frames(400.4, END)) assert.equal(enabledAt(part, t), false, `at ${t}`);
+ }
+ assert.equal(enabledAt(diet, 400), false);
+ // Both traits on the stamps: drawsMarks wins over a teaser with marks (no span), ownFade shapes the others.
+ const marked = fullFrameItems({ ...SCHEDULE, segments: SCHEDULE.segments.map((x) => (x.id === "t" ? { ...x, claim: { id: "t", verdict: "L" } } : x)) });
+ assert.deepEqual(regionSpans(marked, { drawsMarks: true, ownFade: true }), []);
+ assert.deepEqual(regionSpans(items, { drawsMarks: true, ownFade: true }), [[400.4, END]]);
+});
+
+test("the traits' validator: followsDeck stands alone; ownFade with drawsMarks is allowed; anything else is refused", () => {
+ assert.equal(fullFrameTraitProblem({ followsDeck: true }), null);
+ assert.equal(fullFrameTraitProblem({ ownFade: true, drawsMarks: true }), null);
+ assert.match(fullFrameTraitProblem({ followsDeck: true, ownFade: true }), /followsDeck stands alone/);
+ assert.match(fullFrameTraitProblem({ ownFade: false }), /must be true/);
+ assert.match(fullFrameTraitProblem({ slides: true }), /is not a trait/);
+ assert.match(fullFrameTraitProblem({}), /one or more/);
+ const base = { id: "x-test", version: 1, z: 1, kind: "overlay-whole", slot: "footage", title: "X", region: "x-test" };
+ assert.throws(() => defineModule({ ...base, fullFrame: { followsDeck: true, drawsMarks: true } }), /followsDeck stands alone/);
+ assert.equal(defineModule({ ...base, fullFrame: { ownFade: true, drawsMarks: true } }).fullFrame.ownFade, true);
+});
+
test("a chapter bumper on the clip after a full-frame item starts when the item's span ends, its entrance whole", () => {
const r = { ...RENDER, chrome: { ...RENDER.chrome, chapter: { list: [{ at: "b", title: "Part two" }] } } };
const [w] = chapterWindows(SCHEDULE, r);
@@ -200,6 +234,13 @@ test("Play: a layer is off while a full-frame item is on screen, by the same tra
assert.equal(layerOffOver(it, { drawsMarks: true }, 403), true);
assert.equal(layerOffOver({ ...it, marks: true }, { drawsMarks: true }, 403), false);
assert.equal(layerOffOver(null, null, 403), false);
+ // Over a video entry or an analysis item the deck's own layers are off too, as the build blacks them out there.
+ const av = fullFrameItems({ fps: 30, transition: 0.4, total: 30, segments: [
+ { id: "a", type: "clip", start: 0, end: 10.4, duration: 10.4 },
+ { id: "an", type: "analysis", start: 10, end: 17.4, duration: 7.4, hideDeck: true },
+ { id: "v", type: "video", start: 17, end: 30, duration: 13, hideDeck: true, noChrome: true },
+ ] });
+ for (const x of av) assert.equal(layerOffOver(x, { followsDeck: true }, x.start + 1), true, x.kind);
});
// ---- which segments are full frame: the deck's own rule (deck.mjs hidesDeck), from real schedules ---------------