@syncfusion/ej2-gantt 22.2.5 → 22.2.8

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.
Files changed (64) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/ej2-gantt.min.js +2 -2
  3. package/dist/ej2-gantt.umd.min.js +2 -2
  4. package/dist/ej2-gantt.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-gantt.es2015.js +299 -214
  6. package/dist/es6/ej2-gantt.es2015.js.map +1 -1
  7. package/dist/es6/ej2-gantt.es5.js +299 -214
  8. package/dist/es6/ej2-gantt.es5.js.map +1 -1
  9. package/dist/global/ej2-gantt.min.js +2 -2
  10. package/dist/global/ej2-gantt.min.js.map +1 -1
  11. package/dist/global/index.d.ts +1 -1
  12. package/package.json +15 -15
  13. package/src/gantt/actions/context-menu.js +7 -1
  14. package/src/gantt/actions/critical-path.js +14 -3
  15. package/src/gantt/actions/edit.js +5 -2
  16. package/src/gantt/actions/taskbar-edit.js +29 -2
  17. package/src/gantt/base/css-constants.d.ts +1 -0
  18. package/src/gantt/base/css-constants.js +1 -0
  19. package/src/gantt/base/gantt-chart.js +3 -0
  20. package/src/gantt/base/gantt.js +7 -0
  21. package/src/gantt/base/interface.d.ts +0 -2
  22. package/src/gantt/base/task-processor.js +1 -0
  23. package/src/gantt/base/tree-grid.js +20 -4
  24. package/src/gantt/renderer/chart-rows.js +25 -6
  25. package/src/gantt/renderer/connector-line.d.ts +0 -2
  26. package/src/gantt/renderer/connector-line.js +130 -153
  27. package/src/gantt/renderer/edit-tooltip.js +7 -7
  28. package/src/gantt/renderer/timeline.js +1 -2
  29. package/src/gantt/renderer/tooltip.js +28 -29
  30. package/styles/bootstrap-dark.css +1 -1
  31. package/styles/bootstrap.css +1 -1
  32. package/styles/bootstrap4.css +1 -1
  33. package/styles/bootstrap5-dark.css +1 -1
  34. package/styles/bootstrap5.css +1 -1
  35. package/styles/fabric-dark.css +1 -1
  36. package/styles/fabric.css +1 -1
  37. package/styles/fluent-dark.css +1 -1
  38. package/styles/fluent.css +1 -1
  39. package/styles/gantt/_layout.scss +1 -1
  40. package/styles/gantt/bootstrap-dark.css +1 -1
  41. package/styles/gantt/bootstrap.css +1 -1
  42. package/styles/gantt/bootstrap4.css +1 -1
  43. package/styles/gantt/bootstrap5-dark.css +1 -1
  44. package/styles/gantt/bootstrap5.css +1 -1
  45. package/styles/gantt/fabric-dark.css +1 -1
  46. package/styles/gantt/fabric.css +1 -1
  47. package/styles/gantt/fluent-dark.css +1 -1
  48. package/styles/gantt/fluent.css +1 -1
  49. package/styles/gantt/highcontrast-light.css +1 -1
  50. package/styles/gantt/highcontrast.css +1 -1
  51. package/styles/gantt/material-dark.css +1 -1
  52. package/styles/gantt/material.css +1 -1
  53. package/styles/gantt/material3-dark.css +1 -1
  54. package/styles/gantt/material3.css +1 -1
  55. package/styles/gantt/tailwind-dark.css +1 -1
  56. package/styles/gantt/tailwind.css +1 -1
  57. package/styles/highcontrast-light.css +1 -1
  58. package/styles/highcontrast.css +1 -1
  59. package/styles/material-dark.css +1 -1
  60. package/styles/material.css +1 -1
  61. package/styles/material3-dark.css +1 -1
  62. package/styles/material3.css +1 -1
  63. package/styles/tailwind-dark.css +1 -1
  64. package/styles/tailwind.css +1 -1
