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

Using layout: elk on a diagram that uses clusters breaks the diagram #6027

Open
yari-dewalt opened this issue Nov 6, 2024 · 0 comments · May be fixed by #6028
Open

Using layout: elk on a diagram that uses clusters breaks the diagram #6027

yari-dewalt opened this issue Nov 6, 2024 · 0 comments · May be fixed by #6028
Assignees
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@yari-dewalt
Copy link
Collaborator

Description

When one attempts to use the elk layout on a diagram that uses a cluster node, it results in an error. Changing the layout off of elk renders the diagram as expected.

Steps to reproduce

  1. Create a diagram that uses a cluster (subgraph, namespace, etc.)
  2. Change the config layout to elk

Screenshots

image

Code Sample

No response

Setup

  • Mermaid version: 11.4.0
  • Browser and Version: Firefox Version 131.0.3 (64-bit)

Suggested Solutions

No response

Additional Context

Looks like the issue is with labelHelper() inside addVertex() for the render function.

@yari-dewalt yari-dewalt added Type: Bug / Error Something isn't working or is incorrect Status: Triage Needs to be verified, categorized, etc labels Nov 6, 2024
@yari-dewalt yari-dewalt linked a pull request Nov 6, 2024 that will close this issue
4 tasks
@yari-dewalt yari-dewalt self-assigned this Nov 6, 2024
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

Successfully merging a pull request may close this issue.

1 participant