UNPKG

polygonjs-engine

Version:

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

26 lines (25 loc) 814 B
import {TypedNode} from "../_Base"; import {NodeContext as NodeContext2} from "../../poly/NodeContext"; import {FlagsControllerB} from "../utils/FlagsController"; const INPUT_GEOMETRY_NAME = "input animation clip"; const DEFAULT_INPUT_NAMES = [INPUT_GEOMETRY_NAME, INPUT_GEOMETRY_NAME, INPUT_GEOMETRY_NAME, INPUT_GEOMETRY_NAME]; export class TypedAnimNode extends TypedNode { constructor() { super(...arguments); this.flags = new FlagsControllerB(this); } static nodeContext() { return NodeContext2.ANIM; } static displayedInputNames() { return DEFAULT_INPUT_NAMES; } initializeBaseNode() { this.io.outputs.set_has_one_output(); } set_timeline_builder(timeline_builder) { this.setContainer(timeline_builder); } } export class BaseAnimNodeClass extends TypedAnimNode { }