decord/source/4155_getBooleanProperty.js

37 lines
1,003 B
JavaScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 4155
// Function ID: 4156
2026-07-20 16:05:17 +00:00
// Name: getBooleanProperty
2026-08-24 06:08:38 +00:00
// Dependencies: [32, 4139, 4152]
2026-07-20 16:05:17 +00:00
// Exports: useRiveBoolean
2026-08-24 06:08:38 +00:00
// Module 4155 (getBooleanProperty)
import c from "c" /* 4139 */;
import useRiveProperty from "useRiveProperty" /* 4152 */;
import closure_2 from "_slicedToArray" /* 32 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
2026-07-20 16:05:17 +00:00
function getBooleanProperty(booleanProperty) {
return booleanProperty.booleanProperty(arg1);
}
export const useRiveBoolean = function useRiveBoolean(reducedMotion, instance) {
2026-08-24 06:08:38 +00:00
let obj = c;
2026-07-20 16:05:17 +00:00
const cResult = obj.c(4);
2026-08-24 06:08:38 +00:00
const obj2 = useRiveProperty;
[tmp3, tmp4, tmp5] = callback(useRiveProperty.useRiveProperty(instance, reducedMotion, getBooleanProperty), 3);
2026-07-20 16:05:17 +00:00
if (cResult[0] === tmp5) {
if (cResult[1] === tmp4) {
if (cResult[2] === tmp3) {
let tmp6 = cResult[3];
}
return tmp6;
}
}
obj = { value: tmp3, setValue: tmp4, error: tmp5 };
cResult[0] = tmp5;
cResult[1] = tmp4;
cResult[2] = tmp3;
cResult[3] = obj;
tmp6 = obj;
};