mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-08 05:42:07 -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'),
|
var center = Point.readNamed(arguments, 'center'),
|
||||||
radius = Size.readNamed(arguments, 'radius');
|
radius = Size.readNamed(arguments, 'radius');
|
||||||
rect = new Rectangle(center.subtract(radius),
|
rect = new Rectangle(center.subtract(radius),
|
||||||
radius.multiply(2));
|
center.add(radius));
|
||||||
} else {
|
} else {
|
||||||
rect = Rectangle.readNamed(arguments, 'rectangle');
|
rect = Rectangle.readNamed(arguments, 'rectangle');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue