@tscircuit/core 0.0.176 → 0.0.177
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 +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3781,6 +3781,7 @@ var createSchematicTraceCrossingSegments = ({
|
|
|
3781
3781
|
x: crossingPoint.x + crossingUnitVec.x * crossingSegmentLength / 2,
|
|
3782
3782
|
y: crossingPoint.y + crossingUnitVec.y * crossingSegmentLength / 2
|
|
3783
3783
|
};
|
|
3784
|
+
const overshot = distance2(afterCrossing, edge.to) < crossingSegmentLength;
|
|
3784
3785
|
const newEdges = [
|
|
3785
3786
|
{ from: edge.from, to: beforeCrossing },
|
|
3786
3787
|
{ from: beforeCrossing, to: afterCrossing, is_crossing: true },
|
|
@@ -3788,7 +3789,7 @@ var createSchematicTraceCrossingSegments = ({
|
|
|
3788
3789
|
];
|
|
3789
3790
|
edges.splice(i, 1, ...newEdges);
|
|
3790
3791
|
i += newEdges.length - 2;
|
|
3791
|
-
if (
|
|
3792
|
+
if (overshot) {
|
|
3792
3793
|
i++;
|
|
3793
3794
|
}
|
|
3794
3795
|
}
|