Merge pull request #5180 from rexrainbow/BugFix-EllipseCurve

Fix bug about setting xRadius/yRadius by width/height
This commit is contained in:
Richard Davey 2020-07-13 12:38:05 +01:00 committed by GitHub
commit 31cdeac1ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -296,7 +296,7 @@ var EllipseCurve = new Class({
*/
setWidth: function (value)
{
this.xRadius = value * 2;
this.xRadius = value / 2;
return this;
},
@ -313,7 +313,7 @@ var EllipseCurve = new Class({
*/
setHeight: function (value)
{
this.yRadius = value * 2;
this.yRadius = value / 2;
return this;
},