@ghchinoy/litflow 0.5.0 → 0.5.2
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/CHANGELOG.md +3 -1
- package/dist/litflow.js +11 -4
- package/dist/litflow.js.map +1 -1
- package/package.json +1 -1
- package/src/lit-flow.ts +12 -4
package/CHANGELOG.md
CHANGED
|
@@ -13,7 +13,6 @@ All notable changes to this project will be documented in this file.
|
|
|
13
13
|
- Refactor store.ts to use @lit-labs/signals (litflow-jdv)
|
|
14
14
|
- Migrate from npm to pnpm (litflow-ytd)
|
|
15
15
|
- Example: Multiple Handles/Ports (litflow-e6c)
|
|
16
|
-
- Example: Basic Flow (litflow-xzk)
|
|
17
16
|
- Setup examples/ directory and base runner (litflow-8oj)
|
|
18
17
|
|
|
19
18
|
## 2025-12-27
|
|
@@ -60,3 +59,6 @@ All notable changes to this project will be documented in this file.
|
|
|
60
59
|
- Feature: Built-in Layout Orchestration (litflow-hf4.1)
|
|
61
60
|
- Fix: TypeScript Type Fidelity (litflow-hf4.3)
|
|
62
61
|
|
|
62
|
+
## 2026-01-07
|
|
63
|
+
- Fix edge re-rendering on orientation change and documentation pathing (litflow-75t)
|
|
64
|
+
|
package/dist/litflow.js
CHANGED
|
@@ -5665,10 +5665,17 @@ let D = class extends Ze(Q) {
|
|
|
5665
5665
|
}
|
|
5666
5666
|
if (!this._isMeasuring && this.layoutEnabled && (e.has("layoutEnabled") || e.has("layoutPadding") || e.has("layoutStrategy") || e.has("layoutDirection"))) {
|
|
5667
5667
|
const i = this._performLayout(this.nodes, this.edges);
|
|
5668
|
-
this.nodes = i, this.autoFit && setTimeout(() => this.fitView(), 50),
|
|
5669
|
-
const
|
|
5670
|
-
|
|
5671
|
-
|
|
5668
|
+
if (this.nodes = i, this.autoFit && setTimeout(() => this.fitView(), 50), e.has("layoutStrategy") || e.has("layoutDirection")) {
|
|
5669
|
+
const t = this.shadowRoot?.querySelectorAll(".xyflow__node");
|
|
5670
|
+
t && (async () => {
|
|
5671
|
+
const n = Array.from(t).map((r) => {
|
|
5672
|
+
const a = r.dataset.id;
|
|
5673
|
+
return a ? this._updateNodeDimensions(a, r) : Promise.resolve();
|
|
5674
|
+
});
|
|
5675
|
+
await Promise.all(n), this.requestUpdate();
|
|
5676
|
+
})();
|
|
5677
|
+
}
|
|
5678
|
+
this.dispatchEvent(new CustomEvent("layout-complete", {
|
|
5672
5679
|
detail: { strategy: this.layoutStrategy, direction: this.layoutDirection }
|
|
5673
5680
|
}));
|
|
5674
5681
|
}
|