@tsparticles/editor
Version:
tsParticles Configuration Editor
21 lines (20 loc) • 693 B
JavaScript
import { EditorType } from "object-gui";
import { EditorBase } from "../../../EditorBase";
export class FullScreenOptionsEditor extends EditorBase {
constructor(particles) {
super(particles);
}
addToGroup(parent) {
this.group = parent.addGroup("fullScreen", "Full Screen");
this.options = this.group.data;
this.addProperties();
}
addProperties() {
this.group.addProperty("enable", "Enable", EditorType.boolean).change(() => {
void this.particles().refresh();
});
this.group.addProperty("zIndex", "zIndex", EditorType.number).change(() => {
void this.particles().refresh();
});
}
}