Гант: подсказка на стрелке зависимости (от -> к, названия шагов)
All checks were successful
ci / test (push) Successful in 24s
ci / deploy (push) Successful in 1m27s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-17 13:30:50 +03:00
parent f56c19598d
commit c1e2e709e3
2 changed files with 10 additions and 1 deletions

View File

@@ -284,7 +284,9 @@ export function renderGantt(model: ProcessModel, schedule: Schedule, opts: Gantt
const x1 = from.xe;
const x2 = to.xs;
const d = x2 >= x1 ? `M${x1} ${from.y} V${to.y} H${x2}` : `M${x1} ${from.y} H${x1 + 6} V${to.y} H${x2}`;
arrows.push(`<path d="${d}" fill="none" stroke="#444" stroke-width="1.1" marker-end="url(#arr)"/>`);
const depRow = model.rows.find((r) => r.id === dep);
const label = `${dep} -> ${row.id} ${depRow?.actionName ?? ""} -> ${row.actionName ?? ""}`;
arrows.push(`<g>${tooltip([label])}<path d="${d}" fill="none" stroke="#444" stroke-width="1.1" marker-end="url(#arr)"/><path d="${d}" fill="none" stroke="transparent" stroke-width="8" pointer-events="stroke"/></g>`);
}
}
}