This commit is contained in:
2026-11-16 19:32:44 +01:00
parent 0d0f84485a
commit 86ec6adb6b
5 changed files with 30 additions and 20 deletions
+4 -3
View File
@@ -25,11 +25,12 @@ const pipes = {
native: (canvas, t) => decodeFrame(grab(canvas, 1e9).img, t.opts || {}),
noacc: (canvas, t, key) => {
const s = (scanners[key] ||= window.makeRingScanner({ accumulate: false }));
return s.scan(canvas, canvas.width, canvas.height, t.now ?? null);
return s.scan(canvas, canvas.width, canvas.height, t.now ?? undefined);
},
scan: (canvas, t, key) => {
const s = (scanners[key] ||= window.makeRingScanner(t.scanOpts || {}));
return s.scan(canvas, canvas.width, canvas.height, t.now ?? null);
// a lone still has no previous token to agree with
const s = (scanners[key] ||= window.makeRingScanner(t.now == null ? { gate: false } : {}));
return s.scan(canvas, canvas.width, canvas.height, t.now ?? undefined);
},
};