Skip to content

Commit

Permalink
fix(core,nodes): rename parentNode prop to parent
Browse files Browse the repository at this point in the history
Signed-off-by: braks <[email protected]>
  • Loading branch information
bcakmakoglu committed Mar 17, 2023
1 parent 0476dff commit fe46e6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/components/Nodes/NodeWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ const NodeWrapper = defineComponent({
dimensions: node.dimensions,
isValidTargetPos: node.isValidTargetPos,
isValidSourcePos: node.isValidSourcePos,
parentFoo: node.parentNode,
parent: node.parentNode,
zIndex: node.computedPosition.z,
targetPosition: node.targetPosition,
sourcePosition: node.sourcePosition,
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/types/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export interface NodeProps<Data = ElementData, CustomEvents = {}, Type extends s
/** called when used as source for new connection */
isValidSourcePos?: ValidConnectionFunc
/** parent node id */
parentNode?: string
parent?: string
/** is node currently dragging */
dragging: boolean
resizing: boolean
Expand Down

0 comments on commit fe46e6f

Please sign in to comment.