Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tsparticles-interaction-external-remove

Package Overview
Dependencies
Maintainers
2
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tsparticles-interaction-external-remove - npm Package Compare versions

Comparing version 2.2.4 to 2.3.0

17

browser/Remover.js

@@ -1,13 +0,1 @@

var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
if (kind === "m") throw new TypeError("Private method is not writable");
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
};
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
};
var _Remover_container;
import { ExternalInteractorBase } from "tsparticles-engine";

@@ -22,6 +10,4 @@ import { Remove } from "./Options/Classes/Remove";

super(container);
_Remover_container.set(this, void 0);
__classPrivateFieldSet(this, _Remover_container, container, "f");
this.handleClickMode = (mode) => {
const container = __classPrivateFieldGet(this, _Remover_container, "f"), options = container.actualOptions;
const container = this.container, options = container.actualOptions;
if (!options.interactivity.modes.remove || mode !== "remove" /* ClickMode.remove */) {

@@ -58,2 +44,1 @@ return;

}
_Remover_container = new WeakMap();
"use strict";
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
if (kind === "m") throw new TypeError("Private method is not writable");
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
};
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
};
var _Remover_container;
Object.defineProperty(exports, "__esModule", { value: true });

@@ -21,6 +9,4 @@ exports.Remover = void 0;

super(container);
_Remover_container.set(this, void 0);
__classPrivateFieldSet(this, _Remover_container, container, "f");
this.handleClickMode = (mode) => {
const container = __classPrivateFieldGet(this, _Remover_container, "f"), options = container.actualOptions;
const container = this.container, options = container.actualOptions;
if (!options.interactivity.modes.remove || mode !== "remove") {

@@ -54,2 +40,1 @@ return;

exports.Remover = Remover;
_Remover_container = new WeakMap();

@@ -1,13 +0,1 @@

var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
if (kind === "m") throw new TypeError("Private method is not writable");
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
};
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
};
var _Remover_container;
import { ExternalInteractorBase } from "tsparticles-engine";

@@ -18,6 +6,4 @@ import { Remove } from "./Options/Classes/Remove";

