@@ -7,31 +7,23 @@ exports.getComponent = ->
7
7
return unless event is ' data'
8
8
# Do something with the packet, then
9
9
c .outPorts .out .send payload
10
-
11
10
c .inPorts .add ' type' , (event , payload ) ->
12
11
return unless event is ' data'
13
12
# Do something with the packet, then
14
13
c .outPorts .out .send payload
15
-
16
14
c .inPorts .add ' state' , (event , payload ) ->
17
15
return unless event is ' data'
18
16
# Do something with the packet, then
19
17
c .outPorts .out .send payload
20
-
21
- c .inPorts .add ‘width’, (event , payload ) ->
18
+ c .inPorts .add ' multiplier' , (event , payload ) ->
22
19
return unless event is ' data'
23
20
# Do something with the packet, then
24
21
c .outPorts .out .send payload
25
-
26
- c .inPorts .add ‘height’, (event , payload ) ->
27
- return unless event is ' data'
28
- # Do something with the packet, then
29
- c .outPorts .out .send payload
30
-
31
- c .inPorts .add ‘color’, (event , payload ) ->
22
+ c .inPorts .add ' in' , (event , payload ) ->
32
23
return unless event is ' data'
33
24
# Do something with the packet, then
34
25
c .outPorts .out .send payload
26
+
27
+ c .outPorts .add ' product'
35
28
36
- c .outPorts .add ‘shape’
37
- c
29
+ c
0 commit comments