d3fc-webgl-hathi-explorer
d3fc-webgl-hathi-explorer copied to clipboard
Small bug in tsvChunkedParser?
When the parser reads the tsv it appends the last line of the chunk to the next batch. Which is fine, but I think it should be appended at the very beginning. Hence in streaming-tsv-parser.js
, I believe line 12
from
const textData = textDecoder.decode(chunk) + previousChunk ;
should be changed to:
const textData = previousChunk + textDecoder.decode(chunk) ;