From 382afd6945d229a380f4f7f9318d53bae9d7b720 Mon Sep 17 00:00:00 2001 From: Hua Date: Tue, 11 Jun 2019 12:38:26 +0800 Subject: [PATCH] Set (width,height) of arc/cicle to (diameter,diameter) Set (width,height) of arc/cicle to (diameter,diameter), not (radius,radius). --- src/gameobjects/shape/arc/Arc.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gameobjects/shape/arc/Arc.js b/src/gameobjects/shape/arc/Arc.js index 09580f982..eec36cec2 100644 --- a/src/gameobjects/shape/arc/Arc.js +++ b/src/gameobjects/shape/arc/Arc.js @@ -109,7 +109,9 @@ var Arc = new Class({ this._iterations = 0.01; this.setPosition(x, y); - this.setSize(this.geom.radius, this.geom.radius); + + var diameter = this.geom.radius * 2; + this.setSize(diameter, diameter); if (fillColor !== undefined) {