getWidth function

double getWidth(
  1. double width
)

Implementation

double getWidth(double width) {
  if (useOriginSize) {
    return width;
  }
  try {
    return width.w;
  } catch (e) {
    return width;
  }
}