UNPKG

@polygonjs/polygonjs

Version:

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

26 lines (25 loc) 890 B
"use strict"; import { NodeJsonExporter } from "../Node"; export class PolyNodeJsonExporter extends NodeJsonExporter { async nodes_data(options) { var _a; if (options.showPolyNodesData || !((_a = this._node.polyNodeController) == null ? void 0 : _a.locked())) { return await super.nodes_data(options); } return {}; } uiData(options) { var _a; if (options.showPolyNodesData || !((_a = this._node.polyNodeController) == null ? void 0 : _a.locked())) { return super.uiData(options); } else { return this.ui_data_without_children(); } } async persistedConfigData(shadersData, jsFunctionBodiesData, options) { var _a; if (options.showPolyNodesData || !((_a = this._node.polyNodeController) == null ? void 0 : _a.locked())) { return await super.persistedConfigData(shadersData, jsFunctionBodiesData, options); } } }