Closed da-du closed 2 weeks ago
An edge and a connection line are two different things, hence why defaultEdgeOptions
will not change the style/type of a connection line.
Edges are established connections between two nodes.
Connection Lines are lines that are drawn to establish a connection between two nodes (in other words, the connection has not yet been created).
In your case you would want to use something like this
<ReactFlow connectionLineType={ConnectionLineType.Step} connectionLineStyle={{ stroke: theme.colors.pattern.text.secondary, }} {...rest}>
Describe the Bug
I set the edge type to 'step', but when dragging, the edge is not of type 'step'
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
1.set defaultEdgeOptions, type: 'step', 2.Create new connections between nodes
Expected behavior
The edge type is 'step'
Screenshots or Videos
No response
Platform
Additional context
No response