Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// console.log('positions:', positions);
// console.log('colors:', colors);
const objData = {
rows,
positionsBuffer,
colorsBuffer,
xScaleDomain: domain,
xScaleRange: scaleRange,
};
// eslint-disable-next-line
console.log('renderSegments took', performance.now() - t1);
// Fritz: why are the two buffers returned twice?
return Transfer(objData, [positionsBuffer, colorsBuffer]);
};
decompressAll: async (_) => {
const typedArrays = await decompressAll(_)
return Transfer(typedArrays, typedArrays.map(typedArray => typedArray.buffer))
},
})