feat: demo page realisation

This commit is contained in:
2026-04-24 13:17:27 +03:00
parent b42802aac0
commit d67df0c2e1
167 changed files with 18271 additions and 65 deletions

View File

@@ -326,8 +326,10 @@ const StationLabel = observer(
if (!station) return null;
const coordinates = coordinatesToLocal(station.latitude, station.longitude);
const compensatedRuFontSize = (26 * 0.75) / scale;
const compensatedNameFontSize = (16 * 0.75) / scale;
const clampedScale = Math.min(Math.max(scale, 1), 3);
const textScaleFactor = 1 + (clampedScale - 1) * 0.4;
const compensatedRuFontSize = ((26 * 0.75) / scale) * textScaleFactor;
const compensatedNameFontSize = ((16 * 0.75) / scale) * textScaleFactor;
useEffect(() => {
if (ruLabelRef.current && ruLabel) {