decord/source/utils/native/StyleSheetUtils.tsx

33 lines
802 B
TypeScript
Raw Normal View History

2026-09-02 09:53:35 +00:00
// Module ID: 5077
// Function ID: 5078
2026-07-20 16:05:17 +00:00
// Name: getStyleProp
2026-07-23 10:11:24 +00:00
// Dependencies: [2]
2026-07-20 16:05:17 +00:00
2026-09-02 09:53:35 +00:00
// Module 5077 (getStyleProp)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
2026-07-20 16:05:17 +00:00
function getStyleProp(style, borderRadius) {
if (null != borderRadius) {
if ("" !== borderRadius) {
const _Array = Array;
if (Array.isArray(style)) {
let diff = style.length - 1;
2026-07-29 08:29:29 +00:00
if (0 <= diff) {
const tmp5 = getStyleProp(style[diff], borderRadius);
while (null == tmp5) {
2026-07-20 16:05:17 +00:00
diff = diff - 1;
}
2026-07-29 08:29:29 +00:00
return tmp5;
2026-07-20 16:05:17 +00:00
}
} else if (null != style) {
2026-08-04 21:03:28 +00:00
if (typeof style === "object") {
2026-07-20 16:05:17 +00:00
return style[borderRadius];
}
}
}
}
}
2026-08-24 06:08:38 +00:00
const result = set.fileFinishedImporting("utils/native/StyleSheetUtils.tsx");
2026-07-20 16:05:17 +00:00
export default { getStyleProp };