UNPKG

@tsparticles/interaction-external-grab

Version:

tsParticles grab external interaction

30 lines (29 loc) 812 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GrabLinks = void 0; const engine_1 = require("@tsparticles/engine"); class GrabLinks { constructor() { this.blink = false; this.consent = false; this.opacity = 1; } load(data) { if ((0, engine_1.isNull)(data)) { return; } if (data.blink !== undefined) { this.blink = data.blink; } if (data.color !== undefined) { this.color = engine_1.OptionsColor.create(this.color, data.color); } if (data.consent !== undefined) { this.consent = data.consent; } if (data.opacity !== undefined) { this.opacity = data.opacity; } } } exports.GrabLinks = GrabLinks;