@tsparticles/interaction-external-repulse
Version:
tsParticles repulse external interaction
13 lines (12 loc) • 341 B
JavaScript
import { isNull, loadProperty, } from "@tsparticles/engine";
import { RepulseBase } from "./RepulseBase.js";
export class RepulseDiv extends RepulseBase {
selectors = [];
load(data) {
super.load(data);
if (isNull(data)) {
return;
}
loadProperty(this, "selectors", data.selectors);
}
}