@sailingrotevista/rotevista-dash 7.0.11 → 7.0.12
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 +1 -1
- package/package.json +1 -1
- package/style.css +27 -4
- package/weather-radar.js +11 -1
package/app.js
CHANGED
|
@@ -23,7 +23,7 @@ let CONFIG = {
|
|
|
23
23
|
minSpeed: 0.5,
|
|
24
24
|
stabilityBreakout: 15
|
|
25
25
|
},
|
|
26
|
-
graphs: { reef1:
|
|
26
|
+
graphs: { reef1: 10, reef2: 15, historyMinutes: 10, samples: 60 },
|
|
27
27
|
scales: {
|
|
28
28
|
stw: { stdMax: 4, hercSpan: 2, step: 1 },
|
|
29
29
|
sog: { stdMax: 4, hercSpan: 2, step: 1 },
|
package/package.json
CHANGED
package/style.css
CHANGED
|
@@ -463,8 +463,31 @@ body.night-mode {
|
|
|
463
463
|
.night-mode .is-focused .scale-labels { color: #ff3333 !important; }
|
|
464
464
|
|
|
465
465
|
/* --- 10.4 WIND GAUGE (STRUMENTO CENTRALE) --- */
|
|
466
|
-
.night-mode #wind-gauge circle
|
|
467
|
-
|
|
466
|
+
.night-mode #wind-gauge circle:not(#trend-gauge-cw):not(#trend-gauge-ccw) {
|
|
467
|
+
fill: #000000 !important;
|
|
468
|
+
stroke: #220000 !important;
|
|
469
|
+
}
|
|
470
|
+
.night-mode #wind-gauge circle:nth-of-type(2), .night-mode #fullscreen-hotspot {
|
|
471
|
+
fill: #050000 !important;
|
|
472
|
+
stroke: #330000 !important;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
/* Stile notturno dedicato per i pallini di tendenza della bussola centrale */
|
|
476
|
+
.night-mode #trend-gauge-cw,
|
|
477
|
+
.night-mode #trend-gauge-ccw {
|
|
478
|
+
fill: #440000 !important; /* Rosso scurissimo a riposo per preservare la vista notturna */
|
|
479
|
+
stroke: none !important;
|
|
480
|
+
transition: fill 0.2s ease, filter 0.2s ease;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
/* Accensione brillante con effetto alone (glow) quando lampeggiano (attivi) o in allarme strambata */
|
|
484
|
+
.night-mode #trend-gauge-cw.is-trending,
|
|
485
|
+
.night-mode #trend-gauge-ccw.is-trending,
|
|
486
|
+
.night-mode #trend-gauge-cw.is-gybing,
|
|
487
|
+
.night-mode #trend-gauge-ccw.is-gybing {
|
|
488
|
+
fill: #ff0000 !important;
|
|
489
|
+
filter: drop-shadow(0 0 4px #ff0000) !important;
|
|
490
|
+
}
|
|
468
491
|
.night-mode #center-glow feDropShadow { flood-color: #ff0000 !important; flood-opacity: 0.6 !important; }
|
|
469
492
|
.night-mode #boat-icon { fill: #220000 !important; stroke: #ff0000 !important; stroke-width: 0.8px !important; opacity: 1 !important; }
|
|
470
493
|
.night-mode #aws-display-group text { fill: #800000 !important; }
|
|
@@ -533,11 +556,11 @@ body.night-mode {
|
|
|
533
556
|
}
|
|
534
557
|
|
|
535
558
|
/* --- OVERRIDE NIGHT MODE PER IL WIND RADAR --- */
|
|
536
|
-
.night-mode #wind-radar circle {
|
|
559
|
+
.night-mode #wind-radar circle:not(.is-trending) {
|
|
537
560
|
fill: #000000 !important;
|
|
538
561
|
stroke: #220000 !important;
|
|
539
562
|
}
|
|
540
|
-
.night-mode #wind-radar circle:nth-of-type(2),
|
|
563
|
+
.night-mode #wind-radar circle:nth-of-type(2):not(.is-trending),
|
|
541
564
|
.night-mode #radar-hotspot {
|
|
542
565
|
fill: #050000 !important;
|
|
543
566
|
stroke: #330000 !important;
|
package/weather-radar.js
CHANGED
|
@@ -238,6 +238,16 @@ function renderRadar() {
|
|
|
238
238
|
borderPath.setAttribute("stroke-linecap", "round");
|
|
239
239
|
borderPath.setAttribute("opacity", opacityValue);
|
|
240
240
|
ringsContainer.appendChild(borderPath);
|
|
241
|
+
} else {
|
|
242
|
+
const borderPath = document.createElementNS("http://www.w3.org/2000/svg", "path");
|
|
243
|
+
borderPath.setAttribute("d", pathData);
|
|
244
|
+
borderPath.setAttribute("fill", "none");
|
|
245
|
+
const isNight = document.body.classList.contains('night-mode');
|
|
246
|
+
borderPath.setAttribute("stroke", isNight ? "#220000" : "#90a4ae");
|
|
247
|
+
borderPath.setAttribute("stroke-width", BORDER_STROKE_WIDTH);
|
|
248
|
+
borderPath.setAttribute("stroke-linecap", "round");
|
|
249
|
+
borderPath.setAttribute("opacity", "0.6");
|
|
250
|
+
ringsContainer.appendChild(borderPath);
|
|
241
251
|
}
|
|
242
252
|
|
|
243
253
|
const mainPath = document.createElementNS("http://www.w3.org/2000/svg", "path");
|
|
@@ -246,7 +256,7 @@ function renderRadar() {
|
|
|
246
256
|
mainPath.setAttribute("stroke", strokeColor);
|
|
247
257
|
mainPath.setAttribute("stroke-width", ARC_STROKE_WIDTH);
|
|
248
258
|
mainPath.setAttribute("stroke-linecap", "round");
|
|
249
|
-
mainPath.setAttribute("opacity", data.isFuture ? "0.
|
|
259
|
+
mainPath.setAttribute("opacity", data.isFuture ? "0.7" : opacityValue);
|
|
250
260
|
mainPath.id = data.isFuture ? "" : (index === 1 ? "active-present-arc" : "");
|
|
251
261
|
ringsContainer.appendChild(mainPath);
|
|
252
262
|
});
|