polygonjs-engine
Version:
node-based webgl 3D engine https://polygonjs.com
40 lines (39 loc) • 1.17 kB
JavaScript
import {TypedSopNode} from "./_Base";
import {InputCloneMode as InputCloneMode2} from "../../poly/InputCloneMode";
import {NodeContext as NodeContext2} from "../../poly/NodeContext";
import {NodeParamsConfig} from "../utils/params/ParamsConfig";
class JsPointSopParamsConfig extends NodeParamsConfig {
}
const ParamsConfig2 = new JsPointSopParamsConfig();
export class JsPointSopNode extends TypedSopNode {
constructor() {
super(...arguments);
this.params_config = ParamsConfig2;
this._children_controller_context = NodeContext2.JS;
}
static type() {
return "jsPoint";
}
initializeNode() {
this.io.inputs.setCount(1);
this.io.inputs.initInputsClonedState(InputCloneMode2.NEVER);
}
createNode(node_class, params_init_value_overrides) {
return super.createNode(node_class, params_init_value_overrides);
}
children() {
return super.children();
}
nodesByType(type) {
return super.nodesByType(type);
}
async cook(input_contents) {
const core_group = input_contents[0];
this.compile_if_required();
this.setCoreGroup(core_group);
}
async compile_if_required() {
}
async run_assembler() {
}
}