8T4 / c4sharp

C4Sharp (C4S) is a .net library for building C4 Model diagrams.
MIT License
268 stars 38 forks source link

Enable adding links to structures #14

Closed BenRStutzman closed 3 years ago

BenRStutzman commented 3 years ago

Add a Link property to the Structure class and new structure constructors with link parameters, and edit the ToPumlString() methods so that structures in diagrams can link to URLs. For example, if you create a person with

new Person("person1", "Person 1", "This is a person", "https://www.google.com"),

the PUML generated will be

Person(person1, "Person 1", "This is a person", $link="https://www.google.com")

and, if you create an SVG out of the PUML (using another library or server), clicking on the person in the diagram will take you to Google.