Skip to content

Commit

Permalink
BREAKING: Change Rectangle.prototype.corner() to a getter
Browse files Browse the repository at this point in the history
  • Loading branch information
ericyd committed Jan 31, 2024
1 parent 66bb1eb commit a9b03b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/components/rectangle.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export class Rectangle extends Tag {
/**
* @returns {Vector2} the upper left corner of the rectangle
*/
corner() {
get corner() {
return vec2(this.x, this.y)
}

Expand Down

0 comments on commit a9b03b9

Please sign in to comment.