@@ -3998,6 +3998,7 @@ var TaskProcessor = /** @__PURE__ @class */ (function (_super) {
3998
3998
  this.parent.setRecordValue('progress', Math.floor(parentProgress), parentProp, true);
3999
3999
  this.parent.setRecordValue('totalProgress', totalProgress, parentProp, true);
4000
4000
  this.parent.setRecordValue('totalDuration', totalDuration, parentProp, true);
4001
+ this.parent.setRecordValue('autoDuration', parentProp.duration, parentProp, true);
4001
4002
  if (!parentProp.isAutoSchedule) {
4002
4003
  this.parent.setRecordValue('autoDuration', this.calculateAutoDuration(parentProp), parentProp, true);
4003
4004
  this.updateAutoWidthLeft(parentData);
@@ -4079,6 +4080,7 @@ var chartRowCell = 'e-chart-row-cell';
4079
4080
  var chartRow = 'e-chart-row';
4080
4081
  var rowExpand = 'e-row-expand';
4081
4082
  var rowCollapse = 'e-row-collapse';
4083
+ var collapseParent = 'e-collapse-parent';
4082
4084
  var taskBarLeftResizer = 'e-taskbar-left-resizer';
4083
4085
  var taskBarRightResizer = 'e-taskbar-right-resizer';
4084
4086
  var childProgressResizer = 'e-child-progress-resizer';
@@ -4554,6 +4556,9 @@ var GanttChart = /** @__PURE__ @class */ (function () {
4554
4556
  }
4555
4557
  this.updateWidthAndHeight();
4556
4558
  this.parent.notify('selectRowByIndex', {});
4559
+ if (this.parent.timelineModule.isZoomToFit) {
4560
+ this.parent.timelineModule.processZoomToFit();
4561
+ }
4557
4562
  };
4558
4563
  /**
4559
4564
  * @param {IGanttData[]} records .
@@ -6172,8 +6177,7 @@ var Timeline = /** @__PURE__ @class */ (function () {
6172
6177
  this.parent.showSpinner();
6173
6178
  }
6174
6179
  this.changeTimelineSettings(newTimeline);
6175
- this.isZoomToFit = false;
6176
- this.parent.isTimelineRoundOff = this.isZoomToFit ? false : isNullOrUndefined(this.parent.projectStartDate) ? true : false;
6180
+ this.parent.isTimelineRoundOff = isNullOrUndefined(this.parent.projectStartDate) ? true : false;
6177
6181
  };
6178
6182
  Timeline.prototype.bottomTierCellWidthCalc = function (mode, zoomLevel, date) {
6179
6183
  var convertedMilliSeconds;
@@ -8076,8 +8080,16 @@ var GanttTreeGrid = /** @__PURE__ @class */ (function () {
8076
8080
  this.parent.getDateFormat().toLowerCase().indexOf('hh') !== -1 ? 'datetimepickeredit' : 'datepickeredit';
8077
8081
  column.format = column.format ? column.format : { type: 'date', format: this.parent.getDateFormat() };
8078
8082
  column.width = column.width ? column.width : 150;
8079
- if (!column.edit || (column.edit && !column.edit.create)) {
8080
- column.edit = { params: { renderDayCell: this.parent.renderWorkingDayCell.bind(this.parent) } };
8083
+ if (column.edit && column.edit.params) {
8084
+ column.edit.params['renderDayCell'] = this.parent.renderWorkingDayCell.bind(this.parent);
8085
+ }
8086
+ else {
8087
+ if (column.edit) {
8088
+ column.edit.params = { renderDayCell: this.parent.renderWorkingDayCell.bind(this.parent) };
8089
+ }
8090
+ else {
8091
+ column.edit = { params: { renderDayCell: this.parent.renderWorkingDayCell.bind(this.parent) } };
8092
+ }
8081
8093
  }
8082
8094
  }
8083
8095
  else if (taskSettings.endDate === column.field) {
@@ -8091,8 +8103,16 @@ var GanttTreeGrid = /** @__PURE__ @class */ (function () {
8091
8103
  column.editType = column.editType ? column.editType :
8092
8104
  this.parent.getDateFormat().toLowerCase().indexOf('hh') !== -1 ? 'datetimepickeredit' : 'datepickeredit';
8093
8105
  column.width = column.width ? column.width : 150;
8094
- if (!column.edit || (column.edit && !column.edit.create)) {
8095
- column.edit = { params: { renderDayCell: this.parent.renderWorkingDayCell.bind(this.parent) } };
8106
+ if (column.edit && column.edit.params) {
8107
+ column.edit.params['renderDayCell'] = this.parent.renderWorkingDayCell.bind(this.parent);
8108
+ }
8109
+ else {
8110
+ if (column.edit) {
8111
+ column.edit.params = { renderDayCell: this.parent.renderWorkingDayCell.bind(this.parent) };
8112
+ }
8113
+ else {
8114
+ column.edit = { params: { renderDayCell: this.parent.renderWorkingDayCell.bind(this.parent) } };
8115
+ }
8096
8116
  }
8097
8117
  }
8098
8118
  else if (taskSettings.duration === column.field) {
@@ -9470,7 +9490,7 @@ var ChartRows = /** @__PURE__ @class */ (function (_super) {
9470
9490
  childTaskbarNode = this.createDivElement(template);
9471
9491
  }
9472
9492
  }
9473
- if (this.parent.enableRtl && childTaskbarNode[0] && childTaskbarNode[0].querySelector('.e-task-label')) {
9493
+ if (this.parent.enableRtl && !isNullOrUndefined(childTaskbarNode) && childTaskbarNode[0] && childTaskbarNode[0].querySelector('.e-task-label')) {
9474
9494
  childTaskbarNode[0].querySelector('.e-task-label').style.marginLeft = '15px';
9475
9495
  childTaskbarNode[0].querySelector('.e-task-label').style.marginRight = '8px';
9476
9496
  if (childTaskbarNode[0].querySelector('.e-gantt-child-progressbar')) {
@@ -9852,8 +9872,8 @@ var ChartRows = /** @__PURE__ @class */ (function (_super) {
9852
9872
  milestoneNode = this.milestoneTemplateFunction(extend({ index: i }, data), this.parent, 'MilestoneTemplate', this.getTemplateID('MilestoneTemplate'), false, undefined, rootElement[0], this.parent.treeGrid['root']);
9853
9873
  }
9854
9874
  else {
9855
- var template = '<div class="' + traceMilestone + '" style="width:' + ((this.parent.renderBaseline ? this.taskBarHeight - 3 : this.taskBarHeight - 7)) + 'px;height:' +
9856
- ((this.parent.renderBaseline ? this.taskBarHeight - 3 : this.taskBarHeight - 7)) + 'px;position:absolute;transform: rotate(45deg);top:' + (this.parent.rowHeight > 40 ? 0 : 2) + 'px;left:' + (this.parent.renderBaseline ? 2 : 1) + 'px;"> </div>';
9875
+ var template = '<div class="' + traceMilestone + '" style="width:' + ((this.parent.renderBaseline ? this.taskBarHeight : this.taskBarHeight - 6)) + 'px;height:' +
9876
+ ((this.parent.renderBaseline ? this.taskBarHeight : this.taskBarHeight - 6)) + 'px;position:absolute;transform: rotate(45deg);top:' + (this.parent.rowHeight > 40 ? 0 : 1) + 'px;left:' + 1 + 'px;"> </div>';
9857
9877
  milestoneNode = this.createDivElement(template);
9858
9878
  }
9859
9879
  return milestoneNode;
@@ -9881,9 +9901,9 @@ var ChartRows = /** @__PURE__ @class */ (function (_super) {
9881
9901
  ChartRows.prototype.getMilestoneBaselineNode = function () {
9882
9902
  var data = this.templateData;
9883
9903
  var baselineMilestoneHeight = this.parent.renderBaseline ? 5 : 2;
9884
- var template = '<div class="' + baselineMilestoneContainer + '" style="width:' + ((this.parent.renderBaseline ? this.taskBarHeight - 5 : this.taskBarHeight - 10) + 2) + 'px;height:' +
9885
- ((this.parent.renderBaseline ? this.taskBarHeight - 5 : this.taskBarHeight - 10) + 2) + 'px;position:absolute;transform:rotate(45deg);' + (this.parent.enableRtl ? 'right:' : 'left:') + (this.parent.enableRtl ? (data.ganttProperties.left -
9886
- (this.milestoneHeight / 2) + 3) : (data.ganttProperties.baselineLeft - (this.milestoneHeight / 2) + 2)) + 'px;' + (this.baselineColor ? 'background-color: ' + this.baselineColor + ';' : '') + 'margin-top:' + ((-Math.floor(this.parent.rowHeight - this.milestoneMarginTop) + baselineMilestoneHeight) + 3) + 'px"> </div>';
9904
+ var template = '<div class="' + baselineMilestoneContainer + '" style="width:' + ((this.parent.renderBaseline ? this.taskBarHeight : this.taskBarHeight - 10)) + 'px;height:' +
9905
+ ((this.parent.renderBaseline ? this.taskBarHeight : this.taskBarHeight - 10)) + 'px;position:absolute;transform:rotate(45deg);' + (this.parent.enableRtl ? 'right:' : 'left:') + (this.parent.enableRtl ? (data.ganttProperties.left -
9906
+ (this.milestoneHeight / 2) + 3) : (data.ganttProperties.left - (this.milestoneHeight / 2) + 1)) + 'px;' + (this.baselineColor ? 'background-color: ' + this.baselineColor + ';' : '') + 'margin-top:' + ((-Math.floor(this.parent.rowHeight - this.milestoneMarginTop) + baselineMilestoneHeight) + 2) + 'px"> </div>';
9887
9907
  return this.createDivElement(template);
9888
9908
  };
9889
9909
  /**
@@ -10569,6 +10589,12 @@ var ChartRows = /** @__PURE__ @class */ (function (_super) {
10569
10589
  (_a = this.ganttChartTableBody).replaceChildren.apply(_a, dupChartBody.childNodes);
10570
10590
  this.parent.initialChartRowElements = this.parent.ganttChartModule.getChartRows();
10571
10591
  }
10592
+ if (this.parent.enableCriticalPath && this.parent.criticalPathModule) {
10593
+ var criticalModule = this.parent.criticalPathModule;
10594
+ if (criticalModule.criticalPathCollection) {
10595
+ this.parent.criticalPathModule.criticalConnectorLine(criticalModule.criticalPathCollection, criticalModule.detailPredecessorCollection, true, criticalModule.predecessorCollectionTaskIds);
10596
+ }
10597
+ }
10572
10598
  this.parent.renderTemplates();
10573
10599
  this.triggerQueryTaskbarInfo();
10574
10600
  this.parent.modifiedRecords = [];
@@ -10583,6 +10609,7 @@ var ChartRows = /** @__PURE__ @class */ (function (_super) {
10583
10609
  }
10584
10610
  }
10585
10611
  }
10612
+ this.parent.isGanttChartRendered = true;
10586
10613
  this.parent.renderTemplates();
10587
10614
  };
10588
10615
  /**
@@ -10905,6 +10932,18 @@ var ChartRows = /** @__PURE__ @class */ (function (_super) {
10905
10932
  }
10906
10933
  }
10907
10934
  else if (taskbarElement) {
10935
+ if (taskbarElement && this.parent.enableVirtualization && !args.data.expanded) {
10936
+ var childElement = trElement.querySelector('.' + collapseParent);
10937
+ if (childElement) {
10938
+ for (var i = 0; i < childElement.childNodes.length; i++) {
10939
+ var taskbar = childElement.childNodes[i];
10940
+ var mainTaskbar = taskbar.querySelector('.' + traceChildTaskBar);
10941
+ if (mainTaskbar) {
10942
+ mainTaskbar.style.backgroundColor = args.taskbarBgColor;
10943
+ }
10944
+ }
10945
+ }
10946
+ }
10908
10947
  if (taskbarElement.querySelector(classCollections[0]) &&
10909
10948
  getComputedStyle(taskbarElement.querySelector(classCollections[0])).backgroundColor !== args.taskbarBgColor) {
10910
10949
  taskbarElement.querySelector(classCollections[0]).style.backgroundColor = args.taskbarBgColor;
@@ -11176,10 +11215,10 @@ var ChartRows = /** @__PURE__ @class */ (function (_super) {
11176
11215
  this.templateData = record;
11177
11216
  var parentTrNode = this.getTableTrNode();
11178
11217
  var leftLabelNode = this.leftLabelContainer();
11179
- var collapseParent = createElement('div', {
11218
+ var collapseParent$$1 = createElement('div', {
11180
11219
  className: 'e-collapse-parent'
11181
11220
  });
11182
- parentTrNode[0].childNodes[0].childNodes[0].appendChild(collapseParent);
11221
+ parentTrNode[0].childNodes[0].childNodes[0].appendChild(collapseParent$$1);
11183
11222
  var tasks = this.parent.dataOperation.setSortedChildTasks(record);
11184
11223
  this.parent.dataOperation.updateOverlappingIndex(tasks);
11185
11224
  var tRow;
@@ -12253,8 +12292,6 @@ var ConnectorLine = /** @__PURE__ @class */ (function () {
12253
12292
  connectorObj.connectorLineId = 'parent' + parentId + 'child' + childId;
12254
12293
  connectorObj.milestoneParent = parentGanttRecord.isMilestone ? true : false;
12255
12294
  connectorObj.milestoneChild = childGanttRecord.isMilestone ? true : false;
12256
- connectorObj.isManualParent = (!(this.parent.flatData[parentIndex].ganttProperties.isAutoSchedule) && this.parent.flatData[parentIndex].hasChildRecords);
12257
- connectorObj.isManualChild = (!(this.parent.flatData[childIndex].ganttProperties.isAutoSchedule) && this.parent.flatData[childIndex].hasChildRecords);
12258
12295
  connectorObj.parentEndPoint = connectorObj.parentLeft + connectorObj.parentWidth;
12259
12296
  connectorObj.childEndPoint = connectorObj.childLeft + connectorObj.childWidth;
12260
12297
  if (isNullOrUndefined(isScheduledTask(parentGanttRecord)) || isNullOrUndefined(isScheduledTask(childGanttRecord))) {
@@ -12558,6 +12595,8 @@ var ConnectorLine = /** @__PURE__ @class */ (function () {
12558
12595
  isMilestoneValue = (data.milestoneParent && data.milestoneChild) ? 0 : data.milestoneParent ? -5 : data.milestoneChild ? 5 : 0;
12559
12596
  }
12560
12597
  var heightValue = isVirtual ? connectorLine$$1.height : (height + isMilestoneValue);
12598
+ var borderTopWidth = 0;
12599
+ var addTop = 0;
12561
12600
  var parentOverlapTopValue = 0;
12562
12601
  var childOverlapTopValue = 0;
12563
12602
  var count = 0;
@@ -12594,30 +12633,56 @@ var ConnectorLine = /** @__PURE__ @class */ (function () {
12594
12633
  }
12595
12634
  if (isValid) {
12596
12635
  if (((fromRecordIsParent && !fromRecordIsManual) && (toRecordIsParent && !toRecordIsManual))) {
12597
-
12636
+ addTop = -11;
12598
12637
  }
12599
12638
  else if (!((fromRecordIsParent && !fromRecordIsManual) && (toRecordIsParent && !toRecordIsManual))) {
12600
12639
  if (data.childIndex > data.parentIndex) {
12601
-
12640
+ if (!fromRecordIsParent && toRecordIsParent) {
12641
+ borderTopWidth = -11;
12642
+ }
12643
+ else {
12644
+ borderTopWidth = 11;
12645
+ addTop = -11;
12646
+ }
12602
12647
  }
12603
12648
  else {
12604
-
12649
+ if ((fromRecordIsParent && !toRecordIsParent)) {
12650
+ borderTopWidth = -11;
12651
+ }
12652
+ else {
12653
+ borderTopWidth = 11;
12654
+ addTop = -11;
12655
+ }
12605
12656
  }
12606
12657
  }
12607
12658
  if (this.parent.currentViewData[data.parentIndex].ganttProperties.isMilestone) {
12608
12659
  if (data.parentIndex > data.childIndex) {
12609
-
12660
+ addTop = -11;
12661
+ borderTopWidth = 12;
12610
12662
  }
12611
12663
  else if (data.type === 'SS' || data.type === 'FF') {
12612
-
12664
+ addTop = -5;
12613
12665
  }
12614
12666
  }
12615
12667
  else if (this.parent.currentViewData[data.childIndex].ganttProperties.isMilestone) {
12616
12668
  if (data.parentIndex > data.childIndex) {
12617
-
12669
+ addTop = 5;
12670
+ borderTopWidth = -10;
12618
12671
  }
12619
- else if (data.type === 'SS' || data.type === 'FF') {
12620
-
12672
+ else if (data.parentIndex < data.childIndex) {
12673
+ if (data.type === 'SS' || data.type === 'FF') {
12674
+ addTop = -10;
12675
+ }
12676
+ }
12677
+ }
12678
+ else {
12679
+ if (data.parentIndex < data.childIndex && fromRecordIsManual && !toRecordIsManual) {
12680
+ addTop = 0;
12681
+ borderTopWidth = -11;
12682
+ }
12683
+ else if (data.childIndex < data.parentIndex && !fromRecordIsManual && toRecordIsManual) {
12684
+ addTop = 0;
12685
+ borderTopWidth = -11;
12621
12686
  }
12622
12687
  }
12623
12688
  }
@@ -12650,127 +12715,110 @@ var ConnectorLine = /** @__PURE__ @class */ (function () {
12650
12715
  if (this.getParentPosition(data) === 'FSType1') {
12651
12716
  this.taskLineValue = data.milestoneChild ? 1 : 0;
12652
12717
  this.x1 = data.parentEndPoint + (data.milestoneParent ? -1 : (data.milestoneChild ? -1 : 0));
12653
- this.x2 = data.milestoneParent ? ((((data.childLeft - (data.parentEndPoint + 10)) + 1) - 10) + 1) : (((data.childLeft - (data.parentEndPoint + 10))) - 10);
12654
- this.y1 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.parentIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneParent)) + ((data.isManualParent && data.isManualChild) ? -10 : 0);
12655
- this.y2 = heightValue + this.taskLineValue;
12656
- this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
12657
- this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
12658
- this.connectorLinePath = "M " + this.x1 + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + (this.x1 + this.x2) + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + (this.x1 + this.x2) + " " + (this.y1 + this.y2) +
12659
- " L " + (this.x1 + this.x2 + 11) + " " + (this.y1 + this.y2);
12660
- this.arrowPath = "M " + (this.x1 + this.x2 + 18) + " " + (this.y1 + this.y2 + this.manualChild) +
12661
- " L " + (this.x1 + this.x2 + 11) + " " + (this.y1 + this.y2 - (4 + this.lineStroke) + this.manualChild) +
12662
- " L " + (this.x1 + this.x2 + 11) + " " + (this.y1 + this.y2 + 4 + this.lineStroke + this.manualChild) + " Z";
12718
+ this.x2 = data.milestoneParent ? ((((data.childLeft - (data.parentLeft + data.parentWidth + 10)) + this.lineStroke) - 10) + 1) : (((data.childLeft - (data.parentLeft + data.parentWidth + 10)) + this.lineStroke) - 10);
12719
+ this.y1 = (this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.parentIndex * data.rowHeight)) + addTop + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue));
12720
+ this.y2 = heightValue + this.taskLineValue + borderTopWidth - this.lineStroke;
12721
+ this.connectorLinePath = "M " + this.x1 + " " + (this.y1) + " L " + (this.x1 + this.x2) + " " + (this.y1) + " L " + (this.x1 + this.x2) + " " + (this.y1 + this.y2) +
12722
+ " L " + (this.x1 + this.x2 + 12) + " " + (this.y1 + this.y2);
12723
+ this.arrowPath = "M " + (this.x1 + this.x2 + 20) + " " + (this.y1 + this.y2) +
12724
+ " L " + (this.x1 + this.x2 + 12) + " " + (this.y1 + this.y2 - (4 + this.lineStroke)) +
12725
+ " L " + (this.x1 + this.x2 + 12) + " " + (this.y1 + this.y2 + 4) + " Z";
12663
12726
  }
12664
12727
  if (this.getParentPosition(data) === 'FSType2') {
12665
- this.taskLineValue = data.milestoneChild ? 1 : 0;
12666
- this.x1 = data.parentLeft + (data.milestoneChild ? -1 : 0);
12667
- this.x2 = data.parentWidth + (data.milestoneParent ? 1 : 0);
12728
+ this.x1 = data.parentLeft;
12729
+ this.x2 = data.parentWidth + (data.milestoneParent ? -1 : 0);
12668
12730
  this.x3 = this.x2 + (data.milestoneParent ? 11 : 10);
12669
12731
  this.x4 = data.parentWidth - ((data.parentEndPoint - data.childLeft) + 20);
12670
- this.y1 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.parentIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneParent)) + ((data.isManualParent && data.isManualChild) ? -10 : 0);
12671
- this.y2 = heightValue - this.getconnectorLineGap(data) + this.taskLineValue;
12732
+ this.y1 = (this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.parentIndex * data.rowHeight)) + addTop + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue));
12733
+ this.y2 = heightValue + borderTopWidth - this.getconnectorLineGap(data) - this.lineStroke;
12672
12734
  this.y3 = this.getconnectorLineGap(data);
12673
- this.y4 = this.y1 + this.y2 - ((this.y1 + this.y2) % data.rowHeight);
12674
- this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
12675
- this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
12676
- this.connectorLinePath = "M " + (this.x1 + this.x2) + " " + (this.y1 + this.manualParent + this.manualChild) + " " + " L " + (this.x1 + this.x3) + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + (this.x1 + this.x3) + " " + this.y4 +
12677
- " L " + (this.x1 + this.x4) + " " + this.y4 + " L " + (this.x1 + this.x4) + " " + (this.y1 + this.y2 + this.y3) + " L " + (this.x1 + this.x4 + 11) + " " + (this.y1 + this.y2 + this.y3);
12678
- this.arrowPath = "M " + (this.x1 + this.x4 + 18) + " " + (this.y1 + this.y2 + this.y3 + this.manualChild) +
12679
- " L " + (this.x1 + this.x4 + 11) + " " + (this.y1 + this.y2 + this.y3 - (4 + this.lineStroke) + this.manualChild) +
12680
- " L " + (this.x1 + this.x4 + 11) + " " + (this.y1 + this.y2 + this.y3 + 4 + this.lineStroke + this.manualChild) + " Z";
12735
+ this.y4 = (!this.parent.allowTaskbarOverlap ? childOverlapTopValue : (this.y1 + this.y2 - ((this.y1 + this.y2) % data.rowHeight)));
12736
+ this.connectorLinePath = "M " + (this.x1 + this.x2) + " " + (this.y1) + " " + " L " + (this.x1 + this.x3) + " " + (this.y1) + " L " + (this.x1 + this.x3) + " " + this.y4 +
12737
+ " L " + (this.x1 + this.x4) + " " + this.y4 + " L " + (this.x1 + this.x4) + " " + (this.y1 + this.y2 + this.y3) + " L " + (this.x1 + this.x4 + 12) + " " + (this.y1 + this.y2 + this.y3);
12738
+ this.arrowPath = "M " + (this.x1 + this.x4 + 20) + " " + (this.y1 + this.y2 + this.y3) +
12739
+ " L " + (this.x1 + this.x4 + 12) + " " + (this.y1 + this.y2 + this.y3 - (4 + this.lineStroke)) +
12740
+ " L " + (this.x1 + this.x4 + 12) + " " + (this.y1 + this.y2 + this.y3 + 4 + this.lineStroke) + " Z";
12681
12741
  }
12682
12742
  if (this.getParentPosition(data) === 'FSType3') {
12683
12743
  this.taskLineValue = data.milestoneChild ? 1 : 0;
12684
- this.point1 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.childIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneChild));
12744
+ this.point1 = (this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? childOverlapTopValue : (data.childIndex * data.rowHeight)) + addTop + this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1) - isMilestoneValue));
12685
12745
  this.x1 = (data.childLeft + (data.milestoneChild ? -1 : 0) + (data.milestoneParent ? 1 : 0)) - 20;
12686
12746
  this.x2 = (data.parentEndPoint - data.childLeft) + 30;
12687
- this.y1 = this.point1 + ((data.isManualParent && data.isManualChild) ? -10 : 0);
12688
- this.y2 = this.point1 + heightValue - this.getconnectorLineGap(data) + this.taskLineValue + (this.parent.renderBaseline ? (data.milestoneChild ? -10 : 0) : 0);
12689
- this.y3 = this.getconnectorLineGap(data) + (this.parent.renderBaseline ? (data.milestoneParent ? 10 : 0) : 0);
12747
+ this.y1 = this.point1 + (this.parent.renderBaseline ? (data.milestoneChild && !(data.milestoneParent) ? 11 : data.milestoneParent && !(data.milestoneChild) ? -12 : 0) : 0);
12748
+ this.y2 = this.point1 + heightValue + borderTopWidth - this.getconnectorLineGap(data) - this.lineStroke + this.taskLineValue;
12749
+ this.y3 = this.getconnectorLineGap(data);
12690
12750
  this.y4 = this.y2 - (this.y2 % data.rowHeight);
12691
- this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
12692
- this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
12693
- this.connectorLinePath = "M " + (this.x1 + 12) + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + this.x1 + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + this.x1 + " " + this.y4 +
12751
+ this.connectorLinePath = "M " + (this.x1 + 12) + " " + (this.y1) + " L " + this.x1 + " " + (this.y1) + " L " + this.x1 + " " + this.y4 +
12694
12752
  " L " + (this.x1 + this.x2) + " " + this.y4 + " L " + (this.x1 + this.x2) + " " + (this.y2 + this.y3) + " L " + (this.x1 + this.x2 - 12) + " " + (this.y2 + this.y3);
12695
- this.arrowPath = "M " + (this.x1 + 18) + " " + (this.y1 + this.manualChild) +
12696
- " L " + (this.x1 + 11) + " " + (this.y1 - (4 + this.lineStroke) + this.manualChild) +
12697
- " L " + (this.x1 + 11) + " " + (this.y1 + 4 + this.lineStroke + this.manualChild) + " Z";
12753
+ this.arrowPath = "M " + (this.x1 + 20) + " " + (this.y1) +
12754
+ " L " + (this.x1 + 12) + " " + (this.y1 - (4 + this.lineStroke)) +
12755
+ " L " + (this.x1 + 12) + " " + (this.y1 + 4 + this.lineStroke) + " Z";
12698
12756
  }
12699
12757
  if (this.getParentPosition(data) === 'FSType4') {
12700
- this.point1 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.childIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneChild));
12758
+ this.point1 = (this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? childOverlapTopValue : (data.childIndex * data.rowHeight)) + addTop + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1)));
12701
12759
  this.taskLineValue = this.parent.renderBaseline ? this.taskLineValue : 0;
12702
12760
  this.x1 = data.parentEndPoint + (data.milestoneChild ? -1 : 0) + (data.milestoneParent ? 1 : 0);
12703
12761
  this.x2 = data.childLeft - data.parentEndPoint - 20;
12704
- this.y1 = this.point1 + (data.milestoneChild ? 1 : 0) + ((data.isManualParent && data.isManualChild) ? -10 : 0);
12705
- this.y2 = this.point1 + heightValue + this.taskLineValue + (this.parent.renderBaseline ? (data.milestoneParent ? 10 : 0) : 0);
12706
- this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
12707
- this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
12708
- this.connectorLinePath = "M " + (this.x1 + this.x2 + 11) + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + (this.x1 + this.x2) + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + (this.x1 + this.x2) + " " + this.y2 +
12762
+ this.y1 = this.point1 + (data.milestoneChild ? -1 : 0);
12763
+ this.y2 = this.point1 + heightValue + borderTopWidth - this.lineStroke + 1 + this.taskLineValue + (this.parent.renderBaseline ? (data.milestoneChild && !(data.milestoneParent) ? -12 : data.milestoneParent && !(data.milestoneChild) ? 11 : 0) : 0);
12764
+ this.connectorLinePath = "M " + (this.x1 + this.x2 + 12) + " " + (this.y1) + " L " + (this.x1 + this.x2) + " " + (this.y1) + " L " + (this.x1 + this.x2) + " " + this.y2 +
12709
12765
  " L " + this.x1 + " " + this.y2;
12710
- this.arrowPath = "M " + (this.x1 + this.x2 + 18) + " " + (this.y1 + this.manualChild) +
12711
- " L " + (this.x1 + this.x2 + 11) + " " + (this.y1 - (4 + this.lineStroke) + this.manualChild) +
12712
- " L " + (this.x1 + this.x2 + 11) + " " + (this.y1 + 4 + this.lineStroke + this.manualChild) + " Z";
12766
+ this.arrowPath = "M " + (this.x1 + this.x2 + 20) + " " + (this.y1) +
12767
+ " L " + (this.x1 + this.x2 + 12) + " " + (this.y1 - (4 + this.lineStroke)) +
12768
+ " L " + (this.x1 + this.x2 + 12) + " " + (this.y1 + 4 + this.lineStroke) + " Z";
12713
12769
  }
12714
12770
  if (this.getParentPosition(data) === 'SSType4') {
12715
12771
  this.taskLineValue = this.parent.renderBaseline ? this.taskLineValue : 0;
12716
- this.point1 = heightValue + this.taskLineValue;
12717
- this.point2 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.childIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneChild));
12718
- this.x1 = data.parentLeft - 8;
12772
+ this.point1 = heightValue + this.taskLineValue + borderTopWidth;
12773
+ this.point2 = (this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? childOverlapTopValue : (data.childIndex * data.rowHeight)) + addTop + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1)));
12774
+ this.x1 = data.parentLeft - 10;
12719
12775
  this.x2 = data.childLeft - data.parentLeft;
12720
- this.y1 = this.point2 + (data.milestoneChild ? 1 : 0) + ((data.isManualParent && data.isManualChild) ? -10 : 0);
12721
- this.y2 = this.y1 + this.point1 + (this.parent.renderBaseline ? (data.milestoneParent ? 10 : 0) : 0);
12722
- this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
12723
- this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
12724
- this.connectorLinePath = "M " + (this.x1 + this.x2) + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + this.x1 + " " + (this.y1 + this.manualParent + this.manualChild) +
12776
+ this.y1 = this.point2 + (data.milestoneChild ? 1 : 0);
12777
+ this.y2 = this.y1 + this.point1 + (this.parent.renderBaseline ? (data.milestoneParent && !(data.milestoneChild) ? 10 : data.milestoneChild && !(data.milestoneParent) ? -13 : 0) : 0);
12778
+ this.connectorLinePath = "M " + (this.x1 + this.x2) + " " + (this.y1) + " L " + this.x1 + " " + (this.y1) +
12725
12779
  " L " + this.x1 + " " + this.y2 + " L " + (this.x1 + 10) + " " + this.y2;
12726
- this.arrowPath = "M " + (this.x1 + this.x2 + 8) + " " + (this.y1 + this.manualChild) +
12727
- " L " + (this.x1 + this.x2) + " " + (this.y1 - (4 + this.lineStroke) + this.manualChild) +
12728
- " L " + (this.x1 + this.x2) + " " + (this.y1 + 4 + this.lineStroke + this.manualChild) + " Z";
12780
+ this.arrowPath = "M " + (this.x1 + this.x2 + 8) + " " + (this.y1) +
12781
+ " L " + (this.x1 + this.x2) + " " + (this.y1 - (4 + this.lineStroke)) +
12782
+ " L " + (this.x1 + this.x2) + " " + (this.y1 + 4 + this.lineStroke) + " Z";
12729
12783
  }
12730
12784
  if (this.getParentPosition(data) === 'SSType3') {
12731
12785
  this.taskLineValue = this.parent.renderBaseline ? this.taskLineValue : data.milestoneChild ? 1 : 0;
12732
- this.point1 = heightValue + this.taskLineValue;
12786
+ this.point1 = heightValue + this.taskLineValue + borderTopWidth - (this.lineStroke - 1);
12733
12787
  this.x1 = data.childLeft - 20;
12734
- this.y1 = (data.milestoneChild ? 1 : 0) + ((this.parent.enableVirtualization ? rowPositionHeight : (!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.childIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneChild))) + ((data.isManualParent && data.isManualChild) ? -10 : 0);
12788
+ this.y1 = (data.milestoneChild ? 1 : 0) + (this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? childOverlapTopValue : (data.childIndex * data.rowHeight)) + addTop + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1)));
12735
12789
  this.x2 = data.parentLeft - data.childLeft + 21;
12736
- this.y2 = this.y1 + this.point1 + (this.parent.renderBaseline ? (data.milestoneChild ? -11 : data.milestoneParent ? 10 : 0) : 0);
12737
- this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
12738
- this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
12739
- this.connectorLinePath = "M " + (this.x1 + 12) + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + this.x1 + " " + (this.y1 + this.manualParent + this.manualChild) +
12790
+ this.y2 = this.y1 + this.point1 + (this.parent.renderBaseline ? (data.milestoneChild && !(data.milestoneParent) ? -11 : data.milestoneParent && !(data.milestoneChild) ? 10 : 0) : 0);
12791
+ this.connectorLinePath = "M " + (this.x1 + 12) + " " + (this.y1) + " L " + this.x1 + " " + (this.y1) +
12740
12792
  " L " + this.x1 + " " + this.y2 + " L " + (this.x1 + this.x2) + " " + this.y2;
12741
- this.arrowPath = "M " + (this.x1 + 20) + " " + (this.y1 + this.manualChild) +
12742
- " L " + (this.x1 + 12) + " " + (this.y1 - (4 + this.lineStroke) + this.manualChild) +
12743
- " L " + (this.x1 + 12) + " " + (this.y1 + 4 + this.lineStroke + this.manualChild) + " Z";
12793
+ this.arrowPath = "M " + (this.x1 + 20) + " " + (this.y1) +
12794
+ " L " + (this.x1 + 12) + " " + (this.y1 - (4 + this.lineStroke)) +
12795
+ " L " + (this.x1 + 12) + " " + (this.y1 + 4 + this.lineStroke) + " Z";
12744
12796
  }
12745
12797
  if (this.getParentPosition(data) === 'SSType2') {
12746
12798
  this.taskLineValue = this.parent.renderBaseline ? this.taskLineValue : data.milestoneChild ? 1 : 0;
12747
- this.point1 = heightValue + this.taskLineValue;
12799
+ this.point1 = heightValue + this.taskLineValue + borderTopWidth - this.lineStroke;
12748
12800
  this.x1 = setInnerElementLeftSSType2;
12749
12801
  this.x2 = setInnerChildWidthSSType2 + 1;
12750
- this.y1 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.parentIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneParent)) + ((data.isManualParent && data.isManualChild) ? -10 : 0);
12802
+ this.y1 = (this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.parentIndex * data.rowHeight)) + addTop + this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1)));
12751
12803
  this.y2 = this.y1 + this.point1;
