From ad0625f4778fbb7527f24fe93dbc2ddf524fdb40 Mon Sep 17 00:00:00 2001 From: Daniel Winkler Date: Tue, 29 Oct 2019 08:39:12 +0100 Subject: [PATCH] remove unwanted border in CircleSnail --- CircleSnail.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/CircleSnail.js b/CircleSnail.js index 3eeffb8..84c98b3 100644 --- a/CircleSnail.js +++ b/CircleSnail.js @@ -131,11 +131,7 @@ export default class CircleSnail extends Component { return null; } - const radius = size / 2 - thickness; - const offset = { - top: thickness, - left: thickness, - }; + const radius = size / 2; const directionFactor = direction === 'counter-clockwise' ? -1 : 1; @@ -167,7 +163,6 @@ export default class CircleSnail extends Component { } radius={radius} stroke={Array.isArray(color) ? color[this.state.colorIndex] : color} - offset={offset} startAngle={this.state.startAngle} endAngle={this.state.endAngle} strokeCap={strokeCap}