Improve look of app, ive broken accordion content so will need to fix
This commit is contained in:
@@ -19,7 +19,7 @@ export async function generateSinogram(
|
||||
const theta = (angle * Math.PI) / angles;
|
||||
|
||||
if (drawAngleCallback) drawAngleCallback(theta);
|
||||
await new Promise((r) => setTimeout(r, 0.01));
|
||||
// await new Promise((r) => setTimeout(r, 0.01)); // Removed for performance
|
||||
|
||||
ctx.clearRect(0, 0, size, size);
|
||||
ctx.save();
|
||||
@@ -167,7 +167,7 @@ export async function reconstructImageFromSinogram(
|
||||
}
|
||||
|
||||
outputCtx.putImageData(imageData, 0, 0);
|
||||
await new Promise((r) => setTimeout(r, 1));
|
||||
// await new Promise((r) => setTimeout(r, 1)); // Removed for performance
|
||||
onFrame(angle, outputCanvas.toDataURL());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user