Skip to content

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

Open
@5FeetUnder

Description

@5FeetUnder

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: TriageNeeds to be verified, categorized, etcType: Bug / ErrorSomething isn't working or is incorrect

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions