@syncfusion/ej2-gantt 21.2.10 → 22.1.34
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/.eslintrc.json +1 -0
- package/CHANGELOG.md +12 -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 +734 -711
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +773 -751
- package/dist/es6/ej2-gantt.es5.js.map +1 -1
- package/dist/global/ej2-gantt.min.js +2 -2
- package/dist/global/ej2-gantt.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +20 -19
- package/src/gantt/actions/connector-line-edit.js +21 -26
- package/src/gantt/actions/context-menu.js +2 -2
- package/src/gantt/actions/critical-path.js +4 -9
- package/src/gantt/actions/day-markers.js +4 -1
- package/src/gantt/actions/edit.js +8 -6
- package/src/gantt/actions/pdf-export.js +1 -1
- package/src/gantt/actions/taskbar-edit.d.ts +6 -0
- package/src/gantt/actions/taskbar-edit.js +120 -45
- package/src/gantt/base/css-constants.d.ts +5 -10
- package/src/gantt/base/css-constants.js +5 -10
- package/src/gantt/base/date-processor.js +1 -19
- package/src/gantt/base/enum.d.ts +215 -231
- package/src/gantt/base/gantt-chart.js +112 -5
- package/src/gantt/base/gantt-model.d.ts +6 -3
- package/src/gantt/base/gantt.d.ts +7 -3
- package/src/gantt/base/gantt.js +17 -13
- package/src/gantt/base/interface.d.ts +36 -1
- package/src/gantt/base/task-processor.js +14 -15
- package/src/gantt/base/tree-grid.js +1 -1
- package/src/gantt/export/export-helper.js +1 -0
- package/src/gantt/export/pdf-connector-line.d.ts +4 -4
- package/src/gantt/export/pdf-connector-line.js +11 -22
- package/src/gantt/export/pdf-gantt.d.ts +1 -2
- package/src/gantt/export/pdf-gantt.js +4 -4
- package/src/gantt/models/column.d.ts +8 -4
- package/src/gantt/models/edit-settings-model.d.ts +1 -0
- package/src/gantt/models/edit-settings.d.ts +1 -0
- package/src/gantt/models/filter-settings-model.d.ts +3 -0
- package/src/gantt/models/filter-settings.d.ts +3 -0
- package/src/gantt/models/search-settings-model.d.ts +1 -0
- package/src/gantt/models/search-settings.d.ts +1 -0
- package/src/gantt/models/sort-settings-model.d.ts +1 -0
- package/src/gantt/models/sort-settings.d.ts +1 -0
- package/src/gantt/models/tooltip-settings-model.d.ts +8 -4
- package/src/gantt/models/tooltip-settings.d.ts +8 -4
- package/src/gantt/renderer/chart-rows.d.ts +1 -1
- package/src/gantt/renderer/chart-rows.js +27 -65
- package/src/gantt/renderer/connector-line.d.ts +23 -0
- package/src/gantt/renderer/connector-line.js +287 -384
- package/src/gantt/renderer/edit-tooltip.js +4 -4
- package/src/gantt/renderer/nonworking-day.js +2 -2
- package/src/gantt/renderer/tooltip.d.ts +3 -3
- package/src/gantt/renderer/tooltip.js +103 -76
- package/styles/bootstrap-dark.css +27 -47
- package/styles/bootstrap.css +29 -49
- package/styles/bootstrap4.css +29 -49
- package/styles/bootstrap5-dark.css +27 -47
- package/styles/bootstrap5.css +27 -47
- package/styles/fabric-dark.css +27 -47
- package/styles/fabric.css +27 -47
- package/styles/fluent-dark.css +28 -47
- package/styles/fluent.css +28 -47
- package/styles/gantt/_layout.scss +53 -7
- package/styles/gantt/_material3-dark-definition.scss +1 -0
- package/styles/gantt/_material3-definition.scss +220 -0
- package/styles/gantt/_theme.scss +53 -53
- package/styles/gantt/bootstrap-dark.css +27 -47
- package/styles/gantt/bootstrap.css +29 -49
- package/styles/gantt/bootstrap4.css +29 -49
- package/styles/gantt/bootstrap5-dark.css +27 -47
- package/styles/gantt/bootstrap5.css +27 -47
- package/styles/gantt/fabric-dark.css +27 -47
- package/styles/gantt/fabric.css +27 -47
- package/styles/gantt/fluent-dark.css +28 -47
- package/styles/gantt/fluent.css +28 -47
- package/styles/gantt/highcontrast-light.css +27 -47
- package/styles/gantt/highcontrast.css +27 -47
- package/styles/gantt/icons/_material3-dark.scss +1 -0
- package/styles/gantt/material-dark.css +27 -47
- package/styles/gantt/material.css +27 -47
- package/styles/gantt/material3-dark.css +2184 -0
- package/styles/gantt/material3-dark.scss +23 -0
- package/styles/gantt/material3.css +2240 -0
- package/styles/gantt/material3.scss +23 -0
- package/styles/gantt/tailwind-dark.css +27 -47
- package/styles/gantt/tailwind.css +27 -47
- package/styles/highcontrast-light.css +27 -47
- package/styles/highcontrast.css +27 -47
- package/styles/material-dark.css +27 -47
- package/styles/material.css +27 -47
- package/styles/material3-dark.css +2184 -0
- package/styles/material3-dark.scss +3 -0
- package/styles/material3.css +2240 -0
- package/styles/material3.scss +3 -0
- package/styles/tailwind-dark.css +27 -47
- package/styles/tailwind.css +27 -47
|
@@ -1,16 +1,34 @@
|
|
|
1
1
|
import { createElement, isNullOrUndefined, isObject, remove } from '@syncfusion/ej2-base';
|
|
2
2
|
import * as cls from '../base/css-constants';
|
|
3
3
|
import { isScheduledTask } from '../base/utils';
|
|
4
|
+
import { SvgRenderer } from '@syncfusion/ej2-svg-base';
|
|
4
5
|
/**
|
|
5
6
|
* To render the connector line in Gantt
|
|
6
7
|
*/
|
|
7
8
|
var ConnectorLine = /** @class */ (function () {
|
|
8
9
|
function ConnectorLine(ganttObj) {
|
|
10
|
+
this.transform = '';
|
|
11
|
+
this.connectorLinePath = '';
|
|
12
|
+
this.arrowPath = '';
|
|
9
13
|
this.expandedRecords = [];
|
|
10
14
|
this.parent = ganttObj;
|
|
11
15
|
this.dependencyViewContainer =
|
|
12
|
-
createElement('div', { className: cls.dependencyViewContainer
|
|
16
|
+
createElement('div', { className: cls.dependencyViewContainer,
|
|
17
|
+
});
|
|
18
|
+
Object.assign(this.dependencyViewContainer.style, {
|
|
19
|
+
width: "100%",
|
|
20
|
+
height: "100%",
|
|
21
|
+
zIndex: 2,
|
|
22
|
+
position: "absolute",
|
|
23
|
+
pointerEvents: "none"
|
|
24
|
+
});
|
|
25
|
+
this.renderer = new SvgRenderer(this.parent.element.id);
|
|
13
26
|
this.initPublicProp();
|
|
27
|
+
this.svgObject = this.renderer.createSvg({
|
|
28
|
+
id: this.parent.element.id + '_svg'
|
|
29
|
+
});
|
|
30
|
+
this.svgObject.setAttribute('height', '100%');
|
|
31
|
+
this.svgObject.setAttribute('width', '100%');
|
|
14
32
|
}
|
|
15
33
|
/**
|
|
16
34
|
* To get connector line gap.
|
|
@@ -39,7 +57,7 @@ var ConnectorLine = /** @class */ (function () {
|
|
|
39
57
|
};
|
|
40
58
|
ConnectorLine.prototype.getTaskbarMidpoint = function (isMilestone) {
|
|
41
59
|
return Math.floor(isMilestone ?
|
|
42
|
-
(this.parent.chartRowsModule.milestoneMarginTop + (this.parent.chartRowsModule.milestoneHeight / 2)) :
|
|
60
|
+
(this.parent.chartRowsModule.milestoneMarginTop + (this.parent.chartRowsModule.milestoneHeight / 2)) + 1 :
|
|
43
61
|
(this.parent.chartRowsModule.taskBarMarginTop + (this.parent.chartRowsModule.taskBarHeight / 2))) + 1;
|
|
44
62
|
};
|
|
45
63
|
/**
|
|
@@ -88,6 +106,10 @@ var ConnectorLine = /** @class */ (function () {
|
|
|
88
106
|
connectorObj.connectorLineId = 'parent' + parentId + 'child' + childId;
|
|
89
107
|
connectorObj.milestoneParent = parentGanttRecord.isMilestone ? true : false;
|
|
90
108
|
connectorObj.milestoneChild = childGanttRecord.isMilestone ? true : false;
|
|
109
|
+
connectorObj.isManualParent = (!(this.parent.flatData[parentIndex].ganttProperties.isAutoSchedule) && this.parent.flatData[parentIndex].hasChildRecords);
|
|
110
|
+
connectorObj.isManualChild = (!(this.parent.flatData[childIndex].ganttProperties.isAutoSchedule) && this.parent.flatData[childIndex].hasChildRecords);
|
|
111
|
+
connectorObj.parentEndPoint = connectorObj.parentLeft + connectorObj.parentWidth;
|
|
112
|
+
connectorObj.childEndPoint = connectorObj.childLeft + connectorObj.childWidth;
|
|
91
113
|
if (isNullOrUndefined(isScheduledTask(parentGanttRecord)) || isNullOrUndefined(isScheduledTask(childGanttRecord))) {
|
|
92
114
|
return null;
|
|
93
115
|
}
|
|
@@ -110,8 +132,8 @@ var ConnectorLine = /** @class */ (function () {
|
|
|
110
132
|
connectorLine = connectorLine + this.getConnectorLineTemplate(connectorLinesCollection[index]);
|
|
111
133
|
ariaConnector.push(connectorLinesCollection[index]);
|
|
112
134
|
}
|
|
113
|
-
this.
|
|
114
|
-
var childNodes = this.parent.connectorLineModule.
|
|
135
|
+
this.svgObject.innerHTML = connectorLine;
|
|
136
|
+
var childNodes = this.parent.connectorLineModule.svgObject.childNodes;
|
|
115
137
|
for (var i = 0; i < childNodes.length; i++) {
|
|
116
138
|
var innerChild = childNodes[i].childNodes;
|
|
117
139
|
for (var j = 0; j < innerChild.length; j++) {
|
|
@@ -119,9 +141,10 @@ var ConnectorLine = /** @class */ (function () {
|
|
|
119
141
|
innerChild[j].setAttribute('aria-label', ariaString);
|
|
120
142
|
}
|
|
121
143
|
}
|
|
122
|
-
this.parent.ganttChartModule.chartBodyContent.
|
|
123
|
-
|
|
124
|
-
|
|
144
|
+
this.parent.ganttChartModule.chartBodyContent.insertBefore(this.dependencyViewContainer, this.parent.ganttChartModule.chartBodyContent.lastChild);
|
|
145
|
+
this.dependencyViewContainer.appendChild(this.svgObject);
|
|
146
|
+
for (var i = 0; i < this.svgObject.children.length; i++) {
|
|
147
|
+
this.svgObject.children[i].children[0].setAttribute('tabindex', '-1');
|
|
125
148
|
}
|
|
126
149
|
};
|
|
127
150
|
/**
|
|
@@ -382,6 +405,8 @@ var ConnectorLine = /** @class */ (function () {
|
|
|
382
405
|
var connectorContainer = '';
|
|
383
406
|
var isVirtual = this.parent.virtualScrollModule && this.parent.enableVirtualization;
|
|
384
407
|
var connectorLine = this.getPosition(data, this.getParentPosition(data), height);
|
|
408
|
+
var rowPosition = this.getPosition(data, this.getParentPosition(data), height);
|
|
409
|
+
var rowPositionHeight = rowPosition.top;
|
|
385
410
|
var isMilestoneValue = 0;
|
|
386
411
|
if (this.parent.renderBaseline) {
|
|
387
412
|
isMilestoneValue = (data.milestoneParent && data.milestoneChild) ? 0 : data.milestoneParent ? -5 : data.milestoneChild ? 5 : 0;
|
|
@@ -468,411 +493,289 @@ var ConnectorLine = /** @class */ (function () {
|
|
|
468
493
|
}
|
|
469
494
|
}
|
|
470
495
|
if (this.getParentPosition(data)) {
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
var duplicateStingTwo = this.getBorderStyles((this.parent.enableRtl ? 'right' : 'left'), 10) +
|
|
496
|
-
'top:' + (-6) + 'px;border-bottom-width:' + (5 + this.lineStroke) + 'px;' +
|
|
497
|
-
'border-top-width:' + (5 + this.lineStroke) + 'px;width:0;height:0;position:relative;"></div>';
|
|
498
|
-
var duplicateStingThree = this.getBorderStyles('top', this.lineStroke) + 'position:relative;"></div>' + eLine +
|
|
499
|
-
'top:' + (-(13 + ((this.lineStroke - 1) * 2))) + 'px;width:0px;' + this.getBorderStyles('left', this.lineStroke) +
|
|
500
|
-
this.getBorderStyles('top', (heightValue + borderTopWidth - (this.lineStroke - 1))) + 'position:relative;"></div>';
|
|
501
|
-
var duplicateStingFour = leftArrow + (this.parent.enableRtl ? 'right:' : 'left:') +
|
|
502
|
-
(((data.childLeft + data.childWidth) - (data.parentLeft)) + 10) + 'px;' +
|
|
503
|
-
this.getBorderStyles((this.parent.enableRtl ? 'left' : 'right'), 10);
|
|
504
|
-
var duplicateStingFive = 'top:' + (-(6 + (5 + this.lineStroke) + (this.lineStroke / 2))) + 'px;' +
|
|
505
|
-
this.getBorderStyles('top', this.lineStroke) + 'position:relative;"></div>';
|
|
496
|
+
// Create the group element
|
|
497
|
+
this.transform = this.parent.enableRtl ? "translate(" + this.parent.timelineModule.totalTimelineWidth + ", 0) scale(-1, 1)" : '';
|
|
498
|
+
this.connectorId = "ConnectorLine" + data.connectorLineId;
|
|
499
|
+
this.groupObject = this.renderer.createGroup({
|
|
500
|
+
id: this.connectorId,
|
|
501
|
+
transform: this.transform,
|
|
502
|
+
style: 'pointer-events: stroke',
|
|
503
|
+
class: cls.connectorLineContainer,
|
|
504
|
+
});
|
|
505
|
+
// Create the path element for the connector line
|
|
506
|
+
this.connectorPath = this.renderer.drawPath({
|
|
507
|
+
class: cls.connectorLineSVG,
|
|
508
|
+
d: this.connectorLinePath,
|
|
509
|
+
fill: 'transparent',
|
|
510
|
+
"stroke-width": 1,
|
|
511
|
+
});
|
|
512
|
+
// Create the path element for the arrow
|
|
513
|
+
this.arrowlinePath = this.renderer.drawPath({
|
|
514
|
+
d: this.arrowPath,
|
|
515
|
+
class: cls.connectorLineArrow
|
|
516
|
+
});
|
|
517
|
+
// Append the path element to the group element
|
|
518
|
+
this.groupObject.appendChild(this.connectorPath);
|
|
519
|
+
this.groupObject.appendChild(this.arrowlinePath);
|
|
506
520
|
if (this.getParentPosition(data) === 'FSType1') {
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
this.
|
|
519
|
-
div = div + eLine;
|
|
520
|
-
div = div + direction + ((data.childLeft - (data.parentLeft + data.parentWidth + 10)) - 10) + 'px;width:10px;' +
|
|
521
|
-
this.getBorderStyles('top', this.lineStroke) + 'position:relative;"></div>';
|
|
522
|
-
div = div + rightArrow;
|
|
523
|
-
div = div + direction + (data.childLeft - (data.parentLeft + data.parentWidth + 10)) + 'px;' +
|
|
524
|
-
this.getBorderStyles((this.parent.enableRtl ? 'right' : 'left'), 10) + 'top:' + (-6 - this.lineStroke) + 'px;border-bottom-width:' + (5 + this.lineStroke) +
|
|
525
|
-
'px;border-top-width:' + (5 + this.lineStroke) + 'px;width:0;height:0;position:relative;"></div></div>';
|
|
521
|
+
this.taskLineValue = data.milestoneChild ? 1 : 0;
|
|
522
|
+
this.x1 = data.parentEndPoint + (data.milestoneParent ? -1 : (data.milestoneChild ? -1 : 0));
|
|
523
|
+
this.x2 = data.milestoneParent ? ((((data.childLeft - (data.parentEndPoint + 10)) + 1) - 10) + 1) : (((data.childLeft - (data.parentEndPoint + 10))) - 10);
|
|
524
|
+
this.y1 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.parentIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneParent)) + ((data.isManualParent && data.isManualChild) ? -10 : 0);
|
|
525
|
+
this.y2 = heightValue + this.taskLineValue;
|
|
526
|
+
this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
|
|
527
|
+
this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
|
|
528
|
+
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) +
|
|
529
|
+
" L " + (this.x1 + this.x2 + 11) + " " + (this.y1 + this.y2);
|
|
530
|
+
this.arrowPath = "M " + (this.x1 + this.x2 + 18) + " " + (this.y1 + this.y2 + this.manualChild) +
|
|
531
|
+
" L " + (this.x1 + this.x2 + 11) + " " + (this.y1 + this.y2 - (4 + this.lineStroke) + this.manualChild) +
|
|
532
|
+
" L " + (this.x1 + this.x2 + 11) + " " + (this.y1 + this.y2 + 4 + this.lineStroke + this.manualChild) + " Z";
|
|
526
533
|
}
|
|
527
534
|
if (this.getParentPosition(data) === 'FSType2') {
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
this.
|
|
543
|
-
|
|
544
|
-
div = div + direction + (data.parentWidth - (((data.parentLeft +
|
|
545
|
-
data.parentWidth) - data.childLeft) + 20)) + 'px;width:0px;' +
|
|
546
|
-
this.getBorderStyles('top', (this.getconnectorLineGap(data) - this.lineStroke)) +
|
|
547
|
-
this.getBorderStyles('left', this.lineStroke) + 'position:relative;"></div>';
|
|
548
|
-
div = div + eLine;
|
|
549
|
-
div = div + direction + (data.parentWidth - (((data.parentLeft +
|
|
550
|
-
data.parentWidth) - data.childLeft) + 20)) + 'px;width:10px;' +
|
|
551
|
-
this.getBorderStyles('top', this.lineStroke) + 'position:relative;"></div>';
|
|
552
|
-
div = div + rightArrow;
|
|
553
|
-
div = div + direction + (data.parentWidth - (((data.parentLeft + data.parentWidth) - data.childLeft) + 10)) + 'px;' +
|
|
554
|
-
this.getBorderStyles((this.parent.enableRtl ? 'right' : 'left'), 10) + 'border-bottom-width:' + (5 + this.lineStroke) + 'px;' +
|
|
555
|
-
'border-top-width:' + (5 + this.lineStroke) + 'px;top:' + (-6 - this.lineStroke) +
|
|
556
|
-
'px;width:0;height:0;position:relative;"></div></div>';
|
|
535
|
+
this.taskLineValue = data.milestoneChild ? 1 : 0;
|
|
536
|
+
this.x1 = data.parentLeft + (data.milestoneChild ? -1 : 0);
|
|
537
|
+
this.x2 = data.parentWidth + (data.milestoneParent ? 1 : 0);
|
|
538
|
+
this.x3 = this.x2 + (data.milestoneParent ? 11 : 10);
|
|
539
|
+
this.x4 = data.parentWidth - ((data.parentEndPoint - data.childLeft) + 20);
|
|
540
|
+
this.y1 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.parentIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneParent)) + ((data.isManualParent && data.isManualChild) ? -10 : 0);
|
|
541
|
+
this.y2 = heightValue - this.getconnectorLineGap(data) + this.taskLineValue;
|
|
542
|
+
this.y3 = this.getconnectorLineGap(data);
|
|
543
|
+
this.y4 = this.y1 + this.y2 - ((this.y1 + this.y2) % data.rowHeight);
|
|
544
|
+
this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
|
|
545
|
+
this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
|
|
546
|
+
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 +
|
|
547
|
+
" 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);
|
|
548
|
+
this.arrowPath = "M " + (this.x1 + this.x4 + 18) + " " + (this.y1 + this.y2 + this.y3 + this.manualChild) +
|
|
549
|
+
" L " + (this.x1 + this.x4 + 11) + " " + (this.y1 + this.y2 + this.y3 - (4 + this.lineStroke) + this.manualChild) +
|
|
550
|
+
" L " + (this.x1 + this.x4 + 11) + " " + (this.y1 + this.y2 + this.y3 + 4 + this.lineStroke + this.manualChild) + " Z";
|
|
557
551
|
}
|
|
558
552
|
if (this.getParentPosition(data) === 'FSType3') {
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
this.getBorderStyles('top', this.lineStroke) + 'position:relative;top:' +
|
|
575
|
-
(-(13 + ((this.lineStroke - 1) * 2))) + 'px;"></div>';
|
|
576
|
-
div = div + eLine;
|
|
577
|
-
div = div + direction + (((data.parentLeft + data.parentWidth) - data.childLeft) + (30 - this.lineStroke)) +
|
|
578
|
-
'px;width:0px;' + 'height:' + (this.getconnectorLineGap(data) - this.lineStroke) + 'px;' +
|
|
579
|
-
this.getBorderStyles('left', this.lineStroke) + 'position:relative;' +
|
|
580
|
-
'top:' + (-(13 + ((this.lineStroke - 1) * 2))) + 'px;"></div>';
|
|
581
|
-
div = div + eLine;
|
|
582
|
-
div = div + (isMilestoneParent ? direction + (((data.parentLeft +
|
|
583
|
-
data.parentWidth) - data.childLeft) + (18 - this.lineStroke)) + 'px;width:' + (12 + this.lineStroke) + 'px;' : direction +
|
|
584
|
-
(((data.parentLeft + data.parentWidth) - data.childLeft) + 20) + 'px;width:10px;') +
|
|
585
|
-
this.getBorderStyles('top', this.lineStroke) + 'position:relative;top:' +
|
|
586
|
-
(-(13 + ((this.lineStroke - 1) * 2))) + 'px;"></div></div>';
|
|
553
|
+
this.taskLineValue = data.milestoneChild ? 1 : 0;
|
|
554
|
+
this.point1 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.childIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneChild));
|
|
555
|
+
this.x1 = (data.childLeft + (data.milestoneChild ? -1 : 0) + (data.milestoneParent ? 1 : 0)) - 20;
|
|
556
|
+
this.x2 = (data.parentEndPoint - data.childLeft) + 30;
|
|
557
|
+
this.y1 = this.point1 + ((data.isManualParent && data.isManualChild) ? -10 : 0);
|
|
558
|
+
this.y2 = this.point1 + heightValue - this.getconnectorLineGap(data) + this.taskLineValue + (this.parent.renderBaseline ? (data.milestoneChild ? -10 : 0) : 0);
|
|
559
|
+
this.y3 = this.getconnectorLineGap(data) + (this.parent.renderBaseline ? (data.milestoneParent ? 10 : 0) : 0);
|
|
560
|
+
this.y4 = this.y2 - (this.y2 % data.rowHeight);
|
|
561
|
+
this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
|
|
562
|
+
this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
|
|
563
|
+
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 +
|
|
564
|
+
" 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);
|
|
565
|
+
this.arrowPath = "M " + (this.x1 + 18) + " " + (this.y1 + this.manualChild) +
|
|
566
|
+
" L " + (this.x1 + 11) + " " + (this.y1 - (4 + this.lineStroke) + this.manualChild) +
|
|
567
|
+
" L " + (this.x1 + 11) + " " + (this.y1 + 4 + this.lineStroke + this.manualChild) + " Z";
|
|
587
568
|
}
|
|
588
569
|
if (this.getParentPosition(data) === 'FSType4') {
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
this.
|
|
601
|
-
|
|
602
|
-
div = div + eLine;
|
|
603
|
-
div = div + 'top:' + (-(13 + ((this.lineStroke - 1) * 2))) + 'px;' + direction +
|
|
604
|
-
(data.childLeft - (data.parentLeft + data.parentWidth) - 20) + 'px;width:0px;' +
|
|
605
|
-
this.getBorderStyles('left', this.lineStroke) +
|
|
606
|
-
this.getBorderStyles('top', (heightValue + borderTopWidth - this.lineStroke + 1)) + 'position:relative;"></div>';
|
|
607
|
-
div = div + eLine;
|
|
608
|
-
div = div + (isMilestoneParent ? direction + '-1px;' : '') + 'top:' +
|
|
609
|
-
(-(13 + ((this.lineStroke - 1) * 2))) + 'px;width:' +
|
|
610
|
-
(isMilestoneParent ? ((data.childLeft - (data.parentLeft + data.parentWidth + 20) + 1) + this.lineStroke) :
|
|
611
|
-
((data.childLeft - (data.parentLeft + data.parentWidth + 20)) + this.lineStroke)) + 'px;' +
|
|
612
|
-
this.getBorderStyles('top', this.lineStroke) + 'position:relative;"></div></div>';
|
|
570
|
+
this.point1 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.childIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneChild));
|
|
571
|
+
this.taskLineValue = this.parent.renderBaseline ? this.taskLineValue : 0;
|
|
572
|
+
this.x1 = data.parentEndPoint + (data.milestoneChild ? -1 : 0) + (data.milestoneParent ? 1 : 0);
|
|
573
|
+
this.x2 = data.childLeft - data.parentEndPoint - 20;
|
|
574
|
+
this.y1 = this.point1 + (data.milestoneChild ? 1 : 0) + ((data.isManualParent && data.isManualChild) ? -10 : 0);
|
|
575
|
+
this.y2 = this.point1 + heightValue + this.taskLineValue + (this.parent.renderBaseline ? (data.milestoneParent ? 10 : 0) : 0);
|
|
576
|
+
this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
|
|
577
|
+
this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
|
|
578
|
+
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 +
|
|
579
|
+
" L " + this.x1 + " " + this.y2;
|
|
580
|
+
this.arrowPath = "M " + (this.x1 + this.x2 + 18) + " " + (this.y1 + this.manualChild) +
|
|
581
|
+
" L " + (this.x1 + this.x2 + 11) + " " + (this.y1 - (4 + this.lineStroke) + this.manualChild) +
|
|
582
|
+
" L " + (this.x1 + this.x2 + 11) + " " + (this.y1 + 4 + this.lineStroke + this.manualChild) + " Z";
|
|
613
583
|
}
|
|
614
584
|
if (this.getParentPosition(data) === 'SSType4') {
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
this.
|
|
585
|
+
this.taskLineValue = this.parent.renderBaseline ? this.taskLineValue : 0;
|
|
586
|
+
this.point1 = heightValue + this.taskLineValue;
|
|
587
|
+
this.point2 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.childIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneChild));
|
|
588
|
+
this.x1 = data.parentLeft - 8;
|
|
589
|
+
this.x2 = data.childLeft - data.parentLeft;
|
|
590
|
+
this.y1 = this.point2 + (data.milestoneChild ? 1 : 0) + ((data.isManualParent && data.isManualChild) ? -10 : 0);
|
|
591
|
+
this.y2 = this.y1 + this.point1 + (this.parent.renderBaseline ? (data.milestoneParent ? 10 : 0) : 0);
|
|
592
|
+
this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
|
|
593
|
+
this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
|
|
594
|
+
this.connectorLinePath = "M " + (this.x1 + this.x2) + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + this.x1 + " " + (this.y1 + this.manualParent + this.manualChild) +
|
|
595
|
+
" L " + this.x1 + " " + this.y2 + " L " + (this.x1 + 10) + " " + this.y2;
|
|
596
|
+
this.arrowPath = "M " + (this.x1 + this.x2 + 8) + " " + (this.y1 + this.manualChild) +
|
|
597
|
+
" L " + (this.x1 + this.x2) + " " + (this.y1 - (4 + this.lineStroke) + this.manualChild) +
|
|
598
|
+
" L " + (this.x1 + this.x2) + " " + (this.y1 + 4 + this.lineStroke + this.manualChild) + " Z";
|
|
626
599
|
}
|
|
627
600
|
if (this.getParentPosition(data) === 'SSType3') {
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
601
|
+
this.taskLineValue = this.parent.renderBaseline ? this.taskLineValue : data.milestoneChild ? 1 : 0;
|
|
602
|
+
this.point1 = heightValue + this.taskLineValue;
|
|
603
|
+
this.x1 = data.childLeft - 20;
|
|
604
|
+
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);
|
|
605
|
+
this.x2 = data.parentLeft - data.childLeft + 21;
|
|
606
|
+
this.y2 = this.y1 + this.point1 + (this.parent.renderBaseline ? (data.milestoneChild ? -11 : data.milestoneParent ? 10 : 0) : 0);
|
|
607
|
+
this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
|
|
608
|
+
this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
|
|
609
|
+
this.connectorLinePath = "M " + (this.x1 + 12) + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + this.x1 + " " + (this.y1 + this.manualParent + this.manualChild) +
|
|
610
|
+
" L " + this.x1 + " " + this.y2 + " L " + (this.x1 + this.x2) + " " + this.y2;
|
|
611
|
+
this.arrowPath = "M " + (this.x1 + 20) + " " + (this.y1 + this.manualChild) +
|
|
612
|
+
" L " + (this.x1 + 12) + " " + (this.y1 - (4 + this.lineStroke) + this.manualChild) +
|
|
613
|
+
" L " + (this.x1 + 12) + " " + (this.y1 + 4 + this.lineStroke + this.manualChild) + " Z";
|
|
639
614
|
}
|
|
640
615
|
if (this.getParentPosition(data) === 'SSType2') {
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
this.
|
|
653
|
-
|
|
654
|
-
div = div + direction + setInnerElementWidthSSType2 + 'px;' +
|
|
655
|
-
this.getBorderStyles((this.parent.enableRtl ? 'right' : 'left'), 10) + 'top:' + (-6 - this.lineStroke) + 'px;' +
|
|
656
|
-
'border-bottom-width:' + (5 + this.lineStroke) + 'px;border-top-width:' +
|
|
657
|
-
(5 + this.lineStroke) + 'px;width:0;' +
|
|
658
|
-
'height:0;position:relative;"></div></div>';
|
|
616
|
+
this.taskLineValue = this.parent.renderBaseline ? this.taskLineValue : data.milestoneChild ? 1 : 0;
|
|
617
|
+
this.point1 = heightValue + this.taskLineValue;
|
|
618
|
+
this.x1 = setInnerElementLeftSSType2;
|
|
619
|
+
this.x2 = setInnerChildWidthSSType2 + 1;
|
|
620
|
+
this.y1 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.parentIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneParent)) + ((data.isManualParent && data.isManualChild) ? -10 : 0);
|
|
621
|
+
this.y2 = this.y1 + this.point1;
|
|
622
|
+
this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
|
|
623
|
+
this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
|
|
624
|
+
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 +
|
|
625
|
+
" L " + (this.x1 + setInnerElementWidthSSType2) + " " + this.y2;
|
|
626
|
+
this.arrowPath = "M " + (this.x1 + setInnerElementWidthSSType2 + 8) + " " + (this.y2 + this.manualChild) +
|
|
627
|
+
" L " + (this.x1 + setInnerElementWidthSSType2) + " " + (this.y2 - (4 + this.lineStroke) + this.manualChild) +
|
|
628
|
+
" L " + (this.x1 + setInnerElementWidthSSType2) + " " + (this.y2 + 4 + this.lineStroke + this.manualChild) + " Z";
|
|
659
629
|
}
|
|
660
630
|
if (this.getParentPosition(data) === 'SSType1') {
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
div = div + direction + '10px;' + this.getBorderStyles((this.parent.enableRtl ? 'right' : 'left'), 10) +
|
|
675
|
-
'top:' + (-6 - this.lineStroke) + 'px;border-bottom-width:' + (5 + this.lineStroke) + 'px;' +
|
|
676
|
-
'border-top-width:' + (5 + this.lineStroke) + 'px;width:0;height:0;position:relative;"></div></div>';
|
|
631
|
+
this.taskLineValue = this.parent.renderBaseline ? this.taskLineValue : data.milestoneChild ? 1 : 0;
|
|
632
|
+
this.point1 = heightValue + this.taskLineValue;
|
|
633
|
+
this.x1 = data.childLeft - 20;
|
|
634
|
+
this.x2 = data.parentLeft - data.childLeft + 21;
|
|
635
|
+
this.y1 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.parentIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneParent)) + +((data.isManualParent && data.isManualChild) ? -10 : 0);
|
|
636
|
+
this.y2 = this.y1 + this.point1;
|
|
637
|
+
this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
|
|
638
|
+
this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
|
|
639
|
+
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 +
|
|
640
|
+
" L " + (this.x1 + 12) + " " + this.y2;
|
|
641
|
+
this.arrowPath = "M " + (this.x1 + 20) + " " + (this.y2 + this.manualChild) +
|
|
642
|
+
" L " + (this.x1 + 12) + " " + (this.y2 - (4 + this.lineStroke) + this.manualChild) +
|
|
643
|
+
" L " + (this.x1 + 12) + " " + (this.y2 + 4 + this.lineStroke + this.manualChild) + " Z";
|
|
677
644
|
}
|
|
678
645
|
if (this.getParentPosition(data) === 'FFType1') {
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
this.
|
|
692
|
-
|
|
693
|
-
div = div + direction + (isMilestone ? 4 : 10) + 'px;width:' + (isMilestone ?
|
|
694
|
-
(((data.parentLeft + data.parentWidth) - (data.childLeft + data.childWidth)) + (16 + this.lineStroke)) :
|
|
695
|
-
(((data.parentLeft + data.parentWidth) - (data.childLeft + data.childWidth)) + (10 + this.lineStroke))) + 'px;' +
|
|
696
|
-
this.getBorderStyles('top', this.lineStroke) + 'position:relative;"></div>';
|
|
697
|
-
div = div + leftArrow;
|
|
698
|
-
div = div + (isMilestone ? direction + '0px;' : '') + this.getBorderStyles((!this.parent.enableRtl ? 'right' : 'left'), 10) +
|
|
699
|
-
'top:' + (-6 - this.lineStroke) + 'px;border-bottom-width:' + (5 + this.lineStroke) + 'px;' +
|
|
700
|
-
'border-top-width:' + (5 + this.lineStroke) + 'px;width:0;height:0;position:relative;"></div></div>';
|
|
646
|
+
this.taskLineValue = this.parent.renderBaseline ? this.taskLineValue : (data.milestoneChild ? 1 : 0);
|
|
647
|
+
this.x1 = data.childEndPoint;
|
|
648
|
+
this.x2 = data.parentEndPoint + (data.milestoneParent ? -1 : 0);
|
|
649
|
+
this.x3 = data.milestoneParent ? 22 : 21;
|
|
650
|
+
this.x4 = data.milestoneChild ? 4 : 8;
|
|
651
|
+
this.y1 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.parentIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneParent)) + ((data.isManualParent && data.isManualChild) ? -10 : 0);
|
|
652
|
+
this.y2 = heightValue + this.taskLineValue;
|
|
653
|
+
this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
|
|
654
|
+
this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
|
|
655
|
+
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) +
|
|
656
|
+
" L " + (this.x1 + this.x4) + " " + (this.y1 + this.y2);
|
|
657
|
+
this.arrowPath = "M " + this.x1 + " " + (this.y1 + this.y2 + this.manualChild) +
|
|
658
|
+
" L " + (this.x1 + 8) + " " + (this.y1 + this.y2 - (4 + this.lineStroke) + this.manualChild) +
|
|
659
|
+
" L " + (this.x1 + 8) + " " + (this.y1 + this.y2 + 4 + this.lineStroke + this.manualChild) + " Z";
|
|
701
660
|
}
|
|
702
661
|
if (this.getParentPosition(data) === 'FFType2') {
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
this.
|
|
716
|
-
'position:relative;"></div>';
|
|
717
|
-
div = div + eLine;
|
|
718
|
-
div = div + direction + (isMilestone ? (((data.childLeft + data.childWidth) - (data.parentLeft + data.parentWidth)) + 4) :
|
|
719
|
-
(((data.childLeft + data.childWidth) - (data.parentLeft + data.parentWidth)) + 10)) + 'px;' +
|
|
720
|
-
'width:' + (isMilestone ? (16 + this.lineStroke) : (10 + this.lineStroke)) + 'px;' +
|
|
721
|
-
this.getBorderStyles('top', this.lineStroke) + 'position:relative;"></div>';
|
|
722
|
-
div = div + leftArrow;
|
|
723
|
-
div = div + direction + ((data.childLeft + data.childWidth) - (data.parentLeft + data.parentWidth)) + 'px;' +
|
|
724
|
-
this.getBorderStyles((!this.parent.enableRtl ? 'right' : 'left'), 10) + 'top:' + (-6 - this.lineStroke) + 'px;' +
|
|
725
|
-
'border-bottom-width:' + (5 + this.lineStroke) + 'px;border-top-width:' + (5 + this.lineStroke) +
|
|
726
|
-
'px;width:0;height:0;position:relative;"></div></div>';
|
|
662
|
+
this.taskLineValue = this.parent.renderBaseline ? this.taskLineValue : (data.milestoneChild ? 1 : 0);
|
|
663
|
+
this.x1 = data.parentEndPoint;
|
|
664
|
+
this.x2 = data.childEndPoint + (data.milestoneParent ? 22 : 21);
|
|
665
|
+
this.x3 = data.childEndPoint + (data.milestoneChild ? 9 : 8);
|
|
666
|
+
this.y1 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.parentIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneParent)) + ((data.isManualParent && data.isManualChild) ? -10 : 0);
|
|
667
|
+
this.y2 = heightValue + this.taskLineValue;
|
|
668
|
+
this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
|
|
669
|
+
this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
|
|
670
|
+
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) +
|
|
671
|
+
" L " + this.x3 + " " + (this.y1 + this.y2);
|
|
672
|
+
this.arrowPath = "M " + (this.x3 - 8) + " " + (this.y1 + this.y2 + this.manualChild) +
|
|
673
|
+
" L " + this.x3 + " " + (this.y1 + this.y2 - (4 + this.lineStroke) + this.manualChild) +
|
|
674
|
+
" L " + this.x3 + " " + (this.y1 + this.y2 + 4 + this.lineStroke + this.manualChild) + " Z";
|
|
727
675
|
}
|
|
728
676
|
if (this.getParentPosition(data) === 'FFType3') {
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
this.getBorderStyles('top', (heightValue + borderTopWidth - this.lineStroke + 1)) + 'position:relative;"></div>';
|
|
744
|
-
div = div + eLine;
|
|
745
|
-
div = div + (isMilestoneParent ? (direction + (((data.parentLeft + data.parentWidth) -
|
|
746
|
-
(data.childLeft + data.childWidth)) - 1) + 'px;width:21') : (direction + ((data.parentLeft + data.parentWidth) -
|
|
747
|
-
(data.childLeft + data.childWidth)) + 'px;width:20')) +
|
|
748
|
-
'px;top:' + (-(13 + ((this.lineStroke - 1) * 2))) + 'px;' +
|
|
749
|
-
this.getBorderStyles('top', this.lineStroke) + 'position:relative;"></div></div>';
|
|
677
|
+
this.taskLineValue = this.parent.renderBaseline ? this.taskLineValue : 0;
|
|
678
|
+
this.x1 = data.childEndPoint;
|
|
679
|
+
this.x2 = this.x1 + (data.milestoneChild ? 4 : 8);
|
|
680
|
+
this.x3 = data.parentEndPoint - data.childEndPoint + (data.milestoneChild ? 16 : 10);
|
|
681
|
+
this.x4 = data.parentEndPoint + (data.milestoneParent ? -1 : 0);
|
|
682
|
+
this.y1 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.childIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneChild)) + ((data.isManualParent && data.isManualChild) ? -10 : 0);
|
|
683
|
+
this.y2 = heightValue + this.taskLineValue + (this.parent.renderBaseline ? (data.milestoneParent ? 10 : 0) : 0);
|
|
684
|
+
this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
|
|
685
|
+
this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
|
|
686
|
+
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) +
|
|
687
|
+
" L " + this.x4 + " " + (this.y1 + this.y2);
|
|
688
|
+
this.arrowPath = "M " + this.x1 + " " + (this.y1 + this.manualChild) +
|
|
689
|
+
" L " + (this.x1 + 8) + " " + (this.y1 - (4 + this.lineStroke) + this.manualChild) +
|
|
690
|
+
" L " + (this.x1 + 8) + " " + (this.y1 + 4 + this.lineStroke + this.manualChild) + " Z";
|
|
750
691
|
}
|
|
751
692
|
if (this.getParentPosition(data) === 'FFType4') {
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
(
|
|
765
|
-
'px;width:' + (16 + this.lineStroke)) : (direction + (((data.childLeft + data.childWidth) -
|
|
766
|
-
(data.parentLeft + data.parentWidth)) + 10) + 'px;width:' + (10 + this.lineStroke))) +
|
|
767
|
-
'px;' + duplicateStingFive;
|
|
768
|
-
div = div + eLine;
|
|
769
|
-
div = div + direction + (((data.childLeft + data.childWidth) -
|
|
770
|
-
(data.parentLeft + data.parentWidth)) + 20) + 'px;top:' + (-(13 + ((this.lineStroke - 1) * 2))) +
|
|
771
|
-
'px;width:0px;' + this.getBorderStyles('left', this.lineStroke) +
|
|
772
|
-
this.getBorderStyles('top', (heightValue + borderTopWidth - this.lineStroke + 1)) + 'position:relative;"></div>';
|
|
773
|
-
div = div + eLine;
|
|
774
|
-
div = div + (isMilestoneParent ? (direction + '-1px;width:' + (((data.childLeft + data.childWidth) -
|
|
775
|
-
(data.parentLeft + data.parentWidth)) + (21 + this.lineStroke))) : ('width:' + (((data.childLeft + data.childWidth) -
|
|
776
|
-
(data.parentLeft + data.parentWidth)) + (20 + this.lineStroke)))) + 'px;top:' +
|
|
777
|
-
(-(13 + ((this.lineStroke - 1) * 2))) + 'px;' +
|
|
778
|
-
this.getBorderStyles('top', this.lineStroke) + 'position:relative;"></div></div>';
|
|
693
|
+
this.taskLineValue = this.parent.renderBaseline ? this.taskLineValue : 0;
|
|
694
|
+
this.x1 = data.parentEndPoint;
|
|
695
|
+
this.x2 = data.childEndPoint + (data.milestoneChild ? 7 : 8);
|
|
696
|
+
this.x3 = this.x2 + (data.milestoneChild ? 12 : 11);
|
|
697
|
+
this.y1 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.childIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneChild)) + ((data.isManualParent && data.isManualChild) ? -10 : 0);
|
|
698
|
+
this.y2 = heightValue + this.taskLineValue + +(this.parent.renderBaseline ? (data.milestoneParent ? 10 : 0) : 0);
|
|
699
|
+
this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
|
|
700
|
+
this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
|
|
701
|
+
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) +
|
|
702
|
+
" L " + this.x1 + " " + (this.y1 + this.y2);
|
|
703
|
+
this.arrowPath = "M " + (this.x2 - 8) + " " + (this.y1 + this.manualChild) +
|
|
704
|
+
" L " + this.x2 + " " + (this.y1 - (4 + this.lineStroke) + this.manualChild) +
|
|
705
|
+
" L " + this.x2 + " " + (this.y1 + 4 + this.lineStroke + this.manualChild) + " Z";
|
|
779
706
|
}
|
|
780
707
|
if (this.getParentPosition(data) === 'SFType4') {
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
(((data.childLeft + data.childWidth) - (data.parentLeft)) + (30 + this.lineStroke)) + 'px;' +
|
|
799
|
-
this.getBorderStyles('top', this.lineStroke) + 'position:relative;"></div>';
|
|
800
|
-
div = div + eLine;
|
|
801
|
-
div = div + 'top:' + (-(13 + ((this.lineStroke - 1) * 2))) + 'px;width:0px;' +
|
|
802
|
-
this.getBorderStyles('left', this.lineStroke) +
|
|
803
|
-
this.getBorderStyles('top', (this.getconnectorLineGap(data) - this.lineStroke)) + 'position:relative;"></div>';
|
|
804
|
-
div = div + eLine;
|
|
805
|
-
div = div + 'top:' + (-(13 + ((this.lineStroke - 1) * 2))) + 'px;width:11px;' +
|
|
806
|
-
this.getBorderStyles('top', this.lineStroke) + 'position:relative;"></div></div>';
|
|
708
|
+
this.taskLineValue = this.parent.renderBaseline ? this.taskLineValue : (data.milestoneChild ? -1 : 0);
|
|
709
|
+
this.point1 = heightValue - this.getconnectorLineGap(data) + this.taskLineValue;
|
|
710
|
+
this.point2 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.childIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneChild));
|
|
711
|
+
this.x1 = data.parentLeft - 10;
|
|
712
|
+
this.x2 = this.x1 + ((data.childEndPoint - data.parentLeft) + 18);
|
|
713
|
+
this.x3 = this.x2 + (data.milestoneChild ? 16 : 11);
|
|
714
|
+
this.y1 = this.point2 + (data.milestoneChild ? 1 : 0) + ((data.isManualParent && data.isManualChild) ? -10 : 0);
|
|
715
|
+
this.y2 = this.y1 + this.point1 + (this.parent.renderBaseline ? (data.milestoneChild ? -11 : 0) : 0);
|
|
716
|
+
this.y3 = this.getconnectorLineGap(data) + (this.parent.renderBaseline ? (data.milestoneParent ? 10 : 0) : 0);
|
|
717
|
+
this.y4 = this.y2 - (this.y2 % data.rowHeight);
|
|
718
|
+
this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
|
|
719
|
+
this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
|
|
720
|
+
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 +
|
|
721
|
+
" L " + this.x1 + " " + (this.y2 + this.y3) + " L " + (this.x1 + 11) + " " + (this.y2 + this.y3);
|
|
722
|
+
this.arrowPath = "M " + (this.x2 - 8) + " " + (this.y1 + this.manualChild) +
|
|
723
|
+
" L " + this.x2 + " " + (this.y1 - (4 + this.lineStroke) + this.manualChild) +
|
|
724
|
+
" L " + this.x2 + " " + (this.y1 + 4 + this.lineStroke + this.manualChild) + " Z";
|
|
807
725
|
}
|
|
808
726
|
if (this.getParentPosition(data) === 'SFType3') {
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
this.
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
this.getBorderStyles('top', this.lineStroke) + 'position:relative;"></div></div>';
|
|
727
|
+
this.taskLineValue = this.parent.renderBaseline ? this.taskLineValue : 0;
|
|
728
|
+
this.point1 = (data.parentLeft - (data.childEndPoint + (data.milestoneParent ? 25 : 20))) + 1 + (this.parent.renderBaseline ? (data.milestoneParent ? 5 : 0) : 0);
|
|
729
|
+
this.point2 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.childIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneChild));
|
|
730
|
+
this.x1 = data.childEndPoint;
|
|
731
|
+
this.x2 = this.x1 + (data.milestoneChild ? 9 : 8);
|
|
732
|
+
this.x3 = this.x2 + (data.milestoneChild ? 17 : 11);
|
|
733
|
+
this.y1 = this.point2 + ((data.isManualParent && data.isManualChild) ? -10 : 0);
|
|
734
|
+
this.y2 = this.y1 + heightValue + this.taskLineValue + (this.parent.renderBaseline ? (data.milestoneParent ? 10 : 0) : 0);
|
|
735
|
+
this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
|
|
736
|
+
this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
|
|
737
|
+
this.connectorLinePath = "M " + this.x2 + " " + (this.y1 + this.manualParent + this.manualChild) + " L " + this.x3 + " " + (this.y1 + this.manualParent + this.manualChild) +
|
|
738
|
+
" L " + this.x3 + " " + this.y2 + " L " + (this.x3 + this.point1) + " " + this.y2;
|
|
739
|
+
this.arrowPath = "M " + (this.x2 - 8) + " " + (this.y1 + this.manualChild) +
|
|
740
|
+
" L " + this.x2 + " " + (this.y1 - (4 + this.lineStroke) + this.manualChild) +
|
|
741
|
+
" L " + this.x2 + " " + (this.y1 + 4 + this.lineStroke + this.manualChild) + " Z";
|
|
825
742
|
}
|
|
826
743
|
if (this.getParentPosition(data) === 'SFType1') {
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
this.
|
|
842
|
-
|
|
843
|
-
div = div + (isMilestone ? (direction + (((data.childLeft + data.childWidth) -
|
|
844
|
-
(data.parentLeft)) + 15) + 'px;width:' + (15 + this.lineStroke)) : (direction +
|
|
845
|
-
(((data.childLeft + data.childWidth) - (data.parentLeft)) + 20) + 'px;width:' + (10 + this.lineStroke))) + 'px;' +
|
|
846
|
-
this.getBorderStyles('top', this.lineStroke) + 'position:relative;"></div>';
|
|
847
|
-
div = div + duplicateStingFour + 'top:' + (-6 - this.lineStroke) + 'px;' +
|
|
848
|
-
'border-bottom-width:' + (5 + this.lineStroke) + 'px;border-top-width:' +
|
|
849
|
-
(5 + this.lineStroke) + 'px;position:relative;"></div></div>';
|
|
744
|
+
this.taskLineValue = this.parent.renderBaseline ? this.taskLineValue : data.milestoneChild ? 1 : 0;
|
|
745
|
+
this.point1 = heightValue - this.getconnectorLineGap(data) + this.taskLineValue;
|
|
746
|
+
this.point2 = this.getconnectorLineGap(data);
|
|
747
|
+
this.x1 = data.parentLeft - 10;
|
|
748
|
+
this.y1 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.parentIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneParent)) + +((data.isManualParent && data.isManualChild) ? -10 : 0);
|
|
749
|
+
this.x2 = (data.childEndPoint - data.parentLeft) + 31;
|
|
750
|
+
this.y2 = this.y1 + this.point1;
|
|
751
|
+
this.x3 = (data.childEndPoint - data.parentLeft) + 18;
|
|
752
|
+
this.y3 = this.y2 - (this.y2 % data.rowHeight);
|
|
753
|
+
this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
|
|
754
|
+
this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
|
|
755
|
+
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 +
|
|
756
|
+
" 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);
|
|
757
|
+
this.arrowPath = "M " + (this.x1 + this.x3 - 8) + " " + (this.y2 + this.point2 + this.manualChild) +
|
|
758
|
+
" L " + (this.x1 + this.x3) + " " + (this.y2 + this.point2 - (4 + this.lineStroke) + this.manualChild) +
|
|
759
|
+
" L " + (this.x1 + this.x3) + " " + (this.y2 + this.point2 + 4 + this.lineStroke + this.manualChild) + " Z";
|
|
850
760
|
}
|
|
851
761
|
if (this.getParentPosition(data) === 'SFType2') {
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
div = div + leftArrow;
|
|
868
|
-
div = div + direction + '0px;' + this.getBorderStyles((this.parent.enableRtl ? 'right' : 'left'), 10) +
|
|
869
|
-
'top:' + (-6 - this.lineStroke) + 'px;border-bottom-width:' + (5 + this.lineStroke) +
|
|
870
|
-
'px;border-top-width:' + (5 + this.lineStroke) + 'px;width:0;height:0;position:relative;"></div></div>';
|
|
871
|
-
}
|
|
872
|
-
connectorContainer += div;
|
|
873
|
-
connectorContainer += '</div>';
|
|
762
|
+
this.taskLineValue = this.parent.renderBaseline ? this.taskLineValue : 0;
|
|
763
|
+
this.x1 = data.childEndPoint;
|
|
764
|
+
this.y1 = this.parent.enableVirtualization ? rowPositionHeight : ((!this.parent.allowTaskbarOverlap ? parentOverlapTopValue : (data.parentIndex * data.rowHeight)) + this.getTaskbarMidpoint(data.milestoneParent)) + +((data.isManualParent && data.isManualChild) ? -10 : 0);
|
|
765
|
+
this.x2 = (data.parentLeft - data.childEndPoint);
|
|
766
|
+
this.y2 = this.y1 + heightValue + this.taskLineValue;
|
|
767
|
+
this.manualParent = (data.isManualParent && !data.isManualChild ? -10 : 0);
|
|
768
|
+
this.manualChild = (data.isManualChild && !data.isManualParent ? -10 : 0);
|
|
769
|
+
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) +
|
|
770
|
+
" L " + (this.x1 + this.x2 - 10) + " " + this.y2 + " L " + (this.x1 + 8) + " " + this.y2;
|
|
771
|
+
this.arrowPath = "M " + this.x1 + " " + (this.y2 + this.manualChild) +
|
|
772
|
+
" L " + (this.x1 + 8) + " " + (this.y2 - (4 + this.lineStroke) + this.manualChild) +
|
|
773
|
+
" L " + (this.x1 + 8) + " " + (this.y2 + 4 + this.lineStroke + this.manualChild) + " Z";
|
|
774
|
+
}
|
|
775
|
+
this.connectorPath.setAttribute("d", this.connectorLinePath);
|
|
776
|
+
this.arrowlinePath.setAttribute("d", this.arrowPath);
|
|
874
777
|
}
|
|
875
|
-
return
|
|
778
|
+
return this.groupObject.outerHTML;
|
|
876
779
|
};
|
|
877
780
|
/**
|
|
878
781
|
* @param {IConnectorLineObject} data .
|
|
@@ -938,10 +841,10 @@ var ConnectorLine = /** @class */ (function () {
|
|
|
938
841
|
* @private
|
|
939
842
|
*/
|
|
940
843
|
ConnectorLine.prototype.getConnectorLineTooltipInnerTd = function (fromTaskName, fromPredecessorText, toTaskName, toPredecessorText) {
|
|
941
|
-
var innerTd = '<tr id="fromPredecessor"><td >' + this.parent.localeObj.getConstant('from') + '</td><td> ';
|
|
942
|
-
innerTd = innerTd + fromTaskName + ' </td><td> ' + this.parent.localeObj.getConstant(fromPredecessorText) + ' </td> </tr>';
|
|
943
|
-
innerTd = innerTd + '<tr id="toPredecessor"><td>' + this.parent.localeObj.getConstant('to') + '</td><td> ' + toTaskName;
|
|
944
|
-
innerTd = innerTd + ' </td><td> ' + this.parent.localeObj.getConstant(toPredecessorText) + ' </td></tr></tbody><table>';
|
|
844
|
+
var innerTd = '<tr id="fromPredecessor"><td style="padding: 4px;">' + this.parent.localeObj.getConstant('from') + '</td><td> ';
|
|
845
|
+
innerTd = innerTd + fromTaskName + ' </td><td style="padding: 2px;"> ' + this.parent.localeObj.getConstant(fromPredecessorText) + ' </td> </tr>';
|
|
846
|
+
innerTd = innerTd + '<tr id="toPredecessor"><td style="padding: 4px;">' + this.parent.localeObj.getConstant('to') + '</td><td> ' + toTaskName;
|
|
847
|
+
innerTd = innerTd + ' </td><td style="padding: 2px;"> ' + this.parent.localeObj.getConstant(toPredecessorText) + ' </td></tr></tbody><table>';
|
|
945
848
|
return innerTd;
|
|
946
849
|
};
|
|
947
850
|
/**
|