|
@@ -30,6 +30,9 @@ export function useLayout() {
|
|
// if you need width+height of nodes for your layout, you can use the dimensions property of the internal node (`GraphNode` type)
|
|
// if you need width+height of nodes for your layout, you can use the dimensions property of the internal node (`GraphNode` type)
|
|
const graphNode = findNode(node.id);
|
|
const graphNode = findNode(node.id);
|
|
|
|
|
|
|
|
+ if (node?.data?.handles) {
|
|
|
|
+ node.data.handles = [];
|
|
|
|
+ }
|
|
dagreGraph.setNode(node.id, {
|
|
dagreGraph.setNode(node.id, {
|
|
width: graphNode.dimensions.width || 150,
|
|
width: graphNode.dimensions.width || 150,
|
|
height: graphNode.dimensions.height || 50,
|
|
height: graphNode.dimensions.height || 50,
|