Skip to content

Commit 2139a6c

Browse files
authored
Update main.js
1 parent f259a81 commit 2139a6c

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

docs/main.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,9 @@ import { drawStack } from "./draw.js";
55
const canvas = document.getElementById("scope");
66
const ctx = canvas.getContext("2d");
77

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);
8+
// ★ 固定サイズ(重要)
9+
canvas.width = 1200;
10+
canvas.height = 600;
1511

1612
const stack = computeStack(params);
1713

@@ -34,4 +30,3 @@ function redraw() {
3430
}
3531

3632
redraw();
37-
console.log("Inkjet Timing Demo READY");

0 commit comments

Comments
 (0)