refactor(wrapEdge): pass source and target handle ids to edge closes #814
This commit is contained in:
@@ -35,7 +35,7 @@ const BasicFlow = () => <ReactFlow elements={elements} />;
|
|||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
||||||
You need to install the React Flow dependencies via `npm install` and the ones of the examples `cd example && npm install`.
|
Before you start you need to install the React Flow dependencies via `npm install`.
|
||||||
|
|
||||||
If you want to contribute or develop custom features the easiest way is to start the dev server:
|
If you want to contribute or develop custom features the easiest way is to start the dev server:
|
||||||
|
|
||||||
|
|||||||
@@ -166,6 +166,8 @@ export default (EdgeComponent: ComponentType<EdgeProps>) => {
|
|||||||
sourcePosition={sourcePosition}
|
sourcePosition={sourcePosition}
|
||||||
targetPosition={targetPosition}
|
targetPosition={targetPosition}
|
||||||
markerEndId={markerEndId}
|
markerEndId={markerEndId}
|
||||||
|
sourceHandleId={sourceHandleId}
|
||||||
|
targetHandleId={targetHandleId}
|
||||||
/>
|
/>
|
||||||
{handleEdgeUpdate && (
|
{handleEdgeUpdate && (
|
||||||
<g
|
<g
|
||||||
|
|||||||
@@ -148,6 +148,8 @@ export interface EdgeProps<T = any> {
|
|||||||
arrowHeadType?: ArrowHeadType;
|
arrowHeadType?: ArrowHeadType;
|
||||||
markerEndId?: string;
|
markerEndId?: string;
|
||||||
data?: T;
|
data?: T;
|
||||||
|
sourceHandleId?: ElementId | null;
|
||||||
|
targetHandleId?: ElementId | null;
|
||||||
}
|
}
|
||||||
export interface EdgeSmoothStepProps<T = any> extends EdgeProps<T> {
|
export interface EdgeSmoothStepProps<T = any> extends EdgeProps<T> {
|
||||||
borderRadius?: number;
|
borderRadius?: number;
|
||||||
|
|||||||
Reference in New Issue
Block a user