@knowvah/dot-engine 2.6.3 → 2.6.4
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/index.js +4 -1
- package/dist/index.js.map +2 -2
- package/dist/layout/dot/splines-flat-labeled.d.ts.map +1 -1
- package/dist/render.js +4 -1
- package/dist/render.js.map +2 -2
- package/package.json +1 -1
- package/src/layout/dot/__fixtures__/2796-flat-labeled-lost.dot +161 -0
- package/src/layout/dot/splines-flat-labeled.ts +3 -1
package/dist/index.js
CHANGED
|
@@ -34286,7 +34286,10 @@ function makeFlatLabeledEdge(g, e) {
|
|
|
34286
34286
|
info: { ...e.info, tail_port: e.info.head_port, head_port: e.info.tail_port }
|
|
34287
34287
|
};
|
|
34288
34288
|
const ps = routeFlatLabeledChannel(g, sample, ln, et);
|
|
34289
|
-
if (ps === null || ps.length === 0)
|
|
34289
|
+
if (ps === null || ps.length === 0) {
|
|
34290
|
+
e.info.lost = true;
|
|
34291
|
+
return true;
|
|
34292
|
+
}
|
|
34290
34293
|
if (!tailIsLeft) ps.reverse();
|
|
34291
34294
|
clipAndInstall(e, e.head, ps, ps.length, { ...buildDotSinfo(), ignoreSwap: true });
|
|
34292
34295
|
return true;
|