footprint-explainable-ui 0.14.10 → 0.14.11
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 +8 -3
- package/dist/flowchart.cjs.map +1 -1
- package/dist/flowchart.js +8 -3
- package/dist/flowchart.js.map +1 -1
- package/dist/index.cjs +8 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/flowchart.cjs
CHANGED
|
@@ -840,9 +840,14 @@ function applyOverlay(layout, overlay, colors) {
|
|
|
840
840
|
if (le.isLoop) {
|
|
841
841
|
let loopExecuted = false;
|
|
842
842
|
if (o?.executionOrder) {
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
loopExecuted =
|
|
843
|
+
if (le.source === le.target) {
|
|
844
|
+
const count = o.executionOrder.filter((id) => id === le.source).length;
|
|
845
|
+
loopExecuted = count > 1;
|
|
846
|
+
} else {
|
|
847
|
+
const lastSourceIdx = o.executionOrder.lastIndexOf(le.source);
|
|
848
|
+
if (lastSourceIdx >= 0) {
|
|
849
|
+
loopExecuted = o.executionOrder.slice(lastSourceIdx + 1).includes(le.target);
|
|
850
|
+
}
|
|
846
851
|
}
|
|
847
852
|
}
|
|
848
853
|
edges.push({
|