@sailingrotevista/rotevista-dash 6.0.5 → 6.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app.js +3 -2
- package/package.json +1 -1
package/app.js
CHANGED
|
@@ -1166,8 +1166,9 @@ function drawGraph(d, id, min, max, isTws, isHercules) {
|
|
|
1166
1166
|
};
|
|
1167
1167
|
|
|
1168
1168
|
let grids = "";
|
|
1169
|
-
//
|
|
1170
|
-
|
|
1169
|
+
// Tracciamo 3 linee simmetriche al 25%, 50% (centrale) e 75%.
|
|
1170
|
+
// La linea al 50% passerà sempre in modo matematicamente esatto dietro il valore medio stampato.
|
|
1171
|
+
[0.25, 0.5, 0.75].forEach(p => grids += `<line x1="0" y1="${h-(p*h)}" x2="${w}" y2="${h-(p*h)}" stroke="rgba(0,0,0,0.12)" stroke-width="0.5" />`);
|
|
1171
1172
|
|
|
1172
1173
|
const gridInterval = (visibleMinutes <= 15) ? 1 : 5;
|
|
1173
1174
|
for (let m = gridInterval; m < visibleMinutes; m += gridInterval) {
|