@tsparticles/plugin-emitters-shape-canvas
Version:
tsParticles emitters shape canvas plugin
19 lines (18 loc) • 436 B
JavaScript
import { isNull } from "@tsparticles/engine";
export class TextLinesOptions {
constructor() {
this.separator = "\n";
this.spacing = 0;
}
load(data) {
if (isNull(data)) {
return;
}
if (data.separator !== undefined) {
this.separator = data.separator;
}
if (data.spacing !== undefined) {
this.spacing = data.spacing;
}
}
}