@tsparticles/move-parallax
Advanced tools
Comparing version 3.4.0 to 3.5.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.loadParallaxMover = void 0; | ||
exports.loadParallaxMover = loadParallaxMover; | ||
const ParallaxMover_js_1 = require("./ParallaxMover.js"); | ||
@@ -10,2 +10,1 @@ async function loadParallaxMover(engine, refresh = true) { | ||
} | ||
exports.loadParallaxMover = loadParallaxMover; |
{ | ||
"name": "@tsparticles/move-parallax", | ||
"version": "3.4.0", | ||
"version": "3.5.0", | ||
"description": "tsParticles Parallax movement", | ||
@@ -62,3 +62,3 @@ "homepage": "https://particles.js.org", | ||
"dependencies": { | ||
"@tsparticles/engine": "^3.4.0" | ||
"@tsparticles/engine": "^3.5.0" | ||
}, | ||
@@ -65,0 +65,0 @@ "publishConfig": { |
@@ -7,3 +7,3 @@ /*! | ||
* How to use? : Check the GitHub README | ||
* v3.4.0 | ||
* v3.5.0 | ||
*/ | ||
@@ -10,0 +10,0 @@ /* |
/*! For license information please see tsparticles.move.parallax.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=>(()=>{var t={303: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,{loadParallaxMover:()=>r});var e=o(303);class t{init(){}isEnabled(t){return!(0,e.isSsr)()&&!t.destroyed&&t.container.actualOptions.interactivity.events.onHover.parallax.enable}move(t){const r=t.container,o=r.actualOptions.interactivity.events.onHover.parallax;if((0,e.isSsr)()||!o.enable)return;const n=o.force,i=r.interactivity.mouse.position;if(!i)return;const a=r.canvas.size,s=.5*a.width,l=.5*a.height,p=o.smooth,c=t.getRadius()/n,f=(i.x-s)*c,d=(i.y-l)*c,{offset:u}=t;u.x+=(f-u.x)/p,u.y+=(d-u.y)/p}}async function r(e,r=!0){await e.addMover("parallax",(()=>Promise.resolve(new t)),r)}})(),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=>(()=>{var t={303: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={};o.r(n),o.d(n,{loadParallaxMover:()=>s});var i=o(303);class a{init(){}isEnabled(e){return!(0,i.isSsr)()&&!e.destroyed&&e.container.actualOptions.interactivity.events.onHover.parallax.enable}move(e){const t=e.container,r=t.actualOptions.interactivity.events.onHover.parallax;if((0,i.isSsr)()||!r.enable)return;const o=r.force,n=t.interactivity.mouse.position;if(!n)return;const a=t.canvas.size,s=.5*a.width,l=.5*a.height,p=r.smooth,c=e.getRadius()/o,f=(n.x-s)*c,d=(n.y-l)*c,{offset:u}=e;u.x+=(f-u.x)/p,u.y+=(d-u.y)/p}}async function s(e,t=!0){await e.addMover("parallax",(()=>Promise.resolve(new a)),t)}return n})())); |
@@ -1,1 +0,1 @@ | ||
/*! tsParticles Parallax Move v3.4.0 by Matteo Bruni */ | ||
/*! tsParticles Parallax Move v3.5.0 by Matteo Bruni */ |
@@ -12,3 +12,3 @@ (function (factory) { | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.loadParallaxMover = void 0; | ||
exports.loadParallaxMover = loadParallaxMover; | ||
const ParallaxMover_js_1 = require("./ParallaxMover.js"); | ||
@@ -20,3 +20,2 @@ async function loadParallaxMover(engine, refresh = true) { | ||
} | ||
exports.loadParallaxMover = loadParallaxMover; | ||
}); |
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
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
297125
322
Updated@tsparticles/engine@^3.5.0