Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expanded and Closed versions of Flowchart subgraphs #4879

Open
JohnAtChetwood opened this issue Sep 27, 2023 · 0 comments
Open

Expanded and Closed versions of Flowchart subgraphs #4879

JohnAtChetwood opened this issue Sep 27, 2023 · 0 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request

Comments

@JohnAtChetwood
Copy link

Proposal

Sometimes for different audiences, I would like to render a flow chart without some subgraphs cluttering up the diagram.

  • A way to quickly mark a subdiagram as closed, so it is rendered in a small format, maybe a square with some text.
  • As a software engineer this makes it easier to render a diagram to quickly highlight the area I have been working on.
  • As an addition to this, there could be a "closed" section in the subdiagram that is used to give the config of how to render the closed subgraph (if different to the default behaviour).

This is a static change and to do with how the diagram is rendered given the syntax. note it is similar to #1123 but this is about subdiagrams and not about interactive behaviour. It is about being able to to modify syntax quickly to render the diagram differently.

Thanks.

Example

Some possible thought of how this could look:
Here

flowchart TB
    c1-->a2
    subgraph one closed
    a1-->a2
    end
    subgraph two
    b1-->b2
    end
    subgraph three
    c1-->c2
    end

if i wanted to add text different to the default or do something different, i could optionally add a closed section:

flowchart TB
    c1-->a2
    subgraph one closed
    a1-->a2
    closed "new text when closed"
    end
    subgraph two
    b1-->b2
    end
    subgraph three
    c1-->c2
    end

Screenshots

No response

@JohnAtChetwood JohnAtChetwood added Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request labels Sep 27, 2023
@jgreywolf jgreywolf added include and removed include labels Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants