scaleWidth static method

double scaleWidth(
  1. double width
)

基于宽度的比例缩放

Implementation

static double scaleWidth(double width) {
  if (!_enableScaleWH) return width;
  if (width == 1) {
    return handleOnePixel(width);
  }
  return (width * _screenWidth) / _designWidth;
}