footprint-explainable-ui 0.11.4 → 0.12.0
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/flowchart.cjs +5 -2
- package/dist/flowchart.cjs.map +1 -1
- package/dist/flowchart.js +5 -2
- package/dist/flowchart.js.map +1 -1
- package/dist/index.cjs +158 -117
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +169 -128
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/flowchart.cjs
CHANGED
|
@@ -760,15 +760,18 @@ function walkLayout(node, state, x, y) {
|
|
|
760
760
|
bottomY = Math.max(...childResults.map((r) => r.bottomY));
|
|
761
761
|
}
|
|
762
762
|
if (node.loopTarget) {
|
|
763
|
-
const resolvedTarget = state.idToName.get(node.loopTarget) ?? node.loopTarget;
|
|
764
763
|
state.edgeCounter++;
|
|
765
|
-
state.edges.push({ id: `se${state.edgeCounter}`, source: id, target:
|
|
764
|
+
state.edges.push({ id: `se${state.edgeCounter}`, source: id, target: node.loopTarget, label: "loop", isLoop: true });
|
|
766
765
|
}
|
|
767
766
|
if (node.next) {
|
|
768
767
|
const rawNextId = nid(node.next);
|
|
769
768
|
const resolvedNextId = state.idToName.get(rawNextId) ?? rawNextId;
|
|
770
769
|
const isLoopRef = node.loopTarget && state.seen.has(resolvedNextId);
|
|
771
770
|
if (isLoopRef) {
|
|
771
|
+
for (const lid of lastIds) {
|
|
772
|
+
state.edgeCounter++;
|
|
773
|
+
state.edges.push({ id: `se${state.edgeCounter}`, source: lid, target: resolvedNextId, label: "loop", isLoop: true });
|
|
774
|
+
}
|
|
772
775
|
return { lastIds, bottomY };
|
|
773
776
|
}
|
|
774
777
|
const nextY = bottomY + Y_STEP;
|