Гант: подсказка на стрелке зависимости (от -> к, названия шагов)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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>`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user