devexpress-gantt 4.0.10 → 4.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/dx-gantt.css CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * DevExpress Gantt (dx-gantt)
3
- * Version: 4.0.10
4
- * Build date: Thu Feb 10 2022
3
+ * Version: 4.0.11
4
+ * Build date: Tue Feb 22 2022
5
5
  *
6
6
  * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  * Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs
package/dist/dx-gantt.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * DevExpress Gantt (dx-gantt)
3
- * Version: 4.0.10
4
- * Build date: Thu Feb 10 2022
3
+ * Version: 4.0.11
4
+ * Build date: Tue Feb 22 2022
5
5
  *
6
6
  * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  * Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs
@@ -7483,12 +7483,11 @@ var EllipsisHelper = (function () {
7483
7483
  return text;
7484
7484
  var pdfTextWidth = pdfDoc.getTextWidth(text.toString());
7485
7485
  if (pdfTextWidth > size) {
7486
- var outputText = EllipsisHelper.ellipsis;
7487
- var pos = 0;
7488
- while (pdfDoc.getTextWidth(outputText) < size) {
7489
- var char = text[pos];
7490
- outputText = outputText.substr(0, pos) + char + outputText.substr(pos);
7491
- pos++;
7486
+ var outputText = text;
7487
+ var pos = text.length - 1;
7488
+ while (pdfDoc.getTextWidth(outputText) > size && pos > 0) {
7489
+ outputText = outputText.substring(0, pos) + EllipsisHelper.ellipsis;
7490
+ pos--;
7492
7491
  }
7493
7492
  return outputText;
7494
7493
  }
@@ -15343,8 +15342,11 @@ var PdfGanttTableDrawer = (function () {
15343
15342
  this._pdfDoc = pdfDoc;
15344
15343
  }
15345
15344
  PdfGanttTableDrawer.prototype.drawTable = function (info) {
15345
+ var _a, _b;
15346
15346
  if (info) {
15347
15347
  var options = this.createTableOptions(info);
15348
+ if ((_a = info.style) === null || _a === void 0 ? void 0 : _a.fontSize)
15349
+ this._pdfDoc.setFontSize((_b = info.style) === null || _b === void 0 ? void 0 : _b.fontSize);
15348
15350
  this._pdfDoc.autoTable(options.getValue());
15349
15351
  }
15350
15352
  };
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * DevExpress Gantt (dx-gantt.min)
3
- * Version: 4.0.10
4
- * Build date: Thu Feb 10 2022
3
+ * Version: 4.0.11
4
+ * Build date: Tue Feb 22 2022
5
5
  *
6
6
  * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  * Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs