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

Changing the curve interpolation for flowchart doesn't do anything #6193

Open
5FeetUnder opened this issue Jan 15, 2025 · 1 comment
Open
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@5FeetUnder
Copy link

Description

Changing the curve type for a flowchart doesn't apply, no matter if it's changed in the config tab of the live editor, in the init directive or via linkStyle.

In the "next" live editor (which runs on an older version: v11.0.0-alpha.6+7fec51f) it still works as expected, in current and "develop" it doesn't.

Steps to reproduce

  1. open any mermaid flowchart
  2. add any of the following (using stepBefore as example):
    • %%{ init: { 'flowchart': { 'curve': 'stepBefore' } } }%% at start of the mermaid block
    • linkStyle default interpolate stepBefore; inside the flowchart-definition
    • "flowchart": { "curve": "stepBefore" } in the config tab of the live editor
  3. observe the flowchart not changing

Screenshots

Develop Live Editor

with init directive:

Image

with linkStyle:

Image

via config:

Image

"Next" Live Editor

with init directive:

Image

with linkStyle:

Image

via config:

Image

Code Sample

https://develop.git.mermaid.live/edit#pako:eNpVUM1ugzAMfhUrp02CF-AwacDWS6tNWk8DDhYYErXEkQmrKuDdF8rUbT75-3McT6rmhlSi2jNfao3i4ZiXFkI9F5kWM_gehwri-GnekYeeLV1nSB92DINm54ztHjd_upogm_arjcBrY0_LJmW3_JulGfJij86zq_4qxwvP8FKYdx3G_1e0UEi9Fi0mLcY1CmQolYpUT9KjacLq0xooldfUU6mS0DYop1JFG3__2apNgahH-foxDp5cSi1LwBCWXcJgHD1_XG2tEi8jRUp47LQKr5-HgEbXoKfcYCfY31mH9pP5F1NjPMthO-3twss32LN1xQ

Setup

  • Mermaid version: tested in v11.4.0 and the develop branch at v11.4.1+1d9c2aa
  • Browser and Version: tested in Edge Version 131.0.2903.70 and Firefox Version 128.6.0esr

Suggested Solutions

No response

Additional Context

No response

@5FeetUnder 5FeetUnder added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Jan 15, 2025
@closetgeekshow
Copy link

I'm also hitting my head against this issue, can't seem to find any workaround

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