Comments (6)
The filtered view feature is really only designed for diagrams with manual layout ... so you'd have a base version of the diagram, and the filtered versions would use the same layout. From the page you linked to:
The benefit of using filtered views is that element and relationship positions are shared between the views.
The export formats are all automatic layout, so the filtered views feature is much less useful. If you're using something like the DSL, you may find that using the expressions feature is much more flexible than filtered views anyway. You can do things like:
include "element.tag==Tag 1"
from export.
Thanks for your reply, we already use expressions extensively.
Let me describe our use case in a bit more detail.
We have one quite large consistent model with 100+ containers, the model is developing over several milestones and is continuously adapted.
From this we automatically define about 20 base views using expressions and automatic layout (graphwiz), which works well for views of the resulting sizes. No manual adaption is required.
We use filtered views to create milestone views of these base views to reflect our progression.
In terms of human readability we profit greatly from the constant layout of these milestone views and would like to export these for documentation purposes.
from export.
I’m confused … which diagram renderer are you using? Structurizr Lite/cloud/on-premises, or one of the export formats implemented by this repo (PlantUML, Mermaid, etc)?
from export.
We use an on-premises installation and graphviz for the actual rendering:
- online visualization with structurizr,
structurizr.graphviz=true
(works fine with filtered views) - export in dot format. These we use to batch create graphics and automatically integrate them in offline documentation
From 2. we currently cannot get the filtered milestone views.
from export.
In terms of human readability we profit greatly from the constant layout of these milestone views and would like to export these for documentation purposes.
The on-premises installation is only applying automatic layout to the base view, and hiding elements on the filtered view. You won’t get this constant layout characteristic with a DOT export unfortunately. If your base view has 10 elements and your milestone views only have a subset of them, the Graphviz tool will provide a different diagram layout for each milestone view because the set of elements that it’s rendering is different.
It would be possible to replicate what the on-premises installation is doing, by exporting all elements from the base view and “hiding” (white border, background, text) the elements that shouldn’t appear on the filtered view. In effect, it’s a reimplementation of the feature from the on-premises installation. This is a good chunk of work though. If you’re happy to sponsor this from a financial point of view, please do let me know.
Otherwise, I’d instead suggest using the https://github.com/structurizr/puppeteer scripts to export the diagrams directly from your on-premises installation.
from export.
Thanks a lot for your detailed clarification and helpful suggestions!
We'll take look at puppeteer first.
from export.
Related Issues (20)
- Only add the model elements tags to the elements in the generated C4Plantuml files HOT 1
- Show additional properties / details in deploymentNode diagrams HOT 5
- StructurizrPlantUMLExporter crashes when used in native binaries
- Internal property 'structurizr.dsl.identifier' on exported diagrams should be hidden HOT 2
- shadow property for both plantuml exporters HOT 2
- Export workspace as DSL.json
- link to further down diagram HOT 1
- Multiple groups with same name not rendered correctly (PlantUML) HOT 3
- Support for C4-PlantUML's ComponentDb and ComponentQueue in C4PlantUMLExporter?
- C4PlantUMLExporter mistakes container and component description for technologies when only description is present HOT 1
- Export the model to DSL or JSON format HOT 1
- support c4plantuml sequence diagrams HOT 1
- Export PlantUML Sequence Diagram for Dynamic View not working
- How I can rewrite tags autofilling in C4PlantUMLExporter?
- Add support for skinparam svgLinkTarget for C4PlantUML Exporter HOT 3
- Support C4PlantUML borderStyle and borderThickness HOT 2
- Syntax error in WebSequence diagrams HOT 1
- Export relationships as a list HOT 1
- Mermaid render error when description contains `(` HOT 1
- Asynchronous relation rendering with c4plantumlexporter
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from export.