Input port rendering on standard gates and components read srcGate.value to determine active state, but for multi-output gates (BUS_OUT, COMPONENT) .value only holds port 0's value. Connections from port N>0 always showed port 0's state visually despite working correctly at the logic level. Extract getSourcePortValue() helper that checks outputValues[fromPort] for multi-output sources, and apply it consistently across all three input port renderers (drawGate, drawBusGate, drawComponentGate). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
22 KiB
22 KiB