diff --git a/src/client/widgets/pads/pad.js b/src/client/widgets/pads/pad.js index e9c925ce..62f8238e 100644 --- a/src/client/widgets/pads/pad.js +++ b/src/client/widgets/pads/pad.js @@ -22,7 +22,7 @@ class Pad extends Canvas { super.cacheCanvasStyle(style) this.pointSize = parseFloat(style.getPropertyValue('--pointSize')) * PXSCALE - this.padPadding = (this.cssVars.padding + this.cssVars.strokeWidth) + this.padPadding = (this.cssVars.padding + this.cssVars.strokeWidth) + 2 * PXSCALE } diff --git a/src/client/widgets/pads/xy.js b/src/client/widgets/pads/xy.js index cfa03061..b8accd9b 100644 --- a/src/client/widgets/pads/xy.js +++ b/src/client/widgets/pads/xy.js @@ -229,8 +229,8 @@ module.exports = class Xy extends Pad { } if (pip == 0 || pip == 100) continue - this.ctx.moveTo(px, margin) - this.ctx.lineTo(px, this.height - margin) + this.ctx.moveTo(px, margin - PXSCALE) + this.ctx.lineTo(px, this.height - margin + PXSCALE) pipsDrawn = true @@ -250,8 +250,8 @@ module.exports = class Xy extends Pad { } if (pip == 0 || pip == 100) continue - this.ctx.moveTo(margin, py) - this.ctx.lineTo(this.width - margin, py) + this.ctx.moveTo(margin - PXSCALE, py) + this.ctx.lineTo(this.width - margin + PXSCALE, py) pipsDrawn = true