decord/source/470_useAnimatedValue.js

21 lines
471 B
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 470
// Function ID: 6154
// Name: useAnimatedValue
2026-07-23 10:11:24 +00:00
// Dependencies: [31, 390]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 470 (useAnimatedValue)
2026-07-23 10:11:24 +00:00
import { useRef } from "result";
2026-07-20 16:05:17 +00:00
export default function useAnimatedValue(arg0, arg1) {
const tmp = useRef(null);
if (null == tmp.current) {
2026-07-23 10:11:24 +00:00
const Value = importDefault(390).Value;
2026-07-20 16:05:17 +00:00
const prototype = Value.prototype;
const value = new Value(arg0, arg1);
tmp.current = value;
}
return tmp.current;
};