Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Add ability to specify the dynamic diagram export type per-view #22

Closed
dgutson opened this issue Oct 24, 2022 · 5 comments
Closed

Add ability to specify the dynamic diagram export type per-view #22

dgutson opened this issue Oct 24, 2022 · 5 comments

Comments

@dgutson
Copy link

dgutson commented Oct 24, 2022

The dynamic block, as is, has the enough information to create both a collaboration-type diagram and a sequence-type diagram.
I'm proposing to allow the user to choose the type for each block type, probably as a property (or a language keyword).

@simonbrowndotje
Copy link
Contributor

The StructurizrPlantUMLExporter (via a view property named plantuml.sequenceDiagrams set to true) and the WebSequenceDiagramsExporter both support a UML sequence diagram export. As far as I know, this is not possible with C4-PlantUML, which is why it's not supported via the C4PlantUMLExporter.

@dgutson
Copy link
Author

dgutson commented Oct 25, 2022

I didn't find this property documented (BTW, few or none properties are documented in a single place IIUC, something I recommend to).
I propose to use this issue to document the property with an example.

@dgutson
Copy link
Author

dgutson commented Oct 25, 2022

BTW @simonbrowndotje does this mean that dynamic supports properties inside? (it is also not documented if so in https://github.com/structurizr/dsl/blob/master/docs/language-reference.md#dynamic-view as permitted children)

@dgutson
Copy link
Author

dgutson commented Oct 25, 2022

I added

            properties {
                plantuml.sequenceDiagrams true
            }

to my dynamic view, and structurizr-cli doesn't accept it.

So, how/where do I set this property to obtain the seq diagram?

@dgutson
Copy link
Author

dgutson commented Oct 25, 2022

Just checked that the property is a "global" views property. I will change the title of this issue in order to be able to select the type of diagram per-view.

@dgutson dgutson changed the title Add ability to export a dynamic diagram as a sequence chart Add ability to specify the dynamic diagram export type per-view Oct 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants