Skip to content

Commit 77ad28d

Browse files
authored
Update index.html
1 parent f32af2a commit 77ad28d

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

index.html

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,15 @@
7676
}
7777
input[type="range"]::-webkit-slider-thumb {
7878
-webkit-appearance: none;
79-
width: 24px; /* 元は16px */
80-
height: 24px; /* 元は16px */
79+
width: 32px;
80+
height: 32px;
8181
background: #4CAF50;
8282
border-radius: 50%;
8383
cursor: pointer;
8484
}
8585
input[type="range"]::-moz-range-thumb {
86-
width: 24px;
87-
height: 24px;
86+
width: 32px;
87+
height: 32px;
8888
background: #4CAF50;
8989
border-radius: 50%;
9090
cursor: pointer;
@@ -324,7 +324,8 @@
324324
const dpr = window.devicePixelRatio || 1;
325325
const width = Math.floor(container.clientWidth);
326326
// 高さはアスペクト比2:1で自動調整、最小高さ200px
327-
const height = Math.max(Math.round(width / 2), 200);
327+
// 変更後(高さを1.3倍に)
328+
const height = Math.max(Math.round((width / 2) * 1.3), 200);
328329
canvas.width = width * dpr;
329330
canvas.height = height * dpr;
330331
canvas.style.width = width + 'px';
@@ -483,10 +484,10 @@
483484
drawDensityGradientBarPixel(sharpened);
484485

485486
// グラフの描画設定
486-
const padX = 0.06 * canvas.clientWidth;
487-
const padY = 0.12 * canvas.clientHeight;
487+
const padX = 0.03 * canvas.clientWidth;
488+
const padY = 0.08 * canvas.clientHeight;
488489
const graphWidth = canvas.clientWidth - padX * 2;
489-
const graphHeight = canvas.clientHeight - padY * 2 - 40;
490+
const graphHeight = canvas.clientHeight - padY * 2 - 24;
490491
const graphX = padX;
491492
const graphY = padY;
492493

@@ -523,7 +524,7 @@
523524
ctx.fillStyle = '#333';
524525
ctx.font = '12px Arial';
525526
ctx.textAlign = 'center';
526-
ctx.fillText('ピクセル位置', graphX + graphWidth / 2, graphY + graphHeight + 40);
527+
ctx.fillText('ピクセル位置', graphX + graphWidth / 2, graphY + graphHeight + 28);
527528

528529
// ---- 目盛り ----
529530
ctx.fillStyle = '#666';
@@ -532,7 +533,7 @@
532533
// X軸目盛り(ピクセル位置)
533534
for (let i = 0; i <= 40; i += 2) {
534535
const x = graphX + (graphWidth / 40) * i;
535-
ctx.fillText(i.toString(), x, graphY + graphHeight + 15);
536+
ctx.fillText(i.toString(), x, graphY + graphHeight + 10);
536537
}
537538

538539
/**

0 commit comments

Comments
 (0)