fix: edges and edge anchors not re-calculating correctly

This commit is contained in:
Braks
2021-10-20 22:39:54 +02:00
parent 7ecbcba7eb
commit 61dc9dea33
7 changed files with 60 additions and 49 deletions
+7
View File
@@ -56,3 +56,10 @@ export interface EdgeSmoothStepProps<T = any> extends EdgeProps<T> {
export type EdgeType = DefineComponent<EdgeSmoothStepProps>
export type OnEdgeUpdateFunc<T = any> = (oldEdge: Edge<T>, newConnection: Connection) => void
export interface EdgePositions {
sourceX: number
sourceY: number
targetX: number
targetY: number
}