Гант: выделение текста только в левом списке, остальное - pan; документация структуры (этапы, системы, ключи)
Мышью выделяются названия и id активностей слева, всё остальное панорамирует картинку. Документация: справочник этапов, ссылки на системы, простые ключи справочника ответственных, удалённые шаги, оценочные длительности (отклонение 27). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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"' : "";
|
||||
|
||||
Reference in New Issue
Block a user