mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-07 12:24:58 +10:00
Fixed backwards compatibility issue with older files failing to open because of an issue with 'Tape Measure' component serialization
This commit is contained in:
@@ -3757,5 +3757,25 @@
|
||||
</changes>
|
||||
<url>https://github.com/bancika/diy-layout-creator/releases</url>
|
||||
</org.diylc.appframework.update.Version>
|
||||
<org.diylc.appframework.update.Version>
|
||||
<versionNumber>
|
||||
<major>4</major>
|
||||
<minor>22</minor>
|
||||
<build>1</build>
|
||||
</versionNumber>
|
||||
<releaseDate>2022-03-03 00:00:00.000 CET</releaseDate>
|
||||
<name></name>
|
||||
<changes>
|
||||
<org.diylc.appframework.update.Change>
|
||||
<changeType>BUG_FIX</changeType>
|
||||
<description>Fixed backwards compatibility issue with older files failing to open because of an issue with 'Tape Measure' component serialization</description>
|
||||
</org.diylc.appframework.update.Change>
|
||||
<org.diylc.appframework.update.Change>
|
||||
<changeType>BUG_FIX</changeType>
|
||||
<description>Fixed display issue with Trace layer showing up as Wiring in the menu</description>
|
||||
</org.diylc.appframework.update.Change>
|
||||
</changes>
|
||||
<url>https://github.com/bancika/diy-layout-creator/releases</url>
|
||||
</org.diylc.appframework.update.Version>
|
||||
</a>
|
||||
</java.util.Arrays_-ArrayList>
|
||||
|
||||
Binary file not shown.
@@ -65,8 +65,7 @@ public class TapeMeasure extends AbstractLeadedComponent<String> {
|
||||
protected LineStyle style = LineStyle.SOLID;
|
||||
private Size thickness = new Size(1d, SizeUnit.px);
|
||||
private Size arrowSize = new Size(5d, SizeUnit.px);
|
||||
private Polygon arrow = null;
|
||||
private AffineTransform arrowTx = new AffineTransform();
|
||||
private transient Polygon arrow = null;
|
||||
private boolean arrowStart = true;
|
||||
private boolean arrowEnd = true;
|
||||
private SizeUnit unit = SizeUnit.mm;
|
||||
@@ -116,6 +115,7 @@ public class TapeMeasure extends AbstractLeadedComponent<String> {
|
||||
Point2D startPoint = new Point2D.Double(first.getX(), first.getY());
|
||||
Point2D endPoint = new Point2D.Double(second.getX(), second.getY());
|
||||
|
||||
AffineTransform arrowTx = new AffineTransform();
|
||||
if (arrowStart) {
|
||||
arrowTx.setToIdentity();
|
||||
double angle = Math.atan2(getControlPoint(1).getY() - getControlPoint(0).getY(), getControlPoint(1).getX() - getControlPoint(0).getX());
|
||||
@@ -155,8 +155,6 @@ public class TapeMeasure extends AbstractLeadedComponent<String> {
|
||||
int y = -metrics.getHeight() / 2 + metrics.getAscent();
|
||||
|
||||
int legLength = (int) (getPoints()[0].distance(getPoints()[1]) - strWidth) / 2 - 6;
|
||||
|
||||
System.out.println(strWidth + " " + legLength);
|
||||
|
||||
// draw legs around the enter text
|
||||
g2d.drawLine((int)startPoint.getX(), (int)startPoint.getY(),
|
||||
|
||||
@@ -26,6 +26,7 @@ A-O-I REGULATOR
|
||||
AWG
|
||||
And
|
||||
C-B-E BJT
|
||||
CP1
|
||||
Check Trace Proximity
|
||||
D-G-S JFET
|
||||
D-G-S MOSFET
|
||||
@@ -77,6 +78,7 @@ PCB
|
||||
PNP
|
||||
Panel
|
||||
Português
|
||||
RECTC1
|
||||
Rev log
|
||||
S-G-D JFET
|
||||
S-G-D MOSFET
|
||||
@@ -85,6 +87,7 @@ SPDT
|
||||
SPDT (Center OFF)
|
||||
SPST
|
||||
Srpski
|
||||
TM2
|
||||
Tick Width
|
||||
Ticks
|
||||
Wiring
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user