Merge pull request #4586 from rexrainbow/master

Set (width,height) of arc/circle to (diameter,diameter)
This commit is contained in:
Richard Davey 2019-06-11 15:58:34 +01:00 committed by GitHub
commit 69877548c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
{