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

How to style the curve in a stateDiagram? #5823

Open
maikol-solis opened this issue Sep 6, 2024 · 0 comments
Open

How to style the curve in a stateDiagram? #5823

maikol-solis opened this issue Sep 6, 2024 · 0 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@maikol-solis
Copy link

maikol-solis commented Sep 6, 2024

Description

In the flowchart docs, there is a section to change the style of the curves: https://mermaid.js.org/syntax/flowchart.html#styling-line-curves

However, in the stateDiagram docs, there is no reference where we can start configuring the layout. The only reference is about the nodes through classDef (https://mermaid.js.org/syntax/stateDiagram.html#styling-with-classdefs)

Thanks.

Steps to reproduce

  1. Just create any stateDiagram.
stateDiagram-v2
    [*] --> Still
    Still --> [*]

    Still --> Moving
    Moving --> Still
    Moving --> Crash
    Crash --> [*]

Screenshots

No response

Code Sample

No response

Setup

Suggested Solutions

The ideal case is to have documented something like:

%%{ init: { 'stateDiagram': { 'curve': 'linear' } } }%%

Additional Context

No response

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

No branches or pull requests

1 participant