Code Monkey home page Code Monkey logo

Comments (6)

simonbrowndotje avatar simonbrowndotje commented on August 9, 2024

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.

IMMueller avatar IMMueller commented on August 9, 2024

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.

simonbrowndotje avatar simonbrowndotje commented on August 9, 2024

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.

IMMueller avatar IMMueller commented on August 9, 2024

We use an on-premises installation and graphviz for the actual rendering:

  1. online visualization with structurizr, structurizr.graphviz=true (works fine with filtered views)
  2. 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.

simonbrowndotje avatar simonbrowndotje commented on August 9, 2024

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.

IMMueller avatar IMMueller commented on August 9, 2024

Thanks a lot for your detailed clarification and helpful suggestions!

We'll take look at puppeteer first.

from export.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.