UNPKG

@polygonjs/polygonjs

Version:

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

19 lines (18 loc) 589 B
"use strict"; import { NamedFunction1 } from "./_Base"; import { getOrCreateParamRef } from "../../core/reactivity/ParamReactivity"; import { dummyReadRefVal } from "../../core/reactivity/CoreReactivity"; export class getActorNodeParamValue extends NamedFunction1 { static type() { return "getActorNodeParamValue"; } func(paramName) { const functionNode = this.functionNode; if (!functionNode) { return; } const _ref = getOrCreateParamRef(functionNode, paramName); dummyReadRefVal(_ref.value); return functionNode.params.get(paramName).value; } }