structurizr / export

Export models and views to external formats.

Home Page:https://docs.structurizr.com/export

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

link to further down diagram

r-vanooyen opened this issue · comments

Description

As it is on your website, I would like to have the diagram elements to be linked to the next diagram.
I know, that c4plantuml does support a $link argument in a c4-element and there is another way by using plain plantuml links at the end of the line (like you use fur the url property in dsl)

Priority

Low

Resolution

I'm willing to add this feature myself and raise a PR

More information

I tried to implement this feature, but run into trouble by determining the target file name of the next diagram because this is defined in the cli module (prefix(workspaceId) is the problem here).

Possible solution would be to add a unique placeholder in the diagram.definition which then later can be replaced in the cli module with the filename of the generated target-diagram.

I am not sure, if you even want to implement this feature, because it was declined in a similar request structurizr/cli#58

If you approve the feature request, I would create a pull request in export and cli module.

I think the best way to do this is for you to build your own tooling that uses that current structurizr-export library as a dependency. That way you have complete control over the filename/link associated with an element, which may need to change on a per view basis. You might look at the following for inspiration, since they have done the same thing already (they both hyperlink elements in the C4-PlantUML exports):

Ultimately though, I'd recommend just using Structurizr Lite, since this is all supported out the box.