fix:line thickness of rendered margin

This commit is contained in:
Hufe921
2022-12-29 16:35:10 +08:00
parent 72d6174d7b
commit e8f3b2a6da
+1
View File
@@ -21,6 +21,7 @@ export class Margin {
const margins = this.draw.getMargins() const margins = this.draw.getMargins()
const marginIndicatorSize = this.draw.getMarginIndicatorSize() const marginIndicatorSize = this.draw.getMarginIndicatorSize()
ctx.save() ctx.save()
ctx.translate(0.5, 0.5)
ctx.strokeStyle = marginIndicatorColor ctx.strokeStyle = marginIndicatorColor
ctx.beginPath() ctx.beginPath()
const leftTopPoint: [number, number] = [margins[3], margins[0]] const leftTopPoint: [number, number] = [margins[3], margins[0]]