Extend Connection Line props
Include Node and Handle in props passed to custom connection lines for advanced usage.
This commit is contained in:
@@ -303,6 +303,8 @@ export type ConnectionLineComponentProps = {
|
||||
targetPosition?: Position;
|
||||
connectionLineStyle?: CSSProperties;
|
||||
connectionLineType: ConnectionLineType;
|
||||
sourceNode?: Node | null;
|
||||
sourceHandle?: HandleElement;
|
||||
};
|
||||
|
||||
export type ConnectionLineComponent = React.ComponentType<ConnectionLineComponentProps>;
|
||||
|
||||
Reference in New Issue
Block a user