@syncfusion/ej2-gantt 24.1.43 → 24.1.45
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 +15 -0
- package/README.md +1 -1
- 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 +95 -32
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +97 -34
- 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 +14 -14
- package/src/gantt/actions/context-menu.js +1 -1
- package/src/gantt/actions/dialog-edit.js +16 -1
- package/src/gantt/actions/edit.js +16 -6
- package/src/gantt/actions/keyboard.js +4 -1
- package/src/gantt/base/gantt.js +6 -0
- package/src/gantt/base/task-processor.js +22 -15
- package/src/gantt/export/pdf-taskbar.js +32 -10
|
@@ -3848,14 +3848,11 @@ var TaskProcessor = /** @__PURE__ @class */ (function (_super) {
|
|
|
3848
3848
|
*/
|
|
3849
3849
|
TaskProcessor.prototype.updateWidthLeft = function (data) {
|
|
3850
3850
|
var ganttRecord = data.ganttProperties;
|
|
3851
|
+
var totalSegmentsProgressWidth = 0;
|
|
3851
3852
|
// task endDate may be changed in segment calculation so this must be calculated first.
|
|
3852
3853
|
// task width calculating was based on endDate
|
|
3853
3854
|
if (!isNullOrUndefined(ganttRecord.segments) && ganttRecord.segments.length > 0) {
|
|
3854
3855
|
var segments = ganttRecord.segments;
|
|
3855
|
-
var fixedWidth = true;
|
|
3856
|
-
var totalTaskWidth = this.splitTasksDuration(segments) * ((this.parent.timelineModule.bottomTier === "Hour" || this.parent.timelineModule.bottomTier === "Minutes") ? this.parent.timelineSettings.timelineUnitSize : this.parent.perDayWidth);
|
|
3857
|
-
|
|
3858
|
-
var totalProgressWidth = this.parent.dataOperation.getProgressWidth(totalTaskWidth, ganttRecord.progress);
|
|
3859
3856
|
for (var i = 0; i < segments.length; i++) {
|
|
3860
3857
|
var segment = segments[i];
|
|
3861
3858
|
if (i === 0 && !isNullOrUndefined(ganttRecord.startDate) &&
|
|
@@ -3866,22 +3863,27 @@ var TaskProcessor = /** @__PURE__ @class */ (function (_super) {
|
|
|
3866
3863
|
this.parent.chartRowsModule.incrementSegments(segments, 0, data);
|
|
3867
3864
|
}
|
|
3868
3865
|
segment.width = this.getSplitTaskWidth(segment.startDate, segment.duration, data);
|
|
3866
|
+
totalSegmentsProgressWidth = totalSegmentsProgressWidth + segment.width;
|
|
3869
3867
|
segment.showProgress = false;
|
|
3870
3868
|
segment.progressWidth = -1;
|
|
3871
3869
|
if (i !== 0) {
|
|
3872
3870
|
var pStartDate = new Date(ganttRecord.startDate.getTime());
|
|
3873
3871
|
segment.left = this.getSplitTaskLeft(segment.startDate, pStartDate);
|
|
3874
3872
|
}
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3873
|
+
}
|
|
3874
|
+
var setProgress = this.parent.dataOperation.getProgressWidth(totalSegmentsProgressWidth, ganttRecord.progress);
|
|
3875
|
+
var isValid = true;
|
|
3876
|
+
for (var i = 0; i < segments.length; i++) {
|
|
3877
|
+
if (isValid) {
|
|
3878
|
+
if (setProgress <= segments[i].width) {
|
|
3879
|
+
segments[i].progressWidth = setProgress;
|
|
3880
|
+
segments[i].showProgress = true;
|
|
3881
|
+
isValid = false;
|
|
3882
|
+
}
|
|
3883
|
+
else {
|
|
3884
|
+
segments[i].progressWidth = segments[i].width;
|
|
3885
|
+
setProgress = setProgress - segments[i].progressWidth;
|
|
3886
|
+
}
|
|
3885
3887
|
}
|
|
3886
3888
|
}
|
|
3887
3889
|
this.parent.setRecordValue('segments', ganttRecord.segments, ganttRecord, true);
|
|
@@ -3889,7 +3891,12 @@ var TaskProcessor = /** @__PURE__ @class */ (function (_super) {
|
|
|
3889
3891
|
}
|
|
3890
3892
|
this.parent.setRecordValue('width', this.parent.dataOperation.calculateWidth(data), ganttRecord, true);
|
|
3891
3893
|
this.parent.setRecordValue('left', this.parent.dataOperation.calculateLeft(ganttRecord), ganttRecord, true);
|
|
3892
|
-
|
|
3894
|
+
if (!isNullOrUndefined(ganttRecord.segments) && ganttRecord.segments.length > 0) {
|
|
3895
|
+
this.parent.setRecordValue('progressWidth', this.parent.dataOperation.getProgressWidth(totalSegmentsProgressWidth, ganttRecord.progress), ganttRecord, true);
|
|
3896
|
+
}
|
|
3897
|
+
else {
|
|
3898
|
+
this.parent.setRecordValue('progressWidth', this.parent.dataOperation.getProgressWidth((ganttRecord.isAutoSchedule || !data.hasChildRecords ? ganttRecord.width : ganttRecord.autoWidth), ganttRecord.progress), ganttRecord, true);
|
|
3899
|
+
}
|
|
3893
3900
|
};
|
|
3894
3901
|
/**
|
|
3895
3902
|
* method to update left, width, progress width in record
|
|
@@ -14807,7 +14814,10 @@ var FocusModule = /** @__PURE__ @class */ (function () {
|
|
|
14807
14814
|
var selectingRowIndex = expandedRecords.indexOf(selectedItem);
|
|
14808
14815
|
var currentSelectingRecord = e.action === 'downArrow' ? expandedRecords[selectingRowIndex + 1] :
|
|
14809
14816
|
expandedRecords[selectingRowIndex - 1];
|
|
14810
|
-
|
|
14817
|
+
var activeElement = this.parent['args'];
|
|
14818
|
+
if (document.activeElement != activeElement) {
|
|
14819
|
+
ganttObj.selectionModule.selectRow(ganttObj.currentViewData.indexOf(currentSelectingRecord), false, true);
|
|
14820
|
+
}
|
|
14811
14821
|
}
|
|
14812
14822
|
else if (ganttObj.selectionSettings.mode === 'Cell' && ganttObj.selectionModule.getSelectedRowCellIndexes().length > 0) {
|
|
14813
14823
|
var selectCellIndex = ganttObj.selectionModule.getSelectedRowCellIndexes();
|
|
@@ -15685,6 +15695,12 @@ var Gantt = /** @__PURE__ @class */ (function (_super) {
|
|
|
15685
15695
|
}
|
|
15686
15696
|
};
|
|
15687
15697
|
Gantt.prototype.keyActionHandler = function (e) {
|
|
15698
|
+
if (this.enableContextMenu && this.contextMenuModule && (e.action === 'downArrow' || e.action === 'upArrow') && document.getElementById(this.element.id + '_contextmenu') && this['args']) {
|
|
15699
|
+
var firstMenuItem = this['args'];
|
|
15700
|
+
if (!isNullOrUndefined(firstMenuItem)) {
|
|
15701
|
+
(firstMenuItem).focus();
|
|
15702
|
+
}
|
|
15703
|
+
}
|
|
15688
15704
|
if (e.target && (e.action === 'downArrow' || e.action === 'upArrow') && e.target === this.element.querySelector('.e-rowcell')) {
|
|
15689
15705
|
this.treeGrid.grid.notify('key-pressed', e);
|
|
15690
15706
|
}
|
|
@@ -24399,6 +24415,9 @@ var DialogEdit = /** @__PURE__ @class */ (function () {
|
|
|
24399
24415
|
var ganttObj = this.parent;
|
|
24400
24416
|
var resourceSettings = ganttObj.resourceFields;
|
|
24401
24417
|
var ganttData = this.beforeOpenArgs.rowData;
|
|
24418
|
+
if (((this.beforeOpenArgs.requestType === 'beforeOpenEditDialog' && !isNullOrUndefined(this.editedRecord[this.parent.taskFields.resourceInfo])) || (this.beforeOpenArgs.requestType === 'beforeOpenAddDialog' && !isNullOrUndefined(this.editedRecord[this.parent.taskFields.resourceInfo]))) && (typeof (this.editedRecord[this.parent.taskFields.resourceInfo]) === "object")) {
|
|
24419
|
+
this.parent.setRecordValue('resourceInfo', this.parent.dataOperation.setResourceInfo(this.editedRecord), ganttData.ganttProperties, true);
|
|
24420
|
+
}
|
|
24402
24421
|
var rowResource = ganttData.ganttProperties.resourceInfo;
|
|
24403
24422
|
var inputModel = this.beforeOpenArgs[itemName];
|
|
24404
24423
|
var resourceTreeGridId = ganttObj.element.id + '' + itemName + 'TabContainer';
|
|
@@ -24437,6 +24456,11 @@ var DialogEdit = /** @__PURE__ @class */ (function () {
|
|
|
24437
24456
|
this.ganttResources.push(resourceInfo[i]);
|
|
24438
24457
|
}
|
|
24439
24458
|
}
|
|
24459
|
+
else if (!this.isEdit && !isNullOrUndefined(resourceInfo)) {
|
|
24460
|
+
for (var i = 0; i < resourceInfo.length; i++) {
|
|
24461
|
+
this.ganttResources.push(resourceInfo[i]);
|
|
24462
|
+
}
|
|
24463
|
+
}
|
|
24440
24464
|
inputModel.rowSelected = function (args) {
|
|
24441
24465
|
_this.updateResourceCollection(args, resourceTreeGridId);
|
|
24442
24466
|
};
|
|
@@ -24848,7 +24872,14 @@ var DialogEdit = /** @__PURE__ @class */ (function () {
|
|
|
24848
24872
|
}
|
|
24849
24873
|
}
|
|
24850
24874
|
else {
|
|
24851
|
-
|
|
24875
|
+
if (fieldName === "Duration") {
|
|
24876
|
+
var numericValue = parseFloat(String(controlObj.value));
|
|
24877
|
+
|
|
24878
|
+
tasksData[fieldName] = numericValue;
|
|
24879
|
+
}
|
|
24880
|
+
else {
|
|
24881
|
+
tasksData[fieldName] = controlObj.value;
|
|
24882
|
+
}
|
|
24852
24883
|
if (this.parent.enableHtmlSanitizer && typeof (controlObj.value) === 'string') {
|
|
24853
24884
|
controlObj.value = SanitizeHtmlHelper.sanitize(controlObj.value);
|
|
24854
24885
|
tasksData[fieldName] = controlObj.value;
|
|
@@ -27542,9 +27573,11 @@ var Edit$2 = /** @__PURE__ @class */ (function () {
|
|
|
27542
27573
|
var taskID = updateRecord.ganttProperties.taskId;
|
|
27543
27574
|
var resourceID = prevResource[index][this.parent.resourceFields.id];
|
|
27544
27575
|
var record = flatRecords[this.parent.getTaskIds().indexOf('R' + resourceID)];
|
|
27545
|
-
|
|
27546
|
-
|
|
27547
|
-
|
|
27576
|
+
if (!isNullOrUndefined(record)) {
|
|
27577
|
+
for (var j = 0; j < record.childRecords.length; j++) {
|
|
27578
|
+
if (record.childRecords[j].ganttProperties.taskId === taskID) {
|
|
27579
|
+
this.removeChildRecord(record.childRecords[j]);
|
|
27580
|
+
}
|
|
27548
27581
|
}
|
|
27549
27582
|
}
|
|
27550
27583
|
}
|
|
@@ -29087,6 +29120,8 @@ var Edit$2 = /** @__PURE__ @class */ (function () {
|
|
|
29087
29120
|
if (args.data[tempTaskID] != args.data['ganttProperties']['taskId']) {
|
|
29088
29121
|
args.data['ganttProperties']['taskId'] = args.data[tempTaskID];
|
|
29089
29122
|
args.newTaskData[tempTaskID] = args.data[tempTaskID];
|
|
29123
|
+
args.data['ganttProperties']['rowUniqueID'] = args.data[tempTaskID].toString();
|
|
29124
|
+
_this.parent.ids.push(args.data[tempTaskID].toString());
|
|
29090
29125
|
}
|
|
29091
29126
|
}
|
|
29092
29127
|
if (!args.cancel) {
|
|
@@ -29096,7 +29131,6 @@ var Edit$2 = /** @__PURE__ @class */ (function () {
|
|
|
29096
29131
|
addedRecords: [args.newTaskData],
|
|
29097
29132
|
changedRecords: args.modifiedTaskData
|
|
29098
29133
|
};
|
|
29099
|
-
var prevID_1 = args.data.ganttProperties.taskId.toString();
|
|
29100
29134
|
/* tslint:disable-next-line */
|
|
29101
29135
|
var query = _this.parent.query instanceof Query ? _this.parent.query : new Query();
|
|
29102
29136
|
var adaptor = data_2.adaptor;
|
|
@@ -29104,14 +29138,21 @@ var Edit$2 = /** @__PURE__ @class */ (function () {
|
|
|
29104
29138
|
/* tslint:disable-next-line */
|
|
29105
29139
|
var crud = data_2.saveChanges(updatedData_2, _this.parent.taskFields.id, null, query);
|
|
29106
29140
|
crud.then(function (e) {
|
|
29141
|
+
if (e.addedRecords[0][_this.parent.taskFields.id].toString() != args.data['ganttProperties']['taskId']) {
|
|
29142
|
+
args.data['ganttProperties']['taskId'] = e.addedRecords[0][_this.parent.taskFields.id].toString();
|
|
29143
|
+
args.newTaskData[tempTaskID] = e.addedRecords[0][_this.parent.taskFields.id].toString();
|
|
29144
|
+
args.data['ganttProperties']['rowUniqueID'] = e.addedRecords[0][_this.parent.taskFields.id].toString();
|
|
29145
|
+
_this.parent.ids.push(e.addedRecords[0][_this.parent.taskFields.id].toString());
|
|
29146
|
+
}
|
|
29147
|
+
var prevID = args.data.ganttProperties.taskId.toString();
|
|
29107
29148
|
if (_this.parent.taskFields.id && !isNullOrUndefined(e.addedRecords[0][_this.parent.taskFields.id]) &&
|
|
29108
|
-
e.addedRecords[0][_this.parent.taskFields.id].toString() ==
|
|
29149
|
+
e.addedRecords[0][_this.parent.taskFields.id].toString() == prevID) {
|
|
29109
29150
|
_this.parent.setRecordValue('taskId', e.addedRecords[0][_this.parent.taskFields.id], args.data.ganttProperties, true);
|
|
29110
29151
|
_this.parent.setRecordValue('taskData', e.addedRecords[0], args.data);
|
|
29111
29152
|
_this.parent.setRecordValue(_this.parent.taskFields.id, e.addedRecords[0][_this.parent.taskFields.id], args.data);
|
|
29112
29153
|
_this.parent.setRecordValue('rowUniqueID', e.addedRecords[0][_this.parent.taskFields.id].toString(), args.data.ganttProperties, true);
|
|
29113
29154
|
_this.updateClientDataFromServer(e, args);
|
|
29114
|
-
var idsIndex = _this.parent.ids.indexOf(
|
|
29155
|
+
var idsIndex = _this.parent.ids.indexOf(prevID);
|
|
29115
29156
|
if (idsIndex !== -1) {
|
|
29116
29157
|
_this.parent.ids[idsIndex] = e.addedRecords[0][_this.parent.taskFields.id].toString();
|
|
29117
29158
|
}
|
|
@@ -33574,7 +33615,7 @@ var ContextMenu$2 = /** @__PURE__ @class */ (function () {
|
|
|
33574
33615
|
};
|
|
33575
33616
|
ContextMenu$$1.prototype.contextMenuOpen = function (args) {
|
|
33576
33617
|
this.isOpen = true;
|
|
33577
|
-
var firstMenuItem = args.element.querySelectorAll('li:not(.e-menu-hide):not(.e-disabled)')[0];
|
|
33618
|
+
var firstMenuItem = this.parent['args'] = args.element.querySelectorAll('li:not(.e-menu-hide):not(.e-disabled)')[0];
|
|
33578
33619
|
if (!isNullOrUndefined(firstMenuItem)) {
|
|
33579
33620
|
addClass([firstMenuItem], 'e-focused');
|
|
33580
33621
|
}
|
|
@@ -38326,13 +38367,22 @@ var PdfGanttTaskbarCollection = /** @__PURE__ @class */ (function () {
|
|
|
38326
38367
|
progressFormat.alignment = PdfTextAlignment.Left;
|
|
38327
38368
|
}
|
|
38328
38369
|
var pageIndex = -1;
|
|
38370
|
+
var renderBaselineWidth = 0;
|
|
38371
|
+
if (this.baselineWidth > detail.totalWidth) {
|
|
38372
|
+
renderBaselineWidth = detail.totalWidth;
|
|
38373
|
+
this.baselineWidth = this.baselineWidth - detail.totalWidth;
|
|
38374
|
+
}
|
|
38375
|
+
else {
|
|
38376
|
+
renderBaselineWidth = this.baselineWidth;
|
|
38377
|
+
}
|
|
38378
|
+
var baselinePen = new PdfPen(taskbar.baselineBorderColor);
|
|
38379
|
+
var baselineBrush = new PdfSolidBrush(taskbar.baselineColor);
|
|
38380
|
+
var renderedBaseline = false;
|
|
38329
38381
|
if (!taskbar.isMilestone) {
|
|
38330
38382
|
var taskbarPen_1 = new PdfPen(taskbar.taskBorderColor);
|
|
38331
38383
|
var taskBrush_1 = new PdfSolidBrush(taskbar.taskColor);
|
|
38332
|
-
var baselinePen = new PdfPen(taskbar.baselineBorderColor);
|
|
38333
38384
|
var manualParentBorderPen = new PdfPen(taskbar.manualParentBorder);
|
|
38334
38385
|
var manualChildBorderPen = new PdfPen(taskbar.manualChildBorder);
|
|
38335
|
-
var baselineBrush = new PdfSolidBrush(taskbar.baselineColor);
|
|
38336
38386
|
var manualTaskbarPen = new PdfPen(taskbar.manuallineColor);
|
|
38337
38387
|
var manualParentPen = new PdfPen(taskbar.manualParentProgress);
|
|
38338
38388
|
var manualline = new PdfPen(taskbar.manuallineColor);
|
|
@@ -38403,11 +38453,12 @@ var PdfGanttTaskbarCollection = /** @__PURE__ @class */ (function () {
|
|
|
38403
38453
|
else {
|
|
38404
38454
|
if (this.parent.renderBaseline && taskbar.baselineStartDate && taskbar.baselineEndDate) {
|
|
38405
38455
|
if (this.isAutoFit()) {
|
|
38406
|
-
taskGraphics.drawRectangle(baselinePen, baselineBrush, startPoint.x + (taskbar.baselineLeft - cumulativeWidth) + 0.5, startPoint.y + adjustHeight_1 + pixelToPoint(taskbar.height + 3), (
|
|
38456
|
+
taskGraphics.drawRectangle(baselinePen, baselineBrush, startPoint.x + (taskbar.baselineLeft - cumulativeWidth) + 0.5, startPoint.y + adjustHeight_1 + pixelToPoint(taskbar.height + 3), (renderBaselineWidth), pixelToPoint(this.baselineHeight));
|
|
38407
38457
|
}
|
|
38408
38458
|
else {
|
|
38409
|
-
taskGraphics.drawRectangle(baselinePen, baselineBrush, startPoint.x + pixelToPoint(taskbar.baselineLeft - cumulativeWidth) + 0.5, startPoint.y + adjustHeight_1 + pixelToPoint(taskbar.height + 3), pixelToPoint(
|
|
38459
|
+
taskGraphics.drawRectangle(baselinePen, baselineBrush, startPoint.x + pixelToPoint(taskbar.baselineLeft - cumulativeWidth) + 0.5, startPoint.y + adjustHeight_1 + pixelToPoint(taskbar.height + 3), pixelToPoint(renderBaselineWidth), pixelToPoint(this.baselineHeight));
|
|
38410
38460
|
}
|
|
38461
|
+
renderedBaseline = true;
|
|
38411
38462
|
}
|
|
38412
38463
|
if (taskbar.isSpliterTask) {
|
|
38413
38464
|
splitline.dashStyle = PdfDashStyle.Dot;
|
|
@@ -38620,11 +38671,12 @@ var PdfGanttTaskbarCollection = /** @__PURE__ @class */ (function () {
|
|
|
38620
38671
|
else {
|
|
38621
38672
|
if (this.parent.renderBaseline && taskbar.baselineStartDate && taskbar.baselineEndDate) {
|
|
38622
38673
|
if (this.isAutoFit()) {
|
|
38623
|
-
taskGraphics.drawRectangle(baselinePen, baselineBrush, startPoint.x + (taskbar.baselineLeft - cumulativeWidth) + 0.5, startPoint.y + adjustHeight_1 + pixelToPoint(taskbar.height + 3), (
|
|
38674
|
+
taskGraphics.drawRectangle(baselinePen, baselineBrush, startPoint.x + (taskbar.baselineLeft - cumulativeWidth) + 0.5, startPoint.y + adjustHeight_1 + pixelToPoint(taskbar.height + 3), (renderBaselineWidth), pixelToPoint(this.baselineHeight));
|
|
38624
38675
|
}
|
|
38625
38676
|
else {
|
|
38626
|
-
taskGraphics.drawRectangle(baselinePen, baselineBrush, startPoint.x + pixelToPoint(taskbar.baselineLeft - cumulativeWidth) + 0.5, startPoint.y + adjustHeight_1 + pixelToPoint(taskbar.height + 3), pixelToPoint(
|
|
38677
|
+
taskGraphics.drawRectangle(baselinePen, baselineBrush, startPoint.x + pixelToPoint(taskbar.baselineLeft - cumulativeWidth) + 0.5, startPoint.y + adjustHeight_1 + pixelToPoint(taskbar.height + 3), pixelToPoint(renderBaselineWidth), pixelToPoint(this.baselineHeight));
|
|
38627
38678
|
}
|
|
38679
|
+
renderedBaseline = true;
|
|
38628
38680
|
}
|
|
38629
38681
|
if (taskbar.isSpliterTask) {
|
|
38630
38682
|
var pervwidth_1 = 0;
|
|
@@ -38781,11 +38833,12 @@ var PdfGanttTaskbarCollection = /** @__PURE__ @class */ (function () {
|
|
|
38781
38833
|
}
|
|
38782
38834
|
if (this.parent.renderBaseline && taskbar.baselineStartDate && taskbar.baselineEndDate) {
|
|
38783
38835
|
if (this.isAutoFit()) {
|
|
38784
|
-
taskGraphics.drawRectangle(baselinePen, baselineBrush, startPoint.x + (taskbar.baselineLeft - cumulativeWidth) + 0.5, startPoint.y + adjustHeight_1 + pixelToPoint(taskbar.height + 3), (
|
|
38836
|
+
taskGraphics.drawRectangle(baselinePen, baselineBrush, startPoint.x + (taskbar.baselineLeft - cumulativeWidth) + 0.5, startPoint.y + adjustHeight_1 + pixelToPoint(taskbar.height + 3), (renderBaselineWidth), pixelToPoint(this.baselineHeight));
|
|
38785
38837
|
}
|
|
38786
38838
|
else {
|
|
38787
|
-
taskGraphics.drawRectangle(baselinePen, baselineBrush, startPoint.x + pixelToPoint(taskbar.baselineLeft - cumulativeWidth) + 0.5, startPoint.y + adjustHeight_1 + pixelToPoint(taskbar.height + 3), pixelToPoint(
|
|
38839
|
+
taskGraphics.drawRectangle(baselinePen, baselineBrush, startPoint.x + pixelToPoint(taskbar.baselineLeft - cumulativeWidth) + 0.5, startPoint.y + adjustHeight_1 + pixelToPoint(taskbar.height + 3), pixelToPoint(renderBaselineWidth), pixelToPoint(this.baselineHeight));
|
|
38788
38840
|
}
|
|
38841
|
+
renderedBaseline = true;
|
|
38789
38842
|
}
|
|
38790
38843
|
if (!this.isScheduledTask && this.unscheduledTaskBy === 'duration') {
|
|
38791
38844
|
var brush1 = void 0;
|
|
@@ -38937,11 +38990,12 @@ var PdfGanttTaskbarCollection = /** @__PURE__ @class */ (function () {
|
|
|
38937
38990
|
}
|
|
38938
38991
|
if (this.parent.renderBaseline && taskbar.baselineStartDate && taskbar.baselineEndDate) {
|
|
38939
38992
|
if (this.isAutoFit()) {
|
|
38940
|
-
taskGraphics.drawRectangle(baselinePen, baselineBrush, startPoint.x + (taskbar.baselineLeft - cumulativeWidth) + 0.5, startPoint.y + adjustHeight_1 + pixelToPoint(taskbar.height + 3), (
|
|
38993
|
+
taskGraphics.drawRectangle(baselinePen, baselineBrush, startPoint.x + (taskbar.baselineLeft - cumulativeWidth) + 0.5, startPoint.y + adjustHeight_1 + pixelToPoint(taskbar.height + 3), (renderBaselineWidth), pixelToPoint(this.baselineHeight));
|
|
38941
38994
|
}
|
|
38942
38995
|
else {
|
|
38943
|
-
taskGraphics.drawRectangle(baselinePen, baselineBrush, startPoint.x + pixelToPoint(taskbar.baselineLeft - cumulativeWidth) + 0.5, startPoint.y + adjustHeight_1 + pixelToPoint(taskbar.height + 3), pixelToPoint(
|
|
38996
|
+
taskGraphics.drawRectangle(baselinePen, baselineBrush, startPoint.x + pixelToPoint(taskbar.baselineLeft - cumulativeWidth) + 0.5, startPoint.y + adjustHeight_1 + pixelToPoint(taskbar.height + 3), pixelToPoint(renderBaselineWidth), pixelToPoint(this.baselineHeight));
|
|
38944
38997
|
}
|
|
38998
|
+
renderedBaseline = true;
|
|
38945
38999
|
}
|
|
38946
39000
|
if (!this.isScheduledTask && this.unscheduledTaskBy === 'duration') {
|
|
38947
39001
|
var brush1 = void 0;
|
|
@@ -39162,6 +39216,15 @@ var PdfGanttTaskbarCollection = /** @__PURE__ @class */ (function () {
|
|
|
39162
39216
|
this.drawMilestone(page, startPoint, detail, cumulativeWidth);
|
|
39163
39217
|
}
|
|
39164
39218
|
}
|
|
39219
|
+
if (this.baselineEndDate >= detail.startDate && !renderedBaseline && detail.startIndex != 1 && this.parent.renderBaseline && taskbar.baselineStartDate && taskbar.baselineEndDate) {
|
|
39220
|
+
var adjustHeight = pixelToPoint((this.parent.rowHeight - this.height) / 4.5);
|
|
39221
|
+
if (this.isAutoFit()) {
|
|
39222
|
+
taskGraphics.drawRectangle(baselinePen, baselineBrush, startPoint.x + (taskbar.baselineLeft - cumulativeWidth) + 0.5, startPoint.y + adjustHeight + pixelToPoint(taskbar.height + 3), (renderBaselineWidth), pixelToPoint(this.baselineHeight));
|
|
39223
|
+
}
|
|
39224
|
+
else {
|
|
39225
|
+
taskGraphics.drawRectangle(baselinePen, baselineBrush, startPoint.x + pixelToPoint(taskbar.baselineLeft - cumulativeWidth) + 0.5, startPoint.y + adjustHeight + pixelToPoint(taskbar.height + 3), pixelToPoint(renderBaselineWidth), pixelToPoint(this.baselineHeight));
|
|
39226
|
+
}
|
|
39227
|
+
}
|
|
39165
39228
|
this.drawRightLabel(page, startPoint, detail, cumulativeWidth);
|
|
39166
39229
|
return isNextPage;
|
|
39167
39230
|
};
|