Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
thresh[ii] -= delta[ii];
if (thresh[ii] < 0) {
thresh[ii] = step;
pt[ii] += inc[ii];
}
}
}
}
}
}
}
globals.prevPoint = point;
}
registerWebworker()
.operation('start', ({ bufferType, dimensions }) => {
const bufferSize = dimensions[0] * dimensions[1] * dimensions[2];
/* eslint-disable-next-line */
globals.buffer = new self[bufferType](bufferSize);
globals.dimensions = dimensions;
globals.prevPoint = null;
})
.operation('paint', handlePaint)
.operation(
'end',
() =>
new registerWebworker.TransferableResponse(globals.buffer.buffer, [
globals.buffer.buffer,
])
);