feat(node): add draggable, connectable and selectable options

This commit is contained in:
moklick
2020-07-22 11:27:11 +02:00
parent abb5770edd
commit 48bde20ded
4 changed files with 34 additions and 7 deletions
+4 -1
View File
@@ -41,6 +41,9 @@ export interface Node {
targetPosition?: Position;
sourcePosition?: Position;
isHidden?: boolean;
draggable?: boolean;
selectable?: boolean;
connectable?: boolean;
}
export enum ArrowHeadType {
@@ -117,8 +120,8 @@ export interface NodeComponentProps {
id: ElementId;
type: string;
data: any;
isConnectable: boolean;
selected?: boolean;
isConnectable: boolean;
transform?: Transform;
xPos?: number;
yPos?: number;