Skip to content

Commit

Permalink
refactor: 💡 kittik-shape-fig-text
Browse files Browse the repository at this point in the history
  • Loading branch information
ghaiklor committed Apr 8, 2020
1 parent d45d610 commit 872d3cf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/kittik-shape-fig-text/src/FigText.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ export class FigText extends Shape implements FigTextOptions, ShapeRenderable {
const text = this.renderedText.split('\n');
const x = parseInt(this.x, 10);
const y = parseInt(this.y, 10);
const { background } = this;
const { foreground } = this;
const { background, foreground } = this;

cursor.background(background).foreground(foreground);
text.forEach((line, index) => cursor.moveTo(x, y + index).write(line));
Expand Down

0 comments on commit 872d3cf

Please sign in to comment.