@tscircuit/core 0.0.258 → 0.0.259
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 +5 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4187,6 +4187,11 @@ var createSchematicTraceCrossingSegments = ({
|
|
|
4187
4187
|
differentNetOnly: true
|
|
4188
4188
|
}).flatMap((t) => t.edges);
|
|
4189
4189
|
for (let i = 0; i < edges.length; i++) {
|
|
4190
|
+
if (i > 2e3) {
|
|
4191
|
+
throw new Error(
|
|
4192
|
+
"Over 2000 iterations spent inside createSchematicTraceCrossingSegments, you have triggered an infinite loop, please report this!"
|
|
4193
|
+
);
|
|
4194
|
+
}
|
|
4190
4195
|
const edge = edges[i];
|
|
4191
4196
|
const edgeOrientation = Math.abs(edge.from.x - edge.to.x) < 0.01 ? "vertical" : "horizontal";
|
|
4192
4197
|
const otherEdgesIntersections = [];
|