question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Drag-Box multi-Link selection

See original GitHub issue

As you can see in the .gif below we implemented a drag-box selection that makes it possible to not only select multiple nodes. Furthermore it is possible to select multiple links.

Animation (10)

The problem with our link-selection implementation is visible within the second row of nodes during the second half of the .gif. If the link is not straight it is possible to select it while not touching it. This is because it’s evaluated as a rectangle containing the whole link.

So my question is: Is there a better way to evaluate the link as an object other than to package it as a rectangle?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
zHaytamcommented, Jul 30, 2021

You could do it, it’s just gonna take a lot of work. You will have to calculate the intersections with the calculated paths of the links, not just their bounds. The calculated paths aren’t available on the models (for obvious reasons), but you can use the Routers & PathGenerators to basically regenerate that path, & then run the intersections detection.

I don’t know if there is a C# library that can get you the intersections of shapes, especially SVG paths. However there is a JS one: https://github.com/thelonious/kld-intersections

0reactions
snehabihanicommented, Sep 5, 2022

@xevoryn Hi Can you please help with this svg node dragging selection?

Read more comments on GitHub >

github_iconTop Results From Across the Web

INSTALLATIONC
manufactured by Multilink Inc. Refer to the OPTIONS section of these instructions for ... Click the action type dropbox to show a list...
Read more >
relinking multiple instances of the same link in Illustrator
I have the same issue still in middle of 2019 and I have to replace file 100 instances each time. Dropbox - ai_file_linking_issue.mov...
Read more >
A replacement for the Multilinks extension? : r/firefox
There are a number that let you open links from selected text, so you drag and select text with links you want instead...
Read more >
Multilink for bilingual language production
Lexical selection in bilinguals: Do words in the bilingual's two lexicons compete for selection? Journal of Memory and Language, 41 (3), ...
Read more >
Box selection example
This example shows how to use a DragBox interaction to select features. Selected features are added to the feature overlay of a select...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found