37 lines
976 B
JavaScript
37 lines
976 B
JavaScript
// Module ID: 3898
|
|
// Function ID: 32250
|
|
// Name: getEnumProperty
|
|
// Dependencies: [57, 3881, 3894]
|
|
// Exports: useRiveEnum
|
|
|
|
// Module 3898 (getEnumProperty)
|
|
import _slicedToArray from "_slicedToArray";
|
|
|
|
const require = arg1;
|
|
function getEnumProperty(enumProperty) {
|
|
return enumProperty.enumProperty(arg1);
|
|
}
|
|
|
|
export const useRiveEnum = function useRiveEnum(FillColor, instance) {
|
|
let tmp3;
|
|
let tmp4;
|
|
let tmp5;
|
|
let obj = require(3881) /* c */;
|
|
const cResult = obj.c(4);
|
|
const obj2 = require(3894) /* useRiveProperty */;
|
|
[tmp3, tmp4, tmp5] = callback(require(3894) /* useRiveProperty */.useRiveProperty(instance, FillColor, getEnumProperty), 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;
|
|
};
|