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

Set depth level for nodes #1495

Closed
yuritpinheiro opened this issue Jun 22, 2020 · 0 comments · Fixed by #1613
Closed

Set depth level for nodes #1495

yuritpinheiro opened this issue Jun 22, 2020 · 0 comments · Fixed by #1613
Labels
Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request

Comments

@yuritpinheiro
Copy link

yuritpinheiro commented Jun 22, 2020

Is your feature request related to a problem? Please describe.
I would like to have a option to set the depth level of nodes. It is interesting for flowchart where the End node should be the left/bottom most even if the parent node is way upper in the tree.

Describe the solution you'd like
An option to define the depth level when creating the node:

graph TD
  A[Start] --> B{Is it?}
  B -->|Yes| C[OK]
  C --> D[Rethink]
  D --> B
  B -->|No| E[End](5) %% Define depth level as 5

or a class atribute to define it:
style E depth:5

Describe alternatives you've considered
I put an invisible edge from a last level node to the end node as workaround:

graph TD
  A[Start] --> B{Is it?};
  B -->|Yes| C[OK];
  C --> D[Rethink];
  D --> B;
  B -->|No| E[End];
  D --- E;
  linkStyle 5 stroke:#0000, ;

Additional context
That would be nice for flowcharts since the user will be able to control the flow manually.

@yuritpinheiro yuritpinheiro added Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request labels Jun 22, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Aug 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant