wrap.js 495 B

1234567891011
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.wrapIt = void 0;
  4. var text_1 = require("./text");
  5. function wrapIt(node, wordWrapWidth, maxLines, textBaseline) {
  6. if (maxLines === void 0) { maxLines = 2; }
  7. if (textBaseline === void 0) { textBaseline = 'top'; }
  8. (0, text_1.applyToText)(node, { wordWrap: true, wordWrapWidth: wordWrapWidth, maxLines: maxLines, textBaseline: textBaseline });
  9. }
  10. exports.wrapIt = wrapIt;
  11. //# sourceMappingURL=wrap.js.map