@syncfusion/ej2-gantt 20.1.51 → 20.1.52
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/CHANGELOG.md +8 -0
- package/dist/ej2-gantt.umd.min.js +2 -2
- package/dist/ej2-gantt.umd.min.js.map +1 -1
- package/dist/es6/ej2-gantt.es2015.js +29 -5
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +29 -5
- package/dist/es6/ej2-gantt.es5.js.map +1 -1
- package/dist/global/ej2-gantt.min.js +2 -2
- package/dist/global/ej2-gantt.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +11 -11
- package/src/gantt/base/gantt.js +3 -0
- package/src/gantt/export/pdf-taskbar.js +26 -5
|
@@ -12984,6 +12984,9 @@ var Gantt = /** @__PURE__ @class */ (function (_super) {
|
|
|
12984
12984
|
}
|
|
12985
12985
|
else {
|
|
12986
12986
|
this.treeGrid.dataSource = this.flatData;
|
|
12987
|
+
if (!isNullOrUndefined(document.getElementsByClassName('e-listview')[0])) {
|
|
12988
|
+
this.treeGrid.dataBind();
|
|
12989
|
+
}
|
|
12987
12990
|
}
|
|
12988
12991
|
}
|
|
12989
12992
|
else {
|
|
@@ -31319,7 +31322,10 @@ var PdfGanttTaskbarCollection = /** @__PURE__ @class */ (function () {
|
|
|
31319
31322
|
var progressFormat = new PdfStringFormat();
|
|
31320
31323
|
progressFormat.lineAlignment = PdfVerticalAlignment.Middle;
|
|
31321
31324
|
progressFormat.alignment = PdfTextAlignment.Right;
|
|
31325
|
+
var isLabelString = false;
|
|
31326
|
+
var updatedWidth;
|
|
31322
31327
|
if (/^[a-zA-Z]/.test(this.taskLabel)) {
|
|
31328
|
+
isLabelString = true;
|
|
31323
31329
|
progressFormat.alignment = PdfTextAlignment.Left;
|
|
31324
31330
|
}
|
|
31325
31331
|
var pageIndex = -1;
|
|
@@ -31346,7 +31352,11 @@ var PdfGanttTaskbarCollection = /** @__PURE__ @class */ (function () {
|
|
|
31346
31352
|
if (this.isScheduledTask) {
|
|
31347
31353
|
taskGraphics.drawRectangle(progressPen, progressBrush, startPoint.x + pixelToPoint(this.left - cumulativeWidth) + 0.5, startPoint.y + adjustHeight, pixelToPoint(taskbar.progressWidth), pixelToPoint(taskbar.height));
|
|
31348
31354
|
if (!isNullOrUndefined(this.parent.labelSettings.taskLabel) && !isNullOrUndefined(this.taskLabel)) {
|
|
31349
|
-
|
|
31355
|
+
updatedWidth = this.progressWidth;
|
|
31356
|
+
if (isLabelString) {
|
|
31357
|
+
updatedWidth = this.width;
|
|
31358
|
+
}
|
|
31359
|
+
taskGraphics.drawString(this.taskLabel.toString(), font, fontColor, fontBrush, startPoint.x + pixelToPoint(this.left - cumulativeWidth), startPoint.y + adjustHeight, pixelToPoint(updatedWidth), pixelToPoint(this.height), progressFormat);
|
|
31350
31360
|
}
|
|
31351
31361
|
}
|
|
31352
31362
|
}
|
|
@@ -31361,7 +31371,9 @@ var PdfGanttTaskbarCollection = /** @__PURE__ @class */ (function () {
|
|
|
31361
31371
|
this.isStartPoint = true;
|
|
31362
31372
|
}
|
|
31363
31373
|
var renderWidth = 0;
|
|
31364
|
-
|
|
31374
|
+
if (!isLabelString) {
|
|
31375
|
+
this.width = this.width - (detail.totalWidth - (this.left - cumulativeWidth));
|
|
31376
|
+
}
|
|
31365
31377
|
renderWidth = (detail.totalWidth - (this.left - cumulativeWidth));
|
|
31366
31378
|
if (!this.isScheduledTask && this.unscheduledTaskBy !== 'duration') {
|
|
31367
31379
|
this.drawUnscheduledTask(taskGraphics, startPoint, cumulativeWidth, adjustHeight);
|
|
@@ -31379,7 +31391,11 @@ var PdfGanttTaskbarCollection = /** @__PURE__ @class */ (function () {
|
|
|
31379
31391
|
taskGraphics.drawRectangle(progressPen, progressBrush, startPoint.x + pixelToPoint(this.left - cumulativeWidth) + 0.5, startPoint.y + adjustHeight, pixelToPoint(progressBoundsWidth), pixelToPoint(taskbar.height));
|
|
31380
31392
|
this.progressWidth -= progressBoundsWidth;
|
|
31381
31393
|
if (this.parent.labelSettings.taskLabel && !isNullOrUndefined(this.taskLabel)) {
|
|
31382
|
-
|
|
31394
|
+
updatedWidth = progressBoundsWidth;
|
|
31395
|
+
if (isLabelString) {
|
|
31396
|
+
updatedWidth = this.width;
|
|
31397
|
+
}
|
|
31398
|
+
taskGraphics.drawString(this.taskLabel.toString(), font, fontColor, fontBrush, startPoint.x + pixelToPoint(this.left - cumulativeWidth), (startPoint.y + adjustHeight), pixelToPoint(updatedWidth), pixelToPoint(this.height), progressFormat);
|
|
31383
31399
|
}
|
|
31384
31400
|
}
|
|
31385
31401
|
}
|
|
@@ -31397,7 +31413,11 @@ var PdfGanttTaskbarCollection = /** @__PURE__ @class */ (function () {
|
|
|
31397
31413
|
if (this.isScheduledTask) {
|
|
31398
31414
|
taskGraphics.drawRectangle(progressPen, progressBrush, startPoint.x + pixelToPoint(taskbar.left + 0.5), startPoint.y + adjustHeight, pixelToPoint(taskbar.progressWidth), pixelToPoint(taskbar.height));
|
|
31399
31415
|
if (!isNullOrUndefined(this.taskLabel)) {
|
|
31400
|
-
|
|
31416
|
+
updatedWidth = this.progressWidth;
|
|
31417
|
+
if (isLabelString) {
|
|
31418
|
+
updatedWidth = this.width;
|
|
31419
|
+
}
|
|
31420
|
+
taskGraphics.drawString(this.taskLabel.toString(), font, fontColor, fontBrush, startPoint.x + pixelToPoint(this.left), (startPoint.y + adjustHeight), pixelToPoint(updatedWidth), pixelToPoint(this.height), progressFormat);
|
|
31401
31421
|
}
|
|
31402
31422
|
}
|
|
31403
31423
|
this.isCompleted = true;
|
|
@@ -31422,7 +31442,11 @@ var PdfGanttTaskbarCollection = /** @__PURE__ @class */ (function () {
|
|
|
31422
31442
|
taskGraphics.drawRectangle(progressPen, progressBrush, startPoint.x + pixelToPoint(taskbar.left) + 0.5, startPoint.y + adjustHeight, pixelToPoint(progressBoundsWidth), pixelToPoint(taskbar.height));
|
|
31423
31443
|
this.progressWidth -= progressBoundsWidth;
|
|
31424
31444
|
if (!isNullOrUndefined(this.taskLabel)) {
|
|
31425
|
-
|
|
31445
|
+
updatedWidth = progressBoundsWidth;
|
|
31446
|
+
if (isLabelString) {
|
|
31447
|
+
updatedWidth = this.width;
|
|
31448
|
+
}
|
|
31449
|
+
taskGraphics.drawString(this.taskLabel.toString(), font, fontColor, fontBrush, startPoint.x + pixelToPoint(this.left), (startPoint.y + adjustHeight), pixelToPoint(updatedWidth), pixelToPoint(this.height), progressFormat);
|
|
31426
31450
|
}
|
|
31427
31451
|
}
|
|
31428
31452
|
this.isCompleted = false;
|