Syntax to add a URL to an arrow

0 votes
asked Feb 20 in Wanted features by chris (1,080 points)
Hi,

I would like to be able to add a URL to an arrow itself, with the end objective being to use the 'empty link trick' to get an annotation which only appears when you hover over the arrow. For example I can do the following

http://www.plantuml.com/plantuml/uml/TOyn3i8m34NtdC8RKmSwCXM9MrGTeZPLB4ACR1U6g9TWuNpSX0Ie49KOl_Jydjo8MjRf54mVh0ZqMu1aPZDnW96uR1HestHmqZEU5Ic2UgiWdgu2UNcwE9wxpYoA-jTGVmpxIEeTm_0rlQvCRbHLAk0kSu_xBGrEBGR0ED8ACLdYIZLWFFxbDqkyKE_yccbS7FBRJm00

But the syntax:

url for link is [[{detail info}]]

with the url being added to the arrow itself, instead of a separate object off to the side, would be great. Thanks for all the work

1 Answer

0 votes
answered Feb 20 by chris (1,080 points)
selected Feb 21 by chris
 
Best answer
Syntax appears to work for SVG:

c1 --{ c2 [[{detail info}]]

But for Plantuml Online Server you need a blank label

c1 --{ c2 [[{detail info}]] : " "

http://www.plantuml.com/plantuml/uml/PS-n2i9030RWFK_nqyMfWnsTAlWMfSFHNhd3yqwIL8VITpSLYuZZJ_vy8QseOvrlYORaH30SWOLMcZbXAhpbAEYwvU9bu7ZNM38qE8M4yXHO2kNXUUrxsedcLsW-mZaN3PunVgNt5jcDkbwsehL6houcn3mLc-A42XNHOTTIp5Vp_flK-ZpQ7oy0
...