From d078d254bab70cedefb92901767e7a2e0e4248ab Mon Sep 17 00:00:00 2001 From: PhilippMDoerner Date: Mon, 9 Dec 2024 18:10:39 +0100 Subject: [PATCH] Unify logic for resetting hover styles on links --- src/design/organisms/graph/graph.service.ts | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/design/organisms/graph/graph.service.ts b/src/design/organisms/graph/graph.service.ts index 45a29987d..56dd4e714 100644 --- a/src/design/organisms/graph/graph.service.ts +++ b/src/design/organisms/graph/graph.service.ts @@ -438,20 +438,7 @@ export class GraphService { .style('stroke', 'var(--bs-primary)') .style('stroke-width', () => '6px'); }) - .on('mouseout', function () { - const lineElement = this as Element; - select(lineElement.parentNode as Element) - .transition() - .duration(200) - .select(SELECTORS.linkLabelSelector) - .style('opacity', '0'); - - select(lineElement) - .transition() - .duration(200) - .style('stroke', '#999') - .style('stroke-width', () => `${Math.sqrt(5)}px`); - }); + .on('mouseout', () => this.resetActivatedLinkStyles()); return linkElements; }