scaleHeight static method

double scaleHeight(
  1. double height
)

基于高度的比例缩放

Implementation

static double scaleHeight(double height) {
  if (!_enableScaleWH) return height;
  if (height == 1) {
    return handleOnePixel(height);
  }
  return (height * _screenHeight) / _designHeight;
}