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

Sub-graph direction in flowchart-elk cannot change direction #5864

Open
zhuwenyun opened this issue Sep 16, 2024 · 3 comments
Open

Sub-graph direction in flowchart-elk cannot change direction #5864

zhuwenyun opened this issue Sep 16, 2024 · 3 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@zhuwenyun
Copy link

Description

Sub-graph direction in flowchart-elk cannot change direction

Steps to reproduce

First, I set the layout of subgraphs from left to right through flowchart-elk LR, and then I set 3 subgraphs, and the direction of each subgraph is from top to bottom. As a result, if the direction setting of subgraphs is not effective, it is from left to right. This is different from flowchart's default rendering method. I have worked hard to help you read it and wait for your reply. Thank you

Screenshots

Sub-graph direction in flowchart-elk cannot change direction

Code Sample

flowchart-elk LR

    subgraph sg1
      direction TB
      a1 --> a2 --> a3
    end

    subgraph sg2
      direction TB
      b1 --> b2
    end

    subgraph sg3
      direction TB
      c1 --> c2 --> c3
    end

    sg1 --> sg2 --> sg3

Setup

  • Mermaid version:
  • Browser and Version: [Chrome, Edge, Firefox]

Suggested Solutions

No response

Additional Context

image

@zhuwenyun zhuwenyun added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Sep 16, 2024
@zhuwenyun
Copy link
Author

mermaid version is 11.2.0

@zhuwenyun
Copy link
Author

image
The default layout direction is in effect

@zszen
Copy link

zszen commented Sep 18, 2024

mermaid version is 11.2.0

@zhuwenyun by the way how to add elk to mermaid v11

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: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

2 participants