Forward positional data to Node Component.
This commit is contained in:
Rhys Lloyd
2020-11-05 09:14:45 +10:30
parent 156835cfac
commit 20c7f1622c
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -214,6 +214,8 @@ export default (NodeComponent: ComponentType<NodeComponentProps>) => {
id={id}
data={data}
type={type}
xPos={xPos}
yPos={yPos}
selected={selected}
isConnectable={isConnectable}
sourcePosition={sourcePosition}
+2
View File
@@ -167,6 +167,8 @@ export interface NodeProps {
data: any;
selected: boolean;
isConnectable: boolean;
xPos?: number;
yPos?: number;
targetPosition?: Position;
sourcePosition?: Position;
isDragging?: boolean;