mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-11 01:32:08 +10:00
Keep explicit dimensions in sync with control point location
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user