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
1
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.0 to 2.2.1

2

browser/index.js

@@ -5,1 +5,3 @@ import { Remover } from "./Remover";

}
export * from "./Options/Classes/Remove";
export * from "./Options/Interfaces/IRemove";
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -9,1 +23,3 @@ exports.loadExternalRemoveInteraction = void 0;

exports.loadExternalRemoveInteraction = loadExternalRemoveInteraction;
__exportStar(require("./Options/Classes/Remove"), exports);
__exportStar(require("./Options/Interfaces/IRemove"), exports);

@@ -5,1 +5,3 @@ import { Remover } from "./Remover";

}
export * from "./Options/Classes/Remove";
export * from "./Options/Interfaces/IRemove";

4

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

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

"dependencies": {
"tsparticles-engine": "^2.2.0"
"tsparticles-engine": "^2.2.1"
}
}

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

* How to use? : Check the GitHub README
* v2.2.0
* v2.2.1
*/

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

__webpack_require__.d(__webpack_exports__, {
"Remove": () => (/* reexport */ Remove),
"loadExternalRemoveInteraction": () => (/* binding */ loadExternalRemoveInteraction)

@@ -223,2 +224,4 @@ });

}
})();

@@ -225,0 +228,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,{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={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})()));

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

* How to use? : Check the GitHub README
* v2.2.0
* v2.2.1
*/
import type { Engine } from "tsparticles-engine";
export declare function loadExternalRemoveInteraction(engine: Engine): void;
export * from "./Options/Classes/Remove";
export * from "./Options/Interfaces/IRemove";

@@ -0,1 +1,15 @@

var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
(function (factory) {

@@ -7,3 +21,3 @@ if (typeof module === "object" && typeof module.exports === "object") {

else if (typeof define === "function" && define.amd) {
define(["require", "exports", "./Remover"], factory);
define(["require", "exports", "./Remover", "./Options/Classes/Remove", "./Options/Interfaces/IRemove"], factory);
}

@@ -19,2 +33,4 @@ })(function (require, exports) {

exports.loadExternalRemoveInteraction = loadExternalRemoveInteraction;
__exportStar(require("./Options/Classes/Remove"), exports);
__exportStar(require("./Options/Interfaces/IRemove"), exports);
});

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