switch fixes

This commit is contained in:
Bane Stojkovic
2025-03-29 22:17:21 +01:00
parent e17b79a2c4
commit b4c1ed74c2
6 changed files with 212 additions and 69 deletions
@@ -45,7 +45,8 @@ public class SwitchUtils {
for (int i = 0; i < numPoints; i++) {
final int finalI = i;
if (switchingMatrix.stream().allMatch(
l -> l.stream().anyMatch(
l -> l.isEmpty() ||
l.stream().anyMatch(
s -> s.contains(finalI)))) {
markers[i] = String.valueOf((char)((int)'A' + commonPoints.size()));
commonPoints.add(i);
@@ -331,7 +331,7 @@
</org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change>
<changeType>NEW_FEATURE</changeType>
<description>Added ability to highlight connected switch lugs in selected position in order to illustrate how it works internally.</description>
<description>Added ability to display switch lug markings in order to illustrate how it works internally.</description>
</org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change>
<changeType>IMPROVEMENT</changeType>
@@ -345,6 +345,10 @@
<changeType>IMPROVEMENT</changeType>
<description>Fully configurable colors for 'Mini Toggle Switch' components</description>
</org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change>
<changeType>IMPROVEMENT</changeType>
<description>Removed 'DP3T' options from 'Mini Toggle Switch' because that is covered by 'Slide Switch' component and does not belong here</description>
</org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change>
<changeType>BUG_FIX</changeType>
<description>Applying a variant to a 'Hookup Wire' or 'Curved Trace' makes it lose its shape</description>