scaleRadius static method
基于更小边的比例缩放(避免拉伸)
Implementation
static double scaleRadius(double size) {
if (!_enableScaleWH) return size;
final scale = (_screenWidth / _designWidth < _screenHeight / _designHeight)
? _screenWidth / _designWidth
: _screenHeight / _designHeight;
return size * scale;
}