@syncfusion/ej2-gantt 24.1.44 → 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 +9 -2
- 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 +82 -30
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +84 -32
- 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 +12 -12
- package/src/gantt/actions/dialog-edit.js +16 -1
- package/src/gantt/actions/edit.js +14 -6
- package/src/gantt/base/task-processor.js +22 -15
- package/src/gantt/export/pdf-taskbar.js +32 -10
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 24.1.
|
|
3
|
+
* version : 24.1.45
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-gantt@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-gantt@24.1.
|
|
3
|
+
"_id": "@syncfusion/ej2-gantt@24.1.44",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-CkC7CVd5nbCW3iUuD46runhDjgyav53rqouMi+ryTjYPR0GB73SfjeG24mcF5/yML7v6Gpi7c4gbdeUdXDCvTA==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-gantt",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"/@syncfusion/ej2-react-gantt",
|
|
24
24
|
"/@syncfusion/ej2-vue-gantt"
|
|
25
25
|
],
|
|
26
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-24.1.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-24.1.44.tgz",
|
|
27
|
+
"_shasum": "41fdab976d6bb8c5299a62e2a78ea8adb7f52a78",
|
|
28
28
|
"_spec": "@syncfusion/ej2-gantt@*",
|
|
29
29
|
"_where": "/jenkins/workspace/elease-automation_release_24.1.1/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -36,20 +36,20 @@
|
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@syncfusion/ej2-base": "~24.1.42",
|
|
39
|
-
"@syncfusion/ej2-buttons": "~24.1.
|
|
39
|
+
"@syncfusion/ej2-buttons": "~24.1.45",
|
|
40
40
|
"@syncfusion/ej2-calendars": "~24.1.44",
|
|
41
41
|
"@syncfusion/ej2-data": "~24.1.41",
|
|
42
|
-
"@syncfusion/ej2-dropdowns": "~24.1.
|
|
43
|
-
"@syncfusion/ej2-grids": "~24.1.
|
|
44
|
-
"@syncfusion/ej2-inputs": "~24.1.
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~24.1.45",
|
|
43
|
+
"@syncfusion/ej2-grids": "~24.1.45",
|
|
44
|
+
"@syncfusion/ej2-inputs": "~24.1.45",
|
|
45
45
|
"@syncfusion/ej2-layouts": "~24.1.41",
|
|
46
46
|
"@syncfusion/ej2-lists": "~24.1.41",
|
|
47
47
|
"@syncfusion/ej2-navigations": "~24.1.41",
|
|
48
48
|
"@syncfusion/ej2-notifications": "~24.1.41",
|
|
49
49
|
"@syncfusion/ej2-popups": "~24.1.44",
|
|
50
|
-
"@syncfusion/ej2-richtexteditor": "~24.1.
|
|
51
|
-
"@syncfusion/ej2-svg-base": "~24.1.
|
|
52
|
-
"@syncfusion/ej2-treegrid": "~24.1.
|
|
50
|
+
"@syncfusion/ej2-richtexteditor": "~24.1.45",
|
|
51
|
+
"@syncfusion/ej2-svg-base": "~24.1.45",
|
|
52
|
+
"@syncfusion/ej2-treegrid": "~24.1.45"
|
|
53
53
|
},
|
|
54
54
|
"deprecated": false,
|
|
55
55
|
"description": "Essential JS 2 Gantt Component",
|
|
@@ -74,6 +74,6 @@
|
|
|
74
74
|
"url": "git+https://github.com/syncfusion/ej2-gantt.git"
|
|
75
75
|
},
|
|
76
76
|
"typings": "index.d.ts",
|
|
77
|
-
"version": "24.1.
|
|
77
|
+
"version": "24.1.45",
|
|
78
78
|
"sideEffects": false
|
|
79
79
|
}
|
|
@@ -2186,6 +2186,9 @@ var DialogEdit = /** @class */ (function () {
|
|
|
2186
2186
|
var ganttObj = this.parent;
|
|
2187
2187
|
var resourceSettings = ganttObj.resourceFields;
|
|
2188
2188
|
var ganttData = this.beforeOpenArgs.rowData;
|
|
2189
|
+
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")) {
|
|
2190
|
+
this.parent.setRecordValue('resourceInfo', this.parent.dataOperation.setResourceInfo(this.editedRecord), ganttData.ganttProperties, true);
|
|
2191
|
+
}
|
|
2189
2192
|
var rowResource = ganttData.ganttProperties.resourceInfo;
|
|
2190
2193
|
var inputModel = this.beforeOpenArgs[itemName];
|
|
2191
2194
|
var resourceTreeGridId = ganttObj.element.id + '' + itemName + 'TabContainer';
|
|
@@ -2224,6 +2227,11 @@ var DialogEdit = /** @class */ (function () {
|
|
|
2224
2227
|
this.ganttResources.push(resourceInfo[i]);
|
|
2225
2228
|
}
|
|
2226
2229
|
}
|
|
2230
|
+
else if (!this.isEdit && !isNullOrUndefined(resourceInfo)) {
|
|
2231
|
+
for (var i = 0; i < resourceInfo.length; i++) {
|
|
2232
|
+
this.ganttResources.push(resourceInfo[i]);
|
|
2233
|
+
}
|
|
2234
|
+
}
|
|
2227
2235
|
inputModel.rowSelected = function (args) {
|
|
2228
2236
|
_this.updateResourceCollection(args, resourceTreeGridId);
|
|
2229
2237
|
};
|
|
@@ -2635,7 +2643,14 @@ var DialogEdit = /** @class */ (function () {
|
|
|
2635
2643
|
}
|
|
2636
2644
|
}
|
|
2637
2645
|
else {
|
|
2638
|
-
|
|
2646
|
+
if (fieldName === "Duration") {
|
|
2647
|
+
var numericValue = parseFloat(String(controlObj.value));
|
|
2648
|
+
;
|
|
2649
|
+
tasksData[fieldName] = numericValue;
|
|
2650
|
+
}
|
|
2651
|
+
else {
|
|
2652
|
+
tasksData[fieldName] = controlObj.value;
|
|
2653
|
+
}
|
|
2639
2654
|
if (this.parent.enableHtmlSanitizer && typeof (controlObj.value) === 'string') {
|
|
2640
2655
|
controlObj.value = SanitizeHtmlHelper.sanitize(controlObj.value);
|
|
2641
2656
|
tasksData[fieldName] = controlObj.value;
|
|
@@ -1519,9 +1519,11 @@ var Edit = /** @class */ (function () {
|
|
|
1519
1519
|
var taskID = updateRecord.ganttProperties.taskId;
|
|
1520
1520
|
var resourceID = prevResource[index][this.parent.resourceFields.id];
|
|
1521
1521
|
var record = flatRecords[this.parent.getTaskIds().indexOf('R' + resourceID)];
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1522
|
+
if (!isNullOrUndefined(record)) {
|
|
1523
|
+
for (var j = 0; j < record.childRecords.length; j++) {
|
|
1524
|
+
if (record.childRecords[j].ganttProperties.taskId === taskID) {
|
|
1525
|
+
this.removeChildRecord(record.childRecords[j]);
|
|
1526
|
+
}
|
|
1525
1527
|
}
|
|
1526
1528
|
}
|
|
1527
1529
|
}
|
|
@@ -3075,7 +3077,6 @@ var Edit = /** @class */ (function () {
|
|
|
3075
3077
|
addedRecords: [args.newTaskData],
|
|
3076
3078
|
changedRecords: args.modifiedTaskData
|
|
3077
3079
|
};
|
|
3078
|
-
var prevID_1 = args.data.ganttProperties.taskId.toString();
|
|
3079
3080
|
/* tslint:disable-next-line */
|
|
3080
3081
|
var query = _this.parent.query instanceof Query ? _this.parent.query : new Query();
|
|
3081
3082
|
var adaptor = data_2.adaptor;
|
|
@@ -3083,14 +3084,21 @@ var Edit = /** @class */ (function () {
|
|
|
3083
3084
|
/* tslint:disable-next-line */
|
|
3084
3085
|
var crud = data_2.saveChanges(updatedData_2, _this.parent.taskFields.id, null, query);
|
|
3085
3086
|
crud.then(function (e) {
|
|
3087
|
+
if (e.addedRecords[0][_this.parent.taskFields.id].toString() != args.data['ganttProperties']['taskId']) {
|
|
3088
|
+
args.data['ganttProperties']['taskId'] = e.addedRecords[0][_this.parent.taskFields.id].toString();
|
|
3089
|
+
args.newTaskData[tempTaskID] = e.addedRecords[0][_this.parent.taskFields.id].toString();
|
|
3090
|
+
args.data['ganttProperties']['rowUniqueID'] = e.addedRecords[0][_this.parent.taskFields.id].toString();
|
|
3091
|
+
_this.parent.ids.push(e.addedRecords[0][_this.parent.taskFields.id].toString());
|
|
3092
|
+
}
|
|
3093
|
+
var prevID = args.data.ganttProperties.taskId.toString();
|
|
3086
3094
|
if (_this.parent.taskFields.id && !isNullOrUndefined(e.addedRecords[0][_this.parent.taskFields.id]) &&
|
|
3087
|
-
e.addedRecords[0][_this.parent.taskFields.id].toString() ==
|
|
3095
|
+
e.addedRecords[0][_this.parent.taskFields.id].toString() == prevID) {
|
|
3088
3096
|
_this.parent.setRecordValue('taskId', e.addedRecords[0][_this.parent.taskFields.id], args.data.ganttProperties, true);
|
|
3089
3097
|
_this.parent.setRecordValue('taskData', e.addedRecords[0], args.data);
|
|
3090
3098
|
_this.parent.setRecordValue(_this.parent.taskFields.id, e.addedRecords[0][_this.parent.taskFields.id], args.data);
|
|
3091
3099
|
_this.parent.setRecordValue('rowUniqueID', e.addedRecords[0][_this.parent.taskFields.id].toString(), args.data.ganttProperties, true);
|
|
3092
3100
|
_this.updateClientDataFromServer(e, args);
|
|
3093
|
-
var idsIndex = _this.parent.ids.indexOf(
|
|
3101
|
+
var idsIndex = _this.parent.ids.indexOf(prevID);
|
|
3094
3102
|
if (idsIndex !== -1) {
|
|
3095
3103
|
_this.parent.ids[idsIndex] = e.addedRecords[0][_this.parent.taskFields.id].toString();
|
|
3096
3104
|
}
|
|
@@ -2280,14 +2280,11 @@ var TaskProcessor = /** @class */ (function (_super) {
|
|
|
2280
2280
|
*/
|
|
2281
2281
|
TaskProcessor.prototype.updateWidthLeft = function (data) {
|
|
2282
2282
|
var ganttRecord = data.ganttProperties;
|
|
2283
|
+
var totalSegmentsProgressWidth = 0;
|
|
2283
2284
|
// task endDate may be changed in segment calculation so this must be calculated first.
|
|
2284
2285
|
// task width calculating was based on endDate
|
|
2285
2286
|
if (!isNullOrUndefined(ganttRecord.segments) && ganttRecord.segments.length > 0) {
|
|
2286
2287
|
var segments = ganttRecord.segments;
|
|
2287
|
-
var fixedWidth = true;
|
|
2288
|
-
var totalTaskWidth = this.splitTasksDuration(segments) * ((this.parent.timelineModule.bottomTier === "Hour" || this.parent.timelineModule.bottomTier === "Minutes") ? this.parent.timelineSettings.timelineUnitSize : this.parent.perDayWidth);
|
|
2289
|
-
;
|
|
2290
|
-
var totalProgressWidth = this.parent.dataOperation.getProgressWidth(totalTaskWidth, ganttRecord.progress);
|
|
2291
2288
|
for (var i = 0; i < segments.length; i++) {
|
|
2292
2289
|
var segment = segments[i];
|
|
2293
2290
|
if (i === 0 && !isNullOrUndefined(ganttRecord.startDate) &&
|
|
@@ -2298,22 +2295,27 @@ var TaskProcessor = /** @class */ (function (_super) {
|
|
|
2298
2295
|
this.parent.chartRowsModule.incrementSegments(segments, 0, data);
|
|
2299
2296
|
}
|
|
2300
2297
|
segment.width = this.getSplitTaskWidth(segment.startDate, segment.duration, data);
|
|
2298
|
+
totalSegmentsProgressWidth = totalSegmentsProgressWidth + segment.width;
|
|
2301
2299
|
segment.showProgress = false;
|
|
2302
2300
|
segment.progressWidth = -1;
|
|
2303
2301
|
if (i !== 0) {
|
|
2304
2302
|
var pStartDate = new Date(ganttRecord.startDate.getTime());
|
|
2305
2303
|
segment.left = this.getSplitTaskLeft(segment.startDate, pStartDate);
|
|
2306
2304
|
}
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2305
|
+
}
|
|
2306
|
+
var setProgress = this.parent.dataOperation.getProgressWidth(totalSegmentsProgressWidth, ganttRecord.progress);
|
|
2307
|
+
var isValid = true;
|
|
2308
|
+
for (var i = 0; i < segments.length; i++) {
|
|
2309
|
+
if (isValid) {
|
|
2310
|
+
if (setProgress <= segments[i].width) {
|
|
2311
|
+
segments[i].progressWidth = setProgress;
|
|
2312
|
+
segments[i].showProgress = true;
|
|
2313
|
+
isValid = false;
|
|
2314
|
+
}
|
|
2315
|
+
else {
|
|
2316
|
+
segments[i].progressWidth = segments[i].width;
|
|
2317
|
+
setProgress = setProgress - segments[i].progressWidth;
|
|
2318
|
+
}
|
|
2317
2319
|
}
|
|
2318
2320
|
}
|
|
2319
2321
|
this.parent.setRecordValue('segments', ganttRecord.segments, ganttRecord, true);
|
|
@@ -2321,7 +2323,12 @@ var TaskProcessor = /** @class */ (function (_super) {
|
|
|
2321
2323
|
}
|
|
2322
2324
|
this.parent.setRecordValue('width', this.parent.dataOperation.calculateWidth(data), ganttRecord, true);
|
|
2323
2325
|
this.parent.setRecordValue('left', this.parent.dataOperation.calculateLeft(ganttRecord), ganttRecord, true);
|
|
2324
|
-
|
|
2326
|
+
if (!isNullOrUndefined(ganttRecord.segments) && ganttRecord.segments.length > 0) {
|
|
2327
|
+
this.parent.setRecordValue('progressWidth', this.parent.dataOperation.getProgressWidth(totalSegmentsProgressWidth, ganttRecord.progress), ganttRecord, true);
|
|
2328
|
+
}
|
|
2329
|
+
else {
|
|
2330
|
+
this.parent.setRecordValue('progressWidth', this.parent.dataOperation.getProgressWidth((ganttRecord.isAutoSchedule || !data.hasChildRecords ? ganttRecord.width : ganttRecord.autoWidth), ganttRecord.progress), ganttRecord, true);
|
|
2331
|
+
}
|
|
2325
2332
|
};
|
|
2326
2333
|
/**
|
|
2327
2334
|
* method to update left, width, progress width in record
|
|
@@ -105,13 +105,22 @@ var PdfGanttTaskbarCollection = /** @class */ (function () {
|
|
|
105
105
|
progressFormat.alignment = PdfTextAlignment.Left;
|
|
106
106
|
}
|
|
107
107
|
var pageIndex = -1;
|
|
108
|
+
var renderBaselineWidth = 0;
|
|
109
|
+
if (this.baselineWidth > detail.totalWidth) {
|
|
110
|
+
renderBaselineWidth = detail.totalWidth;
|
|
111
|
+
this.baselineWidth = this.baselineWidth - detail.totalWidth;
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
renderBaselineWidth = this.baselineWidth;
|
|
115
|
+
}
|
|
116
|
+
var baselinePen = new PdfPen(taskbar.baselineBorderColor);
|
|
117
|
+
var baselineBrush = new PdfSolidBrush(taskbar.baselineColor);
|
|
118
|
+
var renderedBaseline = false;
|
|
108
119
|
if (!taskbar.isMilestone) {
|
|
109
120
|
var taskbarPen_1 = new PdfPen(taskbar.taskBorderColor);
|
|
110
121
|
var taskBrush_1 = new PdfSolidBrush(taskbar.taskColor);
|
|
111
|
-
var baselinePen = new PdfPen(taskbar.baselineBorderColor);
|
|
112
122
|
var manualParentBorderPen = new PdfPen(taskbar.manualParentBorder);
|
|
113
123
|
var manualChildBorderPen = new PdfPen(taskbar.manualChildBorder);
|
|
114
|
-
var baselineBrush = new PdfSolidBrush(taskbar.baselineColor);
|
|
115
124
|
var manualTaskbarPen = new PdfPen(taskbar.manuallineColor);
|
|
116
125
|
var manualParentPen = new PdfPen(taskbar.manualParentProgress);
|
|
117
126
|
var manualline = new PdfPen(taskbar.manuallineColor);
|
|
@@ -182,11 +191,12 @@ var PdfGanttTaskbarCollection = /** @class */ (function () {
|
|
|
182
191
|
else {
|
|
183
192
|
if (this.parent.renderBaseline && taskbar.baselineStartDate && taskbar.baselineEndDate) {
|
|
184
193
|
if (this.isAutoFit()) {
|
|
185
|
-
taskGraphics.drawRectangle(baselinePen, baselineBrush, startPoint.x + (taskbar.baselineLeft - cumulativeWidth) + 0.5, startPoint.y + adjustHeight_1 + pixelToPoint(taskbar.height + 3), (
|
|
194
|
+
taskGraphics.drawRectangle(baselinePen, baselineBrush, startPoint.x + (taskbar.baselineLeft - cumulativeWidth) + 0.5, startPoint.y + adjustHeight_1 + pixelToPoint(taskbar.height + 3), (renderBaselineWidth), pixelToPoint(this.baselineHeight));
|
|
186
195
|
}
|
|
187
196
|
else {
|
|
188
|
-
taskGraphics.drawRectangle(baselinePen, baselineBrush, startPoint.x + pixelToPoint(taskbar.baselineLeft - cumulativeWidth) + 0.5, startPoint.y + adjustHeight_1 + pixelToPoint(taskbar.height + 3), pixelToPoint(
|
|
197
|
+
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));
|
|
189
198
|
}
|
|
199
|
+
renderedBaseline = true;
|
|
190
200
|
}
|
|
191
201
|
if (taskbar.isSpliterTask) {
|
|
192
202
|
splitline.dashStyle = PdfDashStyle.Dot;
|
|
@@ -399,11 +409,12 @@ var PdfGanttTaskbarCollection = /** @class */ (function () {
|
|
|
399
409
|
else {
|
|
400
410
|
if (this.parent.renderBaseline && taskbar.baselineStartDate && taskbar.baselineEndDate) {
|
|
401
411
|
if (this.isAutoFit()) {
|
|
402
|
-
taskGraphics.drawRectangle(baselinePen, baselineBrush, startPoint.x + (taskbar.baselineLeft - cumulativeWidth) + 0.5, startPoint.y + adjustHeight_1 + pixelToPoint(taskbar.height + 3), (
|
|
412
|
+
taskGraphics.drawRectangle(baselinePen, baselineBrush, startPoint.x + (taskbar.baselineLeft - cumulativeWidth) + 0.5, startPoint.y + adjustHeight_1 + pixelToPoint(taskbar.height + 3), (renderBaselineWidth), pixelToPoint(this.baselineHeight));
|
|
403
413
|
}
|
|
404
414
|
else {
|
|
405
|
-
taskGraphics.drawRectangle(baselinePen, baselineBrush, startPoint.x + pixelToPoint(taskbar.baselineLeft - cumulativeWidth) + 0.5, startPoint.y + adjustHeight_1 + pixelToPoint(taskbar.height + 3), pixelToPoint(
|
|
415
|
+
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));
|
|
406
416
|
}
|
|
417
|
+
renderedBaseline = true;
|
|
407
418
|
}
|
|
408
419
|
if (taskbar.isSpliterTask) {
|
|
409
420
|
var pervwidth_1 = 0;
|
|
@@ -560,11 +571,12 @@ var PdfGanttTaskbarCollection = /** @class */ (function () {
|
|
|
560
571
|
}
|
|
561
572
|
if (this.parent.renderBaseline && taskbar.baselineStartDate && taskbar.baselineEndDate) {
|
|
562
573
|
if (this.isAutoFit()) {
|
|
563
|
-
taskGraphics.drawRectangle(baselinePen, baselineBrush, startPoint.x + (taskbar.baselineLeft - cumulativeWidth) + 0.5, startPoint.y + adjustHeight_1 + pixelToPoint(taskbar.height + 3), (
|
|
574
|
+
taskGraphics.drawRectangle(baselinePen, baselineBrush, startPoint.x + (taskbar.baselineLeft - cumulativeWidth) + 0.5, startPoint.y + adjustHeight_1 + pixelToPoint(taskbar.height + 3), (renderBaselineWidth), pixelToPoint(this.baselineHeight));
|
|
564
575
|
}
|
|
565
576
|
else {
|
|
566
|
-
taskGraphics.drawRectangle(baselinePen, baselineBrush, startPoint.x + pixelToPoint(taskbar.baselineLeft - cumulativeWidth) + 0.5, startPoint.y + adjustHeight_1 + pixelToPoint(taskbar.height + 3), pixelToPoint(
|
|
577
|
+
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));
|
|
567
578
|
}
|
|
579
|
+
renderedBaseline = true;
|
|
568
580
|
}
|
|
569
581
|
if (!this.isScheduledTask && this.unscheduledTaskBy === 'duration') {
|
|
570
582
|
var brush1 = void 0;
|
|
@@ -716,11 +728,12 @@ var PdfGanttTaskbarCollection = /** @class */ (function () {
|
|
|
716
728
|
}
|
|
717
729
|
if (this.parent.renderBaseline && taskbar.baselineStartDate && taskbar.baselineEndDate) {
|
|
718
730
|
if (this.isAutoFit()) {
|
|
719
|
-
taskGraphics.drawRectangle(baselinePen, baselineBrush, startPoint.x + (taskbar.baselineLeft - cumulativeWidth) + 0.5, startPoint.y + adjustHeight_1 + pixelToPoint(taskbar.height + 3), (
|
|
731
|
+
taskGraphics.drawRectangle(baselinePen, baselineBrush, startPoint.x + (taskbar.baselineLeft - cumulativeWidth) + 0.5, startPoint.y + adjustHeight_1 + pixelToPoint(taskbar.height + 3), (renderBaselineWidth), pixelToPoint(this.baselineHeight));
|
|
720
732
|
}
|
|
721
733
|
else {
|
|
722
|
-
taskGraphics.drawRectangle(baselinePen, baselineBrush, startPoint.x + pixelToPoint(taskbar.baselineLeft - cumulativeWidth) + 0.5, startPoint.y + adjustHeight_1 + pixelToPoint(taskbar.height + 3), pixelToPoint(
|
|
734
|
+
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));
|
|
723
735
|
}
|
|
736
|
+
renderedBaseline = true;
|
|
724
737
|
}
|
|
725
738
|
if (!this.isScheduledTask && this.unscheduledTaskBy === 'duration') {
|
|
726
739
|
var brush1 = void 0;
|
|
@@ -941,6 +954,15 @@ var PdfGanttTaskbarCollection = /** @class */ (function () {
|
|
|
941
954
|
this.drawMilestone(page, startPoint, detail, cumulativeWidth);
|
|
942
955
|
}
|
|
943
956
|
}
|
|
957
|
+
if (this.baselineEndDate >= detail.startDate && !renderedBaseline && detail.startIndex != 1 && this.parent.renderBaseline && taskbar.baselineStartDate && taskbar.baselineEndDate) {
|
|
958
|
+
var adjustHeight = pixelToPoint((this.parent.rowHeight - this.height) / 4.5);
|
|
959
|
+
if (this.isAutoFit()) {
|
|
960
|
+
taskGraphics.drawRectangle(baselinePen, baselineBrush, startPoint.x + (taskbar.baselineLeft - cumulativeWidth) + 0.5, startPoint.y + adjustHeight + pixelToPoint(taskbar.height + 3), (renderBaselineWidth), pixelToPoint(this.baselineHeight));
|
|
961
|
+
}
|
|
962
|
+
else {
|
|
963
|
+
taskGraphics.drawRectangle(baselinePen, baselineBrush, startPoint.x + pixelToPoint(taskbar.baselineLeft - cumulativeWidth) + 0.5, startPoint.y + adjustHeight + pixelToPoint(taskbar.height + 3), pixelToPoint(renderBaselineWidth), pixelToPoint(this.baselineHeight));
|
|
964
|
+
}
|
|
965
|
+
}
|
|
944
966
|
this.drawRightLabel(page, startPoint, detail, cumulativeWidth);
|
|
945
967
|
return isNextPage;
|
|
946
968
|
};
|