gantt-lib 0.135.5 → 0.135.7
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/core/scheduling/index.js +8 -10
- package/dist/core/scheduling/index.js.map +1 -1
- package/dist/core/scheduling/index.mjs +8 -10
- package/dist/core/scheduling/index.mjs.map +1 -1
- package/dist/index.js +43 -28
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +43 -28
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1336,18 +1336,16 @@ function reflowTasksOnModeSwitch(sourceTasks, toBusinessDays, weekendPredicate)
|
|
|
1336
1336
|
function buildAdjacencyList(tasks) {
|
|
1337
1337
|
const graph = /* @__PURE__ */ new Map();
|
|
1338
1338
|
for (const task of tasks) {
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
}
|
|
1339
|
+
graph.set(task.id, []);
|
|
1340
|
+
}
|
|
1341
|
+
for (const task of tasks) {
|
|
1342
|
+
if (!task.dependencies) continue;
|
|
1343
|
+
for (const dep of task.dependencies) {
|
|
1344
|
+
const bucket = graph.get(dep.taskId);
|
|
1345
|
+
if (bucket) {
|
|
1346
|
+
bucket.push(task.id);
|
|
1348
1347
|
}
|
|
1349
1348
|
}
|
|
1350
|
-
graph.set(task.id, successors);
|
|
1351
1349
|
}
|
|
1352
1350
|
return graph;
|
|
1353
1351
|
}
|