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

layout: allow connecting to connections #423

Open
alixander opened this issue Dec 10, 2022 · 8 comments
Open

layout: allow connecting to connections #423

alixander opened this issue Dec 10, 2022 · 8 comments

Comments

@alixander
Copy link
Collaborator

alixander commented Dec 10, 2022

asdf

Both nodes to connections and connections to connections

@alixander alixander changed the title allow connecting to connections layout: allow connecting to connections Dec 10, 2022
@alixander
Copy link
Collaborator Author

beautiful example of this:

Screen Shot 2023-10-24 at 9 59 50 AM

@alixander
Copy link
Collaborator Author

syntax: a -> (b -> c)[0]? which would connect a to the midpoint of the first connection between b to c.

@bo-ku-ra
Copy link
Contributor

bo-ku-ra commented Aug 26, 2024

can the order be specified and fixed?

a -> (b -> c)[0] #1
o.y -> (b -> c)[0] #2
p.x -> (b -> c)[0] #3
o.z -> (b -> c)[0] #4

@bo-ku-ra
Copy link
Contributor

#423 (comment) is good.

a -> (b -> c)[0]: "" {
  target-arrowhead: "" {
    shape: circle
    style.filled: false
  }
}

i want to be able to use 'shape: diamond' and 'shape: cross'(#2028), too.

@MrPixelized
Copy link

An issue of mine was marked as a duplicate of this, and it might well be, but I would like to explicitly add that something like (a -> b) -> (c -> d) has uses for me! Rather than only connecting from nodes to edges, edges to edges as well.

@bo-ku-ra
Copy link
Contributor

it should look like this

a -> b #[0]
a -> b #[1] <-- "(a ->b)[1]" 
a -> b #[2] 

(a ->b)[1]  ->  (c -> d)[0]

@alixander
Copy link
Collaborator Author

@MrPixelized Oh right, my bad didn't see the distinction. I've updated the post to clarify that it should also support connection to connection.


Dev note: the way to do this is probably to give the rendering engine a placeholder node on the connection, and then at the rendering stage, remove the placeholder node and trace the connection through it.

@roby2014
Copy link

Bump! I want this feature :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

4 participants