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])}`);
}
}