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

Orientation in flowchart does not follow declaration #104

Open
mauermbq opened this issue Oct 24, 2024 · 0 comments
Open

Orientation in flowchart does not follow declaration #104

mauermbq opened this issue Oct 24, 2024 · 0 comments

Comments

@mauermbq
Copy link

mauermbq commented Oct 24, 2024

Describe the bug
The rendering of a flowchart with subgraphs does not follow orientation as declared

To Reproduce
Use the following code:

flowchart LR
    T0(Task) --> Crew --> O1(Output)
    subgraph Crew
        direction LR
        subgraph Agents
            direction TB
            A1(Agent)
            A2(Agent)
        end
        subgraph Tasks
            direction TB
            T1(Tasks) 
            T1 --- C([Tools])
            T2(Tasks)
            T3(Tasks)
        end
    end
    
    style T0 stroke-width:2px,stroke-dasharray: 2
    style O1 stroke-width:2px,stroke-dasharray: 2

Expected behavior
T0(Task) --> Crew --> O1(Output) should be aligned from left to right
Inside the Crew subgraph:
Agents subgraph should be first in crew on left side while boxes inside should be aligned top down.
Tasks subgraph should be second (right of Agents as direction is LR) in crew left while boxes inside should be aligned top down.
Tools should be aligned to the right of their corresponding Tasks.

Observed:
subgraphs are oriented TD instead LR, sorting wrong Tasks first instead second, orientation inside subgraphs not as declared as well, problem occurs constantly in different clients see below.

Screenshots
If applicable, add screenshots to help explain your problem.
image
image

Desktop:

  • OS: macOS
  • Browser Chrome
  • Version Version 127.0.6533.120 (Official Build) (arm64)

VC code

  • Version Version: 1.94.2 (Universal)
    Commit: 384ff7382de624fb94dbaf6da11977bba1ecd427
    Datum: 2024-10-09T16:08:44.566Z
    Electron: 30.5.1
    ElectronBuildId: 10262041
    Chromium: 124.0.6367.243
    Node.js: 20.16.0
    V8: 12.4.254.20-electron.0
    Betriebssystem: Darwin arm64 23.6.0
  • Markdown Preview Mermaid Support v1.26.0
@mauermbq mauermbq changed the title Ordination in flowchart does not follow declaration Orientation in flowchart does not follow declaration Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant