We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents adaa589 + fa6eb36 commit e81d21aCopy full SHA for e81d21a
1 file changed
src/gameobjects/shape/arc/Arc.js
@@ -166,7 +166,8 @@ var Arc = new Class({
166
{
167
this.geom.radius = value;
168
169
- this.setSize(value, value);
+ var diameter = value * 2;
170
+ this.setSize(diameter, diameter);
171
this.updateDisplayOrigin();
172
this.updateData();
173
}
@@ -347,8 +348,8 @@ var Arc = new Class({
347
348
var endAngle = DegToRad(this._endAngle);
349
var anticlockwise = this._anticlockwise;
350
- var x = radius / 2;
351
- var y = radius / 2;
+ var x = radius;
352
+ var y = radius;
353
354
endAngle -= startAngle;
355
0 commit comments