fix proxy

This commit is contained in:
2026-06-23 15:47:14 +03:00
parent 082551ad0c
commit 167e425c8f
+27 -6
View File
@@ -313,8 +313,8 @@
<div class="api-debug-legend">
<span><i class="api-debug-swatch" style="background:#00ff88"></i> surface/препятствия</span>
<span><i class="api-debug-swatch" style="background:#ff9800"></i> луч TX→RX</span>
<span><i class="api-debug-swatch" style="background:#ffd54f"></i> 60% Fresnel</span>
<span><i class="api-debug-swatch" style="background:#ba68c8"></i> 100% Fresnel</span>
<span><i class="api-debug-swatch" style="background:#ffd54f"></i> границы 60% Fresnel</span>
<span><i class="api-debug-swatch" style="background:#ba68c8"></i> границы 100% Fresnel</span>
<span><i class="api-debug-swatch" style="background:#ff1744"></i> нарушения</span>
</div>
<div id="apiDebugSummary">Нет расчёта.</div>
@@ -2315,19 +2315,35 @@
series.push({
color: '#ffd54f',
profile: apiDebugSurfaceProfile,
label: '60% Fresnel',
label: '60% Fresnel ниж.',
valueKey: 'fresnel_lower_60pct_m',
dash: [6, 4],
lineWidth: 1.5
});
series.push({
color: '#ffd54f',
profile: apiDebugSurfaceProfile,
label: '60% Fresnel верх.',
valueKey: 'fresnel_upper_60pct_m',
dash: [6, 4],
lineWidth: 1.5
});
series.push({
color: '#ba68c8',
profile: apiDebugSurfaceProfile,
label: '100% Fresnel',
label: '100% Fresnel ниж.',
valueKey: 'fresnel_lower_100pct_m',
dash: [3, 4],
lineWidth: 1.3
});
series.push({
color: '#ba68c8',
profile: apiDebugSurfaceProfile,
label: '100% Fresnel верх.',
valueKey: 'fresnel_upper_100pct_m',
dash: [3, 4],
lineWidth: 1.3
});
}
series.push({
color: '#00ff88',
@@ -2367,6 +2383,8 @@
}).addTo(map);
const surface = profileValueAtDist(apiDebugSurfaceProfile, apiDebugCursorDist, 'surface_m');
const path = profileValueAtDist(apiDebugSurfaceProfile, apiDebugCursorDist, 'path_height_m');
const fresnelUpper60 = profileValueAtDist(apiDebugSurfaceProfile, apiDebugCursorDist, 'fresnel_upper_60pct_m');
const fresnelUpper100 = profileValueAtDist(apiDebugSurfaceProfile, apiDebugCursorDist, 'fresnel_upper_100pct_m');
const fresnel60 = profileValueAtDist(apiDebugSurfaceProfile, apiDebugCursorDist, 'fresnel_lower_60pct_m');
const fresnel100 = profileValueAtDist(apiDebugSurfaceProfile, apiDebugCursorDist, 'fresnel_lower_100pct_m');
const clearance = path != null && surface != null ? path - surface : null;
@@ -2377,8 +2395,9 @@
`${apiDebugBaseSummaryHtml}<hr style="border:0;border-top:1px solid #333;margin:6px 0">` +
`<b>Точка на графике:</b> ${fmtNum(apiDebugCursorDist, 0, ' m')} от TX<br>` +
`<b>Координаты:</b> ${fmtNum(pt.lat, 6)}, ${fmtNum(pt.lon, 6)}<br>` +
`<b>Surface:</b> ${fmtNum(surface, 1, ' m')} · <b>луч:</b> ${fmtNum(path, 1, ' m')} · ` +
`<b>нижняя 60%:</b> ${fmtNum(fresnel60, 1, ' m')} · <b>нижняя 100%:</b> ${fmtNum(fresnel100, 1, ' m')}<br>` +
`<b>Surface:</b> ${fmtNum(surface, 1, ' m')} · <b>луч:</b> ${fmtNum(path, 1, ' m')}<br>` +
`<b>60% Fresnel:</b> ${fmtNum(fresnel60, 1, ' m')} .. ${fmtNum(fresnelUpper60, 1, ' m')} · ` +
`<b>100%:</b> ${fmtNum(fresnel100, 1, ' m')} .. ${fmtNum(fresnelUpper100, 1, ' m')}<br>` +
`<b>Clearance над surface:</b> ${fmtNum(clearance, 1, ' m')}`
);
drawApiDebugChart();
@@ -2658,6 +2677,8 @@
lon: p.lon != null ? Number(p.lon) : null,
surface_m: p.surface_m != null ? Number(p.surface_m) : null,
path_height_m: p.path_height_m != null ? Number(p.path_height_m) : null,
fresnel_upper_60pct_m: p.fresnel_upper_60pct_m != null ? Number(p.fresnel_upper_60pct_m) : null,
fresnel_upper_100pct_m: p.fresnel_upper_100pct_m != null ? Number(p.fresnel_upper_100pct_m) : null,
fresnel_lower_60pct_m: p.fresnel_lower_60pct_m != null ? Number(p.fresnel_lower_60pct_m) : null,
fresnel_lower_100pct_m: p.fresnel_lower_100pct_m != null ? Number(p.fresnel_lower_100pct_m) : null,
clearance_m: p.clearance_m != null ? Number(p.clearance_m) : null,