feat: demo page realisation
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user