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

@@ -89,9 +89,11 @@ export const Sight = ({ sight, id }: Readonly<SightProps>) => {
return null;
}
// Компенсируем масштаб для сохранения постоянного размера
// Компенсируем масштаб, но при зуме текст немного увеличивается
const clampedScale = Math.min(Math.max(scale, 1), 3);
const textScaleFactor = 1 + (clampedScale - 1) * 0.4;
const compensatedSize = SIGHT_SIZE / scale;
const compensatedFontSize = 24 / scale;
const compensatedFontSize = (24 / scale) * textScaleFactor;
return (
<pixiContainer