12752
- this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
12753
- this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
12754
- this.connectorLinePath = "M " + (this.x1 + this.x2) + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + this.x1 + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + this.x1 + " " + this.y2 +
12804
+ this.connectorLinePath = "M " + (this.x1 + this.x2) + " " + (this.y1) + " L " + this.x1 + " " + (this.y1) + " L " + this.x1 + " " + this.y2 +
12755
12805
  " L " + (this.x1 + setInnerElementWidthSSType2) + " " + this.y2;
12756
- this.arrowPath = "M " + (this.x1 + setInnerElementWidthSSType2 + 8) + " " + (this.y2 + this.manualChild) +
12757
- " L " + (this.x1 + setInnerElementWidthSSType2) + " " + (this.y2 - (4 + this.lineStroke) + this.manualChild) +
12758
- " L " + (this.x1 + setInnerElementWidthSSType2) + " " + (this.y2 + 4 + this.lineStroke + this.manualChild) + " Z";
12806
+ this.arrowPath = "M " + (this.x1 + setInnerElementWidthSSType2 + 8) + " " + (this.y2) +
12807
+ " L " + (this.x1 + setInnerElementWidthSSType2) + " " + (this.y2 - (4 + this.lineStroke)) +
12808
+ " L " + (this.x1 + setInnerElementWidthSSType2) + " " + (this.y2 + 4 + this.lineStroke) + " Z";
12759
12809
  }
