polygonjs-engine
Version:
node-based webgl 3D engine https://polygonjs.com
17 lines (16 loc) • 405 B
JavaScript
import {NodeJsonExporter} from "../Node";
export class PolyNodeJsonExporter extends NodeJsonExporter {
nodes_data(options = {}) {
if (options.showPolyNodesData) {
return super.nodes_data(options);
}
return {};
}
ui_data(options = {}) {
if (options.showPolyNodesData) {
return super.ui_data(options);
} else {
return this.ui_data_without_children();
}
}
}