@syncfusion/ej2-gantt 23.1.44 → 23.2.4
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 +11 -0
- package/dist/ej2-gantt.min.js +2 -2
- 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 +43 -22
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +81 -49
- 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 +20 -20
- package/src/gantt/actions/edit.js +19 -0
- package/src/gantt/actions/toolbar.js +3 -0
- package/src/gantt/base/gantt.js +1 -0
- package/src/gantt/export/export-helper.js +11 -11
- package/src/gantt/export/pdf-gantt.js +6 -3
- package/src/gantt/export/pdf-taskbar.js +3 -3
- package/src/gantt/export/pdf-timeline.js +12 -6
- package/styles/bootstrap-dark.css +5 -0
- package/styles/bootstrap5-dark.css +2 -1
- package/styles/bootstrap5.css +2 -1
- package/styles/fabric-dark.css +5 -0
- package/styles/fluent-dark.css +2 -1
- package/styles/fluent.css +2 -1
- package/styles/gantt/bootstrap-dark.css +5 -0
- package/styles/gantt/bootstrap5-dark.css +2 -1
- package/styles/gantt/bootstrap5.css +2 -1
- package/styles/gantt/fabric-dark.css +5 -0
- package/styles/gantt/fluent-dark.css +2 -1
- package/styles/gantt/fluent.css +2 -1
- package/styles/gantt/highcontrast.css +5 -0
- package/styles/gantt/tailwind-dark.css +2 -1
- package/styles/gantt/tailwind.css +2 -1
- package/styles/highcontrast.css +5 -0
- package/styles/tailwind-dark.css +2 -1
- package/styles/tailwind.css +2 -1
|
@@ -15947,6 +15947,7 @@ var Gantt = /** @__PURE__ @class */ (function (_super) {
|
|
|
15947
15947
|
this.treeGridModule.treeGridColumns = [];
|
|
15948
15948
|
this.treeGridModule.validateGanttColumns();
|
|
15949
15949
|
this.treeGrid.columns = this.treeGridModule.treeGridColumns;
|
|
15950
|
+
this.treeGrid.grid.columns = this.treeGridModule.treeGridColumns;
|
|
15950
15951
|
this.chartRowsModule.initiateTemplates();
|
|
15951
15952
|
this.timelineModule.updateChartByNewTimeline();
|
|
15952
15953
|
break;
|
|
@@ -19138,8 +19139,8 @@ var __extends$20 = (undefined && undefined.__extends) || (function () {
|
|
|
19138
19139
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
19139
19140
|
};
|
|
19140
19141
|
})();
|
|
19141
|
-
var __assign$
|
|
19142
|
-
__assign$
|
|
19142
|
+
var __assign$2 = (undefined && undefined.__assign) || function () {
|
|
19143
|
+
__assign$2 = Object.assign || function(t) {
|
|
19143
19144
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
19144
19145
|
s = arguments[i];
|
|
19145
19146
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -19147,7 +19148,7 @@ var __assign$1 = (undefined && undefined.__assign) || function () {
|
|
|
19147
19148
|
}
|
|
19148
19149
|
return t;
|
|
19149
19150
|
};
|
|
19150
|
-
return __assign$
|
|
19151
|
+
return __assign$2.apply(this, arguments);
|
|
19151
19152
|
};
|
|
19152
19153
|
/**
|
|
19153
19154
|
* File for handling taskbar editing operation in Gantt.
|
|
@@ -19979,7 +19980,7 @@ var TaskbarEdit = /** @__PURE__ @class */ (function (_super) {
|
|
|
19979
19980
|
var differenceWidth = 0;
|
|
19980
19981
|
if (this.taskBarEditElement.classList.contains('e-segmented-taskbar') &&
|
|
19981
19982
|
!this.taskBarEditElement.classList.contains('e-segment-first')) {
|
|
19982
|
-
var segments = this.taskBarEditRecord.ganttProperties.segments.map(function (e) { return (__assign$
|
|
19983
|
+
var segments = this.taskBarEditRecord.ganttProperties.segments.map(function (e) { return (__assign$2({}, e)); });
|
|
19983
19984
|
var segment = segments[this.segmentIndex];
|
|
19984
19985
|
if (this.mouseDownX > this.mouseMoveX) {
|
|
19985
19986
|
differenceWidth = isNullOrUndefined(this.previousMouseMove) ?
|
|
@@ -20128,7 +20129,7 @@ var TaskbarEdit = /** @__PURE__ @class */ (function (_super) {
|
|
|
20128
20129
|
}
|
|
20129
20130
|
};
|
|
20130
20131
|
TaskbarEdit.prototype.enableSplitTaskLeftResize = function (item) {
|
|
20131
|
-
var segments = this.taskBarEditRecord.ganttProperties.segments.map(function (e) { return (__assign$
|
|
20132
|
+
var segments = this.taskBarEditRecord.ganttProperties.segments.map(function (e) { return (__assign$2({}, e)); });
|
|
20132
20133
|
var segment = segments[this.segmentIndex];
|
|
20133
20134
|
var differenceWidth = 0;
|
|
20134
20135
|
//when decrease the left and increase the width
|
|
@@ -20263,7 +20264,7 @@ var TaskbarEdit = /** @__PURE__ @class */ (function (_super) {
|
|
|
20263
20264
|
var item = this.taskBarEditRecord.ganttProperties;
|
|
20264
20265
|
var differenceWidth = 0;
|
|
20265
20266
|
if (this.taskBarEditElement.classList.contains('e-segmented-taskbar')) {
|
|
20266
|
-
var segments = this.taskBarEditRecord.ganttProperties.segments.map(function (e) { return (__assign$
|
|
20267
|
+
var segments = this.taskBarEditRecord.ganttProperties.segments.map(function (e) { return (__assign$2({}, e)); });
|
|
20267
20268
|
var segment = segments[this.segmentIndex];
|
|
20268
20269
|
if (this.mouseDownX > this.mouseMoveX) {
|
|
20269
20270
|
if (this.mouseMoveX > (item.left + segment.left) && (this.mouseDownX - this.mouseMoveX) > 3) {
|
|
@@ -24771,6 +24772,17 @@ var ConnectorLineEdit = /** @__PURE__ @class */ (function () {
|
|
|
24771
24772
|
return ConnectorLineEdit;
|
|
24772
24773
|
}());
|
|
24773
24774
|
|
|
24775
|
+
var __assign$1 = (undefined && undefined.__assign) || function () {
|
|
24776
|
+
__assign$1 = Object.assign || function(t) {
|
|
24777
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
24778
|
+
s = arguments[i];
|
|
24779
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
24780
|
+
t[p] = s[p];
|
|
24781
|
+
}
|
|
24782
|
+
return t;
|
|
24783
|
+
};
|
|
24784
|
+
return __assign$1.apply(this, arguments);
|
|
24785
|
+
};
|
|
24774
24786
|
/**
|
|
24775
24787
|
* The Edit Module is used to handle editing actions.
|
|
24776
24788
|
*
|
|
@@ -25990,7 +26002,15 @@ var Edit$2 = /** @__PURE__ @class */ (function () {
|
|
|
25990
26002
|
if (args.action && args.action === 'DrawConnectorLine') {
|
|
25991
26003
|
eventArgs.action = 'DrawConnectorLine';
|
|
25992
26004
|
}
|
|
26005
|
+
var ganttObj = this.parent;
|
|
26006
|
+
var currentBaselineStart = __assign$1({}, eventArgs.data.ganttProperties.baselineStartDate);
|
|
26007
|
+
var currentBaselineEnd = __assign$1({}, eventArgs.data.ganttProperties.baselineEndDate);
|
|
25993
26008
|
this.parent.trigger('actionBegin', eventArgs, function (eventArg) {
|
|
26009
|
+
if (currentBaselineStart != eventArg.data["ganttProperties"].baselineStartDate
|
|
26010
|
+
|| currentBaselineEnd != eventArg.data["ganttProperties"].baselineEndDate) {
|
|
26011
|
+
ganttObj.setRecordValue('baselineLeft', ganttObj.dataOperation.calculateBaselineLeft(eventArg.data['ganttProperties']), eventArg.data['ganttProperties'], true);
|
|
26012
|
+
ganttObj.setRecordValue('baselineWidth', ganttObj.dataOperation.calculateBaselineWidth(eventArg.data['ganttProperties']), eventArg.data['ganttProperties'], true);
|
|
26013
|
+
}
|
|
25994
26014
|
if (!isNullOrUndefined(_this.parent.loadingIndicator) && _this.parent.loadingIndicator.indicatorType === "Shimmer") {
|
|
25995
26015
|
_this.parent.showMaskRow();
|
|
25996
26016
|
}
|
|
@@ -29922,6 +29942,9 @@ var Toolbar$3 = /** @__PURE__ @class */ (function () {
|
|
|
29922
29942
|
this.toolbar.isReact = this.parent.isReact;
|
|
29923
29943
|
this.toolbar.on('render-react-toolbar-template', this.addReactToolbarPortals, this);
|
|
29924
29944
|
this.toolbar.appendTo(this.element);
|
|
29945
|
+
if (this.parent.treeGrid.grid && this.parent.isReact) {
|
|
29946
|
+
this.parent.treeGrid.grid.portals = this.parent.portals;
|
|
29947
|
+
}
|
|
29925
29948
|
var cancelItem = this.element.querySelector('#' + this.parent.element.id + '_cancel');
|
|
29926
29949
|
var updateItem = this.element.querySelector('#' + this.parent.element.id + '_update');
|
|
29927
29950
|
if (cancelItem) {
|
|
@@ -36007,10 +36030,10 @@ var ExportHelper = /** @__PURE__ @class */ (function () {
|
|
|
36007
36030
|
this.parent.predecessorModule.createConnectorLinesCollection();
|
|
36008
36031
|
this.parent.updatedConnectorLineCollection.forEach(function (data) {
|
|
36009
36032
|
var predecessor = _this.gantt.predecessor.add();
|
|
36010
|
-
predecessor.parentLeft =
|
|
36011
|
-
predecessor.childLeft =
|
|
36012
|
-
predecessor.parentWidth =
|
|
36013
|
-
predecessor.childWidth =
|
|
36033
|
+
predecessor.parentLeft = data.parentLeft;
|
|
36034
|
+
predecessor.childLeft = data.childLeft;
|
|
36035
|
+
predecessor.parentWidth = data.parentWidth;
|
|
36036
|
+
predecessor.childWidth = data.childWidth;
|
|
36014
36037
|
predecessor.parentIndex = data.parentIndex;
|
|
36015
36038
|
predecessor.childIndex = data.childIndex;
|
|
36016
36039
|
predecessor.rowHeight = data.rowHeight;
|
|
@@ -36095,8 +36118,8 @@ var ExportHelper = /** @__PURE__ @class */ (function () {
|
|
|
36095
36118
|
flatData.forEach(function (data) {
|
|
36096
36119
|
var taskbar = _this.gantt.taskbar.add();
|
|
36097
36120
|
var ganttProp = data.ganttProperties;
|
|
36098
|
-
taskbar.left =
|
|
36099
|
-
taskbar.width =
|
|
36121
|
+
taskbar.left = ganttProp.left;
|
|
36122
|
+
taskbar.width = ganttProp.width;
|
|
36100
36123
|
if (taskbar.left < 0) {
|
|
36101
36124
|
taskbar.width = taskbar.width + taskbar.left;
|
|
36102
36125
|
taskbar.left = 0;
|
|
@@ -36137,8 +36160,8 @@ var ExportHelper = /** @__PURE__ @class */ (function () {
|
|
|
36137
36160
|
taskbar.isMilestone = ganttProp.isMilestone;
|
|
36138
36161
|
taskbar.baselineStartDate = ganttProp.baselineStartDate;
|
|
36139
36162
|
taskbar.baselineEndDate = ganttProp.baselineEndDate;
|
|
36140
|
-
taskbar.baselineLeft =
|
|
36141
|
-
taskbar.baselineWidth =
|
|
36163
|
+
taskbar.baselineLeft = ganttProp.baselineLeft;
|
|
36164
|
+
taskbar.baselineWidth = ganttProp.baselineWidth;
|
|
36142
36165
|
taskbar.milestoneColor = new PdfColor(_this.ganttStyle.taskbar.milestoneColor);
|
|
36143
36166
|
taskbar.isParentTask = data.hasChildRecords;
|
|
36144
36167
|
if (ganttProp.isMilestone) {
|
|
@@ -36154,9 +36177,9 @@ var ExportHelper = /** @__PURE__ @class */ (function () {
|
|
|
36154
36177
|
taskbar.taskLabel = data[_this.parent.labelSettings.taskLabel].toString();
|
|
36155
36178
|
}
|
|
36156
36179
|
var reduceLeft = ganttProp.isMilestone ? Math.floor(_this.parent.chartRowsModule.taskBarHeight / 2) + 33 : 33; // 33 indicates default timeline cell width
|
|
36157
|
-
taskbar.rightTaskLabel.left =
|
|
36180
|
+
taskbar.rightTaskLabel.left = ganttProp.left + ganttProp.width + reduceLeft; // right label left value
|
|
36158
36181
|
taskbar.fontFamily = _this.ganttStyle.fontFamily;
|
|
36159
|
-
taskbar.progressWidth =
|
|
36182
|
+
taskbar.progressWidth = ganttProp.progressWidth;
|
|
36160
36183
|
taskbar.labelColor = new PdfColor(_this.ganttStyle.label.fontColor);
|
|
36161
36184
|
taskbar.progressFontColor = new PdfColor(_this.ganttStyle.taskbar.progressFontColor);
|
|
36162
36185
|
if (taskbar.isParentTask) {
|
|
@@ -36480,8 +36503,8 @@ var ExportValueFormatter = /** @__PURE__ @class */ (function () {
|
|
|
36480
36503
|
return ExportValueFormatter;
|
|
36481
36504
|
}());
|
|
36482
36505
|
|
|
36483
|
-
var __assign$
|
|
36484
|
-
__assign$
|
|
36506
|
+
var __assign$4 = (undefined && undefined.__assign) || function () {
|
|
36507
|
+
__assign$4 = Object.assign || function(t) {
|
|
36485
36508
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
36486
36509
|
s = arguments[i];
|
|
36487
36510
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -36489,7 +36512,7 @@ var __assign$3 = (undefined && undefined.__assign) || function () {
|
|
|
36489
36512
|
}
|
|
36490
36513
|
return t;
|
|
36491
36514
|
};
|
|
36492
|
-
return __assign$
|
|
36515
|
+
return __assign$4.apply(this, arguments);
|
|
36493
36516
|
};
|
|
36494
36517
|
/**
|
|
36495
36518
|
* @hidden
|
|
@@ -36544,7 +36567,8 @@ var PdfGanttTaskbarCollection = /** @__PURE__ @class */ (function () {
|
|
|
36544
36567
|
//code for while current pdf page is exceed
|
|
36545
36568
|
if (yPoint > pageSize.height) {
|
|
36546
36569
|
page = this.GetNextPage(page);
|
|
36547
|
-
page['contentWidth'] =
|
|
36570
|
+
page['contentWidth'] = (this.parent.pdfExportModule && this.parent.pdfExportModule.helper.exportProps && this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings &&
|
|
36571
|
+
this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings.isFitToWidth) ? pointToPixel(detail.endPoint - detail.startPoint) : detail.endPoint - detail.startPoint;
|
|
36548
36572
|
taskGraphics = page.graphics;
|
|
36549
36573
|
startPoint.y = 0;
|
|
36550
36574
|
if (this.parent.pdfExportModule.gantt.enableHeader) {
|
|
@@ -36572,7 +36596,7 @@ var PdfGanttTaskbarCollection = /** @__PURE__ @class */ (function () {
|
|
|
36572
36596
|
progressFormat.alignment = PdfTextAlignment.Right;
|
|
36573
36597
|
var isLabelString = false;
|
|
36574
36598
|
var updatedWidth;
|
|
36575
|
-
if (/^[a-zA-Z]/.test(this.taskLabel)) {
|
|
36599
|
+
if (!isNullOrUndefined(this.taskLabel) && (/^[a-zA-Z]/.test(this.taskLabel))) {
|
|
36576
36600
|
isLabelString = true;
|
|
36577
36601
|
progressFormat.alignment = PdfTextAlignment.Left;
|
|
36578
36602
|
}
|
|
@@ -36593,7 +36617,7 @@ var PdfGanttTaskbarCollection = /** @__PURE__ @class */ (function () {
|
|
|
36593
36617
|
//Task start and end date both are in the range of header split up start and end date
|
|
36594
36618
|
if (detail.startDate <= startDate && endDate <= detail.endDate) {
|
|
36595
36619
|
if (!this.isStartPoint) {
|
|
36596
|
-
this.taskStartPoint = __assign$
|
|
36620
|
+
this.taskStartPoint = __assign$4({}, startPoint);
|
|
36597
36621
|
this.isStartPoint = true;
|
|
36598
36622
|
}
|
|
36599
36623
|
if (!this.isScheduledTask && this.unscheduledTaskBy !== 'duration') {
|
|
@@ -36622,7 +36646,7 @@ var PdfGanttTaskbarCollection = /** @__PURE__ @class */ (function () {
|
|
|
36622
36646
|
//Task start date is in the range of header split up start and end date
|
|
36623
36647
|
else if (detail.startDate <= startDate && detail.endDate >= startDate && (endDate >= detail.endDate)) {
|
|
36624
36648
|
if (!this.isStartPoint) {
|
|
36625
|
-
this.taskStartPoint = __assign$
|
|
36649
|
+
this.taskStartPoint = __assign$4({}, startPoint);
|
|
36626
36650
|
this.isStartPoint = true;
|
|
36627
36651
|
}
|
|
36628
36652
|
var renderWidth = 0;
|
|
@@ -36638,7 +36662,6 @@ var PdfGanttTaskbarCollection = /** @__PURE__ @class */ (function () {
|
|
|
36638
36662
|
taskGraphics.drawRectangle(baselinePen, baselineBrush, startPoint.x + pixelToPoint(taskbar.baselineLeft - cumulativeWidth) + 0.5, startPoint.y + adjustHeight + pixelToPoint(taskbar.height + 3), pixelToPoint(this.baselineWidth), pixelToPoint(this.baselineHeight));
|
|
36639
36663
|
}
|
|
36640
36664
|
taskGraphics.drawRectangle(taskbarPen, taskBrush, startPoint.x + pixelToPoint(this.left - cumulativeWidth) + 0.5, startPoint.y + adjustHeight, pixelToPoint(renderWidth), pixelToPoint(taskbar.height));
|
|
36641
|
-
taskbar.width = taskbar.width - renderWidth;
|
|
36642
36665
|
if (this.isScheduledTask) {
|
|
36643
36666
|
var progressBoundsWidth = 0;
|
|
36644
36667
|
if (this.progressWidth <= renderWidth) {
|
|
@@ -36665,7 +36688,7 @@ var PdfGanttTaskbarCollection = /** @__PURE__ @class */ (function () {
|
|
|
36665
36688
|
//Task end date is in the range of header split up start and end date
|
|
36666
36689
|
else if (endDate <= detail.endDate && detail.startDate <= endDate && !this.isCompleted) {
|
|
36667
36690
|
if (!this.isStartPoint) {
|
|
36668
|
-
this.taskStartPoint = __assign$
|
|
36691
|
+
this.taskStartPoint = __assign$4({}, startPoint);
|
|
36669
36692
|
this.isStartPoint = true;
|
|
36670
36693
|
}
|
|
36671
36694
|
if (this.parent.renderBaseline && taskbar.baselineStartDate && taskbar.baselineEndDate) {
|
|
@@ -36689,7 +36712,7 @@ var PdfGanttTaskbarCollection = /** @__PURE__ @class */ (function () {
|
|
|
36689
36712
|
//So the task is takes entire width of page.
|
|
36690
36713
|
else if (startDate < detail.startDate && endDate > detail.endDate) {
|
|
36691
36714
|
if (!this.isStartPoint) {
|
|
36692
|
-
this.taskStartPoint = __assign$
|
|
36715
|
+
this.taskStartPoint = __assign$4({}, startPoint);
|
|
36693
36716
|
this.isStartPoint = true;
|
|
36694
36717
|
}
|
|
36695
36718
|
if (this.parent.renderBaseline && taskbar.baselineStartDate && taskbar.baselineEndDate) {
|
|
@@ -36879,7 +36902,7 @@ var PdfGanttTaskbarCollection = /** @__PURE__ @class */ (function () {
|
|
|
36879
36902
|
if (detail.startDate <= this.startDate && this.startDate <= detail.endDate) {
|
|
36880
36903
|
var taskGraphics = page.graphics;
|
|
36881
36904
|
var pageIndex = page.section.indexOf(page);
|
|
36882
|
-
this.taskStartPoint = __assign$
|
|
36905
|
+
this.taskStartPoint = __assign$4({}, startPoint);
|
|
36883
36906
|
var milestonePen = new PdfPen(this.milestoneColor);
|
|
36884
36907
|
var adjustHeightforBaselineMilesone = pixelToPoint(((this.parent.rowHeight - this.height) / 3.0));
|
|
36885
36908
|
var adjustHeightforMilesone = pixelToPoint(((this.parent.rowHeight - this.height) / 2.0));
|
|
@@ -36925,7 +36948,8 @@ var PdfTimeline = /** @__PURE__ @class */ (function () {
|
|
|
36925
36948
|
* @returns {void}
|
|
36926
36949
|
*/
|
|
36927
36950
|
PdfTimeline.prototype.drawTimeline = function (page, startPoint, detail) {
|
|
36928
|
-
var remainWidth =
|
|
36951
|
+
var remainWidth = (this.parent.pdfExportModule && this.parent.pdfExportModule.helper.exportProps && this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings &&
|
|
36952
|
+
this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings.isFitToWidth) ? pointToPixel(Math.floor(detail.totalWidth)) : Math.floor(detail.totalWidth);
|
|
36929
36953
|
var renderWidth = 0;
|
|
36930
36954
|
this.topTierPoint.x = startPoint.x;
|
|
36931
36955
|
this.topTierPoint.y = startPoint.y;
|
|
@@ -36953,7 +36977,8 @@ var PdfTimeline = /** @__PURE__ @class */ (function () {
|
|
|
36953
36977
|
//Primary header Event Arguments
|
|
36954
36978
|
/* eslint-disable-next-line */
|
|
36955
36979
|
this.triggerQueryTimelinecell(page, this.topTierPoint.x, this.topTierPoint.y, this.topTierHeight, renderWidth, pHeader.value, true);
|
|
36956
|
-
this.topTierPoint.x +=
|
|
36980
|
+
this.topTierPoint.x += (this.parent.pdfExportModule && this.parent.pdfExportModule.helper.exportProps && this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings &&
|
|
36981
|
+
this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings.isFitToWidth) ? renderWidth : pixelToPoint(renderWidth);
|
|
36957
36982
|
remainWidth -= renderWidth;
|
|
36958
36983
|
if (isCompleted) {
|
|
36959
36984
|
this.topTierIndex++;
|
|
@@ -36979,7 +37004,8 @@ var PdfTimeline = /** @__PURE__ @class */ (function () {
|
|
|
36979
37004
|
//Secondary header Event Arguments
|
|
36980
37005
|
/* eslint-disable-next-line */
|
|
36981
37006
|
this.triggerQueryTimelinecell(page, this.bottomTierPoint.x, this.bottomTierPoint.y, this.bottomTierHeight, width, secondHeader.value, false);
|
|
36982
|
-
this.bottomTierPoint.x = this.
|
|
37007
|
+
this.bottomTierPoint.x = (this.parent.pdfExportModule && this.parent.pdfExportModule.helper.exportProps && this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings &&
|
|
37008
|
+
this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings.isFitToWidth) ? this.bottomTierPoint.x + width : this.bottomTierPoint.x + pixelToPoint(width);
|
|
36983
37009
|
remainWidth -= width;
|
|
36984
37010
|
secondHeader.completedWidth = width;
|
|
36985
37011
|
if (isCompleted) {
|
|
@@ -37010,7 +37036,8 @@ var PdfTimeline = /** @__PURE__ @class */ (function () {
|
|
|
37010
37036
|
//Primary header Event Arguments
|
|
37011
37037
|
/* eslint-disable-next-line */
|
|
37012
37038
|
this.triggerQueryTimelinecell(page, this.topTierPoint.x, this.topTierPoint.y, this.topTierHeight, pHeader.completedWidth, pHeader.value, true);
|
|
37013
|
-
this.topTierPoint.x +=
|
|
37039
|
+
this.topTierPoint.x += (this.parent.pdfExportModule && this.parent.pdfExportModule.helper.exportProps && this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings &&
|
|
37040
|
+
this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings.isFitToWidth) ? pHeader.completedWidth : pixelToPoint(pHeader.completedWidth);
|
|
37014
37041
|
}
|
|
37015
37042
|
}
|
|
37016
37043
|
}
|
|
@@ -37023,7 +37050,8 @@ var PdfTimeline = /** @__PURE__ @class */ (function () {
|
|
|
37023
37050
|
//Secondary header Event Arguments
|
|
37024
37051
|
/* eslint-disable-next-line */
|
|
37025
37052
|
this.triggerQueryTimelinecell(page, this.bottomTierPoint.x, this.bottomTierPoint.y, this.bottomTierHeight, secondHeader.width, secondHeader.value, false);
|
|
37026
|
-
this.bottomTierPoint.x = this.
|
|
37053
|
+
this.bottomTierPoint.x = (this.parent.pdfExportModule && this.parent.pdfExportModule.helper.exportProps && this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings &&
|
|
37054
|
+
this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings.isFitToWidth) ? this.bottomTierPoint.x + secondHeader.width : this.bottomTierPoint.x + pixelToPoint(secondHeader.width);
|
|
37027
37055
|
}
|
|
37028
37056
|
}
|
|
37029
37057
|
}
|
|
@@ -37070,7 +37098,8 @@ var PdfTimeline = /** @__PURE__ @class */ (function () {
|
|
|
37070
37098
|
var e = eventArgs.timelineCell;
|
|
37071
37099
|
var rectPen = new PdfPen(eventArgs.timelineCell.borderColor);
|
|
37072
37100
|
var rectBrush = new PdfSolidBrush(eventArgs.timelineCell.backgroundColor);
|
|
37073
|
-
graphics.drawRectangle(rectPen, rectBrush, x, y,
|
|
37101
|
+
graphics.drawRectangle(rectPen, rectBrush, x, y, (this.parent.pdfExportModule && this.parent.pdfExportModule.helper.exportProps && this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings &&
|
|
37102
|
+
this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings.isFitToWidth) ? width : pixelToPoint(width), pixelToPoint(height));
|
|
37074
37103
|
if (!isTopTier && (this.parent.gridLines == "Both" || this.parent.gridLines == "Vertical")) {
|
|
37075
37104
|
graphics.drawRectangle(rectPen, rectBrush, x, y + pixelToPoint(height), width, page.getClientSize().height);
|
|
37076
37105
|
}
|
|
@@ -37093,8 +37122,8 @@ var PdfTimeline = /** @__PURE__ @class */ (function () {
|
|
|
37093
37122
|
return PdfTimeline;
|
|
37094
37123
|
}());
|
|
37095
37124
|
|
|
37096
|
-
var __assign$
|
|
37097
|
-
__assign$
|
|
37125
|
+
var __assign$5 = (undefined && undefined.__assign) || function () {
|
|
37126
|
+
__assign$5 = Object.assign || function(t) {
|
|
37098
37127
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
37099
37128
|
s = arguments[i];
|
|
37100
37129
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -37102,7 +37131,7 @@ var __assign$4 = (undefined && undefined.__assign) || function () {
|
|
|
37102
37131
|
}
|
|
37103
37132
|
return t;
|
|
37104
37133
|
};
|
|
37105
|
-
return __assign$
|
|
37134
|
+
return __assign$5.apply(this, arguments);
|
|
37106
37135
|
};
|
|
37107
37136
|
/**
|
|
37108
37137
|
* @hidden
|
|
@@ -37262,8 +37291,8 @@ var PdfGanttPredecessor = /** @__PURE__ @class */ (function () {
|
|
|
37262
37291
|
/* eslint-disable-next-line */
|
|
37263
37292
|
var point1, point2, point3, point4, point5, point6;
|
|
37264
37293
|
point1 = point2 = point3 = point4 = point5 = point6 = new PointF();
|
|
37265
|
-
var parentTaskpoint = __assign$
|
|
37266
|
-
var childTaskpoint = __assign$
|
|
37294
|
+
var parentTaskpoint = __assign$5({}, parentTask.taskStartPoint);
|
|
37295
|
+
var childTaskpoint = __assign$5({}, childTask.taskStartPoint);
|
|
37267
37296
|
parentY = parentTaskpoint.y + parentPageData.startPoint.y;
|
|
37268
37297
|
childY = childTaskpoint.y + childPageData.startPoint.y;
|
|
37269
37298
|
var ffpoint1 = new PointF(pixelToPoint(this.parentLeft + this.parentWidth), parentY + midPoint);
|
|
@@ -37420,9 +37449,9 @@ var PdfGanttPredecessor = /** @__PURE__ @class */ (function () {
|
|
|
37420
37449
|
PdfGanttPredecessor.prototype.drawLine = function (page, startPoint, endPoint) {
|
|
37421
37450
|
var pdfPages = this.pdfGantt.result.page.section.getPages();
|
|
37422
37451
|
var graphics = page.graphics;
|
|
37423
|
-
var newEndPoint = __assign$
|
|
37424
|
-
var newStartPoint = __assign$
|
|
37425
|
-
var checkStartPoint = __assign$
|
|
37452
|
+
var newEndPoint = __assign$5({}, endPoint);
|
|
37453
|
+
var newStartPoint = __assign$5({}, endPoint);
|
|
37454
|
+
var checkStartPoint = __assign$5({}, endPoint);
|
|
37426
37455
|
var pageData = this.pdfGantt.pdfPageDetail[page.section.indexOf(page) - this.pdfGantt.chartPageIndex];
|
|
37427
37456
|
var pageRect = new RectangleF(pageData.startPoint.x, pageData.startPoint.y, pageData.width, pageData.height);
|
|
37428
37457
|
var startPointCheck = this.contains(pageRect, startPoint.x, startPoint.y);
|
|
@@ -37550,8 +37579,8 @@ var __extends$23 = (undefined && undefined.__extends) || (function () {
|
|
|
37550
37579
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
37551
37580
|
};
|
|
37552
37581
|
})();
|
|
37553
|
-
var __assign$
|
|
37554
|
-
__assign$
|
|
37582
|
+
var __assign$3 = (undefined && undefined.__assign) || function () {
|
|
37583
|
+
__assign$3 = Object.assign || function(t) {
|
|
37555
37584
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
37556
37585
|
s = arguments[i];
|
|
37557
37586
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -37559,7 +37588,7 @@ var __assign$2 = (undefined && undefined.__assign) || function () {
|
|
|
37559
37588
|
}
|
|
37560
37589
|
return t;
|
|
37561
37590
|
};
|
|
37562
|
-
return __assign$
|
|
37591
|
+
return __assign$3.apply(this, arguments);
|
|
37563
37592
|
};
|
|
37564
37593
|
/**
|
|
37565
37594
|
*
|
|
@@ -37632,10 +37661,12 @@ var PdfGantt = /** @__PURE__ @class */ (function (_super) {
|
|
|
37632
37661
|
}
|
|
37633
37662
|
var detail = {};
|
|
37634
37663
|
var range = [];
|
|
37635
|
-
var convertedWidth =
|
|
37664
|
+
var convertedWidth = (this.parent.pdfExportModule && this.parent.pdfExportModule.helper.exportProps && this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings &&
|
|
37665
|
+
this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings.isFitToWidth) ? pixelToPoint(this.chartHeader.bottomTierCellWidth) : this.chartHeader.bottomTierCellWidth;
|
|
37636
37666
|
var width = 0;
|
|
37637
37667
|
if (this.chartHeader.bottomTierCellWidth !== 0) {
|
|
37638
|
-
width = (
|
|
37668
|
+
width = (this.parent.pdfExportModule && this.parent.pdfExportModule.helper.exportProps && this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings &&
|
|
37669
|
+
this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings.isFitToWidth) ? (Math.floor(pageWidth / convertedWidth) * convertedWidth) : (Math.floor(pageWidth / convertedWidth) * convertedWidth) + 5;
|
|
37639
37670
|
}
|
|
37640
37671
|
range[0] = point;
|
|
37641
37672
|
if (headerWidth - point <= width) {
|
|
@@ -37752,7 +37783,8 @@ var PdfGantt = /** @__PURE__ @class */ (function (_super) {
|
|
|
37752
37783
|
var pageData;
|
|
37753
37784
|
this.headerDetails.forEach(function (detail, index) {
|
|
37754
37785
|
var page = _this.result.page.section.getPages()[_this.startPageIndex];
|
|
37755
|
-
page['contentWidth'] =
|
|
37786
|
+
page['contentWidth'] = (_this.parent.pdfExportModule && _this.parent.pdfExportModule.helper.exportProps && _this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings &&
|
|
37787
|
+
_this.parent.pdfExportModule.helper.exportProps.fitToWidthSettings.isFitToWidth) ? pointToPixel(_this.headerDetails[index].endPoint - _this.headerDetails[index].startPoint) : _this.headerDetails[index].endPoint - _this.headerDetails[index].startPoint;
|
|
37756
37788
|
_this.chartHeader.drawTimeline(page, _this.startPoint, detail);
|
|
37757
37789
|
taskbarPoint.y = taskbarPoint.y + pixelToPoint(_this.parent.timelineModule.isSingleTier ? 45 : 60); // headerHeight
|
|
37758
37790
|
pageStartX = taskbarPoint.x;
|
|
@@ -37781,7 +37813,7 @@ var PdfGantt = /** @__PURE__ @class */ (function (_super) {
|
|
|
37781
37813
|
pageData = {};
|
|
37782
37814
|
pageData.height = cumulativeHeight;
|
|
37783
37815
|
pageData.pageStartX = pageStartX;
|
|
37784
|
-
pageData.startPoint = __assign$
|
|
37816
|
+
pageData.startPoint = __assign$3({}, pagePoint);
|
|
37785
37817
|
pageData.width = pixelToPoint(detail.totalWidth);
|
|
37786
37818
|
_this.pdfPageDetail.push(pageData);
|
|
37787
37819
|
pagePoint.y += pageData.height;
|
|
@@ -37803,7 +37835,7 @@ var PdfGantt = /** @__PURE__ @class */ (function (_super) {
|
|
|
37803
37835
|
pageData = {};
|
|
37804
37836
|
pageData.height = cumulativeHeight;
|
|
37805
37837
|
pageData.pageStartX = pageStartX;
|
|
37806
|
-
pageData.startPoint = __assign$
|
|
37838
|
+
pageData.startPoint = __assign$3({}, pagePoint);
|
|
37807
37839
|
pageData.width = pixelToPoint(detail.totalWidth);
|
|
37808
37840
|
_this.pdfPageDetail.push(pageData);
|
|
37809
37841
|
pagePoint.x += pageData.width;
|