Гант: красная черта крайнего срока (не позже, до); веха с крайним сроком стоит на прогнозе по предшественникам
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -355,6 +355,10 @@ export function renderGantt(model: ProcessModel, schedule: Schedule, opts: Gantt
|
||||
idText(hasBar ? x(t.end) : x(t.end) + 6, hasBar ? "end" : "start");
|
||||
}
|
||||
}
|
||||
if (t.deadline !== null) {
|
||||
const rx = x(t.deadline);
|
||||
out.push(`<line x1="${rx}" y1="${cy - 12}" x2="${rx}" y2="${cy + 12}" stroke="#d32f2f" stroke-width="3"><title>${esc(`Крайний срок: день ${t.deadline}`)}</title></line>`);
|
||||
}
|
||||
out.push("</g>");
|
||||
}
|
||||
}
|
||||
@@ -410,7 +414,8 @@ export function renderGantt(model: ProcessModel, schedule: Schedule, opts: Gantt
|
||||
`<rect x="342" y="${ly - 1}" width="22" height="10" rx="3" fill="#cfe8ff" stroke="#3b7dc4" stroke-dasharray="4 2"/><text x="370" y="${ly + 7}">срок «не позже / около»</text>` +
|
||||
`<rect x="530" y="${ly - 1}" width="22" height="10" rx="3" fill="#777" fill-opacity="0.35" stroke="#777"/><text x="558" y="${ly + 7}">повторяется</text>` +
|
||||
`<rect x="645" y="${ly - 1}" width="22" height="10" rx="3" fill="#fff" stroke="#d32f2f" stroke-width="1.6"/><text x="673" y="${ly + 7}">противоречие в сроках</text>` +
|
||||
`<circle cx="820" cy="${ly + 4}" r="4" fill="#e6a100"/><text x="830" y="${ly + 7}">есть открытый вопрос (наведите курсор)</text></g>`,
|
||||
`<circle cx="820" cy="${ly + 4}" r="4" fill="#e6a100"/><text x="830" y="${ly + 7}">есть открытый вопрос (наведите курсор)</text>` +
|
||||
`<line x1="1085" y1="${ly - 3}" x2="1085" y2="${ly + 11}" stroke="#d32f2f" stroke-width="3"/><text x="1094" y="${ly + 7}">крайний срок</text></g>`,
|
||||
);
|
||||
|
||||
const defs = `<marker id="arr" viewBox="0 0 6 6" refX="5" refY="3" markerWidth="6" markerHeight="6" orient="auto"><path d="M0 0 L6 3 L0 6 z" fill="#444"/></marker>`;
|
||||
|
||||
Reference in New Issue
Block a user