super(container);
_Remover_container.set(this, void 0);
__classPrivateFieldSet(this, _Remover_container, container, "f");
this.handleClickMode = (mode) => {
const container = __classPrivateFieldGet(this, _Remover_container, "f"), options = container.actualOptions;
const container = this.container, options = container.actualOptions;
if (!options.interactivity.modes.remove || mode !== "remove") {

@@ -50,2 +36,1 @@ return;

}
_Remover_container = new WeakMap();

4

package.json
{
"name": "tsparticles-interaction-external-remove",
"version": "2.2.4",
"version": "2.3.0",
"description": "tsParticles remove external interaction",

@@ -77,4 +77,4 @@ "homepage": "https://particles.js.org",

"dependencies": {
"tsparticles-engine": "^2.2.4"
"tsparticles-engine": "^2.3.0"
}
}

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v2.2.4
* v2.3.0
*/

@@ -19,3 +19,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

}
})(this, (__WEBPACK_EXTERNAL_MODULE__818__) => {
})(this, (__WEBPACK_EXTERNAL_MODULE__961__) => {
return /******/ (() => { // webpackBootstrap

@@ -25,6 +25,6 @@ /******/ "use strict";

/***/ 818:
/***/ 961:
/***/ ((module) => {
module.exports = __WEBPACK_EXTERNAL_MODULE__818__;
module.exports = __WEBPACK_EXTERNAL_MODULE__961__;

@@ -102,3 +102,3 @@ /***/ })

// EXTERNAL MODULE: external {"commonjs":"tsparticles-engine","commonjs2":"tsparticles-engine","amd":"tsparticles-engine","root":"window"}
var external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_ = __webpack_require__(818);
var external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_ = __webpack_require__(961);
;// CONCATENATED MODULE: ./dist/browser/Options/Classes/Remove.js

@@ -148,19 +148,4 @@ /**

;// CONCATENATED MODULE: ./dist/browser/Remover.js
var __classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function (receiver, state, value, kind, f) {
if (kind === "m") throw new TypeError("Private method is not writable");
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
};
var __classPrivateFieldGet = undefined && undefined.__classPrivateFieldGet || function (receiver, state, kind, f) {
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
};
var _Remover_container;
/**

@@ -175,8 +160,4 @@ * Particle attract manager

_Remover_container.set(this, void 0);
__classPrivateFieldSet(this, _Remover_container, container, "f");
this.handleClickMode = mode => {
const container = __classPrivateFieldGet(this, _Remover_container, "f"),
const container = this.container,
options = container.actualOptions;

@@ -222,3 +203,2 @@

}
_Remover_container = new WeakMap();
;// CONCATENATED MODULE: ./dist/browser/index.js

@@ -225,0 +205,0 @@

/*! For license information please see tsparticles.interaction.external.remove.min.js.LICENSE.txt */
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("tsparticles-engine"));else if("function"==typeof define&&define.amd)define(["tsparticles-engine"],t);else{var r="object"==typeof exports?t(require("tsparticles-engine")):t(e.window);for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(this,(e=>(()=>{"use strict";var t={818:t=>{t.exports=e}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{o.r(n),o.d(n,{Remove:()=>t,loadExternalRemoveInteraction:()=>c});var e=o(818);class t{constructor(){this.quantity=2}get particles_nb(){return this.quantity}set particles_nb(e){this.quantity=e}load(e){var t;if(!e)return;const r=null!==(t=e.quantity)&&void 0!==t?t:e.particles_nb;void 0!==r&&(this.quantity=r)}}var r,i=function(e,t,r,o,n){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!n)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?n.call(e,r):n?n.value=r:t.set(e,r),r},a=function(e,t,r,o){if("a"===r&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?o:"a"===r?o.call(e):o?o.value:t.get(e)};class s extends e.ExternalInteractorBase{constructor(e){super(e),r.set(this,void 0),i(this,r,e,"f"),this.handleClickMode=e=>{const t=a(this,r,"f"),o=t.actualOptions;if(!o.interactivity.modes.remove||"remove"!==e)return;const n=o.interactivity.modes.remove.quantity;t.particles.removeQuantity(n)}}clear(){}init(){}async interact(){}isEnabled(){return!0}loadModeOptions(e,...r){e.remove||(e.remove=new t);for(const t of r)e.remove.load(null==t?void 0:t.remove)}reset(){}}function c(e){e.addInteractor("externalRemove",(e=>new s(e)))}r=new WeakMap})(),n})()));
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("tsparticles-engine"));else if("function"==typeof define&&define.amd)define(["tsparticles-engine"],t);else{var r="object"==typeof exports?t(require("tsparticles-engine")):t(e.window);for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(this,(e=>(()=>{"use strict";var t={961:t=>{t.exports=e}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{o.r(n),o.d(n,{Remove:()=>t,loadExternalRemoveInteraction:()=>i});var e=o(961);class t{constructor(){this.quantity=2}get particles_nb(){return this.quantity}set particles_nb(e){this.quantity=e}load(e){var t;if(!e)return;const r=null!==(t=e.quantity)&&void 0!==t?t:e.particles_nb;void 0!==r&&(this.quantity=r)}}class r extends e.ExternalInteractorBase{constructor(e){super(e),this.handleClickMode=e=>{const t=this.container,r=t.actualOptions;if(!r.interactivity.modes.remove||"remove"!==e)return;const o=r.interactivity.modes.remove.quantity;t.particles.removeQuantity(o)}}clear(){}init(){}async interact(){}isEnabled(){return!0}loadModeOptions(e,...r){e.remove||(e.remove=new t);for(const t of r)e.remove.load(null==t?void 0:t.remove)}reset(){}}function i(e){e.addInteractor("externalRemove",(e=>new r(e)))}})(),n})()));

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v2.2.4
* v2.3.0
*/
import { ExternalInteractorBase } from "tsparticles-engine";
import type { IModes, Modes, RecursivePartial } from "tsparticles-engine";
import type { IRemoveMode, RemoveContainer, RemoveMode } from "./Types";
export declare class Remover extends ExternalInteractorBase {
#private;
export declare class Remover extends ExternalInteractorBase<RemoveContainer> {
handleClickMode: (mode: string) => void;

@@ -7,0 +6,0 @@ constructor(container: RemoveContainer);

@@ -1,12 +0,1 @@

var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
if (kind === "m") throw new TypeError("Private method is not writable");
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
};
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
};
(function (factory) {

@@ -22,3 +11,2 @@ if (typeof module === "object" && typeof module.exports === "object") {

"use strict";
var _Remover_container;
Object.defineProperty(exports, "__esModule", { value: true });

@@ -31,6 +19,4 @@ exports.Remover = void 0;

super(container);
_Remover_container.set(this, void 0);
__classPrivateFieldSet(this, _Remover_container, container, "f");
this.handleClickMode = (mode) => {
const container = __classPrivateFieldGet(this, _Remover_container, "f"), options = container.actualOptions;
const container = this.container, options = container.actualOptions;
if (!options.interactivity.modes.remove || mode !== "remove") {

@@ -64,3 +50,2 @@ return;

exports.Remover = Remover;
_Remover_container = new WeakMap();
});

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc