gantt-task-react-powern 0.6.35 → 0.6.36
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 +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +4 -4
- package/dist/index.modern.js.map +1 -1
- package/dist/types/public-types.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3913,6 +3913,8 @@ var Gantt = function Gantt(_ref) {
|
|
|
3913
3913
|
var _ref2;
|
|
3914
3914
|
|
|
3915
3915
|
var tasks = _ref.tasks,
|
|
3916
|
+
primaryPath = _ref.primaryPath,
|
|
3917
|
+
secondaryPath = _ref.secondaryPath,
|
|
3916
3918
|
_ref$leafTasks = _ref.leafTasks,
|
|
3917
3919
|
leafTasks = _ref$leafTasks === void 0 ? [] : _ref$leafTasks,
|
|
3918
3920
|
_ref$scheduleType = _ref.scheduleType,
|
|
@@ -4273,10 +4275,6 @@ var Gantt = function Gantt(_ref) {
|
|
|
4273
4275
|
});
|
|
4274
4276
|
}
|
|
4275
4277
|
|
|
4276
|
-
var _getCriticalPaths = getCriticalPaths(leafTasks),
|
|
4277
|
-
primaryPath = _getCriticalPaths[0],
|
|
4278
|
-
secondaryPath = _getCriticalPaths[1];
|
|
4279
|
-
|
|
4280
4278
|
uncolorAll(tasks);
|
|
4281
4279
|
|
|
4282
4280
|
if (scheduleType !== "lookAhead") {
|
|
@@ -4923,6 +4921,8 @@ function getCriticalPaths(leafTasks) {
|
|
|
4923
4921
|
secondaryLeaf = _nextPath.task;
|
|
4924
4922
|
}
|
|
4925
4923
|
|
|
4924
|
+
console.debug("Primary", primaryPath);
|
|
4925
|
+
console.debug("Secondary", secondaryPath);
|
|
4926
4926
|
return [primaryPath, secondaryPath];
|
|
4927
4927
|
}
|
|
4928
4928
|
|