fix update file

This commit is contained in:
Branislav Stojkovic
2019-01-13 18:26:05 +01:00
parent 2266dadcba
commit e2e33a1b13
2 changed files with 3 additions and 1 deletions
@@ -103,6 +103,7 @@ public class Line extends AbstractLeadedComponent<Void> {
g2d.fill(getArrow());
g2d.setTransform(oldTx);
// make the line slightly shorter so line end doesn't overlap with the arrow
double distance = distance(startPoint, endPoint);
interpolate(startPoint, endPoint, getArrowSize().convertToPixels() * 0.9 / distance, startPoint);
}
@@ -116,6 +117,7 @@ public class Line extends AbstractLeadedComponent<Void> {
g2d.fill(getArrow());
g2d.setTransform(oldTx);
// make the line slightly shorter so line end doesn't overlap with the arrow
double distance = distance(startPoint, endPoint);
interpolate(endPoint, startPoint, getArrowSize().convertToPixels() * 0.9 / distance, endPoint);
}
+1 -1
View File
@@ -2207,7 +2207,7 @@
<name></name>
<changes>
<org.diylc.appframework.update.Change>
<changeType>NEW_FEATURES</changeType>
<changeType>NEW_FEATURE</changeType>
<description>Added optional arrow to the "Line" component together with configurable thickness</description>
</org.diylc.appframework.update.Change>
</changes>