@tsparticles/plugin-emitters
Version:
tsParticles emitters plugin
23 lines (22 loc) • 604 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.EmitterShapeReplace = void 0;
const engine_1 = require("@tsparticles/engine");
class EmitterShapeReplace {
constructor() {
this.color = false;
this.opacity = false;
}
load(data) {
if ((0, engine_1.isNull)(data)) {
return;
}
if (data.color !== undefined) {
this.color = data.color;
}
if (data.opacity !== undefined) {
this.opacity = data.opacity;
}
}
}
exports.EmitterShapeReplace = EmitterShapeReplace;