refactor: pass props to edge/nodewrapper separately
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
+1
-5
@@ -114,11 +114,7 @@ export const parseElements = async (elements: Elements, nodes: GraphNode[], edge
|
||||
...storeNode,
|
||||
...element,
|
||||
}
|
||||
if (!updatedNode.__vf) updatedNode.__vf = {} as any
|
||||
|
||||
if (storeNode.position.x !== element.position.x || storeNode.position.y !== element.position.y) {
|
||||
updatedNode.__vf!.position = element.position
|
||||
}
|
||||
updatedNode.__vf!.position = element.position
|
||||
|
||||
if (typeof element.type !== 'undefined' && element.type !== storeNode.type) {
|
||||
// we reset the elements dimensions here in order to force a re-calculation of the bounds.
|
||||
|
||||
Reference in New Issue
Block a user