From 3428cac8098d6f64efe741bcd4a4ed6b55316810 Mon Sep 17 00:00:00 2001 From: Yuri Yaryshev Date: Sat, 17 Oct 2026 17:31:54 +0300 Subject: [PATCH] =?UTF-8?q?=D0=93=D0=B0=D0=BD=D1=82:=20=D0=B7=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D1=81=D0=B8=D0=BC=D0=BE=D1=81=D1=82=D1=8C=20=D0=BE=D1=82?= =?UTF-8?q?=20=D0=B2=D0=B5=D1=85=D0=B8=20=D1=80=D0=B8=D1=81=D1=83=D0=B5?= =?UTF-8?q?=D1=82=D1=81=D1=8F=20=D0=BA=D0=BE=D0=BD=D1=82=D1=83=D1=80=D0=BD?= =?UTF-8?q?=D1=8B=D0=BC=20=D1=80=D0=BE=D0=BC=D0=B1=D0=BE=D0=BC=20=D0=B2?= =?UTF-8?q?=D0=B5=D1=85=D0=B8=20=D0=BD=D0=B0=20=D1=81=D1=82=D1=80=D0=BE?= =?UTF-8?q?=D0=BA=D0=B5=20=D0=B7=D0=B0=D0=B2=D0=B8=D1=81=D0=B8=D0=BC=D0=BE?= =?UTF-8?q?=D0=B3=D0=BE=20=D1=88=D0=B0=D0=B3=D0=B0=20(=D1=86=D0=B2=D0=B5?= =?UTF-8?q?=D1=82=20=D0=B3=D1=80=D1=83=D0=BF=D0=BF=D1=8B=20=D0=B2=D0=B5?= =?UTF-8?q?=D1=85=D0=B8)=20=D0=B2=D0=BC=D0=B5=D1=81=D1=82=D0=BE=20=D0=B2?= =?UTF-8?q?=D0=B5=D1=80=D1=82=D0=B8=D0=BA=D0=B0=D0=BB=D0=B8=20=D1=87=D0=B5?= =?UTF-8?q?=D1=80=D0=B5=D0=B7=20=D0=B2=D0=B5=D1=81=D1=8C=20=D0=BF=D0=BB?= =?UTF-8?q?=D0=B0=D0=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 5.5 --- packages/khbuild_process_viz/src/gantt.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/packages/khbuild_process_viz/src/gantt.ts b/packages/khbuild_process_viz/src/gantt.ts index 73b220f..badc601 100644 --- a/packages/khbuild_process_viz/src/gantt.ts +++ b/packages/khbuild_process_viz/src/gantt.ts @@ -283,9 +283,19 @@ export function renderGantt(model: ProcessModel, schedule: Schedule, opts: Gantt if (!from || !to) continue; 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}`; const depRow = model.rows.find((r) => r.id === dep); const label = `${dep} -> ${row.id} ${depRow?.actionName ?? ""} -> ${row.actionName ?? ""}`; + if (depRow?.isMilestone && !g.collapsed && !groupOf.get(dep)?.collapsed) { + // зависимость от вехи: вместо вертикали через весь план - контурный ромб вехи на строке зависимого шага, стрелка идёт от него + const gc = color(groupOf.get(dep)!.stage).stroke; + const gy = to.y; + const ghost = ``; + const gl = `${esc(truncate(`${dep} ${depRow.actionName ?? ""}`, 40))}`; + const line = x2 > x1 + 7 ? `` : ""; + arrows.push(`${tooltip([label])}${ghost}${gl}${line}`); + continue; + } + 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(`${tooltip([label])}`); } }