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.

calculateCellHeight.js 445B

1234567891011
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.calculateCellHeight = void 0;
  4. const wrapCell_1 = require("./wrapCell");
  5. /**
  6. * Calculates height of cell content in regard to its width and word wrapping.
  7. */
  8. const calculateCellHeight = (value, columnWidth, useWrapWord = false) => {
  9. return wrapCell_1.wrapCell(value, columnWidth, useWrapWord).length;
  10. };
  11. exports.calculateCellHeight = calculateCellHeight;