12760
12810
  if (this.getParentPosition(data) === 'SSType1') {
12761
12811
  this.taskLineValue = this.parent.renderBaseline ? this.taskLineValue : data.milestoneChild ? 1 : 0;
12762
- this.point1 = heightValue + this.taskLineValue;
12812
+ this.point1 = heightValue + this.taskLineValue + borderTopWidth - this.lineStroke;
12763
12813
  this.x1 = data.childLeft - 20;
12764
12814
  this.x2 = data.parentLeft - data.childLeft + 21;
12765
- this.y1 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.parentIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneParent)) + +((data.isManualParent && data.isManualChild) ? -10 : 0);
12815
+ this.y1 = (this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.parentIndex * data.rowHeight)) + addTop + this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1)));
12766
12816
  this.y2 = this.y1 + this.point1;
12767
- this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
12768
- this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
12769
- this.connectorLinePath = "M " + (this.x1 + this.x2) + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + this.x1 + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + this.x1 + " " + this.y2 +
12817
+ this.connectorLinePath = "M " + (this.x1 + this.x2) + " " + (this.y1) + " L " + this.x1 + " " + (this.y1) + " L " + this.x1 + " " + this.y2 +
12770
12818
  " L " + (this.x1 + 12) + " " + this.y2;
12771
- this.arrowPath = "M " + (this.x1 + 20) + " " + (this.y2 + this.manualChild) +
12772
- " L " + (this.x1 + 12) + " " + (this.y2 - (4 + this.lineStroke) + this.manualChild) +
12773
- " L " + (this.x1 + 12) + " " + (this.y2 + 4 + this.lineStroke + this.manualChild) + " Z";
12819
+ this.arrowPath = "M " + (this.x1 + 20) + " " + (this.y2) +
12820
+ " L " + (this.x1 + 12) + " " + (this.y2 - (4 + this.lineStroke)) +
12821
+ " L " + (this.x1 + 12) + " " + (this.y2 + 4 + this.lineStroke) + " Z";
12774
12822
  }
