1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-11-29 00:06:34 +00:00

Merge pull request #1075 from pzzz/master

adds HyperLinks to GANTT Milestones
This commit is contained in:
PlantUML 2022-08-03 13:47:53 +02:00 committed by GitHub
commit 1f3dd64f7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) {