You are browsing as a guest. Sign up (or log in) to start making projects!

4h 2m 20s logged

Beta 3.1 is a bugfix release. Two issues.

First, the OCR ticket scanner was completely broken. When you uploaded a
photo it would say “procesando imagen” forever and never finish. Turned
out I was calling tesseractCargado.createWorker where tesseractCargado
is a boolean (true), not the Tesseract library object. So I was doing
true.createWorker which is undefined.createWorker which throws a
TypeError that nobody caught. Switched to Tesseract.createWorker and
added a 90 second timeout plus proper try/catch so it can never hang
again.

Second, the Sankey text was blurry. Canvas draws with whatever font is
available at draw time, and if Google Fonts was still loading on the
first render it fell back to Arial which looked bad when scaled by
devicePixelRatio. Fixed by waiting for document.fonts.ready before the
first draw, rounding all Y coordinates to integers so they align with
physical pixels, and redrawing on window resize so the DPR stays
correct.

0
3

Comments 0

No comments yet. Be the first!