Formatting

This commit is contained in:
RunDevelopment
2022-05-22 12:13:37 +02:00
parent 225298447d
commit daf5927c09
+11 -3
View File
@@ -73,7 +73,13 @@ const EdgeRenderer = (props: EdgeRendererProps) => {
return null; return null;
} }
const { connectionLineType, defaultMarkerColor, connectionLineStyle, connectionLineComponent, connectionLineContainerStyle } = props; const {
connectionLineType,
defaultMarkerColor,
connectionLineStyle,
connectionLineComponent,
connectionLineContainerStyle,
} = props;
const renderConnectionLine = connectionNodeId && connectionHandleType; const renderConnectionLine = connectionNodeId && connectionHandleType;
return ( return (
@@ -183,7 +189,8 @@ const EdgeRenderer = (props: EdgeRendererProps) => {
</g> </g>
</svg> </svg>
))} ))}
{renderConnectionLine && <svg {renderConnectionLine && (
<svg
style={connectionLineContainerStyle} style={connectionLineContainerStyle}
width={width} width={width}
height={height} height={height}
@@ -202,7 +209,8 @@ const EdgeRenderer = (props: EdgeRendererProps) => {
CustomConnectionLineComponent={connectionLineComponent} CustomConnectionLineComponent={connectionLineComponent}
/> />
</g> </g>
</svg>} </svg>
)}
</> </>
); );
}; };