生成するworkerを1つにする?
This commit is contained in:
@@ -14,5 +14,5 @@ onmessage = async (event) => {
|
||||
imageData.data.set(pixels);
|
||||
ctx.putImageData(imageData, 0, 0);
|
||||
const bitmap = canvas.transferToImageBitmap();
|
||||
postMessage(bitmap);
|
||||
postMessage({ bitmap, id: event.data.id });
|
||||
};
|
||||
|
Reference in New Issue
Block a user