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

Backwards arrows #5227

Open
tolomea opened this issue Jan 23, 2024 · 2 comments
Open

Backwards arrows #5227

tolomea opened this issue Jan 23, 2024 · 2 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request

Comments

@tolomea
Copy link

tolomea commented Jan 23, 2024

Proposal

As a way to force node rank a bit it would be nice if there was a syntax for an arrow that goes up / left.
For the layout engine this would work like a normal arrow, but the rendering would put the head at the other end.
So for a minimal change you could control which links go up.
The obvious syntax is <--

Example

In this

flowchart TD
    a --> b
    b --> a

it's kinda up to the layout engine whether a or b is on top
but in

flowchart TD
    a --> b
    a <-- b

it's unambiguous that a goes on top
the layout engine would process this the same as

flowchart TD
    a --> b
    a --> b

but then the display engine would draw the second arrow the other way around

Screenshots

No response

@tolomea tolomea added Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request labels Jan 23, 2024
@sidharthv96
Copy link
Member

We unfortunately cannot use <--, as < will be interpreted as HTML tag opening.

@jhv2017kam
Copy link

We unfortunately cannot use <--, as < will be interpreted as HTML tag opening.

Why not, a HTML tag name can not start with hyphen e.g. <-notAValidHTMLTag/>

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: Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants