Feature: Draggable edge

This commit is contained in:
Long Nguyen
2020-10-12 21:34:35 +09:00
parent f27634ebe2
commit bd63a0131a
13 changed files with 6583 additions and 9 deletions
+3
View File
@@ -119,6 +119,7 @@ export interface WrapEdgeProps {
elementsSelectable?: boolean;
markerEndId?: string;
isHidden?: boolean;
onEitherEndOfEdgePress: (event: React.MouseEvent, edge: Edge, isEdgeHeader?: boolean) => void;
}
export interface EdgeProps {
@@ -311,3 +312,5 @@ export type FlowTransform = {
};
export type TranslateExtent = [[number, number], [number, number]];
export type OnEdgeUpdateFunc = (oldEdge: Edge, newConnection: Connection) => void;