@@ -698,9 +698,8 @@ export class Graph<
698
698
const hasLinksWithFlow = links . some ( ( d , i ) => getBoolean ( d , config . linkFlow , i ) )
699
699
if ( ! hasLinksWithFlow ) return
700
700
701
- const linkElements = this . _linksGroup . selectAll < SVGGElement , GraphLink < N , L > > ( `.${ linkSelectors . gLink } ` )
702
- const linksToAnimate = linkElements . filter ( d => ! d . _state . greyout )
703
- linksToAnimate . each ( ( l , i , els ) => {
701
+ const linkGroups = this . _linksGroup . selectAll < SVGGElement , GraphLink < N , L > > ( `.${ linkSelectors . gLink } ` )
702
+ linkGroups . each ( ( l , i , els ) => {
704
703
let linkFlowAnimDuration = getNumber ( l , config . linkFlowAnimDuration , l . _indexGlobal )
705
704
const linkFlowParticleSpeed = getNumber ( l , config . linkFlowParticleSpeed , l . _indexGlobal )
706
705
@@ -712,7 +711,7 @@ export class Graph<
712
711
}
713
712
l . _state . flowAnimTime = ( elapsed % linkFlowAnimDuration ) / linkFlowAnimDuration
714
713
} )
715
- animateLinkFlow ( linksToAnimate , this . config , this . _scale , this . _linkPathLengthMap )
714
+ animateLinkFlow ( linkGroups , this . config , this . _scale , this . _linkPathLengthMap )
716
715
}
717
716
718
717
private _onZoom ( t : ZoomTransform , event ?: D3ZoomEvent < SVGGElement , unknown > ) : void {
0 commit comments