xy: avoid border/point overlap
This commit is contained in:
parent
043fda404e
commit
8a74e7063c
2 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue