Skip to content

Commit 909e1e1

Browse files
Update Rectangle.js
Fixed tabs and spacing after initial commit
1 parent fc7fb66 commit 909e1e1

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Rectangle.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ class Rectangle extends Shape
3939
//
4040
var shapeOffset = 40;
4141

42-
var width = this.vertices[2] - this.vertices[0];
43-
var height = this.vertices[7] - this.vertices[0];
42+
var width = this.vertices[2] - this.vertices[0];
43+
var height = this.vertices[7] - this.vertices[0];
4444

45-
// explicitly draw the rectangle
46-
//
45+
// explicitly draw the rectangle
46+
//
4747
this.ctx.beginPath();
48-
this.ctx.rect(x + this.vertices[0], y + shapeOffset + this.vertices[1], width, height);
48+
this.ctx.rect(x + this.vertices[0], y + shapeOffset + this.vertices[1], width, height);
4949
this.ctx.strokeStyle = '#ff0000';
5050
this.ctx.stroke();
5151

0 commit comments

Comments
 (0)