Гант: выделение текста только в левом списке, остальное - pan; документация структуры (этапы, системы, ключи)
All checks were successful
ci / test (push) Successful in 20s
ci / deploy (push) Successful in 1m19s

Мышью выделяются названия и id активностей слева, всё остальное
панорамирует картинку. Документация: справочник этапов, ссылки на системы,
простые ключи справочника ответственных, удалённые шаги, оценочные
длительности (отклонение 27).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-14 20:22:00 +03:00
parent 317d6249e8
commit 96b53c5487
8 changed files with 33 additions and 12 deletions

View File

@@ -293,8 +293,8 @@ export function renderGantt(model: ProcessModel, schedule: Schedule, opts: Gantt
const ms = row.isMilestone;
const name = row.actionName ?? row.description ?? "";
out.push(`<g${t.fromConstraint || t.kind === "recurring" ? "" : ' opacity="0.65"'}>${tip}`);
out.push(`<text x="12" y="${cy + 4}" font-weight="${ms ? 700 : 500}" fill="${warn ? "#b00020" : "#222"}">${esc(row.id)}</text>`);
out.push(`<text x="62" y="${cy + 4}" font-weight="${ms ? 600 : 400}" fill="#222">${esc(truncate(name, 52))}</text>`);
out.push(`<text class="sel" x="12" y="${cy + 4}" font-weight="${ms ? 700 : 500}" fill="${warn ? "#b00020" : "#222"}">${esc(row.id)}</text>`);
out.push(`<text class="sel" x="62" y="${cy + 4}" font-weight="${ms ? 600 : 400}" fill="#222">${esc(truncate(name, 52))}</text>`);
if (row.questions) out.push(`<circle cx="${GANTT_LEFT - 14}" cy="${cy}" r="4" fill="#e6a100"><title>${esc(row.questions)}</title></circle>`);
const stroke = warn ? "#d32f2f" : c.stroke;
const dash = t.approx ? ' stroke-dasharray="4 2"' : "";