Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 17 additions & 5 deletions common/switch/switch.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<component version="1.2" xmlns="http://schemas.circuit-diagram.org/circuitDiagramDocument/2012/component/xml">
<declaration>
<meta name="name" value="Switch" />
Expand Down Expand Up @@ -42,7 +42,7 @@
</group>
<group conditions="!horizontal,!$Type==Changeover">
<connection name="a" start="_Start" end="_Middle-16y" edge="Start" />
<connection name="a" start="_Middle+16y" end="_End" edge="End" />
<connection name="b" start="_Middle+16y" end="_End" edge="End" />
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this was a typo so fixed it too

</group>
<group conditions="horizontal,$Type==Analogue">
<connection name="c" start="_Middle-30y" end="_Middle-14y" edge="Start" />
Expand Down Expand Up @@ -136,13 +136,25 @@
<line start="_Middle+14x" end="_Middle+30x" />
</group>

<!-- Push to Break -->
<group conditions="horizontal,$Type==PushToBreak">
<!-- Push to Break (Open) -->
<group conditions="horizontal,$Type==PushToBreak,!$Closed">
<line start="_Middle-12x+8y" end="_Middle+12x+8y" />
<line start="_Middle-5x+2y" end="_Middle+5x+2y" />
<line start="_Middle+2y" end="_Middle+8y" />
</group>
<group conditions="!horizontal,$Type==PushToBreak,!$Closed">
<line start="_Middle+8x-12y" end="_Middle+8x+12y" />
<line start="_Middle+2x-5y" end="_Middle+2x+5y" />
<line start="_Middle+2x" end="_Middle+8x" />
</group>

<!-- Push to Break (Closed) -->
<group conditions="horizontal,$Type==PushToBreak,$Closed">
<line start="_Middle-12x+5y" end="_Middle+12x+5y" />
<line start="_Middle-5x-1y" end="_Middle+5x-1y" />
<line start="_Middle-1y" end="_Middle+5y" />
</group>
<group conditions="!horizontal,$Type==PushToBreak">
<group conditions="!horizontal,$Type==PushToBreak,$Closed">
<line start="_Middle+5x-12y" end="_Middle+5x+12y" />
<line start="_Middle-1x-5y" end="_Middle-1x+5y" />
<line start="_Middle-1x" end="_Middle+5x" />
Expand Down