gantt-task-react-powern 0.4.86 → 0.4.87
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/dist/index.js +13 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +13 -4
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1384,7 +1384,15 @@ var drawPathAndTriangle = function drawPathAndTriangle(taskFrom, taskTo, rowHeig
|
|
|
1384
1384
|
var verticalOffset = indexCompare * (rowHeight / 2);
|
|
1385
1385
|
|
|
1386
1386
|
var minX = function minX(t) {
|
|
1387
|
-
|
|
1387
|
+
if (t.x1 && t.actualx1) {
|
|
1388
|
+
return Math.min(t.x1, t.actualx1);
|
|
1389
|
+
} else if (t.x1) {
|
|
1390
|
+
return t.x1;
|
|
1391
|
+
} else if (t.actualx1) {
|
|
1392
|
+
return t.actualx1;
|
|
1393
|
+
} else {
|
|
1394
|
+
return 0;
|
|
1395
|
+
}
|
|
1388
1396
|
};
|
|
1389
1397
|
|
|
1390
1398
|
var maxX = function maxX(t) {
|
|
@@ -1879,7 +1887,10 @@ function getChildren(taskList, task) {
|
|
|
1879
1887
|
|
|
1880
1888
|
if (task.type !== "project") {
|
|
1881
1889
|
tasks = taskList.filter(function (t) {
|
|
1882
|
-
return t.dependencies && t.dependencies.
|
|
1890
|
+
return t.dependencies && t.dependencies.map(function (_ref) {
|
|
1891
|
+
var id = _ref.id;
|
|
1892
|
+
return id;
|
|
1893
|
+
}).indexOf(task.id) !== -1;
|
|
1883
1894
|
});
|
|
1884
1895
|
} else {
|
|
1885
1896
|
tasks = taskList.filter(function (t) {
|
|
@@ -2928,8 +2939,6 @@ var Gantt = function Gantt(_ref) {
|
|
|
2928
2939
|
primaryPath = _getCriticalPaths[0],
|
|
2929
2940
|
secondaryPath = _getCriticalPaths[1];
|
|
2930
2941
|
|
|
2931
|
-
console.debug(primaryPath, secondaryPath);
|
|
2932
|
-
|
|
2933
2942
|
if (leafTasks.length > 0 && primaryPath.length === 0 && secondaryPath.length === 0) {
|
|
2934
2943
|
setHasCircularDeps(true);
|
|
2935
2944
|
} else {
|