tsparticles-interaction-external-push
Advanced tools
Comparing version 2.0.5 to 2.0.6
{ | ||
"name": "tsparticles-interaction-external-push", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"description": "tsParticles push 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.push.min.js", | ||
"unpkg": "tsparticles.interaction.external.push.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,37 +101,10 @@ /******/ "use strict"; | ||
var external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_ = __webpack_require__(818); | ||
;// CONCATENATED MODULE: ./dist/Pusher.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/Pusher.js | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { | ||
try { | ||
step(generator.next(value)); | ||
} catch (e) { | ||
reject(e); | ||
} | ||
} | ||
function rejected(value) { | ||
try { | ||
step(generator["throw"](value)); | ||
} catch (e) { | ||
reject(e); | ||
} | ||
} | ||
/** | ||
* Particle attract manager | ||
* @category Interactions | ||
*/ | ||
function step(result) { | ||
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); | ||
} | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
class Pusher extends external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_.ExternalInteractorBase { | ||
@@ -142,3 +115,5 @@ constructor(container) { | ||
this.handleClickMode = mode => { | ||
if (mode !== "push") { | ||
if (mode !== "push" | ||
/* push */ | ||
) { | ||
return; | ||
@@ -166,47 +141,13 @@ } | ||
reset() {} | ||
reset() {// do nothing | ||
} | ||
interact() { | ||
return __awaiter(this, void 0, void 0, function* () {}); | ||
async interact() {// do nothing | ||
} | ||
} | ||
;// CONCATENATED MODULE: ./dist/index.js | ||
var dist_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/index.js | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { | ||
try { | ||
step(generator.next(value)); | ||
} catch (e) { | ||
reject(e); | ||
} | ||
} | ||
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()); | ||
}); | ||
}; | ||
function loadExternalPushInteraction(engine) { | ||
return dist_awaiter(this, void 0, void 0, function* () { | ||
yield engine.addInteractor("externalPush", container => new Pusher(container)); | ||
}); | ||
async function loadExternalPushInteraction(engine) { | ||
await engine.addInteractor("externalPush", container => new Pusher(container)); | ||
} | ||
@@ -213,0 +154,0 @@ })(); |
@@ -1,2 +0,2 @@ | ||
/*! tsParticles Push 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 n="object"==typeof exports?t(require("tsparticles-engine")):t(e.window);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(this,(function(e){return(()=>{"use strict";var t={818:t=>{t.exports=e}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,r),i.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{r.r(o),r.d(o,{loadExternalPushInteraction:()=>c});var e=r(818),t=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function c(e){try{u(r.next(e))}catch(e){i(e)}}function a(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(c,a)}u((r=r.apply(e,t||[])).next())}))};class n extends e.ExternalInteractorBase{constructor(t){super(t),this.handleClickMode=t=>{if("push"!==t)return;const n=this.container,r=n.actualOptions,o=r.interactivity.modes.push.quantity;if(o<=0)return;const i=r.interactivity.modes.push,c=(0,e.itemFromArray)([void 0,...i.groups]),a=void 0!==c?n.actualOptions.particles.groups[c]:void 0;n.particles.push(o,n.interactivity.mouse,a,c)}}isEnabled(){return!0}reset(){}interact(){return t(this,void 0,void 0,(function*(){}))}}var i=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function c(e){try{u(r.next(e))}catch(e){i(e)}}function a(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(c,a)}u((r=r.apply(e,t||[])).next())}))};function c(e){return i(this,void 0,void 0,(function*(){yield e.addInteractor("externalPush",(e=>new n(e)))}))}})(),o})()})); | ||
/*! tsParticles Push 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,{loadExternalPushInteraction:()=>r});var e=o(818);class t extends e.ExternalInteractorBase{constructor(t){super(t),this.handleClickMode=t=>{if("push"!==t)return;const r=this.container,o=r.actualOptions,n=o.interactivity.modes.push.quantity;if(n<=0)return;const i=o.interactivity.modes.push,s=(0,e.itemFromArray)([void 0,...i.groups]),a=void 0!==s?r.actualOptions.particles.groups[s]:void 0;r.particles.push(n,r.interactivity.mouse,a,s)}}isEnabled(){return!0}reset(){}async interact(){}}async function r(e){await e.addInteractor("externalPush",(e=>new t(e)))}})(),n})())); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
294607
320
1
Updatedtsparticles-engine@^2.0.6