decord/source/255_get hairlineWidth.js
2026-08-04 21:03:28 +00:00

47 lines
1.4 KiB
JavaScript

// Module ID: 255
// Function ID: 256
// Name: get hairlineWidth
// Dependencies: [87, 256, 148, 26]
// Module 255 (get hairlineWidth)
const require = arg1;
let obj = { position: "absolute", left: 0, right: 0, top: 0, bottom: 0 };
obj = {};
Object.defineProperty(obj, "hairlineWidth", {
get: () => {
if (null == closure_3) {
const _default = require(87) /* PixelRatio */.default;
const roundToNearestPixelResult = _default.roundToNearestPixel(0.4);
closure_3 = roundToNearestPixelResult;
if (0 === roundToNearestPixelResult) {
closure_3 = 1 / _default.get();
}
}
return closure_3;
},
set: undefined
});
obj.absoluteFill = obj;
obj.absoluteFillObject = obj;
obj.compose = require("composeStyles");
obj.flatten = require("flattenStyle");
obj.setStyleAttributePreprocessor = function setStyleAttributePreprocessor(arg0, process) {
if (true === importDefault(26)[arg0]) {
let obj = { process: null };
obj[0] = process;
} else if (typeof tmp(26)[arg0] !== "object") {
const _console = console;
const _HermesInternal = HermesInternal;
console.error("" + arg0 + " is not a valid style attribute");
} else {
obj = {};
const merged = Object.assign(tmp(26)[arg0]);
obj.process = process;
}
importDefault(26)[arg0] = obj;
};
obj.create = function create(arg0) {
return arg0;
};
export default obj;