Skip to content

Commit eb912ea

Browse files
authored
Merge pull request #162 from martinRenou/fix_circle_size_rough
Fix RoughCanvas circle size
2 parents b0cad1a + c8916ae commit eb912ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/widget.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -681,11 +681,11 @@ class RoughCanvasModel extends CanvasModel {
681681
}
682682

683683
protected fillCircle(x: number, y: number, radius: number) {
684-
this.roughCanvas.circle(x, y, radius, this.getRoughFillStyle());
684+
this.roughCanvas.circle(x, y, 2. * radius, this.getRoughFillStyle());
685685
}
686686

687687
protected strokeCircle(x: number, y: number, radius: number) {
688-
this.roughCanvas.circle(x, y, radius, this.getRoughStrokeStyle());
688+
this.roughCanvas.circle(x, y, 2. * radius, this.getRoughStrokeStyle());
689689
}
690690

691691
protected strokeLine(args: any[], buffers: any) {

0 commit comments

Comments
 (0)