gantt-lib 0.135.6 → 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 +10 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1263,18 +1263,16 @@ function reflowTasksOnModeSwitch(sourceTasks, toBusinessDays, weekendPredicate)
|
|
|
1263
1263
|
function buildAdjacencyList(tasks) {
|
|
1264
1264
|
const graph = /* @__PURE__ */ new Map();
|
|
1265
1265
|
for (const task of tasks) {
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
}
|
|
1266
|
+
graph.set(task.id, []);
|
|
1267
|
+
}
|
|
1268
|
+
for (const task of tasks) {
|
|
1269
|
+
if (!task.dependencies) continue;
|
|
1270
|
+
for (const dep of task.dependencies) {
|
|
1271
|
+
const bucket = graph.get(dep.taskId);
|
|
1272
|
+
if (bucket) {
|
|
1273
|
+
bucket.push(task.id);
|
|
1275
1274
|
}
|
|
1276
1275
|
}
|
|
1277
|
-
graph.set(task.id, successors);
|
|
1278
1276
|
}
|
|
1279
1277
|
return graph;
|
|
1280
1278
|
}
|