mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Check for the occurrence of 'radius' rather than 'center' when deciding to read a center / radius pair for ellipses.
This commit is contained in:
parent
c3aed5277d
commit
9d60662a28
2 changed files with 2 additions and 2 deletions
|
@ -437,7 +437,7 @@ statics: new function() {
|
|||
Ellipse: function(/* rectangle */) {
|
||||
var center,
|
||||
radius;
|
||||
if (Base.hasNamed(arguments, 'center')) {
|
||||
if (Base.hasNamed(arguments, 'radius')) {
|
||||
center = Point.readNamed(arguments, 'center');
|
||||
radius = Size.readNamed(arguments, 'radius');
|
||||
} else {
|
||||
|
|
|
@ -284,7 +284,7 @@ Path.inject({ statics: new function() {
|
|||
Ellipse: function(/* rectangle */) {
|
||||
var center,
|
||||
radius;
|
||||
if (Base.hasNamed(arguments, 'center')) {
|
||||
if (Base.hasNamed(arguments, 'radius')) {
|
||||
center = Point.readNamed(arguments, 'center');
|
||||
radius = Size.readNamed(arguments, 'radius');
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue