Add Unreal Engine style bezier edge

This commit is contained in:
Joey Ballentine
2022-03-14 01:06:14 -04:00
parent 64a3c2d48a
commit 726bc2e0b3
8 changed files with 260 additions and 438 deletions
+4 -3
View File
@@ -1,9 +1,9 @@
import { CSSProperties, ReactNode, HTMLAttributes } from 'react';
import { Position } from './utils';
import { CSSProperties, HTMLAttributes, ReactNode } from 'react';
import { Connection } from './general';
import { HandleElement } from './handles';
import { Node } from './nodes';
import { Position } from './utils';
// interface for the user edge items
export interface Edge<T = any> {
@@ -62,6 +62,7 @@ export interface EdgeProps<T = any> {
targetHandleId?: string | null;
markerStart?: string;
markerEnd?: string;
curvature?: number;
}
export type EdgeMouseHandler = (event: React.MouseEvent, edge: Edge) => void;