Formatting
This commit is contained in:
@@ -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>
|
||||||
|
)}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user