Skip to content

Commit 93780cc

Browse files
committed
Add connection names for source component
1 parent 67d2b5c commit 93780cc

File tree

1 file changed

+21
-24
lines changed

1 file changed

+21
-24
lines changed

common/source/source.xml

+21-24
Original file line numberDiff line numberDiff line change
@@ -55,55 +55,52 @@
5555

5656
</declaration>
5757
<connections>
58-
<group conditions="$Type==Rail">
59-
<connection name="com" start="_Start" end="_End" edge="both" />
60-
</group>
61-
<group conditions="$Type==Rail2">
58+
<group conditions="$Type==Rail|$Type==Rail2">
6259
<connection name="com" start="_Start" end="_End" edge="both" />
6360
</group>
6461
<group conditions="$Type==Ground,horizontal">
65-
<connection start="_Start+10x" end="_End" edge="both" />
62+
<connection name="com" start="_Start+10x" end="_End" edge="both" />
6663
</group>
6764
<group conditions="$Type==Ground,!horizontal">
68-
<connection start="_Start" end="_End-8y" edge="both" />
65+
<connection name="com" start="_Start" end="_End-8y" edge="both" />
6966
</group>
7067
<group conditions="$Type==Earth,horizontal">
71-
<connection start="_Start+10x" end="_End" edge="both" />
68+
<connection name="com" start="_Start+10x" end="_End" edge="both" />
7269
</group>
7370
<group conditions="$Type==Earth,!horizontal">
74-
<connection start="_Start" end="_End-12y" edge="both" />
71+
<connection name="com" start="_Start" end="_End-12y" edge="both" />
7572
</group>
7673
<group conditions="$Type==AC,horizontal">
77-
<connection start="_Start" end="_Middle-12x" edge="start" />
78-
<connection start="_Middle+12x" end="_End" edge="end" />
74+
<connection name="a" start="_Start" end="_Middle-12x" edge="start" />
75+
<connection name="b" start="_Middle+12x" end="_End" edge="end" />
7976
</group>
8077
<group conditions="$Type==AC,!horizontal">
81-
<connection start="_Start" end="_Middle-12y" edge="start" />
82-
<connection start="_Middle+12y" end="_End" edge="end" />
78+
<connection name="a" start="_Start" end="_Middle-12y" edge="start" />
79+
<connection name="b" start="_Middle+12y" end="_End" edge="end" />
8380
</group>
8481
<group conditions="($Type==DC|$Type==Current),horizontal">
85-
<connection start="_Start" end="_Middle-16x" edge="start" />
86-
<connection start="_Middle+16x" end="_End" edge="end" />
82+
<connection name="pos" start="_Start" end="_Middle-16x" edge="start" />
83+
<connection name="neg" start="_Middle+16x" end="_End" edge="end" />
8784
</group>
8885
<group conditions="($Type==DC|$Type==Current),!horizontal">
89-
<connection start="_Start" end="_Middle-16y" edge="start" />
90-
<connection start="_Middle+16y" end="_End" edge="end" />
86+
<connection name="pos" start="_Start" end="_Middle-16y" edge="start" />
87+
<connection name="neg" start="_Middle+16y" end="_End" edge="end" />
9188
</group>
9289
<group conditions="$Type==Cell,horizontal">
93-
<connection start="_Start" end="_Middle-6x" edge="start" />
94-
<connection start="_Middle+6x" end="_End" edge="end" />
90+
<connection name="pos" start="_Start" end="_Middle-6x" edge="start" />
91+
<connection name="neg" start="_Middle+6x" end="_End" edge="end" />
9592
</group>
9693
<group conditions="$Type==Cell,!horizontal">
97-
<connection start="_Start" end="_Middle-6y" edge="start" />
98-
<connection start="_Middle+6y" end="_End" edge="end" />
94+
<connection name="pos" start="_Start" end="_Middle-6y" edge="start" />
95+
<connection name="neg" start="_Middle+6y" end="_End" edge="end" />
9996
</group>
10097
<group conditions="$Type==Battery,horizontal">
101-
<connection start="_Start" end="_Middle-12x" edge="start" />
102-
<connection start="_Middle+12x" end="_End" edge="end" />
98+
<connection name="pos" start="_Start" end="_Middle-12x" edge="start" />
99+
<connection name="neg" start="_Middle+12x" end="_End" edge="end" />
103100
</group>
104101
<group conditions="$Type==Battery,!horizontal">
105-
<connection start="_Start" end="_Middle-12y" edge="start" />
106-
<connection start="_Middle+12y" end="_End" edge="end" />
102+
<connection name="pos" start="_Start" end="_Middle-12y" edge="start" />
103+
<connection name="neg" start="_Middle+12y" end="_End" edge="end" />
107104
</group>
108105
</connections>
109106
<render>

0 commit comments

Comments
 (0)