UNPKG

polygonjs-engine

Version:

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

17 lines (16 loc) 618 B
import {CoreGraphNode as CoreGraphNode2} from "../../../core/graph/CoreGraphNode"; export class UIData extends CoreGraphNode2 { constructor(scene, param) { super(scene, "param ui data"); this.param = param; this._update_visibility_and_remove_dirty_bound = this.update_visibility_and_remove_dirty.bind(this); this.addPostDirtyHook("_update_visibility_and_remove_dirty", this._update_visibility_and_remove_dirty_bound); } update_visibility_and_remove_dirty() { this.update_visibility(); this.removeDirtyState(); } update_visibility() { this.param.options.update_visibility(); } }