import type { CheckBbox, CraftFinding } from "./checkTypes.js"; export const ZERO_BBOX: CheckBbox = { x: 0, y: 0, width: 0, height: 0 }; /** A craft warning about the whole film rather than one element, anchored on the composition root. */ export function filmFinding( code: CraftFinding["code"], time: number, message: string, extra: Partial = {}, ): CraftFinding { return { code, severity: "warning", message, selector: "[data-composition-id]", dataAttributes: {}, sourceFile: "index.html", bbox: ZERO_BBOX, time, ...extra, }; }