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.0.5 to 2.0.6

browser/index.js

60

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

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

"tsparticles",
"particles.js",
"particlesjs",
"particles",

@@ -20,5 +22,22 @@ "particle",

"particles-js",
"particles.js",
"particles-bg",
"particles-bg-vue",
"particles-ts",
"particles.ts",
"react-particles-js",
"react-particles.js",
"react-particles",
"react",
"reactjs",
"vue-particles",
"ngx-particles",
"angular-particles",
"particleground",
"vue",
"vuejs",
"preact",
"preactjs",
"jquery",
"angularjs",
"angular",
"typescript",

@@ -36,3 +55,12 @@ "javascript",

"background",
"tsparticles-shape"
"confetti",
"canvas",
"fireworks",
"fireworks-js",
"confetti-js",
"confettijs",
"fireworksjs",
"canvas-confetti",
"tsparticles-plugin",
"tsparticles-interaction"
],

@@ -44,28 +72,10 @@ "author": "Matteo Bruni",

},
"main": "index.js",
"main": "cjs/index.js",
"jsdelivr": "tsparticles.interaction.external.remove.min.js",
"unpkg": "tsparticles.interaction.external.remove.min.js",
"browser": "index.js",
"module": "index.js",
"types": "index.d.ts",
"typesVersions": {
">=4.0 <4.1": {
"*": [
"dist/ts4.0"
]
},
">=3.8 <4.0": {
"*": [
"dist/ts3.8"
]
},
"<3.8": {
"*": [
"dist/ts3.4"
]
}
},
"module": "esm/index.js",
"types": "types/index.d.ts",
"dependencies": {
"tsparticles-engine": "^2.0.5"
"tsparticles-engine": "^2.0.6"
}
}

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

* How to use? : Check the GitHub README
* v2.0.5
* v2.0.6
*/

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

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

@@ -101,36 +101,9 @@ /******/ "use strict";

var external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_ = __webpack_require__(818);
;// CONCATENATED MODULE: ./dist/Remover.js
var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
function adopt(value) {
return value instanceof P ? value : new P(function (resolve) {
resolve(value);
});
}
;// CONCATENATED MODULE: ./dist/browser/Remover.js
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) {
try {
step(generator.next(value));
} catch (e) {
reject(e);
}
}
/**
* Particle attract manager
* @category Interactions
*/
function rejected(value) {
try {
step(generator["throw"](value));
} catch (e) {
reject(e);
}
}
function step(result) {
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
}
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
class Remover extends external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_.ExternalInteractorBase {

@@ -141,3 +114,5 @@ constructor(container) {

this.handleClickMode = mode => {
if (mode !== "remove") {
if (mode !== "remove"
/* remove */
) {
return;

@@ -157,10 +132,10 @@ }

reset() {}
reset() {// do nothing
}
interact() {
return __awaiter(this, void 0, void 0, function* () {});
async interact() {// do nothing
}
}
;// CONCATENATED MODULE: ./dist/index.js
;// CONCATENATED MODULE: ./dist/browser/index.js

@@ -167,0 +142,0 @@ function loadExternalRemoveInteraction(engine) {

@@ -1,2 +0,2 @@

/*! tsParticles Remove External Interaction v2.0.5 by Matteo Bruni */
!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 n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(this,(function(e){return(()=>{"use strict";var t={818:t=>{t.exports=e}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{n.r(o),n.d(o,{loadExternalRemoveInteraction:()=>i});var e=n(818),t=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{s(n.next(e))}catch(e){i(e)}}function c(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,c)}s((n=n.apply(e,t||[])).next())}))};class r extends e.ExternalInteractorBase{constructor(e){super(e),this.handleClickMode=e=>{if("remove"!==e)return;const t=this.container,r=t.actualOptions.interactivity.modes.remove.quantity;t.particles.removeQuantity(r)}}isEnabled(){return!0}reset(){}interact(){return t(this,void 0,void 0,(function*(){}))}}function i(e){e.addInteractor("externalRemove",(e=>new r(e)))}})(),o})()}));
/*! tsParticles Remove External Interaction v2.0.6 by Matteo Bruni */
!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:()=>r});var e=o(818);class t extends e.ExternalInteractorBase{constructor(e){super(e),this.handleClickMode=e=>{if("remove"!==e)return;const t=this.container,r=t.actualOptions.interactivity.modes.remove.quantity;t.particles.removeQuantity(r)}}isEnabled(){return!0}reset(){}async interact(){}}function r(e){e.addInteractor("externalRemove",(e=>new t(e)))}})(),n})()));

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