fix(connection): no fill fixes #210

This commit is contained in:
moklick
2020-05-11 17:07:04 +02:00
parent 48b2840700
commit 9e534f83ff
3 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ export default ({
return null;
}
const edgeClasses: string = cx('react-flow__edge', 'connection', className);
const edgeClasses: string = cx('react-flow__edge', 'react-flow__connection', className);
const hasSource = sourceNode.__rg.handleBounds.source !== null;
// output nodes don't have source handles so we need to use the target one
+5 -4
View File
@@ -52,11 +52,12 @@
stroke-dasharray: 5;
animation: dashdraw 0.5s linear infinite;
}
}
&.connection {
stroke: '#ddd';
pointer-events: none;
}
.react-flow__connection {
fill: none;
stroke: '#ddd';
pointer-events: none;
}
.react-flow__edge-path {