1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | 1× 19× 5× 5× 4× 1× | const TextCell = require("./textcell.js"); class UnderlinedCell extends TextCell { constructor(text) { super(text); } get minHeight() { let result = super.minHeight; return super.minHeight + 1; } draw(width, height) { return super.draw(width, height - 1).concat([super.repeat("-", width)]); } } module.exports = UnderlinedCell; |