@flowgram.ai/free-auto-layout-plugin 0.5.4 → 0.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -2593,7 +2593,11 @@ var AutoLayoutService = class {
2593
2593
  return [];
2594
2594
  }
2595
2595
  const childrenLayouts = (await Promise.all(layoutNodes.map((n) => this.layoutNode(n, options)))).flat();
2596
- const layout2 = new Layout(this.layoutConfig);
2596
+ const layoutConfig = {
2597
+ ...this.layoutConfig,
2598
+ ...options.layoutConfig
2599
+ };
2600
+ const layout2 = new Layout(layoutConfig);
2597
2601
  layout2.init({ container, layoutNodes, layoutEdges }, options);
2598
2602
  layout2.layout();
2599
2603
  const rect = this.getLayoutNodeRect(container);