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.

alignTableData.js 480B

12345678910111213
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.alignTableData = void 0;
  4. const alignString_1 = require("./alignString");
  5. const alignTableData = (rows, config) => {
  6. return rows.map((row) => {
  7. return row.map((cell, cellIndex) => {
  8. const { width, alignment } = config.columns[cellIndex];
  9. return alignString_1.alignString(cell, width, alignment);
  10. });
  11. });
  12. };
  13. exports.alignTableData = alignTableData;