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

Flowchart: line from rhombus to subgraph uses bounding box of rhombus instead of actual border #5003

Open
rene-martin-pbm-healthcare opened this issue Nov 1, 2023 · 0 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@rene-martin-pbm-healthcare

Description

When trying to draw a flowchart diagram with a rhombus and a subgraph, lines from the rhombus to the subgraph seem to behave different than lines from the rhombus to other same-level-nodes. Lines to such nodes start at the actual border of the rhombus, but lines to subgraphs seem to always start at the bounding box of the rhombus.

Steps to reproduce

Use this example:

graph LR
    subgraph B
        direction LR
        B_1
    end
    A{A} --- C
    A --- B

Screenshots

No response

Code Sample

https://mermaid-js.github.io/mermaid-live-editor/edit#pako:eNo9j7EOwjAMRH8l8twMrNlaGGGBNVJlYkMjSFKlyYCq_Dtpg7jp3vkk2yuYQAwKnhHnSZyv2ouqJd9bMDTeRDaySTb4f2vTMB4asKdm-rUvQkopjj_eYYAOHEeHluq2dRtpSBM71qCqJYwvDdqX2sOcwu3jDagUM3eQZ8LEJ4v1Jgfqge-lpkw2hXhp5-9flC_mCT3Y

Setup

  • Mermaid version: 10.5.0
  • Browser and Version: Chrome 118

Suggested Solutions

No response

Additional Context

No response

@rene-martin-pbm-healthcare rene-martin-pbm-healthcare added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Nov 1, 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: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

2 participants