@polygonjs/polygonjs
Version:
node-based WebGL 3D engine https://polygonjs.com
32 lines (31 loc) • 645 B
JavaScript
;
export class VariableConfig {
constructor(_name, _options = {}) {
this._name = _name;
this._options = _options;
}
name() {
return this._name;
}
default_from_attribute() {
return this._options["default_from_attribute"] || false;
}
default() {
return this._options["default"];
}
if_condition() {
return this._options["if"];
}
// required_definitions(){
// return this._options['required_definitions']
// }
prefix() {
return this._options["prefix"] || "";
}
suffix() {
return this._options["suffix"] || "";
}
postLines() {
return this._options.postLines;
}
}