bug2823: Whats new

- some pixel corrections for the launch pad icons
- fixed true wind direction visualisation in degree
This commit is contained in:
Udo Wessels
2021-06-28 18:03:52 +02:00
parent d81b4758b9
commit e1d1d346e1
3 changed files with 22 additions and 8 deletions
@@ -4,6 +4,14 @@
<div id="mainContent">
<h4 class="articleHeadline">What's New - SAP Sailing Analytics</h4>
<div class="innerContent">
<h5 class="articleSubheadline">July 2021</h5>
<ul class="bulletList">
<li>On race board it is now possible to add media files from disc or capture video and sound directly from mobile device.</li>
<li>Also in the media gallery of the event page it is now possible to add photos and videos from disc or capture them from smartphone.</li>
<li>Due to the growing number of functions we cleaned up the race board. The most of the buttons moved to a launch pad.
The features are now arranged in one place within a uniform look and are available with a maximum of two short clicks.
This creates a lot more space for the actual race map.</li>
</ul>
<h5 class="articleSubheadline">June 2021</h5>
<ul class="bulletList">
<li>The advantage line now also (again) shows after the first competitor has crossed the finish line.</li>
@@ -60,7 +60,7 @@ body {
height: 28px;
cursor: pointer;
background-image: resourceUrl("uploadVideoIcon");
background-size: 74%;
background-size: 75%;
}
.moreOptions .raceMapVideoUploadButton {
@@ -90,7 +90,7 @@ body {
width: 28px;
height: 28px;
cursor: pointer;
background-size: 74%;
background-size: 75%;
margin-right: 5px;
margin-left: 5px;
margin-top: 5px;
@@ -127,7 +127,7 @@ body {
height: 28px;
cursor: pointer;
background-image: resourceUrl("plusIcon");
background-size: 74%;
background-size: 75%;
margin-right: 5px;
margin-left: 5px;
margin-top: 5px;
@@ -148,7 +148,7 @@ body {
height: 28px;
cursor: pointer;
background-image: resourceUrl("minusIcon");
background-size: 74%;
background-size: 75%;
margin-right: 5px;
margin-left: 5px;
margin-top: 5px;
@@ -169,7 +169,7 @@ body {
height: 28px;
cursor: pointer;
background-image: resourceUrl("fullScreen");
background-size: 74%;
background-size: 75%;
margin-right: 5px;
margin-left: 5px;
margin-top: 5px;
@@ -191,7 +191,7 @@ body {
height: 30px;
cursor: pointer;
background-image: resourceUrl("exitFullScreen");
background-size: 74%;
background-size: 75%;
margin-right: 5px;
margin-left: 5px;
margin-top: 5px;
@@ -242,7 +242,7 @@ body {
height: 28px;
cursor: pointer;
background-image: resourceUrl("compass");
background-size: 74%;
background-size: 75%;
margin-right: 5px;
margin-left: 5px;
margin-top: 5px;
@@ -77,7 +77,13 @@ public class TrueNorthIndicatorPanel extends FlowPanel {
stringMessages.clickToToggleWindUp();
canvas.setTitle(title);
NumberFormat numberFormat = NumberFormat.getFormat("0.0");
textLabel.setText(mappedTrueNorthDeg == 0 ? "N" : numberFormat.format(360 - mappedTrueNorthDeg) + "°");
final double windDirection;
if (mappedTrueNorthDeg >= 0) {
windDirection = 360 - mappedTrueNorthDeg;
} else {
windDirection = mappedTrueNorthDeg * -1;
}
textLabel.setText(mappedTrueNorthDeg == 0 ? "N" : numberFormat.format(windDirection) + "°");
if (!isVisible()) {
setVisible(true);
}