@tsparticles/editor
Version:
tsParticles Configuration Editor
28 lines (27 loc) • 1.04 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.WobbleOptionsEditor = void 0;
const object_gui_1 = require("object-gui");
const EditorBase_1 = require("../../../../EditorBase");
class WobbleOptionsEditor extends EditorBase_1.EditorBase {
constructor(particles) {
super(particles);
}
addToGroup(parent) {
this.group = parent.addGroup("wobble", "Wobble");
this.options = this.group.data;
this.addProperties();
}
addProperties() {
this.group.addProperty("distance", "Distance", object_gui_1.EditorType.number).change(() => {
void this.particles().refresh();
});
this.group.addProperty("enable", "Enable", object_gui_1.EditorType.boolean).change(() => {
void this.particles().refresh();
});
this.group.addProperty("speed", "Speed", object_gui_1.EditorType.number).change(() => {
void this.particles().refresh();
});
}
}
exports.WobbleOptionsEditor = WobbleOptionsEditor;