1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-11-21 20:45:10 +00:00

adds HyperLinks to GANTT Milestones

This resembles the behavior of "normal" tasks in the GANTT chart to
enable linking of milestones.
It is meant to resolve issue #1074
This commit is contained in:
Peter Schuller 2022-08-02 18:43:52 +02:00
parent 5718bbe08c
commit 0813b747e3

View File

@ -141,7 +141,16 @@ public class TaskDrawDiamond extends AbstractTaskDraw {
final double x2 = timeScale.getEndingPosition(start);
final double width = getShapeHeight(ug.getStringBounder());
final double delta = x2 - x1 - width;
if (url != null) {
ug.startUrl(url);
}
drawShape(applyColors(ug).apply(UTranslate.dx(x1 + delta / 2)));
if (url != null) {
ug.closeUrl();
}
}
private UGraphic applyColors(UGraphic ug) {