(selector: string, time: number)
| 66 | } |
| 67 | |
| 68 | function missingIssue(selector: string, time: number): LayoutIssue { |
| 69 | return { |
| 70 | code: "motion_selector_missing", |
| 71 | severity: "error", |
| 72 | time, |
| 73 | selector, |
| 74 | message: `${selector} matched no element in any sampled frame — check the selector`, |
| 75 | rect: ZERO_RECT, |
| 76 | fixHint: "Verify the selector exists in the composition and is spelled correctly.", |
| 77 | }; |
| 78 | } |
| 79 | |
| 80 | function appearsBy(frames: MotionFrame[], selector: string, bySec: number): LayoutIssue[] { |
| 81 | if (!everMatched(frames, selector)) return [missingIssue(selector, 0)]; |
no outgoing calls
no test coverage detected