refactor(wrapEdge): pass source and target handle ids to edge closes #814

This commit is contained in:
moklick
2021-01-11 12:51:03 +01:00
parent 9bcee632f7
commit 782d567851
3 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ const BasicFlow = () => <ReactFlow elements={elements} />;
## 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:
+2
View File
@@ -166,6 +166,8 @@ export default (EdgeComponent: ComponentType<EdgeProps>) => {
sourcePosition={sourcePosition}
targetPosition={targetPosition}
markerEndId={markerEndId}
sourceHandleId={sourceHandleId}
targetHandleId={targetHandleId}
/>
{handleEdgeUpdate && (
<g
+2
View File
@@ -148,6 +148,8 @@ export interface EdgeProps<T = any> {
arrowHeadType?: ArrowHeadType;
markerEndId?: string;
data?: T;
sourceHandleId?: ElementId | null;
targetHandleId?: ElementId | null;
}
export interface EdgeSmoothStepProps<T = any> extends EdgeProps<T> {
borderRadius?: number;