decord/source/__polyfill/00xxx/module_255.js

51 lines
1.4 KiB
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 255
// Function ID: 256
// Dependencies: [87, 256, 148, 26]
// Module 255
import _modDef26 from "module_26" /* 26 */;
2026-08-24 06:08:38 +00:00
import flattenStyleDefault from "flattenStyle" /* 148 */;
import composeStylesDefault from "composeStyles" /* 256 */;
2026-07-29 08:29:29 +00:00
const require = arg1;
const rect = { position: "absolute", left: 0, right: 0, top: 0, bottom: 0 };
let obj = {};
2026-07-29 08:29:29 +00:00
Object.defineProperty(obj, "hairlineWidth", {
get: () => {
if (null == closure_3) {
const _default = require("PixelRatio").default;
2026-07-29 08:29:29 +00:00
const roundToNearestPixelResult = _default.roundToNearestPixel(0.4);
closure_3 = roundToNearestPixelResult;
if (0 === roundToNearestPixelResult) {
closure_3 = 1 / _default.get();
}
}
return closure_3;
},
set: undefined
});
obj.absoluteFill = rect;
obj.absoluteFillObject = rect;
2026-08-24 06:08:38 +00:00
obj.compose = composeStylesDefault;
obj.flatten = flattenStyleDefault;
2026-07-29 08:29:29 +00:00
obj.setStyleAttributePreprocessor = function setStyleAttributePreprocessor(arg0, process) {
if (true === _modDef26[arg0]) {
const obj = { process };
let obj2 = obj;
2026-08-04 21:03:28 +00:00
} else if (typeof tmp(26)[arg0] !== "object") {
2026-07-29 08:29:29 +00:00
const _console = console;
const _HermesInternal = HermesInternal;
console.error("" + arg0 + " is not a valid style attribute");
} else {
obj2 = {};
2026-07-29 08:29:29 +00:00
const merged = Object.assign(tmp(26)[arg0]);
obj2.process = process;
2026-07-29 08:29:29 +00:00
}
_modDef26[arg0] = obj2;
2026-07-29 08:29:29 +00:00
};
obj.create = function create(arg0) {
return arg0;
};
export default obj;