36 lines
995 B
JavaScript
36 lines
995 B
JavaScript
// Module ID: 4152
|
|
// Function ID: 4153
|
|
// Name: getNumberProperty
|
|
// Dependencies: [32, 4140, 4153]
|
|
// Exports: useRiveNumber
|
|
|
|
// Module 4152 (getNumberProperty)
|
|
import c from "c" /* 4140 */;
|
|
import useRiveProperty from "useRiveProperty" /* 4153 */;
|
|
import closure_2 from "_slicedToArray" /* 32 */;
|
|
|
|
require = arg1;
|
|
function getNumberProperty(numberProperty) {
|
|
return numberProperty.numberProperty(arg1);
|
|
}
|
|
|
|
export const useRiveNumber = function useRiveNumber(AnimationState, instance) {
|
|
let obj = c;
|
|
const cResult = obj.c(4);
|
|
const obj2 = useRiveProperty;
|
|
[tmp3, tmp4, tmp5] = callback(useRiveProperty.useRiveProperty(instance, AnimationState, getNumberProperty), 3);
|
|
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;
|
|
};
|