wip
This commit is contained in:
@@ -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);
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user