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;
}
const { connectionLineType, defaultMarkerColor, connectionLineStyle, connectionLineComponent, connectionLineContainerStyle } = props;
const {
connectionLineType,
defaultMarkerColor,
connectionLineStyle,
connectionLineComponent,
connectionLineContainerStyle,
} = props;
const renderConnectionLine = connectionNodeId && connectionHandleType;
return (
@@ -183,7 +189,8 @@ const EdgeRenderer = (props: EdgeRendererProps) => {
</g>
</svg>
))}
{renderConnectionLine && <svg
{renderConnectionLine && (
<svg
style={connectionLineContainerStyle}
width={width}
height={height}
@@ -202,7 +209,8 @@ const EdgeRenderer = (props: EdgeRendererProps) => {
CustomConnectionLineComponent={connectionLineComponent}
/>
</g>
</svg>}
</svg>
)}
</>
);
};