@flowgram.ai/free-auto-layout-plugin 0.5.4 → 0.5.5
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 +5 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.mts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
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
|
|
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);
|