From afe9cb1628ae2b4a829c92e8bcd6d296c41f54dd Mon Sep 17 00:00:00 2001 From: CPPAlien Date: Mon, 9 Jul 2018 18:24:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=87=E8=BE=B9=E6=97=B6=EF=BC=8C=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E9=80=8F=E6=98=8E=E5=A1=AB=E5=85=85=EF=BC=8C=E9=98=B2?= =?UTF-8?q?=E6=AD=A2=E5=9C=A8=E6=9F=90=E4=BA=9B=E6=9C=BA=E5=9E=8B=E4=B8=8A?= =?UTF-8?q?=E5=87=BA=E7=8E=B0=E9=BB=91=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pen.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pen.js b/lib/pen.js index bec16b4..7b79ed1 100644 --- a/lib/pen.js +++ b/lib/pen.js @@ -75,7 +75,7 @@ export default class Painter { _doBorder(borderRadius, width, height) { if (borderRadius && width && height) { const r = Math.min(borderRadius.toPx(), width / 2, height / 2); - + this.ctx.setFillStyle("rgba(0, 0, 0, 0)"); this.ctx.beginPath(); this.ctx.arc(-width / 2 + r, -height / 2 + r, r, 1 * Math.PI, 1.5 * Math.PI); this.ctx.lineTo(width / 2 - r, -height / 2);