Skip to content

Commit fe5b05f

Browse files
committed
refactor: 💡 kittik-shape-rectangle
1 parent c3f9be2 commit fe5b05f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

packages/kittik-shape-rectangle/src/Rectangle.ts

-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ export class Rectangle extends Shape implements ShapeRenderable {
1414
const filler = ' '.repeat(width);
1515

1616
cursor.moveTo(x1, y1).background(background).foreground(foreground);
17-
1817
for (let y = y1; y <= y2; y++) cursor.write(filler).moveTo(x1, y);
19-
2018
cursor.moveTo(x1 + (width / 2 - text.length / 2), y1 + height / 2).write(text);
2119
}
2220
}

0 commit comments

Comments
 (0)