Merge pull request #224 from Microsoft/fixportlabels

Fix port labels in the simulator.
This commit is contained in:
Sam El-Husseini 2018-01-09 14:43:26 -08:00 committed by GitHub
commit e51721303a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -173,15 +173,15 @@ namespace pxsim.visuals {
} }
// Inject all ports // Inject all ports
this.setInput(0, new PortView(0, 'A')); this.setInput(0, new PortView(0, '1'));
this.setInput(1, new PortView(1, 'B')); this.setInput(1, new PortView(1, '2'));
this.setInput(2, new PortView(2, 'C')); this.setInput(2, new PortView(2, '3'));
this.setInput(3, new PortView(3, 'D')); this.setInput(3, new PortView(3, '4'));
this.setOutput(0, new PortView(0, '1')); this.setOutput(0, new PortView(0, 'A'));
this.setOutput(1, new PortView(1, '2')); this.setOutput(1, new PortView(1, 'B'));
this.setOutput(2, new PortView(2, '3')); this.setOutput(2, new PortView(2, 'C'));
this.setOutput(3, new PortView(3, '4')); this.setOutput(3, new PortView(3, 'D'));
return this.contentGroup; return this.contentGroup;
} }