UNPKG

@polygonjs/polygonjs

Version:

node-based WebGL 3D engine https://polygonjs.com

26 lines (25 loc) 696 B
"use strict"; import { TypedNode } from "../_Base"; import { NodeContext } from "../../poly/NodeContext"; import { FlagsControllerB } from "../utils/FlagsController"; import { ModuleName } from "../../poly/registers/modules/Common"; export class TypedAnimNode extends TypedNode { constructor() { super(...arguments); this.flags = new FlagsControllerB(this); } static context() { return NodeContext.ANIM; } requiredModules() { return [ModuleName.GSAP]; } initializeBaseNode() { this.io.outputs.setHasOneOutput(); } setTimelineBuilder(timeline_builder) { this._setContainer(timeline_builder); } } export class BaseAnimNodeClass extends TypedAnimNode { }