refactor: bus terminals with single-sided pins only
BUS_IN has input pins only (left side), BUS_OUT has output pins only (right side). No internal connections between them — BUS_OUT reads values directly from its paired BUS_IN via busPairId. The bus cable between them is purely visual, representing the grouped signal bundle. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -226,7 +226,7 @@ export function initEvents() {
|
||||
if (Math.abs(x2 - x1) > 5 || Math.abs(y2 - y1) > 5) {
|
||||
state.selectedGates = state.gates
|
||||
.filter(g => {
|
||||
const isDynamic = g.type.startsWith('COMPONENT:') || g.type.startsWith('BUS:');
|
||||
const isDynamic = g.type.startsWith('COMPONENT:') || g.type.startsWith('BUS_IN:') || g.type.startsWith('BUS_OUT:');
|
||||
const gw = isDynamic ? getComponentWidth(g) : GATE_W;
|
||||
const gh = isDynamic ? getComponentHeight(g) : GATE_H;
|
||||
// Gate overlaps selection box
|
||||
|
||||
Reference in New Issue
Block a user