fix(core): set interaction edge styles so animation does not break pointer

This commit is contained in:
braks
2023-06-15 22:35:25 +02:00
committed by Braks
parent 6eb5e5a986
commit d2c1c5185f
2 changed files with 6 additions and 0 deletions
@@ -41,6 +41,7 @@ const BaseEdge: FunctionalComponent<BaseEdgeProps> = function (
'fill': 'none',
'stroke-opacity': 0,
'stroke-width': interactionWidth,
'class': 'vue-flow__edge-interaction',
})
: null,
label && isNumber(labelX) && isNumber(labelY)
+5
View File
@@ -78,6 +78,11 @@
animation: dashdraw 0.5s linear infinite;
}
&.animated path.vue-flow__edge-interaction {
stroke-dasharray: none;
animation: none;
}
&.inactive {
pointer-events: none;
}