ra4king / CircuitSim

Basic Circuit Simulator
https://ra4king.github.io/CircuitSim
BSD 3-Clause "New" or "Revised" License
76 stars 27 forks source link

Wires should connect to the actual gate body not perimeter of the tile #79

Closed pulkitgupta1217 closed 1 year ago

pulkitgupta1217 commented 1 year ago

In most circuits, wires connect to the actual gate body not the perimeter of the tile. I've been informed that moving the port from the perimeter of the visual tile to inside the graphic to enforce this visual nitpick would break compatibility with old circuits. A visual update could be applied to the gate that "draws" the line connecting port to gate body to maintain compatibility with previous circuits.

image

This image describes something that might be a reasonable way to show the wires going "through" the port and to the gate body. whether its a visual update or an implicit segment of wire that is attached to the gate, I don't know what would be best. The port looking like a dot in the middle of the wire is a little weird but not the worst thing in the world