From 50f6c77fdb65a4a7fb364c59f09e80be8ff8ae7f Mon Sep 17 00:00:00 2001 From: Sam El-Husseini Date: Tue, 9 Jan 2018 14:43:01 -0800 Subject: [PATCH] Fix port labels in the simulator. Fixes #219 --- sim/visuals/layoutView.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/sim/visuals/layoutView.ts b/sim/visuals/layoutView.ts index b2184303..78dea359 100644 --- a/sim/visuals/layoutView.ts +++ b/sim/visuals/layoutView.ts @@ -173,15 +173,15 @@ namespace pxsim.visuals { } // Inject all ports - this.setInput(0, new PortView(0, 'A')); - this.setInput(1, new PortView(1, 'B')); - this.setInput(2, new PortView(2, 'C')); - this.setInput(3, new PortView(3, 'D')); + this.setInput(0, new PortView(0, '1')); + this.setInput(1, new PortView(1, '2')); + this.setInput(2, new PortView(2, '3')); + this.setInput(3, new PortView(3, '4')); - this.setOutput(0, new PortView(0, '1')); - this.setOutput(1, new PortView(1, '2')); - this.setOutput(2, new PortView(2, '3')); - this.setOutput(3, new PortView(3, '4')); + this.setOutput(0, new PortView(0, 'A')); + this.setOutput(1, new PortView(1, 'B')); + this.setOutput(2, new PortView(2, 'C')); + this.setOutput(3, new PortView(3, 'D')); return this.contentGroup; }