|
|
@@ -772,6 +772,9 @@ function drawVerticalScale(ifDirty = false) { |
|
|
const oldStroke = ctx.strokeStyle; |
|
|
const oldStroke = ctx.strokeStyle; |
|
|
const oldFill = ctx.fillStyle; |
|
|
const oldFill = ctx.fillStyle; |
|
|
|
|
|
|
|
|
|
|
|
x = Math.round(x); |
|
|
|
|
|
y = Math.round(y); |
|
|
|
|
|
|
|
|
ctx.beginPath(); |
|
|
ctx.beginPath(); |
|
|
ctx.moveTo(x, y); |
|
|
ctx.moveTo(x, y); |
|
|
ctx.lineTo(x + 20, y); |
|
|
ctx.lineTo(x + 20, y); |
|
|
@@ -969,6 +972,9 @@ function drawHorizontalScale(ifDirty = false) { |
|
|
function drawTick(/** @type {CanvasRenderingContext2D} */ ctx, x, y, label) { |
|
|
function drawTick(/** @type {CanvasRenderingContext2D} */ ctx, x, y, label) { |
|
|
ctx.save() |
|
|
ctx.save() |
|
|
|
|
|
|
|
|
|
|
|
x = Math.round(x); |
|
|
|
|
|
y = Math.round(y); |
|
|
|
|
|
|
|
|
ctx.beginPath(); |
|
|
ctx.beginPath(); |
|
|
ctx.moveTo(x, y); |
|
|
ctx.moveTo(x, y); |
|
|
ctx.lineTo(x, y + 20); |
|
|
ctx.lineTo(x, y + 20); |
|
|
|