polygonjs-engine
Version:
node-based webgl 3D engine https://polygonjs.com
33 lines (29 loc) • 837 B
text/typescript
import {TypedContainer} from './_Base';
import {ContainableMap} from './utils/ContainableMap';
import {TimelineBuilder} from '../../core/animation/TimelineBuilder';
import {NodeContext} from '../poly/NodeContext';
export class AnimationContainer extends TypedContainer<NodeContext.ANIM> {
set_content(content: ContainableMap[NodeContext.ANIM]) {
super.set_content(content);
}
set_timeline_builder(timeline_builder: TimelineBuilder) {
return this.set_content(timeline_builder);
}
timeline_builder() {
return this.content();
}
coreContentCloned() {
if (this._content) {
return this._content.clone();
}
}
// infos() {
// const node = this.node()
// return [
// `full path: ${node.fullPath()}`,
// `${node.cooks_count()} cooks`,
// `cook time: ${node.cook_time()}`,
// this.content(),
// ]
// }
}