mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -05:00
Add explaining comment.
This commit is contained in:
parent
ed572e7d48
commit
e359dd038c
1 changed files with 1 additions and 0 deletions
|
@ -126,6 +126,7 @@ var Rectangle = this.Rectangle = Base.extend(/** @lends Rectangle# */{
|
|||
var to = Point.readNamed(arguments, 'to');
|
||||
this.width = to.x - point.x;
|
||||
this.height = to.y - point.y;
|
||||
// Check if horizontal or vertical order needs to be reversed.
|
||||
if (this.width < 0) {
|
||||
this.x = to.x;
|
||||
this.width = -this.width;
|
||||
|
|
Loading…
Reference in a new issue