feat(graph): more adjustable interaction closes #329, closes #291

This commit is contained in:
moklick
2020-07-13 17:36:15 +02:00
parent 32f6101d37
commit 1d8a9d6d87
21 changed files with 259 additions and 114 deletions
+2 -2
View File
@@ -3,9 +3,9 @@ import React, { memo } from 'react';
import Handle from '../../components/Handle';
import { NodeProps, Position } from '../../types';
const OutputNode = memo(({ data, targetPosition = Position.Top }: NodeProps) => (
const OutputNode = memo(({ data, isConnectable, targetPosition = Position.Top }: NodeProps) => (
<>
<Handle type="target" position={targetPosition} />
<Handle type="target" position={targetPosition} isConnectable={isConnectable} />
{data.label}
</>
));