Keep explicit dimensions in sync with control point location

This commit is contained in:
bancika
2020-09-15 17:53:33 +02:00
parent 59cc4084fc
commit d0ab585ba0
6 changed files with 45 additions and 5 deletions
@@ -62,6 +62,10 @@ public class Size extends AbstractMeasure<SizeUnit> implements Comparable<Size>
throw new IllegalArgumentException("Could not parse size: " + value);
}
public static Size fromPixels(double pixels, SizeUnit unit) {
return new Size(pixels / unit.getFactor() * SizeUnit.in.getFactor() / Constants.PIXELS_PER_INCH, unit);
}
public Size scale(double factor) {
return new Size(value * factor, unit);
}
@@ -3170,6 +3170,14 @@
<changeType>IMPROVEMENT</changeType>
<description>Improved rendering precision, especially when using metric units</description>
</org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change>
<changeType>IMPROVEMENT</changeType>
<description>Improve snap to grid when moving a node that connects several components</description>
</org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change>
<changeType>IMPROVEMENT</changeType>
<description>Improved board sizing, keep explicit dimensions in sync with control point location</description>
</org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change>
<changeType>IMPROVEMENT</changeType>
<description>Shorten donation label when the window is smaller</description>