UNPKG

@tsparticles/editor

Version:

tsParticles Configuration Editor

13 lines (12 loc) 339 B
import { tsParticles } from "@tsparticles/engine"; import { editorChangedEvent } from "./Utils"; export class EditorBase { constructor(particles) { this.particles = particles; } notifyEditorChanged() { tsParticles.dispatchEvent(editorChangedEvent, { container: this.particles(), }); } }