Skip to content

Commit

Permalink
Unify logic for resetting hover styles on links
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippMDoerner committed Dec 9, 2024
1 parent a762814 commit d078d25
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/design/organisms/graph/graph.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d078d25

Please sign in to comment.