12775
12823
  if (this.getParentPosition(data) === 'FFType1') {
12776
12824
  this.taskLineValue = this.parent.renderBaseline ? this.taskLineValue : (data.milestoneChild ? 1 : 0);
@@ -12778,30 +12826,26 @@ var ConnectorLine = /** @__PURE__ @class */ (function () {
12778
12826
  this.x2 = data.parentEndPoint + (data.milestoneParent ? -1 : 0);
12779
12827
  this.x3 = data.milestoneParent ? 22 : 21;
12780
12828
  this.x4 = data.milestoneChild ? 4 : 8;
12781
- this.y1 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.parentIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneParent)) + ((data.isManualParent && data.isManualChild) ? -10 : 0);
12782
- this.y2 = heightValue + this.taskLineValue;
12783
- this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
12784
- this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
12785
- this.connectorLinePath = "M " + this.x2 + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + (this.x2 + this.x3) + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + (this.x2 + this.x3) + " " + (this.y1 + this.y2) +
12829
+ this.y1 = (this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.parentIndex * data.rowHeight)) + addTop + this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1)));
12830
+ this.y2 = heightValue + this.taskLineValue + borderTopWidth - this.lineStroke;
12831
+ this.connectorLinePath = "M " + this.x2 + " " + (this.y1) + " L " + (this.x2 + this.x3) + " " + (this.y1) + " L " + (this.x2 + this.x3) + " " + (this.y1 + this.y2) +
12786
12832
  " L " + (this.x1 + this.x4) + " " + (this.y1 + this.y2);
12787
- this.arrowPath = "M " + this.x1 + " " + (this.y1 + this.y2 + this.manualChild) +
12788
- " L " + (this.x1 + 8) + " " + (this.y1 + this.y2 - (4 + this.lineStroke) + this.manualChild) +
12789
- " L " + (this.x1 + 8) + " " + (this.y1 + this.y2 + 4 + this.lineStroke + this.manualChild) + " Z";
12833
+ this.arrowPath = "M " + this.x1 + " " + (this.y1 + this.y2) +
12834
+ " L " + (this.x1 + 8) + " " + (this.y1 + this.y2 - (4 + this.lineStroke)) +
12835
+ " L " + (this.x1 + 8) + " " + (this.y1 + this.y2 + 4 + this.lineStroke) + " Z";
12790
12836
  }
12791
12837
  if (this.getParentPosition(data) === 'FFType2') {
12792
12838
  this.taskLineValue = this.parent.renderBaseline ? this.taskLineValue : (data.milestoneChild ? 1 : 0);
12793
12839
  this.x1 = data.parentEndPoint;
12794
12840
  this.x2 = data.childEndPoint + (data.milestoneParent ? 22 : 21);
12795
12841
  this.x3 = data.childEndPoint + (data.milestoneChild ? 9 : 8);
12796
- this.y1 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.parentIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneParent)) + ((data.isManualParent && data.isManualChild) ? -10 : 0);
12797
- this.y2 = heightValue + this.taskLineValue;
12798
- this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
12799
- this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
12800
- this.connectorLinePath = "M " + this.x1 + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + this.x2 + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + this.x2 + " " + (this.y1 + this.y2) +
12842
+ this.y1 = (this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.parentIndex * data.rowHeight)) + addTop + this.getTaskbarMidpoint(data.milestoneParent) - (this.lineStroke - 1)));
12843
+ this.y2 = heightValue + this.taskLineValue + borderTopWidth - this.lineStroke;
12844
+ this.connectorLinePath = "M " + this.x1 + " " + (this.y1) + " L " + this.x2 + " " + (this.y1) + " L " + this.x2 + " " + (this.y1 + this.y2) +
12801
12845
  " L " + this.x3 + " " + (this.y1 + this.y2);
12802
- this.arrowPath = "M " + (this.x3 - 8) + " " + (this.y1 + this.y2 + this.manualChild) +
12803
- " L " + this.x3 + " " + (this.y1 + this.y2 - (4 + this.lineStroke) + this.manualChild) +
12804
- " L " + this.x3 + " " + (this.y1 + this.y2 + 4 + this.lineStroke + this.manualChild) + " Z";
12846
+ this.arrowPath = "M " + (this.x3 - 8) + " " + (this.y1 + this.y2) +
12847
+ " L " + this.x3 + " " + (this.y1 + this.y2 - (4 + this.lineStroke)) +
12848
+ " L " + this.x3 + " " + (this.y1 + this.y2 + 4 + this.lineStroke) + " Z";
12805
12849
  }
12806
12850
  if (this.getParentPosition(data) === 'FFType3') {
12807
12851
  this.taskLineValue = this.parent.renderBaseline ? this.taskLineValue : 0;
@@ -12809,98 +12853,86 @@ var ConnectorLine = /** @__PURE__ @class */ (function () {
12809
12853
  this.x2 = this.x1 + (data.milestoneChild ? 4 : 8);
12810
12854
  this.x3 = data.parentEndPoint - data.childEndPoint + (data.milestoneChild ? 16 : 10);
12811
12855
  this.x4 = data.parentEndPoint + (data.milestoneParent ? -1 : 0);
12812
- this.y1 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.childIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneChild)) + ((data.isManualParent && data.isManualChild) ? -10 : 0);
12813
- this.y2 = heightValue + this.taskLineValue + (this.parent.renderBaseline ? (data.milestoneParent ? 10 : 0) : 0);
12814
- this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
12815
- this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
12816
- this.connectorLinePath = "M " + this.x2 + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + (this.x2 + this.x3) + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + (this.x2 + this.x3) + " " + (this.y1 + this.y2) +
12856
+ this.y1 = (this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? childOverlapTopValue : (data.childIndex * data.rowHeight)) + addTop + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1)));
12857
+ this.y2 = heightValue + this.taskLineValue + borderTopWidth - this.lineStroke + (this.parent.renderBaseline ? (data.milestoneParent && !(data.milestoneChild) ? 10 : data.milestoneChild && !(data.milestoneParent) ? -11 : 0) : 0);
12858
+ this.connectorLinePath = "M " + this.x2 + " " + (this.y1) + " L " + (this.x2 + this.x3) + " " + (this.y1) + " L " + (this.x2 + this.x3) + " " + (this.y1 + this.y2) +
12817
12859
  " L " + this.x4 + " " + (this.y1 + this.y2);
12818
- this.arrowPath = "M " + this.x1 + " " + (this.y1 + this.manualChild) +
12819
- " L " + (this.x1 + 8) + " " + (this.y1 - (4 + this.lineStroke) + this.manualChild) +
12820
- " L " + (this.x1 + 8) + " " + (this.y1 + 4 + this.lineStroke + this.manualChild) + " Z";
12860
+ this.arrowPath = "M " + this.x1 + " " + (this.y1) +
12861
+ " L " + (this.x1 + 8) + " " + (this.y1 - (4 + this.lineStroke)) +
12862
+ " L " + (this.x1 + 8) + " " + (this.y1 + 4 + this.lineStroke) + " Z";
12821
12863
  }
12822
12864
  if (this.getParentPosition(data) === 'FFType4') {
12823
12865
  this.taskLineValue = this.parent.renderBaseline ? this.taskLineValue : 0;
12824
12866
  this.x1 = data.parentEndPoint;
12825
12867
  this.x2 = data.childEndPoint + (data.milestoneChild ? 7 : 8);
12826
12868
  this.x3 = this.x2 + (data.milestoneChild ? 12 : 11);
12827
- this.y1 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.childIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneChild)) + ((data.isManualParent && data.isManualChild) ? -10 : 0);
12828
- this.y2 = heightValue + this.taskLineValue + +(this.parent.renderBaseline ? (data.milestoneParent ? 10 : 0) : 0);
12829
- this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
12830
- this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
12831
- this.connectorLinePath = "M " + this.x2 + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + this.x3 + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + this.x3 + " " + (this.y1 + this.y2) +
12869
+ this.y1 = (this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? childOverlapTopValue : (data.childIndex * data.rowHeight)) + addTop + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1)));
12870
+ this.y2 = heightValue + this.taskLineValue + borderTopWidth + (this.parent.renderBaseline ? (data.milestoneParent && !(data.milestoneChild) ? 10 : data.milestoneChild && !(data.milestoneParent) ? -12 : 0) : 0) - this.lineStroke + 1;
12871
+ this.connectorLinePath = "M " + this.x2 + " " + (this.y1) + " L " + this.x3 + " " + (this.y1) + " L " + this.x3 + " " + (this.y1 + this.y2) +
12832
12872
  " L " + this.x1 + " " + (this.y1 + this.y2);
12833
- this.arrowPath = "M " + (this.x2 - 8) + " " + (this.y1 + this.manualChild) +
12834
- " L " + this.x2 + " " + (this.y1 - (4 + this.lineStroke) + this.manualChild) +
12835
- " L " + this.x2 + " " + (this.y1 + 4 + this.lineStroke + this.manualChild) + " Z";
12873
+ this.arrowPath = "M " + (this.x2 - 8) + " " + (this.y1) +
12874
+ " L " + this.x2 + " " + (this.y1 - (4 + this.lineStroke)) +
12875
+ " L " + this.x2 + " " + (this.y1 + 4 + this.lineStroke) + " Z";
12836
12876
  }
12837
12877
  if (this.getParentPosition(data) === 'SFType4') {
12838
12878
  this.taskLineValue = this.parent.renderBaseline ? this.taskLineValue : (data.milestoneChild ? -1 : 0);
12839
- this.point1 = heightValue - this.getconnectorLineGap(data) + this.taskLineValue;
12840
- this.point2 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.childIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneChild));
12879
+ this.point1 = (this.taskLineValue + heightValue + borderTopWidth - this.getconnectorLineGap(data) - (this.lineStroke - 1));
12880
+ this.point2 = (this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? childOverlapTopValue : (data.childIndex * data.rowHeight)) + addTop + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue));
12841
12881
  this.x1 = data.parentLeft - 10;
12842
12882
  this.x2 = this.x1 + ((data.childEndPoint - data.parentLeft) + 18);
12843
12883
  this.x3 = this.x2 + (data.milestoneChild ? 16 : 11);
12844
- this.y1 = this.point2 + (data.milestoneChild ? 1 : 0) + ((data.isManualParent && data.isManualChild) ? -10 : 0);
12845
- this.y2 = this.y1 + this.point1 + (this.parent.renderBaseline ? (data.milestoneChild ? -11 : 0) : 0);
12846
- this.y3 = this.getconnectorLineGap(data) + (this.parent.renderBaseline ? (data.milestoneParent ? 10 : 0) : 0);
12884
+ this.y1 = this.point2 + (data.milestoneChild ? 2 : 0) + (this.parent.renderBaseline ? (data.milestoneParent ? -5 : 0) : 0);
12885
+ this.y2 = this.y1 + this.point1 + (this.parent.renderBaseline ? (data.milestoneChild && !(data.milestoneParent) ? -9 : data.milestoneParent && !(data.milestoneChild) ? 9 : 0) : 0);
12886
+ this.y3 = this.getconnectorLineGap(data);
12847
12887
  this.y4 = this.y2 - (this.y2 % data.rowHeight);
12848
- this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
12849
- this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
12850
- this.connectorLinePath = "M " + this.x2 + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + this.x3 + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + this.x3 + " " + this.y4 + " L " + this.x1 + " " + this.y4 +
12888
+ this.connectorLinePath = "M " + this.x2 + " " + (this.y1) + " L " + this.x3 + " " + (this.y1) + " L " + this.x3 + " " + this.y4 + " L " + this.x1 + " " + this.y4 +
12851
12889
  " L " + this.x1 + " " + (this.y2 + this.y3) + " L " + (this.x1 + 11) + " " + (this.y2 + this.y3);
12852
- this.arrowPath = "M " + (this.x2 - 8) + " " + (this.y1 + this.manualChild) +
12853
- " L " + this.x2 + " " + (this.y1 - (4 + this.lineStroke) + this.manualChild) +
12854
- " L " + this.x2 + " " + (this.y1 + 4 + this.lineStroke + this.manualChild) + " Z";
12890
+ this.arrowPath = "M " + (this.x2 - 8) + " " + (this.y1) +
12891
+ " L " + this.x2 + " " + (this.y1 - (4 + this.lineStroke)) +
12892
+ " L " + this.x2 + " " + (this.y1 + 4 + this.lineStroke) + " Z";
12855
12893
  }
12856
12894
  if (this.getParentPosition(data) === 'SFType3') {
12857
12895
  this.taskLineValue = this.parent.renderBaseline ? this.taskLineValue : 0;
12858
- this.point1 = (data.parentLeft - (data.childEndPoint + (data.milestoneParent ? 25 : 20))) + 1 + (this.parent.renderBaseline ? (data.milestoneParent ? 5 : 0) : 0);
12859
- this.point2 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.childIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneChild));
12896
+ this.point1 = (data.parentLeft - (data.childEndPoint + (data.milestoneParent ? 23 : 20))) + 1;
12897
+ this.point2 = (this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? childOverlapTopValue : (data.childIndex * data.rowHeight)) + addTop + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1)));
12860
12898
  this.x1 = data.childEndPoint;
12861
12899
  this.x2 = this.x1 + (data.milestoneChild ? 9 : 8);
12862
12900
  this.x3 = this.x2 + (data.milestoneChild ? 17 : 11);
12863
- this.y1 = this.point2 + ((data.isManualParent && data.isManualChild) ? -10 : 0);
12864
- this.y2 = this.y1 + heightValue + this.taskLineValue + (this.parent.renderBaseline ? (data.milestoneParent ? 10 : 0) : 0);
12865
- this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
12866
- this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
12867
- this.connectorLinePath = "M " + this.x2 + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + this.x3 + " " + (this.y1 + this.manualParent + this.manualChild) +
12901
+ this.y1 = this.point2;
12902
+ this.y2 = this.y1 + heightValue + borderTopWidth - (this.lineStroke - 1) + this.taskLineValue + (this.parent.renderBaseline ? (data.milestoneChild && !(data.milestoneParent) ? -12 : data.milestoneParent && !(data.milestoneChild) ? 10 : 0) : 0);
12903
+ this.connectorLinePath = "M " + this.x2 + " " + (this.y1) + " L " + this.x3 + " " + (this.y1) +
12868
12904
  " L " + this.x3 + " " + this.y2 + " L " + (this.x3 + this.point1) + " " + this.y2;
12869
- this.arrowPath = "M " + (this.x2 - 8) + " " + (this.y1 + this.manualChild) +
12870
- " L " + this.x2 + " " + (this.y1 - (4 + this.lineStroke) + this.manualChild) +
12871
- " L " + this.x2 + " " + (this.y1 + 4 + this.lineStroke + this.manualChild) + " Z";
12905
+ this.arrowPath = "M " + (this.x2 - 8) + " " + (this.y1) +
12906
+ " L " + this.x2 + " " + (this.y1 - (4 + this.lineStroke)) +
12907
+ " L " + this.x2 + " " + (this.y1 + 4 + this.lineStroke) + " Z";
12872
12908
  }
12873
12909
  if (this.getParentPosition(data) === 'SFType1') {
12874
12910
  this.taskLineValue = this.parent.renderBaseline ? this.taskLineValue : data.milestoneChild ? 1 : 0;
12875
- this.point1 = heightValue - this.getconnectorLineGap(data) + this.taskLineValue;
12911
+ this.point1 = heightValue + borderTopWidth - this.getconnectorLineGap(data) + this.taskLineValue - this.lineStroke;
12876
12912
  this.point2 = this.getconnectorLineGap(data);
12877
12913
  this.x1 = data.parentLeft - 10;
12878
- this.y1 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.parentIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneParent)) + +((data.isManualParent && data.isManualChild) ? -10 : 0);
12914
+ this.y1 = (this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.parentIndex * data.rowHeight)) + addTop + this.getTaskbarMidpoint(isMilestone) - (this.lineStroke - 1) - isMilestoneValue));
12879
12915
  this.x2 = (data.childEndPoint - data.parentLeft) + 31;
12880
12916
  this.y2 = this.y1 + this.point1;
12881
12917
  this.x3 = (data.childEndPoint - data.parentLeft) + 18;
12882
12918
  this.y3 = this.y2 - (this.y2 % data.rowHeight);
12883
- this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
12884
- this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
12885
- this.connectorLinePath = "M " + (this.x1 + 11) + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + this.x1 + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + this.x1 + " " + this.y3 +
12919
+ this.connectorLinePath = "M " + (this.x1 + 11) + " " + (this.y1) + " L " + this.x1 + " " + (this.y1) + " L " + this.x1 + " " + this.y3 +
12886
12920
  " L " + (this.x1 + this.x2) + " " + this.y3 + " L " + (this.x1 + this.x2) + " " + (this.y2 + this.point2) + " L " + (this.x1 + this.x3) + " " + (this.y2 + this.point2);
12887
- this.arrowPath = "M " + (this.x1 + this.x3 - 8) + " " + (this.y2 + this.point2 + this.manualChild) +
12888
- " L " + (this.x1 + this.x3) + " " + (this.y2 + this.point2 - (4 + this.lineStroke) + this.manualChild) +
12889
- " L " + (this.x1 + this.x3) + " " + (this.y2 + this.point2 + 4 + this.lineStroke + this.manualChild) + " Z";
12921
+ this.arrowPath = "M " + (this.x1 + this.x3 - 8) + " " + (this.y2 + this.point2) +
12922
+ " L " + (this.x1 + this.x3) + " " + (this.y2 + this.point2 - (4 + this.lineStroke)) +
12923
+ " L " + (this.x1 + this.x3) + " " + (this.y2 + this.point2 + 4 + this.lineStroke) + " Z";
12890
12924
  }
12891
12925
  if (this.getParentPosition(data) === 'SFType2') {
12892
12926
  this.taskLineValue = this.parent.renderBaseline ? this.taskLineValue : 0;
12893
12927
  this.x1 = data.childEndPoint;
12894
- this.y1 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.parentIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneParent)) + +((data.isManualParent && data.isManualChild) ? -10 : 0);
12928
+ this.y1 = (this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.parentIndex * data.rowHeight)) + addTop + this.getTaskbarMidpoint(isMilestoneParent) - (this.lineStroke - 1)));
12895
12929
  this.x2 = (data.parentLeft - data.childEndPoint);
12896
- this.y2 = this.y1 + heightValue + this.taskLineValue;
12897
- this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
12898
- this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
12899
- this.connectorLinePath = "M " + (this.x1 + this.x2 + 1) + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + (this.x1 + this.x2 - 10) + " " + (this.y1 + this.manualParent + this.manualChild) +
12930
+ this.y2 = this.y1 + heightValue + this.taskLineValue + borderTopWidth - this.lineStroke;
12931
+ this.connectorLinePath = "M " + (this.x1 + this.x2 + 1) + " " + (this.y1) + " L " + (this.x1 + this.x2 - 10) + " " + (this.y1) +
12900
12932
  " L " + (this.x1 + this.x2 - 10) + " " + this.y2 + " L " + (this.x1 + 8) + " " + this.y2;
12901
- this.arrowPath = "M " + this.x1 + " " + (this.y2 + this.manualChild) +
12902
- " L " + (this.x1 + 8) + " " + (this.y2 - (4 + this.lineStroke) + this.manualChild) +
12903
- " L " + (this.x1 + 8) + " " + (this.y2 + 4 + this.lineStroke + this.manualChild) + " Z";
12933
+ this.arrowPath = "M " + this.x1 + " " + (this.y2) +
12934
+ " L " + (this.x1 + 8) + " " + (this.y2 - (4 + this.lineStroke)) +
12935
+ " L " + (this.x1 + 8) + " " + (this.y2 + 4 + this.lineStroke) + " Z";
12904
12936
  }
12905
12937
  this.connectorPath.setAttribute("d", this.connectorLinePath);
12906
12938
  this.arrowlinePath.setAttribute("d", this.arrowPath);
@@ -13440,35 +13472,34 @@ var Tooltip$1 = /** @__PURE__ @class */ (function () {
13440
13472
  */
13441
13473
  Tooltip$$1.prototype.updateTooltipPosition = function (args) {
13442
13474
  args.element.style.visibility = 'visible';
13443
- if (isNullOrUndefined(this.tooltipMouseEvent) || args.target.classList.contains('e-notes-info')) {
13444
- return;
13445
- }
13446
- var postion = this.getPointorPosition(this.tooltipMouseEvent);
13447
- var containerPosition = this.parent.getOffsetRect(this.parent.chartPane);
13448
- var topEnd = containerPosition.top + this.parent.chartPane.offsetHeight;
13449
- var leftEnd = containerPosition.left + this.parent.chartPane.offsetWidth;
13450
- var tooltipPositionX = postion.x;
13451
- var tooltipPositionY = postion.y;
13452
- if (leftEnd < (tooltipPositionX + args.element.offsetWidth + 10)) {
13453
- while (leftEnd < (tooltipPositionX + args.element.offsetWidth + 10)) {
13454
- tooltipPositionX = leftEnd - args.element.offsetWidth - 10;
13455
- args.element.style.left = tooltipPositionX + 'px';
13456
- }
13457
- }
13458
- else {
13459
- tooltipPositionX = tooltipPositionX + 10;
13460
- args.element.style.left = tooltipPositionX + 'px';
13461
- }
13462
- if (window.innerHeight < args.element.offsetHeight + tooltipPositionY) {
13463
- tooltipPositionY = tooltipPositionY - args.element.offsetHeight - 10;
13464
- }
13465
- if ((topEnd < (tooltipPositionY + args.element.offsetHeight + 20))) {
13466
- tooltipPositionY = tooltipPositionY - args.element.offsetHeight - 10;
13467
- }
13468
- else {
13469
- tooltipPositionY = tooltipPositionY + 10;
13470
- }
13471
- args.element.style.top = tooltipPositionY + 'px';
13475
+ // if (isNullOrUndefined(this.tooltipMouseEvent) || args.target.classList.contains('e-notes-info')) {
13476
+ // return;
13477
+ // }
13478
+ // const postion: { x: number, y: number } = this.getPointorPosition(this.tooltipMouseEvent);
13479
+ // const containerPosition: { top: number, left: number, width?: number, height?: number } =
13480
+ // this.parent.getOffsetRect(this.parent.chartPane);
13481
+ // const topEnd: number = containerPosition.top + this.parent.chartPane.offsetHeight;
13482
+ // const leftEnd: number = containerPosition.left + this.parent.chartPane.offsetWidth;
13483
+ // let tooltipPositionX: number = postion.x;
13484
+ // let tooltipPositionY: number = postion.y;
13485
+ // if (leftEnd < (tooltipPositionX + args.element.offsetWidth + 10)) {
13486
+ // while (leftEnd < (tooltipPositionX + args.element.offsetWidth + 10)) {
13487
+ // tooltipPositionX = leftEnd - args.element.offsetWidth - 10;
13488
+ // args.element.style.left = tooltipPositionX + 'px';
13489
+ // }
13490
+ // } else {
13491
+ // tooltipPositionX = tooltipPositionX + 10;
13492
+ // args.element.style.left = tooltipPositionX + 'px';
13493
+ // }
13494
+ // if (window.innerHeight < args.element.offsetHeight + tooltipPositionY) {
13495
+ // tooltipPositionY = tooltipPositionY - args.element.offsetHeight - 10;
13496
+ // }
13497
+ // if ((topEnd < (tooltipPositionY + args.element.offsetHeight + 20))) {
13498
+ // tooltipPositionY = tooltipPositionY - args.element.offsetHeight - 10;
13499
+ // } else {
13500
+ // tooltipPositionY = tooltipPositionY + 10;
13501
+ // }
13502
+ // args.element.style.top = tooltipPositionY + 'px';
13472
13503
  };
13473
13504
  /**
13474
13505
  * Method to get mouse pointor position
@@ -14905,6 +14936,13 @@ var Gantt = /** @__PURE__ @class */ (function (_super) {
14905
14936
  if (this.enableCriticalPath && criticalModule && criticalModule.criticalPathCollection) {
14906
14937
  this.criticalPathModule.criticalConnectorLine(criticalModule.criticalPathCollection, criticalModule.detailPredecessorCollection, true, criticalModule.predecessorCollectionTaskIds);
14907
14938
  }
14939
+ this.calculateDimensions();
14940
+ var pane1 = this.splitterModule.splitterObject.element.querySelectorAll('.e-pane')[0];
14941
+ var pane2 = this.splitterModule.splitterObject.element.querySelectorAll('.e-pane')[1];
14942
+ this.splitterModule.splitterPreviousPositionGrid = pane1.scrollWidth + 1 + 'px';
14943
+ this.splitterModule.splitterPreviousPositionChart = pane2.scrollWidth + 1 + 'px';
14944
+ this.splitterModule.splitterObject.paneSettings[0].size = this.splitterModule['getSpliterPositionInPercentage'](this.splitterModule.splitterPreviousPositionGrid);
14945
+ this.splitterModule.splitterObject.paneSettings[1].size = this.splitterModule.splitterPreviousPositionChart;
14908
14946
  }
14909
14947
  };
14910
14948
  Gantt.prototype.keyActionHandler = function (e) {
@@ -18499,13 +18537,13 @@ var EditTooltip = /** @__PURE__ @class */ (function () {
18499
18537
  * @returns {void} .
18500
18538
  */
18501
18539
  EditTooltip.prototype.updateTooltipPosition = function (args) {
18502
- var containerPosition = this.parent.getOffsetRect(this.parent.chartPane);
18503
- var leftEnd = containerPosition.left + this.parent.chartPane.offsetWidth;
18504
- var tooltipPositionX = args.element.offsetLeft;
18505
- if (leftEnd < (tooltipPositionX + args.element.offsetWidth)) {
18506
- tooltipPositionX += leftEnd - (tooltipPositionX + args.element.offsetWidth);
18507
- }
18508
- args.element.style.left = tooltipPositionX + 'px';
18540
+ // const containerPosition: { top: number, left: number } = this.parent.getOffsetRect(this.parent.chartPane);
18541
+ // const leftEnd: number = containerPosition.left + this.parent.chartPane.offsetWidth;
18542
+ // let tooltipPositionX: number = args.element.offsetLeft;
18543
+ // if (leftEnd < (tooltipPositionX + args.element.offsetWidth)) {
18544
+ // tooltipPositionX += leftEnd - (tooltipPositionX + args.element.offsetWidth);
18545
+ // }
18546
+ // args.element.style.left = tooltipPositionX + 'px';
18509
18547
  args.element.style.visibility = 'visible';
18510
18548
  };
18511
18549
  /**
@@ -19158,6 +19196,12 @@ var TaskbarEdit = /** @__PURE__ @class */ (function (_super) {
19158
19196
  */
19159
19197
  TaskbarEdit.prototype.updateMouseDownProperties = function (event) {
19160
19198
  var e = this.getCoordinate(event);
19199
+ var parentWithZoomStyle = this.parent.element.closest('[style*="zoom"]');
19200
+ if (parentWithZoomStyle) {
19201
+ var zoom1 = parseFloat(getComputedStyle(parentWithZoomStyle).zoom);
19202
+ e.pageX = e.pageX / zoom1;
19203
+ e.pageY = e.pageY / zoom1;
19204
+ }
19161
19205
  if (e.pageX || e.pageY) {
19162
19206
  var containerPosition = this.parent.getOffsetRect(this.parent.ganttChartModule.chartBodyContainer);
19163
19207
  if (this.parent.enableRtl) {
@@ -19369,6 +19413,12 @@ var TaskbarEdit = /** @__PURE__ @class */ (function (_super) {
19369
19413
  TaskbarEdit.prototype.updateMouseMoveProperties = function (event) {
19370
19414
  var containerPosition = this.parent.getOffsetRect(this.parent.ganttChartModule.chartBodyContainer);
19371
19415
  var e = this.getCoordinate(event);
19416
+ var parentWithZoomStyle = this.parent.element.closest('[style*="zoom"]');
19417
+ if (parentWithZoomStyle) {
19418
+ var zoom1 = parseFloat(getComputedStyle(parentWithZoomStyle).zoom);
19419
+ e.pageX = e.pageX / zoom1;
19420
+ e.pageY = e.pageY / zoom1;
19421
+ }
19372
19422
  if (e.pageX || e.pageY) {
19373
19423
  if (this.parent.enableRtl) {
19374
19424
  this.mouseMoveX = Math.abs(e.pageX - (containerPosition.left +
@@ -19786,7 +19836,16 @@ var TaskbarEdit = /** @__PURE__ @class */ (function (_super) {
19786
19836
  }
19787
19837
  else {
19788
19838
  if (this.mouseMoveX < (item.left + segment.left)) {
19789
- segment.width = this.parent.perDayWidth;
19839
+ var segmentWidth = (this.parent.timelineModule.isSingleTier &&
19840
+ (this.parent.timelineModule.customTimelineSettings.bottomTier.unit === "Hour" ||
19841
+ this.parent.timelineModule.customTimelineSettings.topTier.unit === "Hour" ||
19842
+ this.parent.timelineModule.customTimelineSettings.bottomTier.unit === "Minutes" ||
19843
+ this.parent.timelineModule.customTimelineSettings.topTier.unit === "Minutes")) ||
19844
+ (this.parent.timelineModule.customTimelineSettings.bottomTier.unit === "Hour" ||
19845
+ this.parent.timelineModule.customTimelineSettings.bottomTier.unit === "Minutes") ?
19846
+ this.parent.timelineModule.customTimelineSettings.timelineUnitSize :
19847
+ this.parent.perDayWidth;
19848
+ segment.width = segmentWidth;
19790
19849
  }
19791
19850
  }
19792
19851
  }
@@ -20751,6 +20810,12 @@ var TaskbarEdit = /** @__PURE__ @class */ (function (_super) {
20751
20810
  };
20752
20811
  // eslint-disable-next-line
20753
20812
  TaskbarEdit.prototype.triggerDependencyEvent = function (e, mouseUp) {
20813
+ var parentWithZoomStyle = this.parent.element.closest('[style*="zoom"]');
20814
+ var zoomedPageY;
20815
+ if (parentWithZoomStyle) {
20816
+ var zoom1 = parseFloat(getComputedStyle(parentWithZoomStyle).zoom);
20817
+ zoomedPageY = e.pageY / zoom1;
20818
+ }
20754
20819
  var fromItem = this.taskBarEditRecord.ganttProperties;
20755
20820
  var toItem = this.connectorSecondRecord ? this.connectorSecondRecord.ganttProperties : null;
20756
20821
  var predecessor;
@@ -20812,7 +20877,7 @@ var TaskbarEdit = /** @__PURE__ @class */ (function (_super) {
20812
20877
  table[1].innerText = toItem.taskName;
20813
20878
  table[2].innerText = this.parent.localeObj.getConstant(currentTarget);
20814
20879
  var tooltipElement = this.parent.connectorLineModule.tooltipTable.parentElement.parentElement;
20815
- if (tooltipElement.offsetTop + tooltipElement.offsetHeight > e.pageY) {
20880
+ if (tooltipElement.offsetTop + tooltipElement.offsetHeight > zoomedPageY) {
20816
20881
  tooltipElement.style.top = (e.pageY - tooltipElement.offsetHeight - 20) + 'px';
20817
20882
  }
20818
20883
  }
@@ -27150,7 +27215,7 @@ var Edit$2 = /** @__PURE__ @class */ (function () {
27150
27215
  /* tslint:disable-next-line */
27151
27216
  var query = _this.parent.query instanceof Query ? _this.parent.query : new Query();
27152
27217
  var adaptor = data_2.adaptor;
27153
- if (!(adaptor instanceof WebApiAdaptor && adaptor instanceof ODataAdaptor) || data_2.dataSource.batchUrl) {
27218
+ if (!(adaptor instanceof WebApiAdaptor && adaptor instanceof ODataAdaptor && adaptor instanceof ODataV4Adaptor) || data_2.dataSource.batchUrl) {
27154
27219
  /* tslint:disable-next-line */
27155
27220
  var crud = data_2.saveChanges(updatedData_2, _this.parent.taskFields.id, null, query);
27156
27221
  crud.then(function (e) {
@@ -27285,6 +27350,9 @@ var Edit$2 = /** @__PURE__ @class */ (function () {
27285
27350
  else if (ganttColumns[i].field === 'taskType') {
27286
27351
  tempRecord[fieldName] = this.parent.taskType;
27287
27352
  }
27353
+ else if (ganttColumns[i].field === taskSettingsFields.milestone) {
27354
+ tempRecord[fieldName] = null;
27355
+ }
27288
27356
  else {
27289
27357
  tempRecord[this.parent.ganttColumns[i].field] = '';
27290
27358
  }
@@ -30694,7 +30762,7 @@ var CriticalPath = /** @__PURE__ @class */ (function () {
30694
30762
  }
30695
30763
  var predecessorLength = flatRecords[index].ganttProperties.predecessor;
30696
30764
  var noSlackValue = 0 + ' ' + flatRecords[index].ganttProperties.durationUnit;
30697
- for (var i = 0; i < predecessorLength.length; i++) {
30765
+ for (var i = predecessorLength.length - 1; i >= 0; i--) {
30698
30766
  var toID = void 0;
30699
30767
  if (this.parent.viewType === 'ProjectView') {
30700
30768
  toID = this.parent.ids.indexOf(predecessorLength[i].to);
@@ -30705,8 +30773,19 @@ var CriticalPath = /** @__PURE__ @class */ (function () {
30705
30773
  var dateDifference = void 0;
30706
30774
  var currentData = flatRecords[index].ganttProperties;
30707
30775
  if (predecessorLength[i].type === 'FS') {
30708
- /* eslint-disable-next-line */
30709
- dateDifference = this.parent.dataOperation.getDuration(currentData.endDate, flatRecords[toID].ganttProperties.startDate, currentData.durationUnit, currentData.isAutoSchedule, currentData.isMilestone);
30776
+ if (predecessorLength[i].to != currentData.taskId.toString() || this.parent.viewType === 'ResourceView') {
30777
+ /* eslint-disable-next-line */
30778
+ dateDifference = this.parent.dataOperation.getDuration(currentData.endDate, flatRecords[toID].ganttProperties.startDate, currentData.durationUnit, currentData.isAutoSchedule, currentData.isMilestone);
30779
+ }
30780
+ else {
30781
+ toID = this.parent.ids.indexOf(predecessorLength[i].from);
30782
+ /* eslint-disable-next-line */
30783
+ dateDifference = this.parent.dataOperation.getDuration(flatRecords[toID].ganttProperties.endDate, currentData.startDate, currentData.durationUnit, currentData.isAutoSchedule, currentData.isMilestone);
30784
+ if (dateDifference === 0 && index !== toID && flatRecords[index].slack == noSlackValue) {
30785
+ flatRecords[toID].slack = flatRecords[index].slack;
30786
+ flatRecords[toID].ganttProperties.slack = flatRecords[index].slack;
30787
+ }
30788
+ }
30710
30789
  if (dateDifference === 0 && index !== toID && flatRecords[index].slack !== noSlackValue) {
30711
30790
  flatRecords[index].slack = flatRecords[toID].slack;
30712
30791
  flatRecords[index].ganttProperties.slack = flatRecords[toID].slack;
@@ -31028,7 +31107,13 @@ var ContextMenu$2 = /** @__PURE__ @class */ (function () {
31028
31107
  }
31029
31108
  break;
31030
31109
  case 'DeleteTask':
31031
- this.parent.editModule.deleteRecord(this.rowData);
31110
+ if ((this.parent.selectionSettings.mode !== 'Cell' && this.parent.selectionModule.selectedRowIndexes.length > 1)
31111
+ || (this.parent.selectionSettings.mode === 'Cell' && this.parent.selectionModule.getSelectedRowCellIndexes().length)) {
31112
+ this.parent.editModule.startDeleteAction();
31113
+ }
31114
+ else {
31115
+ this.parent.editModule.deleteRecord(this.rowData);
31116
+ }
31032
31117
  break;
31033
31118
  case 'ToTask':
31034
31119
  if (!isNullOrUndefined(this.rowData)) {