Skip to content

gitGraph BT: wrong curve when commit line goes left then up #6593

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

Open
thefasquelle opened this issue May 13, 2025 · 0 comments
Open

gitGraph BT: wrong curve when commit line goes left then up #6593

thefasquelle opened this issue May 13, 2025 · 0 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@thefasquelle
Copy link

Description

in a gitGraph going from bottom to top, lines that go from bottom right to top left have wrong curvature.

This can happen when reordering branches or cherry picking.

gitGraph BT:
    commit
    branch develop order: 3
    checkout develop
    commit
    
    branch release/1.0.0 order: 2
    checkout release/1.0.0
    commit
    commit
    checkout main
    merge release/1.0.0 tag: "v1.0.0"
    checkout develop
Loading
gitGraph BT:
    checkout main
    commit
    commit
    commit tag:'1.0.0'
    branch dev.1.0.1
    checkout main
    commit
    checkout dev.1.0.1
    commit id:"hotfix" tag:'1.0.1' type:HIGHLIGHT
    checkout main
    cherry-pick id:'hotfix'
Loading

Both of these examples are fine with TB and LR orientations.

Steps to reproduce

  1. start a gitGraph with BT orientation
  2. Make a commit that must create a line that goes left then up
  3. The curve goes right then up instead of left then up

Screenshots

Image
Image

Code Sample

gitGraph BT:
    commit
    branch develop order: 3
    checkout develop
    commit
    
    branch release/1.0.0 order: 2
    checkout release/1.0.0
    commit
    commit
    checkout main
    merge release/1.0.0 tag: "v1.0.0"
    checkout develop

gitGraph BT:
    checkout main
    commit
    commit
    commit tag:'1.0.0'
    branch dev.1.0.1
    checkout main
    commit
    checkout dev.1.0.1
    commit id:"hotfix" tag:'1.0.1' type:HIGHLIGHT
    checkout main
    cherry-pick id:'hotfix'

Setup

  • Mermaid version: live editor v11.6.0
  • Browser and Version: Chrome 136.0.7103.93

Suggested Solutions

No response

Additional Context

No response

@thefasquelle thefasquelle added Type: Bug / Error Something isn't working or is incorrect Status: Triage Needs to be verified, categorized, etc labels May 13, 2025
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

1 participant