@syncfusion/ej2-gantt 23.1.39 → 23.1.42
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 +23 -0
- package/dist/ej2-gantt.min.js +2 -2
- package/dist/ej2-gantt.umd.min.js +2 -2
- package/dist/ej2-gantt.umd.min.js.map +1 -1
- package/dist/es6/ej2-gantt.es2015.js +176 -128
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +176 -128
- 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 +15 -15
- package/src/gantt/actions/chart-scroll.js +6 -1
- package/src/gantt/actions/critical-path.js +10 -5
- package/src/gantt/actions/edit.js +12 -2
- package/src/gantt/actions/rowdragdrop.js +6 -6
- package/src/gantt/actions/taskbar-edit.d.ts +4 -1
- package/src/gantt/actions/taskbar-edit.js +65 -80
- package/src/gantt/base/gantt-chart.js +35 -18
- package/src/gantt/export/export-helper.js +11 -11
- package/src/gantt/renderer/chart-rows.js +26 -5
- package/src/gantt/renderer/connector-line.js +6 -1
- package/styles/bootstrap-dark.css +1 -1
- package/styles/bootstrap.css +1 -1
- package/styles/bootstrap4.css +33 -3
- package/styles/bootstrap5-dark.css +1 -1
- package/styles/bootstrap5.css +1 -1
- package/styles/fabric-dark.css +1 -1
- package/styles/fabric.css +1 -1
- package/styles/fluent-dark.css +1 -1
- package/styles/fluent.css +1 -1
- package/styles/gantt/_layout.scss +1 -1
- package/styles/gantt/bootstrap-dark.css +1 -1
- package/styles/gantt/bootstrap.css +1 -1
- package/styles/gantt/bootstrap4.css +33 -3
- package/styles/gantt/bootstrap5-dark.css +1 -1
- package/styles/gantt/bootstrap5.css +1 -1
- package/styles/gantt/fabric-dark.css +1 -1
- package/styles/gantt/fabric.css +1 -1
- package/styles/gantt/fluent-dark.css +1 -1
- package/styles/gantt/fluent.css +1 -1
- package/styles/gantt/highcontrast-light.css +1 -1
- package/styles/gantt/highcontrast.css +1 -1
- package/styles/gantt/material-dark.css +1 -1
- package/styles/gantt/material.css +1 -1
- package/styles/gantt/material3-dark.css +1 -1
- package/styles/gantt/material3.css +1 -1
- package/styles/gantt/tailwind-dark.css +1 -1
- package/styles/gantt/tailwind.css +1 -1
- package/styles/highcontrast-light.css +1 -1
- package/styles/highcontrast.css +1 -1
- package/styles/material-dark.css +1 -1
- package/styles/material.css +1 -1
- package/styles/material3-dark.css +1 -1
- package/styles/material3.css +1 -1
- package/styles/tailwind-dark.css +1 -1
- package/styles/tailwind.css +1 -1
|
@@ -4277,7 +4277,12 @@ class ChartScroll {
|
|
|
4277
4277
|
for (let i = 0; i < parent.currentViewData.length; i++) {
|
|
4278
4278
|
const tr = parent.chartRowsModule.ganttChartTableBody.childNodes[i];
|
|
4279
4279
|
if (tr['style'].display !== 'none' && parent.currentViewData[i].hasChildRecords && !parent.currentViewData[i].expanded) {
|
|
4280
|
-
parent.
|
|
4280
|
+
if (parent.ganttChartModule.isExpandAll || parent.ganttChartModule.isCollapseAll) {
|
|
4281
|
+
parent.treeGrid.getRowByIndex(i)['style'].height = tr['style'].height;
|
|
4282
|
+
}
|
|
4283
|
+
else {
|
|
4284
|
+
parent.treeGrid.getRows()[i]['style'].height = tr['style'].height;
|
|
4285
|
+
}
|
|
4281
4286
|
}
|
|
4282
4287
|
}
|
|
4283
4288
|
parent.contentHeight = parent.enableRtl ? parent['element'].getElementsByClassName('e-content')[2].children[0]['offsetHeight'] :
|
|
@@ -4780,8 +4785,14 @@ class GanttChart {
|
|
|
4780
4785
|
this.parent.notify('chartMouseDown', e);
|
|
4781
4786
|
this.parent.element.tabIndex = 0;
|
|
4782
4787
|
}
|
|
4783
|
-
|
|
4784
|
-
|
|
4788
|
+
let isTaskbarEdited = false;
|
|
4789
|
+
if (this.parent.editSettings.allowTaskbarEditing && this.parent.element.querySelector('.e-left-resize-gripper')) {
|
|
4790
|
+
isTaskbarEdited = true;
|
|
4791
|
+
}
|
|
4792
|
+
if (!isTaskbarEdited) {
|
|
4793
|
+
if (this.parent.editSettings.allowEditing && this.parent.treeGrid.element.getElementsByClassName('e-editedbatchcell').length > 0) {
|
|
4794
|
+
this.parent.treeGrid.endEdit();
|
|
4795
|
+
}
|
|
4785
4796
|
}
|
|
4786
4797
|
}
|
|
4787
4798
|
ganttChartMouseClick(e) {
|
|
@@ -4791,6 +4802,22 @@ class GanttChart {
|
|
|
4791
4802
|
this.parent.notify('chartMouseClick', e);
|
|
4792
4803
|
}
|
|
4793
4804
|
ganttChartMouseUp(e) {
|
|
4805
|
+
if (e.type === "touchend") {
|
|
4806
|
+
var resizeCheck = this.parent.ganttChartModule.chartBodyContainer.querySelector('.e-taskbar-resize-div');
|
|
4807
|
+
if (!isNullOrUndefined(resizeCheck)) {
|
|
4808
|
+
resizeCheck.remove();
|
|
4809
|
+
}
|
|
4810
|
+
var Check = this.parent.ganttChartModule.chartBodyContainer.querySelector('.e-clone-taskbar') || this.parent.chartPane.querySelector('.e-clone-taskbar');
|
|
4811
|
+
if (!isNullOrUndefined(Check)) {
|
|
4812
|
+
var clonetbody = Check.parentElement;
|
|
4813
|
+
var cloneTable = clonetbody.parentElement;
|
|
4814
|
+
cloneTable.remove();
|
|
4815
|
+
}
|
|
4816
|
+
var falseline = this.parent.ganttChartModule.chartBodyContainer.querySelector('.e-gantt-false-line');
|
|
4817
|
+
if (!isNullOrUndefined(falseline)) {
|
|
4818
|
+
this.parent.editModule.taskbarEditModule.removeFalseLine(true);
|
|
4819
|
+
}
|
|
4820
|
+
}
|
|
4794
4821
|
if (this.parent.editSettings.allowTaskbarEditing) {
|
|
4795
4822
|
this.parent.notify('chartMouseUp', e);
|
|
4796
4823
|
}
|
|
@@ -4814,22 +4841,6 @@ class GanttChart {
|
|
|
4814
4841
|
}
|
|
4815
4842
|
}
|
|
4816
4843
|
}
|
|
4817
|
-
if (e.type === "touchend") {
|
|
4818
|
-
var resizeCheck = this.parent.ganttChartModule.chartBodyContainer.querySelector('.e-taskbar-resize-div');
|
|
4819
|
-
if (!isNullOrUndefined(resizeCheck)) {
|
|
4820
|
-
resizeCheck.remove();
|
|
4821
|
-
}
|
|
4822
|
-
var Check = this.parent.ganttChartModule.chartBodyContainer.querySelector('.e-clone-taskbar');
|
|
4823
|
-
if (!isNullOrUndefined(Check)) {
|
|
4824
|
-
var clonetbody = Check.parentElement;
|
|
4825
|
-
var cloneTable = clonetbody.parentElement;
|
|
4826
|
-
cloneTable.remove();
|
|
4827
|
-
}
|
|
4828
|
-
var falseline = this.parent.ganttChartModule.chartBodyContainer.querySelector('.e-gantt-false-line');
|
|
4829
|
-
if (!isNullOrUndefined(falseline)) {
|
|
4830
|
-
this.parent.editModule.taskbarEditModule.removeFalseLine(true);
|
|
4831
|
-
}
|
|
4832
|
-
}
|
|
4833
4844
|
}
|
|
4834
4845
|
/**
|
|
4835
4846
|
*
|
|
@@ -4883,6 +4894,9 @@ class GanttChart {
|
|
|
4883
4894
|
if (!isNullOrUndefined(resizeCheck)) {
|
|
4884
4895
|
resizeCheck.remove();
|
|
4885
4896
|
}
|
|
4897
|
+
if (this.parent.allowTaskbarDragAndDrop && this.parent.editModule && this.parent.editModule.taskbarEditModule) {
|
|
4898
|
+
this.parent.editModule.taskbarEditModule['previousLeftValue'] = 0;
|
|
4899
|
+
}
|
|
4886
4900
|
if (this.parent.allowRowDragAndDrop) {
|
|
4887
4901
|
const ganttDragElemet = this.parent.element.querySelector('.e-ganttdrag');
|
|
4888
4902
|
if (ganttDragElemet) {
|
|
@@ -5029,6 +5043,14 @@ class GanttChart {
|
|
|
5029
5043
|
if (this.parent.allowFiltering && this.parent.filterModule) {
|
|
5030
5044
|
this.parent.filterModule.closeFilterOnContextClick(e.srcElement);
|
|
5031
5045
|
}
|
|
5046
|
+
if (this.parent.allowTaskbarDragAndDrop) {
|
|
5047
|
+
let Check = this.parent.chartPane.querySelector('.e-clone-taskbar');
|
|
5048
|
+
if (!isNullOrUndefined(Check)) {
|
|
5049
|
+
let clonetbody = Check.parentElement;
|
|
5050
|
+
let cloneTable = clonetbody.parentElement;
|
|
5051
|
+
cloneTable.remove();
|
|
5052
|
+
}
|
|
5053
|
+
}
|
|
5032
5054
|
}
|
|
5033
5055
|
/**
|
|
5034
5056
|
* Method to trigger while perform mouse move on Gantt.
|
|
@@ -10828,7 +10850,12 @@ class ChartRows extends DateProcessor {
|
|
|
10828
10850
|
if (!tr) {
|
|
10829
10851
|
tr = this.ganttChartTableBody.childNodes[rowIndex];
|
|
10830
10852
|
}
|
|
10831
|
-
|
|
10853
|
+
if (this.parent.ganttChartModule.isExpandAll || this.parent.ganttChartModule.isCollapseAll) {
|
|
10854
|
+
tr['style'].height = this.parent.treeGrid.getRowByIndex(rowIndex)['style'].height = this.parent.rowHeight + 'px';
|
|
10855
|
+
}
|
|
10856
|
+
else {
|
|
10857
|
+
tr['style'].height = this.parent.treeGrid.getRows()[rowIndex]['style'].height = this.parent.rowHeight + 'px';
|
|
10858
|
+
}
|
|
10832
10859
|
this.parent.contentHeight = treeGridContentHeight;
|
|
10833
10860
|
let rowIDs = [];
|
|
10834
10861
|
let rowCounts = 0;
|
|
@@ -10845,7 +10872,12 @@ class ChartRows extends DateProcessor {
|
|
|
10845
10872
|
rowCounts++;
|
|
10846
10873
|
tr.children[0]['style'].verticalAlign = 'baseline';
|
|
10847
10874
|
tr.getElementsByClassName('e-taskbar-main-container')[k]['style'].marginTop = (rowCounts * this.parent.rowHeight) + this.taskBarMarginTop + 'px';
|
|
10848
|
-
|
|
10875
|
+
if (this.parent.ganttChartModule.isExpandAll || this.parent.ganttChartModule.isCollapseAll) {
|
|
10876
|
+
tr['style'].height = this.parent.treeGrid.getRowByIndex(rowIndex)['style'].height = parseInt(tr['style'].height) + this.parent.rowHeight + 'px';
|
|
10877
|
+
}
|
|
10878
|
+
else {
|
|
10879
|
+
tr['style'].height = this.parent.treeGrid.getRows()[rowIndex]['style'].height = parseInt(tr['style'].height) + this.parent.rowHeight + 'px';
|
|
10880
|
+
}
|
|
10849
10881
|
}
|
|
10850
10882
|
}
|
|
10851
10883
|
else {
|
|
@@ -10878,7 +10910,12 @@ class ChartRows extends DateProcessor {
|
|
|
10878
10910
|
if (index !== -1 && selectedItem) {
|
|
10879
10911
|
const data = selectedItem;
|
|
10880
10912
|
if (!this.parent.allowTaskbarOverlap && this.parent.viewType === 'ResourceView' && data.expanded) {
|
|
10881
|
-
|
|
10913
|
+
if (this.parent.ganttChartModule.isExpandAll || this.parent.ganttChartModule.isCollapseAll) {
|
|
10914
|
+
tr['style'].height = this.parent.treeGrid.getRowByIndex(index)['style'].height = this.parent.rowHeight + 'px';
|
|
10915
|
+
}
|
|
10916
|
+
else {
|
|
10917
|
+
tr['style'].height = this.parent.treeGrid.getRows()[index]['style'].height = this.parent.rowHeight + 'px';
|
|
10918
|
+
}
|
|
10882
10919
|
}
|
|
10883
10920
|
if (this.parent.viewType === 'ResourceView' && data.hasChildRecords && !data.expanded && this.parent.enableMultiTaskbar) {
|
|
10884
10921
|
tr.replaceChild(this.getResourceParent(data).childNodes[0], tr.childNodes[0]);
|
|
@@ -10939,8 +10976,14 @@ class ChartRows extends DateProcessor {
|
|
|
10939
10976
|
addClass([cloneElement], 'collpse-parent-border');
|
|
10940
10977
|
const id = tRow.querySelector('.' + taskBarMainContainer).getAttribute('rowUniqueId');
|
|
10941
10978
|
const ganttData = this.parent.getRecordByID(id);
|
|
10942
|
-
|
|
10943
|
-
|
|
10979
|
+
if (!(isNullOrUndefined(ganttData)) && ganttData.ganttProperties.segments && ganttData.ganttProperties.segments.length > 0) {
|
|
10980
|
+
const segmentedTasks = cloneElement.getElementsByClassName('e-segmented-taskbar');
|
|
10981
|
+
for (var i = 0; i < segmentedTasks.length; i++) {
|
|
10982
|
+
this.triggerQueryTaskbarInfoByIndex(segmentedTasks[i], ganttData);
|
|
10983
|
+
}
|
|
10984
|
+
}
|
|
10985
|
+
else if (this.parent.queryTaskbarInfo) {
|
|
10986
|
+
const mainTaskbar = (cloneElement.querySelector('.e-gantt-child-taskbar'));
|
|
10944
10987
|
this.triggerQueryTaskbarInfoByIndex(mainTaskbar, ganttData);
|
|
10945
10988
|
}
|
|
10946
10989
|
let zIndex = "";
|
|
@@ -12459,7 +12502,9 @@ class ConnectorLine {
|
|
|
12459
12502
|
}
|
|
12460
12503
|
}
|
|
12461
12504
|
}
|
|
12462
|
-
|
|
12505
|
+
if (!this.parent.enableVirtualization) {
|
|
12506
|
+
heightValue = Math.abs(parentOverlapTopValue - childOverlapTopValue);
|
|
12507
|
+
}
|
|
12463
12508
|
}
|
|
12464
12509
|
if (this.parent.currentViewData[data.parentIndex] && this.parent.currentViewData[data.childIndex] && this.parent.allowParentDependency) {
|
|
12465
12510
|
let fromRecordIsParent = this.parent.currentViewData[data.parentIndex].hasChildRecords;
|
|
@@ -12550,6 +12595,9 @@ class ConnectorLine {
|
|
|
12550
12595
|
d: this.arrowPath,
|
|
12551
12596
|
class: connectorLineArrow
|
|
12552
12597
|
});
|
|
12598
|
+
let outlineColor = (this.lineColor) && !(this.parent.enableCriticalPath) ? this.lineColor : '';
|
|
12599
|
+
this.connectorPath.setAttribute('style', `stroke: ${outlineColor}`);
|
|
12600
|
+
this.arrowlinePath.setAttribute('style', `fill: ${outlineColor}`);
|
|
12553
12601
|
// Append the path element to the group element
|
|
12554
12602
|
this.groupObject.appendChild(this.connectorPath);
|
|
12555
12603
|
this.groupObject.appendChild(this.arrowlinePath);
|
|
@@ -18628,6 +18676,8 @@ class EditTooltip {
|
|
|
18628
18676
|
class TaskbarEdit extends DateProcessor {
|
|
18629
18677
|
constructor(ganttObj) {
|
|
18630
18678
|
super(ganttObj);
|
|
18679
|
+
this.leftValue = 0;
|
|
18680
|
+
this.previousLeftValue = 0;
|
|
18631
18681
|
this.isMouseDragged = false;
|
|
18632
18682
|
this.dependencyCancel = false;
|
|
18633
18683
|
this.editElement = null;
|
|
@@ -18639,7 +18689,7 @@ class TaskbarEdit extends DateProcessor {
|
|
|
18639
18689
|
this.currentItemTop = 0;
|
|
18640
18690
|
this.currentItemPrevTop = 0;
|
|
18641
18691
|
this.topValue = 0;
|
|
18642
|
-
this.draggedRecordMarginTop =
|
|
18692
|
+
this.draggedRecordMarginTop = '0px';
|
|
18643
18693
|
this.parent = ganttObj;
|
|
18644
18694
|
this.initPublicProp();
|
|
18645
18695
|
this.wireEvents();
|
|
@@ -19109,17 +19159,6 @@ class TaskbarEdit extends DateProcessor {
|
|
|
19109
19159
|
this.mouseDownY = this.dragMoveY = e.pageY - containerPosition.top +
|
|
19110
19160
|
this.parent.ganttChartModule.scrollObject.previousScroll.top;
|
|
19111
19161
|
}
|
|
19112
|
-
if (this.parent.viewType == "ResourceView" && this.parent.allowTaskbarDragAndDrop) {
|
|
19113
|
-
let toolbarHeight = 0;
|
|
19114
|
-
if (!isNullOrUndefined(this.parent.toolbarModule) && !isNullOrUndefined(this.parent.toolbarModule.element)) {
|
|
19115
|
-
toolbarHeight = this.parent.toolbarModule.element.offsetHeight;
|
|
19116
|
-
}
|
|
19117
|
-
this.topValue = this.parent.getOffsetRect(event.target).top - this.parent.getOffsetRect(this.parent.element).top -
|
|
19118
|
-
parseInt((closest(event.target, '.e-taskbar-main-container'))['style'].marginTop) -
|
|
19119
|
-
this.parent.element.getElementsByClassName('e-timeline-header-container')[0]['offsetHeight'] -
|
|
19120
|
-
toolbarHeight + document.getElementsByClassName('e-chart-scroll-container e-content')[0].scrollTop;
|
|
19121
|
-
this.currentItemPrevTop = this.currentItemTop = this.topValue;
|
|
19122
|
-
}
|
|
19123
19162
|
if (this.taskBarEditAction === 'ConnectorPointLeftDrag' || this.taskBarEditAction === 'ConnectorPointRightDrag') {
|
|
19124
19163
|
this.fromPredecessorText = this.taskBarEditAction === 'ConnectorPointLeftDrag' ? 'start' : 'finish';
|
|
19125
19164
|
this.parent.connectorLineModule.tooltipTable.innerHTML = this.parent.connectorLineModule.getConnectorLineTooltipInnerTd(this.taskBarEditRecord.ganttProperties.taskName, this.fromPredecessorText, '', '');
|
|
@@ -19182,7 +19221,12 @@ class TaskbarEdit extends DateProcessor {
|
|
|
19182
19221
|
currentElement.parentElement.appendChild(this.taskbarElement);
|
|
19183
19222
|
}
|
|
19184
19223
|
else {
|
|
19185
|
-
|
|
19224
|
+
if (this.parent.allowTaskbarDragAndDrop && this.taskBarEditAction !== 'LeftResizing' && this.taskBarEditAction !== 'RightResizing' && this.taskBarEditAction !== 'ProgressResizing') {
|
|
19225
|
+
this.parent.chartPane.getElementsByClassName('e-gantt-chart')[0].appendChild(this.taskbarElement);
|
|
19226
|
+
}
|
|
19227
|
+
else {
|
|
19228
|
+
currentElement.appendChild(this.taskbarElement);
|
|
19229
|
+
}
|
|
19186
19230
|
}
|
|
19187
19231
|
if (this.taskBarEditAction !== 'ProgressResizing') {
|
|
19188
19232
|
const rootElement = this.parent.ganttChartModule.chartBodyContainer.querySelectorAll(".e-chart-rows-container");
|
|
@@ -19264,26 +19308,40 @@ class TaskbarEdit extends DateProcessor {
|
|
|
19264
19308
|
this.triggerDependencyEvent(e);
|
|
19265
19309
|
this.drawFalseLine();
|
|
19266
19310
|
}
|
|
19267
|
-
if (this.parent.viewType == 'ResourceView' && this.parent.allowTaskbarDragAndDrop) {
|
|
19268
|
-
|
|
19269
|
-
|
|
19270
|
-
|
|
19271
|
-
}
|
|
19272
|
-
|
|
19273
|
-
|
|
19274
|
-
|
|
19275
|
-
|
|
19276
|
-
|
|
19277
|
-
|
|
19278
|
-
|
|
19311
|
+
if (this.parent.viewType == 'ResourceView' && this.parent.allowTaskbarDragAndDrop && this.taskBarEditAction !== 'LeftResizing' && this.taskBarEditAction !== 'RightResizing' && this.taskBarEditAction !== 'ProgressResizing') {
|
|
19312
|
+
let parentClientRect = this.parent.getOffsetRect(this.parent.chartPane);
|
|
19313
|
+
let coordinates = this.getCoordinate(e);
|
|
19314
|
+
let position = { top: coordinates.pageY, left: coordinates.pageX };
|
|
19315
|
+
let pos = { left: Math.abs(position.left - parentClientRect.left), top: position.top - parentClientRect.top };
|
|
19316
|
+
let parentRecord = this.parent.getRecordByID(this.taskBarEditRecord.parentItem.taskId);
|
|
19317
|
+
if (!this.parent.allowTaskbarOverlap && this.taskBarEditRecord.parentItem && !parentRecord.expanded) {
|
|
19318
|
+
let reduceHeight = 0;
|
|
19319
|
+
if (parseInt(this.editElement['style'].marginTop) > this.parent.rowHeight) {
|
|
19320
|
+
for (let i = 0; i < parentRecord.childRecords.length; i++) {
|
|
19321
|
+
if (parentRecord.childRecords[i].ganttProperties.taskId !== this.taskBarEditRecord.ganttProperties.taskId) {
|
|
19322
|
+
reduceHeight = reduceHeight + this.parent.rowHeight;
|
|
19323
|
+
}
|
|
19324
|
+
else {
|
|
19325
|
+
break;
|
|
19326
|
+
}
|
|
19327
|
+
}
|
|
19328
|
+
pos.top = pos.top - reduceHeight;
|
|
19329
|
+
}
|
|
19279
19330
|
}
|
|
19280
|
-
|
|
19281
|
-
|
|
19331
|
+
this.topValue = pos.top;
|
|
19332
|
+
this.leftValue = pos.left - (e.pageX - this.parent.getOffsetRect(this.taskBarEditElement).left) + (this.previousLeftValue !== 0 ? e.pageX - this.previousLeftValue : 0);
|
|
19333
|
+
if (this.previousLeftValue == 0) {
|
|
19334
|
+
if (!this.parent.enableRtl) {
|
|
19335
|
+
this.leftValue = this.leftValue - this.parent.ganttChartModule.scrollObject.previousScroll.left + 4;
|
|
19336
|
+
}
|
|
19337
|
+
else {
|
|
19338
|
+
this.leftValue = this.leftValue + Math.abs(this.parent.ganttChartModule.scrollObject.previousScroll.left) + 4;
|
|
19339
|
+
}
|
|
19282
19340
|
}
|
|
19283
|
-
this.
|
|
19284
|
-
|
|
19285
|
-
|
|
19286
|
-
|
|
19341
|
+
this.previousLeftValue = e.pageX;
|
|
19342
|
+
}
|
|
19343
|
+
else {
|
|
19344
|
+
this.leftValue = this.taskBarEditRecord.ganttProperties.left;
|
|
19287
19345
|
}
|
|
19288
19346
|
this.setItemPosition();
|
|
19289
19347
|
this.updateEditedItem();
|
|
@@ -20171,7 +20229,7 @@ class TaskbarEdit extends DateProcessor {
|
|
|
20171
20229
|
}
|
|
20172
20230
|
}
|
|
20173
20231
|
}
|
|
20174
|
-
taskBarMainContainer$$1.style.setProperty(position, (item.left) + 'px');
|
|
20232
|
+
taskBarMainContainer$$1.style.setProperty(position, (this.parent.allowTaskbarDragAndDrop ? this.leftValue : (item.left)) + 'px');
|
|
20175
20233
|
taskBarMainContainer$$1.style.width = (width) + 'px';
|
|
20176
20234
|
if (segmentedTaskBarContainer && segmentConnectorPointRight) {
|
|
20177
20235
|
segmentConnectorPointRight.style.left = (this.parent.isAdaptive ? (width + 10) : (width + 2)) + 'px';
|
|
@@ -20191,7 +20249,7 @@ class TaskbarEdit extends DateProcessor {
|
|
|
20191
20249
|
segmentElement.style.width = (segment.width) + 'px';
|
|
20192
20250
|
if (i === 0) {
|
|
20193
20251
|
resizeLine.style.width = (segment.width) + "px";
|
|
20194
|
-
resizeLine.style.
|
|
20252
|
+
resizeLine.style.setProperty(position, (segment.left + item.left) + 'px');
|
|
20195
20253
|
}
|
|
20196
20254
|
if (this.parent.enableRtl) {
|
|
20197
20255
|
segmentElement.style.right = (segment.left) + 'px';
|
|
@@ -20203,7 +20261,7 @@ class TaskbarEdit extends DateProcessor {
|
|
|
20203
20261
|
}
|
|
20204
20262
|
if (this.taskBarEditAction === 'ChildDrag' && this.segmentIndex === 0) {
|
|
20205
20263
|
resizeLine.style.width = (width) + "px";
|
|
20206
|
-
resizeLine.style.
|
|
20264
|
+
resizeLine.style.setProperty(position, item.left + 'px');
|
|
20207
20265
|
taskBarMainContainer$$1.style.setProperty("opacity", '.75');
|
|
20208
20266
|
}
|
|
20209
20267
|
}
|
|
@@ -20217,7 +20275,7 @@ class TaskbarEdit extends DateProcessor {
|
|
|
20217
20275
|
}
|
|
20218
20276
|
if (this.taskBarEditAction === 'MilestoneDrag' || item.isMilestone) {
|
|
20219
20277
|
taskBarMainContainer$$1.style.setProperty(position, (item.left - (width / 2)) + 'px');
|
|
20220
|
-
resizeLine.style.
|
|
20278
|
+
resizeLine.style.setProperty(position, (item.left - (width / 2)) + 'px');
|
|
20221
20279
|
resizeLine.style.width = (width) + "px";
|
|
20222
20280
|
}
|
|
20223
20281
|
else if (this.taskBarEditAction === 'ProgressResizing') {
|
|
@@ -20252,7 +20310,7 @@ class TaskbarEdit extends DateProcessor {
|
|
|
20252
20310
|
}
|
|
20253
20311
|
}
|
|
20254
20312
|
else if (this.taskBarEditAction === 'ParentDrag') {
|
|
20255
|
-
resizeLine.style.
|
|
20313
|
+
resizeLine.style.setProperty(position, item.left + 'px');
|
|
20256
20314
|
resizeLine.style.width = (width) + "px";
|
|
20257
20315
|
resizeLine.style.width = (item.width) + 'px';
|
|
20258
20316
|
if (!isNullOrUndefined(traceParentTaskBar$$1)) {
|
|
@@ -20265,13 +20323,13 @@ class TaskbarEdit extends DateProcessor {
|
|
|
20265
20323
|
}
|
|
20266
20324
|
else if (this.taskBarEditAction === 'ParentResizing') {
|
|
20267
20325
|
resizeLine.style.width = (item.width) + 'px';
|
|
20268
|
-
resizeLine.style.
|
|
20326
|
+
resizeLine.style.setProperty(position, item.left + 'px');
|
|
20269
20327
|
manualParentTaskbar.style.width = manualTaskbar.style.width = (item.width) + 'px';
|
|
20270
20328
|
manualParentRight.style.setProperty(position, item.width - manualParentLeft.offsetLeft + 'px');
|
|
20271
20329
|
}
|
|
20272
20330
|
else if (this.taskBarEditAction === 'ManualParentDrag') {
|
|
20273
20331
|
resizeLine.style.width = (item.width) + 'px';
|
|
20274
|
-
resizeLine.style.
|
|
20332
|
+
resizeLine.style.setProperty(position, item.left + 'px');
|
|
20275
20333
|
manualParentTaskbar.style.setProperty(position, item.left - item.autoLeft + 'px');
|
|
20276
20334
|
}
|
|
20277
20335
|
else {
|
|
@@ -20279,8 +20337,8 @@ class TaskbarEdit extends DateProcessor {
|
|
|
20279
20337
|
traceChildTaskBar$$1.style.width = (item.width) + 'px';
|
|
20280
20338
|
traceChildTaskBar$$1.style.left = (item.left) + 'px';
|
|
20281
20339
|
this.taskBarEditElement.style.width = (item.width) + 'px';
|
|
20282
|
-
this.taskBarEditElement.style.left = (item.left) + "px";
|
|
20283
|
-
resizeLine.style.
|
|
20340
|
+
this.taskBarEditElement.style.left = ((this.parent.allowTaskbarDragAndDrop ? this.leftValue : (item.left))) + "px";
|
|
20341
|
+
resizeLine.style.setProperty(position, item.left + 'px');
|
|
20284
20342
|
resizeLine.style.width = (item.width) + "px";
|
|
20285
20343
|
}
|
|
20286
20344
|
if (!isNullOrUndefined(traceChildProgressBar$$1)) {
|
|
@@ -20314,6 +20372,13 @@ class TaskbarEdit extends DateProcessor {
|
|
|
20314
20372
|
if (this.taskBarEditAction && this.isMouseDragged) {
|
|
20315
20373
|
if ((!this.dragMouseLeave && this.taskBarEditedAction) || (this.parent.viewType === 'ResourceView' &&
|
|
20316
20374
|
this.parent.allowTaskbarDragAndDrop)) {
|
|
20375
|
+
if (e.type === 'touchmove' || e.type === 'touchstart' || e.type === 'touchend') {
|
|
20376
|
+
let coordinates = this.getCoordinate(e);
|
|
20377
|
+
this['droppedTarget'] = document.elementFromPoint(coordinates.pageX, coordinates.pageY);
|
|
20378
|
+
}
|
|
20379
|
+
else {
|
|
20380
|
+
this['droppedTarget'] = document.elementFromPoint(e.x, e.y);
|
|
20381
|
+
}
|
|
20317
20382
|
this.taskBarEditedAction(e);
|
|
20318
20383
|
this.isMouseDragged = false;
|
|
20319
20384
|
}
|
|
@@ -20424,7 +20489,7 @@ class TaskbarEdit extends DateProcessor {
|
|
|
20424
20489
|
const args = extend({}, arg);
|
|
20425
20490
|
const ganttRecord = args.data;
|
|
20426
20491
|
const taskData = ganttRecord.ganttProperties;
|
|
20427
|
-
const draggedRecIndex = this.parent.
|
|
20492
|
+
const draggedRecIndex = this.parent.flatData.indexOf(ganttRecord);
|
|
20428
20493
|
if ((args.taskBarEditAction === 'MilestoneDrag' || args.taskBarEditAction === 'ChildDrag') && this.parent.viewType === "ResourceView"
|
|
20429
20494
|
&& this.parent.allowTaskbarDragAndDrop && this.dragMoveY > 0) {
|
|
20430
20495
|
if (this.parent.rowDragAndDropModule) {
|
|
@@ -20432,45 +20497,13 @@ class TaskbarEdit extends DateProcessor {
|
|
|
20432
20497
|
if (flatRecordCol[this.taskBarEditRecord.parentItem.index] && ((this.parent.editedRecords.indexOf(flatRecordCol[this.taskBarEditRecord.parentItem.index]) === -1))) {
|
|
20433
20498
|
this.parent.editedRecords.push(flatRecordCol[this.taskBarEditRecord.parentItem.index]);
|
|
20434
20499
|
}
|
|
20435
|
-
let
|
|
20436
|
-
|
|
20437
|
-
let
|
|
20438
|
-
let
|
|
20439
|
-
|
|
20440
|
-
|
|
20441
|
-
|
|
20442
|
-
if (resHeight < this.dragMoveY && this.parent.getRowByIndex(i).style.display !== 'none') {
|
|
20443
|
-
rowCount = i;
|
|
20444
|
-
resHeight = resHeight + parseInt(this.parent.getRowByIndex(i).style.height);
|
|
20445
|
-
if (!flatRecordCol[i].parentItem) {
|
|
20446
|
-
ganttrec = flatRecordCol[i];
|
|
20447
|
-
}
|
|
20448
|
-
else {
|
|
20449
|
-
ganttrec = this.parent.getRecordByID(flatRecordCol[i].parentItem.taskId);
|
|
20450
|
-
}
|
|
20451
|
-
}
|
|
20452
|
-
}
|
|
20453
|
-
let draggedRecordtaskbar = this.parent.getRowByIndex(draggedRecIndex).getElementsByClassName('e-taskbar-main-container');
|
|
20454
|
-
let taskbarContainer = this.parent.getRowByIndex(rowCount).getElementsByClassName('e-taskbar-main-container');
|
|
20455
|
-
for (let j = 0; j < taskbarContainer.length; j++) {
|
|
20456
|
-
if (taskbarContainer[j]['offsetTop'] < this.dragMoveY && draggedRecordtaskbar[0].getAttribute('rowuniqueid') !==
|
|
20457
|
-
taskbarContainer[j].getAttribute('rowuniqueid')) {
|
|
20458
|
-
this.draggedRecordMarginTop = taskbarContainer[j]['style'].marginTop;
|
|
20459
|
-
childIndex = taskbarContainer[j].getAttribute('rowuniqueid');
|
|
20460
|
-
}
|
|
20461
|
-
}
|
|
20462
|
-
if (childIndex) {
|
|
20463
|
-
droppedRecord = this.parent.currentViewData.filter((data) => {
|
|
20464
|
-
if (data['rowUniqueID'] === childIndex) {
|
|
20465
|
-
return data;
|
|
20466
|
-
}
|
|
20467
|
-
else {
|
|
20468
|
-
return null;
|
|
20469
|
-
}
|
|
20470
|
-
});
|
|
20471
|
-
}
|
|
20472
|
-
if (droppedRecord) {
|
|
20473
|
-
const droppedRecordIndex = this.parent.currentViewData.indexOf(droppedRecord[0]);
|
|
20500
|
+
let droppedRecord = [];
|
|
20501
|
+
this.draggedRecordMarginTop = this.taskBarEditElement.style.marginTop;
|
|
20502
|
+
let row = closest(this.droppedTarget, 'tr.' + chartRow);
|
|
20503
|
+
let recordIndex = parseInt(row.getAttribute('aria-rowindex'));
|
|
20504
|
+
droppedRecord.push(this.parent.flatData[recordIndex]);
|
|
20505
|
+
if (droppedRecord.length > 0) {
|
|
20506
|
+
const droppedRecordIndex = this.parent.flatData.indexOf(droppedRecord[0]);
|
|
20474
20507
|
let position = (droppedRecord[0].hasChildRecords || (!droppedRecord[0].parentItem &&
|
|
20475
20508
|
droppedRecord[0].childRecords.length == 0)) ? 'child' : 'below';
|
|
20476
20509
|
if (this.parent.rowDragAndDropModule) {
|
|
@@ -24704,6 +24737,13 @@ class Edit$2 {
|
|
|
24704
24737
|
if (ganttData.ganttProperties.baselineEndDate && ganttData.ganttProperties.baselineEndDate.getHours() === 0 && this.parent.defaultEndTime !== 86400) {
|
|
24705
24738
|
ganttObj.dataOperation.setTime(this.parent.defaultEndTime, ganttData.ganttProperties.baselineEndDate);
|
|
24706
24739
|
}
|
|
24740
|
+
if ((ganttData.ganttProperties.baselineStartDate && ganttData.ganttProperties.baselineEndDate &&
|
|
24741
|
+
(ganttData.ganttProperties.baselineStartDate.getTime() > ganttData.ganttProperties.baselineEndDate.getTime())) ||
|
|
24742
|
+
((!isNullOrUndefined(ganttData.ganttProperties.baselineStartDate) && !isNullOrUndefined(ganttData.ganttProperties.startDate) && (ganttData.ganttProperties.baselineStartDate.getTime() === ganttData.ganttProperties.startDate.getTime()))
|
|
24743
|
+
&& (!isNullOrUndefined(ganttData.ganttProperties.baselineEndDate) && !isNullOrUndefined(ganttData.ganttProperties.endDate) && (ganttData.ganttProperties.baselineEndDate.toLocaleDateString() === ganttData.ganttProperties.endDate.toLocaleDateString())) &&
|
|
24744
|
+
ganttData.ganttProperties.isMilestone)) {
|
|
24745
|
+
ganttData.ganttProperties.baselineEndDate = ganttData.ganttProperties.baselineStartDate;
|
|
24746
|
+
}
|
|
24707
24747
|
ganttObj.setRecordValue('baselineEndDate', ganttObj.dataOperation.checkBaselineEndDate(ganttData.ganttProperties.baselineEndDate), ganttData.ganttProperties, true);
|
|
24708
24748
|
ganttObj.setRecordValue('baselineLeft', ganttObj.dataOperation.calculateBaselineLeft(ganttData.ganttProperties), ganttData.ganttProperties, true);
|
|
24709
24749
|
ganttObj.setRecordValue('baselineWidth', ganttObj.dataOperation.calculateBaselineWidth(ganttData.ganttProperties), ganttData.ganttProperties, true);
|
|
@@ -25490,7 +25530,7 @@ class Edit$2 {
|
|
|
25490
25530
|
this.parent.editedRecords[parseInt(i.toString(), 10)].ganttProperties['endDate'] = rec[this.parent.taskFields.endDate];
|
|
25491
25531
|
}
|
|
25492
25532
|
if (this.parent.taskFields.duration !== null) {
|
|
25493
|
-
this.parent.editedRecords[parseInt(i.toString(), 10)].ganttProperties['duration'] =
|
|
25533
|
+
this.parent.editedRecords[parseInt(i.toString(), 10)].ganttProperties['duration'] = parseFloat(rec[this.parent.taskFields.duration]);
|
|
25494
25534
|
}
|
|
25495
25535
|
if (this.parent.taskFields.durationUnit !== null) {
|
|
25496
25536
|
this.parent.editedRecords[parseInt(i.toString(), 10)].ganttProperties['durationUnit'] = rec[this.parent.taskFields.durationUnit];
|
|
@@ -25579,6 +25619,9 @@ class Edit$2 {
|
|
|
25579
25619
|
this.parent.editModule.dialogModule.previousResource = [];
|
|
25580
25620
|
}
|
|
25581
25621
|
if (!this.isTreeGridRefresh) {
|
|
25622
|
+
if (this.parent.editSettings.allowEditing && this.parent.treeGrid.element.getElementsByClassName('e-editedbatchcell').length > 0) {
|
|
25623
|
+
this.parent.treeGrid.endEdit();
|
|
25624
|
+
}
|
|
25582
25625
|
this.parent.chartRowsModule.refreshRecords(this.parent.editedRecords);
|
|
25583
25626
|
if (this.parent.viewType === 'ResourceView' && !this.parent.allowTaskbarOverlap && this.parent.showOverAllocation) {
|
|
25584
25627
|
this.parent.contentHeight = this.parent['element'].getElementsByClassName('e-content')[0].children[0]['offsetHeight'];
|
|
@@ -27102,7 +27145,7 @@ class Edit$2 {
|
|
|
27102
27145
|
args.data.ganttProperties['endDate'] = serverReturnedValue[this.parent.taskFields.endDate];
|
|
27103
27146
|
}
|
|
27104
27147
|
if (this.parent.taskFields.duration !== null) {
|
|
27105
|
-
args.data.ganttProperties['duration'] =
|
|
27148
|
+
args.data.ganttProperties['duration'] = parseFloat(serverReturnedValue[this.parent.taskFields.duration]);
|
|
27106
27149
|
}
|
|
27107
27150
|
if (this.parent.taskFields.durationUnit !== null) {
|
|
27108
27151
|
args.data.ganttProperties['durationUnit'] = serverReturnedValue[this.parent.taskFields.durationUnit];
|
|
@@ -30740,8 +30783,8 @@ class CriticalPath {
|
|
|
30740
30783
|
if (record.ganttProperties.progress < 100) {
|
|
30741
30784
|
record.isCritical = true;
|
|
30742
30785
|
record.ganttProperties.isCritical = true;
|
|
30743
|
-
if (criticalPathIds.indexOf(
|
|
30744
|
-
criticalPathIds.push(
|
|
30786
|
+
if (criticalPathIds.indexOf(record.ganttProperties.taskId) == -1) {
|
|
30787
|
+
criticalPathIds.push(record.ganttProperties.taskId);
|
|
30745
30788
|
}
|
|
30746
30789
|
}
|
|
30747
30790
|
}
|
|
@@ -30763,9 +30806,12 @@ class CriticalPath {
|
|
|
30763
30806
|
fromRecord.slack = record.slack;
|
|
30764
30807
|
fromRecord.isCritical = record.ganttProperties.isCritical;
|
|
30765
30808
|
fromRecord.ganttProperties.isCritical = record.ganttProperties.isCritical;
|
|
30766
|
-
if (criticalPathIds.indexOf(
|
|
30809
|
+
if (criticalPathIds.indexOf(fromRecord.ganttProperties.taskId) === -1 && fromRecord.ganttProperties.isCritical && fromRecord.ganttProperties.progress < 100) {
|
|
30810
|
+
criticalPathIds.push(fromRecord.ganttProperties.taskId);
|
|
30767
30811
|
this.validatedids.push(parseInt(fromRecord.ganttProperties.taskId));
|
|
30768
|
-
|
|
30812
|
+
if (this.criticalTasks.indexOf(fromRecord) === -1) {
|
|
30813
|
+
this.criticalTasks.push(fromRecord);
|
|
30814
|
+
}
|
|
30769
30815
|
}
|
|
30770
30816
|
if (fromRecord.ganttProperties.predecessorsName) {
|
|
30771
30817
|
this.updateCriticalTasks(fromRecord, criticalPathIds);
|
|
@@ -30850,7 +30896,9 @@ class CriticalPath {
|
|
|
30850
30896
|
if (flatRecords[index].ganttProperties.progress < 100) {
|
|
30851
30897
|
flatRecords[index].isCritical = true;
|
|
30852
30898
|
flatRecords[index].ganttProperties.isCritical = true;
|
|
30853
|
-
this.criticalTasks.
|
|
30899
|
+
if (this.criticalTasks.indexOf(flatRecords[index]) == -1) {
|
|
30900
|
+
this.criticalTasks.push(flatRecords[index]);
|
|
30901
|
+
}
|
|
30854
30902
|
if (criticalPathIds.indexOf(collection[x]['taskid']) === -1) {
|
|
30855
30903
|
criticalPathIds.push(collection[x]['taskid']);
|
|
30856
30904
|
}
|
|
@@ -32295,12 +32343,12 @@ class RowDD$1 {
|
|
|
32295
32343
|
deleteSharedResourceTask() {
|
|
32296
32344
|
for (let i = 0; i < this.parent.getTaskIds().length; i++) {
|
|
32297
32345
|
if (this.parent.getTaskIds()[i] === 'T' + this.draggedRecord.ganttProperties.taskId) {
|
|
32298
|
-
if (this.parent.getTaskByUniqueID(this.parent.
|
|
32299
|
-
this.removeRecords(this.parent.
|
|
32346
|
+
if (this.parent.getTaskByUniqueID(this.parent.flatData[i].parentItem.uniqueID).ganttProperties.taskName !== 'Unassigned Task') {
|
|
32347
|
+
this.removeRecords(this.parent.flatData[i]);
|
|
32300
32348
|
}
|
|
32301
32349
|
/* eslint-disable-next-line */
|
|
32302
|
-
if (!isNullOrUndefined(this.parent.
|
|
32303
|
-
this.updateParentRecords.push(this.parent.
|
|
32350
|
+
if (!isNullOrUndefined(this.parent.flatData[i].parentItem && this.updateParentRecords.indexOf(this.parent.flatData[i].parentItem) !== -1)) {
|
|
32351
|
+
this.updateParentRecords.push(this.parent.flatData[i].parentItem);
|
|
32304
32352
|
}
|
|
32305
32353
|
}
|
|
32306
32354
|
}
|
|
@@ -32324,7 +32372,7 @@ class RowDD$1 {
|
|
|
32324
32372
|
this.parent.editModule.updateGanttProperties(this.draggedRecord, this.parent.flatData[i]);
|
|
32325
32373
|
this.parent.dataOperation.updateTaskData(this.parent.flatData[i]);
|
|
32326
32374
|
/* eslint-disable-next-line */
|
|
32327
|
-
if (!isNullOrUndefined(this.parent.flatData[i].parentItem && this.updateParentRecords.indexOf(this.parent.
|
|
32375
|
+
if (!isNullOrUndefined(this.parent.flatData[i].parentItem && this.updateParentRecords.indexOf(this.parent.flatData[i].parentItem) !== -1)) {
|
|
32328
32376
|
this.updateParentRecords.push(this.parent.flatData[i].parentItem);
|
|
32329
32377
|
}
|
|
32330
32378
|
}
|
|
@@ -32755,7 +32803,7 @@ class RowDD$1 {
|
|
|
32755
32803
|
}
|
|
32756
32804
|
const data = [];
|
|
32757
32805
|
for (let i = 0; i < fromIndexes.length; i++) {
|
|
32758
|
-
data[i] = this.parent.
|
|
32806
|
+
data[i] = this.parent.flatData[fromIndexes[i]];
|
|
32759
32807
|
}
|
|
32760
32808
|
const isByMethod = true;
|
|
32761
32809
|
const args = {
|
|
@@ -35113,10 +35161,10 @@ class ExportHelper {
|
|
|
35113
35161
|
this.parent.predecessorModule.createConnectorLinesCollection();
|
|
35114
35162
|
this.parent.updatedConnectorLineCollection.forEach((data) => {
|
|
35115
35163
|
const predecessor = this.gantt.predecessor.add();
|
|
35116
|
-
predecessor.parentLeft = data.parentLeft;
|
|
35117
|
-
predecessor.childLeft = data.childLeft;
|
|
35118
|
-
predecessor.parentWidth = data.parentWidth;
|
|
35119
|
-
predecessor.childWidth = data.childWidth;
|
|
35164
|
+
predecessor.parentLeft = pointToPixel(data.parentLeft);
|
|
35165
|
+
predecessor.childLeft = pointToPixel(data.childLeft);
|
|
35166
|
+
predecessor.parentWidth = pointToPixel(data.parentWidth);
|
|
35167
|
+
predecessor.childWidth = pointToPixel(data.childWidth);
|
|
35120
35168
|
predecessor.parentIndex = data.parentIndex;
|
|
35121
35169
|
predecessor.childIndex = data.childIndex;
|
|
35122
35170
|
predecessor.rowHeight = data.rowHeight;
|
|
@@ -35199,8 +35247,8 @@ class ExportHelper {
|
|
|
35199
35247
|
flatData.forEach((data) => {
|
|
35200
35248
|
const taskbar = this.gantt.taskbar.add();
|
|
35201
35249
|
const ganttProp = data.ganttProperties;
|
|
35202
|
-
taskbar.left = ganttProp.left;
|
|
35203
|
-
taskbar.width = ganttProp.width;
|
|
35250
|
+
taskbar.left = pointToPixel(ganttProp.left);
|
|
35251
|
+
taskbar.width = pointToPixel(ganttProp.width);
|
|
35204
35252
|
if (taskbar.left < 0) {
|
|
35205
35253
|
taskbar.width = taskbar.width + taskbar.left;
|
|
35206
35254
|
taskbar.left = 0;
|
|
@@ -35241,8 +35289,8 @@ class ExportHelper {
|
|
|
35241
35289
|
taskbar.isMilestone = ganttProp.isMilestone;
|
|
35242
35290
|
taskbar.baselineStartDate = ganttProp.baselineStartDate;
|
|
35243
35291
|
taskbar.baselineEndDate = ganttProp.baselineEndDate;
|
|
35244
|
-
taskbar.baselineLeft = ganttProp.baselineLeft;
|
|
35245
|
-
taskbar.baselineWidth = ganttProp.baselineWidth;
|
|
35292
|
+
taskbar.baselineLeft = pointToPixel(ganttProp.baselineLeft);
|
|
35293
|
+
taskbar.baselineWidth = pointToPixel(ganttProp.baselineWidth);
|
|
35246
35294
|
taskbar.milestoneColor = new PdfColor(this.ganttStyle.taskbar.milestoneColor);
|
|
35247
35295
|
taskbar.isParentTask = data.hasChildRecords;
|
|
35248
35296
|
if (ganttProp.isMilestone) {
|
|
@@ -35258,9 +35306,9 @@ class ExportHelper {
|
|
|
35258
35306
|
taskbar.taskLabel = data[this.parent.labelSettings.taskLabel].toString();
|
|
35259
35307
|
}
|
|
35260
35308
|
const reduceLeft = ganttProp.isMilestone ? Math.floor(this.parent.chartRowsModule.taskBarHeight / 2) + 33 : 33; // 33 indicates default timeline cell width
|
|
35261
|
-
taskbar.rightTaskLabel.left = ganttProp.left + ganttProp.width + reduceLeft; // right label left value
|
|
35309
|
+
taskbar.rightTaskLabel.left = pointToPixel(ganttProp.left) + pointToPixel(ganttProp.width) + reduceLeft; // right label left value
|
|
35262
35310
|
taskbar.fontFamily = this.ganttStyle.fontFamily;
|
|
35263
|
-
taskbar.progressWidth = ganttProp.progressWidth;
|
|
35311
|
+
taskbar.progressWidth = pointToPixel(ganttProp.progressWidth);
|
|
35264
35312
|
taskbar.labelColor = new PdfColor(this.ganttStyle.label.fontColor);
|
|
35265
35313
|
taskbar.progressFontColor = new PdfColor(this.ganttStyle.taskbar.progressFontColor);
|
|
35266
35314
|
if (taskbar.isParentTask) {
|