Skip to content

Issues about select all the link before el #1672

Answered by kumilingus
Ndmanh123 asked this question in Q&A
Discussion options

You must be logged in to vote
  1. To get all preceding links of an element run this:
graph.getSubgraph([el, ...graph.getPredecessors(el)]).filter(cell => cell.isLink());
  1. To make links automatically avoid elements use manhattan router.

Here's a CodePen example.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Ndmanh123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants