UNPKG

@polygonjs/polygonjs

Version:

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

12 lines (8 loc) 325 B
import {BaseParamType} from '../../_Base'; export class ParamTimeDependentState { constructor(protected param: BaseParamType) {} active(): boolean { const frameGraphNodeId = this.param.scene().timeController.graphNode.graphNodeId(); return this.param.graphPredecessorIds()?.includes(frameGraphNodeId) || false; } }