mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Have Path.Ellipse constructor support negative radius values correctly.
This commit is contained in:
parent
c945bf7908
commit
543609c0c6
1 changed files with 1 additions and 1 deletions
|
@ -286,7 +286,7 @@ Path.inject({ statics: new function() {
|
|||
var center = Point.readNamed(arguments, 'center'),
|
||||
radius = Size.readNamed(arguments, 'radius');
|
||||
rect = new Rectangle(center.subtract(radius),
|
||||
radius.multiply(2));
|
||||
center.add(radius));
|
||||
} else {
|
||||
rect = Rectangle.readNamed(arguments, 'rectangle');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue