Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

drawRow.js 644B

1234567891011121314151617181920
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.drawRow = void 0;
  4. const drawContent_1 = require("./drawContent");
  5. const drawRow = (row, config) => {
  6. const { border, drawVerticalLine } = config;
  7. return drawContent_1.drawContent(row, {
  8. drawSeparator: drawVerticalLine,
  9. separatorGetter: (index, columnCount) => {
  10. if (index === 0) {
  11. return border.bodyLeft;
  12. }
  13. if (index === columnCount) {
  14. return border.bodyRight;
  15. }
  16. return border.bodyJoin;
  17. },
  18. }) + '\n';
  19. };
  20. exports.drawRow = drawRow;