lingo3d
Version:
Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor
26 lines • 1.01 kB
JavaScript
import { PropertyBinding } from "three";
import { timelineDefaults, timelineSchema } from "../interface/ITimeline";
import AnimationManager from "./core/AnimatedObjectManager/AnimationManager";
import { uuidMap } from "../collections/idCollections";
import AnimationStates from "./core/AnimatedObjectManager/AnimationStates";
const findNode = PropertyBinding.findNode;
PropertyBinding.findNode = (root, nodeName) => {
if (uuidMap.has(nodeName))
return uuidMap.get(nodeName);
return findNode(root, nodeName);
};
class Timeline extends AnimationManager {
static componentName = "timeline";
static defaults = timelineDefaults;
static schema = timelineSchema;
constructor() {
const animationStates = new AnimationStates();
super("", undefined, {}, animationStates);
animationStates.manager = this;
this.$disableSerialize = false;
this.paused = true;
this.loop = false;
}
}
export default Timeline;
//# sourceMappingURL=Timeline.js.map