decord/source/96_PixelRatio.js

59 lines
1.3 KiB
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 96
// Function ID: 1550
// Name: PixelRatio
2026-07-23 10:11:24 +00:00
// Dependencies: [6, 7, 97]
2026-07-20 16:05:17 +00:00
// Module 96 (PixelRatio)
2026-07-23 10:11:24 +00:00
import _classCallCheck from "_classCallCheck";
import _defineProperties from "_defineProperties";
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
const require = arg1;
export default (() => {
2026-07-20 16:05:17 +00:00
class PixelRatio {
constructor() {
2026-07-23 10:11:24 +00:00
tmp = outer1_2(this, PixelRatio);
2026-07-20 16:05:17 +00:00
return;
}
}
let obj = {
key: "get",
value: function get() {
2026-07-23 10:11:24 +00:00
return PixelRatio(outer1_1[2]).default.get("window").scale;
2026-07-20 16:05:17 +00:00
}
};
const items = [obj, , , , ];
obj = {
key: "getFontScale",
value: function getFontScale() {
2026-07-23 10:11:24 +00:00
let fontScale = PixelRatio(outer1_1[2]).default.get("window").fontScale;
2026-07-20 16:05:17 +00:00
if (!fontScale) {
fontScale = PixelRatio.get();
}
return fontScale;
}
};
items[1] = obj;
obj = {
key: "getPixelSizeForLayoutSize",
value: function getPixelSizeForLayoutSize(HAPPENING_NOW_CONTENT_HEIGHT) {
return Math.round(HAPPENING_NOW_CONTENT_HEIGHT * PixelRatio.get());
}
};
items[2] = obj;
items[3] = {
key: "roundToNearestPixel",
value: function roundToNearestPixel(arg0) {
const value = PixelRatio.get();
return Math.round(arg0 * value) / value;
}
};
items[4] = {
key: "startDetecting",
value: function startDetecting() {
}
};
return callback(PixelRatio, null, items);
2026-07-23 10:11:24 +00:00
})();