adaptWidth static method
Implementation
static double adaptWidth(double value) {
if (isMobile()) {
try {
return value.w;
} catch (_) {
return value; // ScreenUtil 未初始化时(如 overlay / 首帧)退回原始数值
}
} else {
return value; // PC端直接用原始数值
}
}