@octaviaflow/core 3.0.18-beta.30 → 3.0.18-beta.31
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elk.d.ts","sourceRoot":"","sources":["../../../src/workflow/layout/elk.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAwC,MAAM,WAAW,CAAC;AAEnG,OAAO,KAAK,EAAqB,OAAO,EAAE,MAAM,SAAS,CAAC;AAE1D,MAAM,WAAW,sBAAsB;IACrC,6DAA6D;IAC7D,SAAS,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;IACvC,gEAAgE;IAChE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mDAAmD;IACnD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gEAAgE;IAChE,SAAS,CAAC,EACN,SAAS,GACT,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,OAAO,GACP,aAAa,GACb,KAAK,CAAC;CACX;AASD;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,OAAO,EAAE,QAAQ,GAAE,sBAA2B,GAAG,YAAY,
|
|
1
|
+
{"version":3,"file":"elk.d.ts","sourceRoot":"","sources":["../../../src/workflow/layout/elk.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAwC,MAAM,WAAW,CAAC;AAEnG,OAAO,KAAK,EAAqB,OAAO,EAAE,MAAM,SAAS,CAAC;AAE1D,MAAM,WAAW,sBAAsB;IACrC,6DAA6D;IAC7D,SAAS,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;IACvC,gEAAgE;IAChE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mDAAmD;IACnD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gEAAgE;IAChE,SAAS,CAAC,EACN,SAAS,GACT,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,OAAO,GACP,aAAa,GACb,KAAK,CAAC;CACX;AASD;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,OAAO,EAAE,QAAQ,GAAE,sBAA2B,GAAG,YAAY,CAgGjG"}
|
package/dist/workflow.cjs
CHANGED
|
@@ -562,6 +562,9 @@ function createElkEngine(elk, defaults = {}) {
|
|
|
562
562
|
if (list) list.push(n);
|
|
563
563
|
else childrenByParent.set(key, [n]);
|
|
564
564
|
}
|
|
565
|
+
const engineOptions = Object.fromEntries(
|
|
566
|
+
Object.entries(options?.engine ?? {}).map(([k, v]) => [k, String(v)])
|
|
567
|
+
);
|
|
565
568
|
const buildChildren = (parentId) => {
|
|
566
569
|
const list = childrenByParent.get(parentId) ?? [];
|
|
567
570
|
return list.map((n) => ({
|
|
@@ -573,7 +576,8 @@ function createElkEngine(elk, defaults = {}) {
|
|
|
573
576
|
"elk.algorithm": algorithm,
|
|
574
577
|
"elk.direction": ELK_DIRECTION[direction],
|
|
575
578
|
"elk.spacing.nodeNode": String(nodeSpacing),
|
|
576
|
-
"elk.layered.spacing.nodeNodeBetweenLayers": String(rankSpacing)
|
|
579
|
+
"elk.layered.spacing.nodeNodeBetweenLayers": String(rankSpacing),
|
|
580
|
+
...engineOptions
|
|
577
581
|
} : void 0
|
|
578
582
|
}));
|
|
579
583
|
};
|