Skip to content
Snippets Groups Projects
Commit a211b317 authored by Maximilian Giller's avatar Maximilian Giller
Browse files

Proper link highlighting

parent 7aaa85c8
No related branches found
No related tags found
No related merge requests found
Pipeline #52750 passed
...@@ -310,9 +310,11 @@ export class State extends Tool { ...@@ -310,9 +310,11 @@ export class State extends Tool {
isLinkHighlighted(link) { isLinkHighlighted(link) {
return ( return (
this.selectedItem === link || this.selectedItem === link || // Single selected item
graph.isLinkOnNode(link, this.selectedItem) graph.isLinkOnNode(link, this.selectedItem) || // Connected to selected node
this.selectedItems.has(link) // In collection of selected items
); );
// Link is not highlighted, when a node is part of the collection, only for single selected nodes
} }
setLabelVisibility(visibility) { setLabelVisibility(visibility) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment