b118c03be1a52c1568e9cbf16c606c05904367da
- Split scale into startScale and targetScale for clarity - Introduce padding constants (140px horizontal, 96px vertical) - Calculate fitScale based on viewport and node dimensions with padding - Constrain target scale between 0.15 and 1 minimum/max bounds - Extract getCenteredOffset helper for offset calculations - Simplify animation interpolation using consistent offset objects
Languages
JavaScript
47.5%
Python
45.7%
CSS
6.8%