We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f259a81 commit 2139a6cCopy full SHA for 2139a6c
1 file changed
docs/main.js
@@ -5,13 +5,9 @@ import { drawStack } from "./draw.js";
5
const canvas = document.getElementById("scope");
6
const ctx = canvas.getContext("2d");
7
8
-// DPI対応
9
-const dpr = window.devicePixelRatio || 1;
10
-canvas.width = 1200 * dpr;
11
-canvas.height = 600 * dpr;
12
-canvas.style.width = "1200px";
13
-canvas.style.height = "600px";
14
-ctx.scale(dpr, dpr);
+// ★ 固定サイズ(重要)
+canvas.width = 1200;
+canvas.height = 600;
15
16
const stack = computeStack(params);
17
@@ -34,4 +30,3 @@ function redraw() {
34
30
}
35
31
36
32
redraw();
37
-console.log("Inkjet Timing Demo READY");
0 commit comments