fix(base-edge): dont apply animation to edge helper closes #2517
This commit is contained in:
@@ -26,7 +26,15 @@ const BaseEdge = ({
|
|||||||
markerEnd={markerEnd}
|
markerEnd={markerEnd}
|
||||||
markerStart={markerStart}
|
markerStart={markerStart}
|
||||||
/>
|
/>
|
||||||
{interactionWidth && <path d={path} fill="none" strokeOpacity={0} strokeWidth={interactionWidth} />}
|
{interactionWidth && (
|
||||||
|
<path
|
||||||
|
d={path}
|
||||||
|
fill="none"
|
||||||
|
strokeOpacity={0}
|
||||||
|
strokeWidth={interactionWidth}
|
||||||
|
className="react-flow__edge-interaction"
|
||||||
|
/>
|
||||||
|
)}
|
||||||
{label ? (
|
{label ? (
|
||||||
<EdgeText
|
<EdgeText
|
||||||
x={labelX}
|
x={labelX}
|
||||||
|
|||||||
@@ -56,6 +56,11 @@
|
|||||||
animation: dashdraw 0.5s linear infinite;
|
animation: dashdraw 0.5s linear infinite;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.animated path.react-flow__edge-interaction {
|
||||||
|
stroke-dasharray: none;
|
||||||
|
animation: none;
|
||||||
|
}
|
||||||
|
|
||||||
&.inactive {
|
&.inactive {
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user