fix with equi dist

This commit is contained in:
Philip Puk 2022-03-26 14:23:12 +00:00
parent ba54c9da75
commit af29f8babb

View file

@ -440,28 +440,26 @@ let initialWireVerticesFromPorts
], ],
true // Left-to-right true // Left-to-right
//fix issue by wrapping wire input port and not through for 1st quadrant //fix issue by wrapping wire input port and not through for 1st quadrant
else if (abs(endX - startX) < 3.0*Wire.stickLength) else if (((startX + endX) / 2.0)>(startX+Wire.stickLength)) then
&& (endY - startY < 3.0 * Wire.stickLength) then [
[
{X = startX; Y = startY}; {X = startX; Y = startY};
{X = startX + Wire.stickLength; Y = startY}; {X = startX + Wire.stickLength; Y = startY};
{X = endX + Wire.stickLength*4.5; Y = startY}; {X = startX + Wire.stickLength; Y = startY};
{X = endX + Wire.stickLength*4.5; Y = endY - Wire.stickLength}; {X = (startX + endX) / 2.0; Y = startY};
{X = endX; Y = endY - Wire.stickLength}; {X = (startX + endX) / 2.0; Y = endY-Wire.stickLength};
{X = endX; Y = endY - Wire.stickLength}; {X = endX; Y = endY-Wire.stickLength};
{X = endX; Y = endY - Wire.stickLength}; {X = endX; Y = endY-Wire.stickLength};
{X = endX; Y = endY} {X = endX; Y = endY}
], ], false
false // not Left-to-right
else else
[ [
{X = startX; Y = startY}; {X = startX; Y = startY};
{X = startX + Wire.stickLength; Y = startY}; {X = startX + Wire.stickLength; Y = startY};
{X = startX + Wire.stickLength; Y = startY}; {X = startX + Wire.stickLength; Y = startY};
{X = startX + Wire.stickLength; Y = startY};
{X = startX + Wire.stickLength; Y = endY - Wire.stickLength}; {X = startX + Wire.stickLength; Y = endY - Wire.stickLength};
{X = endX; Y = endY - Wire.stickLength}; {X = endX; Y = endY - Wire.stickLength};
{X = endX; Y = endY - Wire.stickLength}; {X = endX; Y = endY - Wire.stickLength};
{X = endX; Y = endY - Wire.stickLength};
{X = endX; Y = endY} {X = endX; Y = endY}
], ],
false false
@ -576,7 +574,7 @@ let convertVerticesToASegs connId (isLeftToRight: bool) routetype rotation (yref
| true -> | true ->
[Horizontal;Horizontal;Horizontal;Horizontal;Vertical;Vertical;Vertical] [Horizontal;Horizontal;Horizontal;Horizontal;Vertical;Vertical;Vertical]
| false -> | false ->
[Horizontal;Horizontal;Vertical;Horizontal;Vertical;Horizontal;Vertical] [Horizontal;Vertical;Horizontal;Vertical;Horizontal;Vertical;Vertical]
let draggable index = let draggable index =
match routetype with match routetype with