Add Unreal Engine style bezier edge
This commit is contained in:
+4
-3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user