|
76 | 76 | } |
77 | 77 | input[type="range"]::-webkit-slider-thumb { |
78 | 78 | -webkit-appearance: none; |
79 | | - width: 24px; /* 元は16px */ |
80 | | - height: 24px; /* 元は16px */ |
| 79 | + width: 32px; |
| 80 | + height: 32px; |
81 | 81 | background: #4CAF50; |
82 | 82 | border-radius: 50%; |
83 | 83 | cursor: pointer; |
84 | 84 | } |
85 | 85 | input[type="range"]::-moz-range-thumb { |
86 | | - width: 24px; |
87 | | - height: 24px; |
| 86 | + width: 32px; |
| 87 | + height: 32px; |
88 | 88 | background: #4CAF50; |
89 | 89 | border-radius: 50%; |
90 | 90 | cursor: pointer; |
|
324 | 324 | const dpr = window.devicePixelRatio || 1; |
325 | 325 | const width = Math.floor(container.clientWidth); |
326 | 326 | // 高さはアスペクト比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); |
328 | 329 | canvas.width = width * dpr; |
329 | 330 | canvas.height = height * dpr; |
330 | 331 | canvas.style.width = width + 'px'; |
|
483 | 484 | drawDensityGradientBarPixel(sharpened); |
484 | 485 |
|
485 | 486 | // グラフの描画設定 |
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; |
488 | 489 | const graphWidth = canvas.clientWidth - padX * 2; |
489 | | - const graphHeight = canvas.clientHeight - padY * 2 - 40; |
| 490 | + const graphHeight = canvas.clientHeight - padY * 2 - 24; |
490 | 491 | const graphX = padX; |
491 | 492 | const graphY = padY; |
492 | 493 |
|
|
523 | 524 | ctx.fillStyle = '#333'; |
524 | 525 | ctx.font = '12px Arial'; |
525 | 526 | ctx.textAlign = 'center'; |
526 | | - ctx.fillText('ピクセル位置', graphX + graphWidth / 2, graphY + graphHeight + 40); |
| 527 | + ctx.fillText('ピクセル位置', graphX + graphWidth / 2, graphY + graphHeight + 28); |
527 | 528 |
|
528 | 529 | // ---- 目盛り ---- |
529 | 530 | ctx.fillStyle = '#666'; |
|
532 | 533 | // X軸目盛り(ピクセル位置) |
533 | 534 | for (let i = 0; i <= 40; i += 2) { |
534 | 535 | const x = graphX + (graphWidth / 40) * i; |
535 | | - ctx.fillText(i.toString(), x, graphY + graphHeight + 15); |
| 536 | + ctx.fillText(i.toString(), x, graphY + graphHeight + 10); |
536 | 537 | } |
537 | 538 |
|
538 | 539 | /** |
|
0 commit comments