WordPress/wp-includes/js/jquery/ui/effect-explode.min.js
desrosj 26335af1ac Build/Test Tools: Update devDependencies.
This updates the following `devDependencies`:

- `dotenv` from `16.4.5` to `16.4.7`
- `dotenv-expand` from `11.0.6` to `12.0.1`
- `postcss` from `8.4.47` to `8.4.49`
- `qunit` from `2.22.0` to `2.23.1`
- `sass` from `1.79.4` to `1.79.6`
- `terser-webpack-plugin` from `5.3.10` to `5.3.11`
- `uglify-js` from `3.17.4` to `3.19.3`
- `uuid` from `9.0.1` to `11.0.3`
- `webpack` from `5.90.2` to `5.97.1`

Additionally, `npm audit fix` has been run.

Follow up to [58585].

See #62220.
Built from https://develop.svn.wordpress.org/trunk@59509


git-svn-id: http://core.svn.wordpress.org/trunk@58895 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-13 19:06:24 +00:00

9 lines
1.1 KiB
JavaScript

/*!
* jQuery UI Effects Explode 1.13.3
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
* https://jquery.org/license
*/
(e=>{"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)})(function(b){return b.effects.define("explode","hide",function(e,i){var t,o,s,n,f,d,a=e.pieces?Math.round(Math.sqrt(e.pieces)):3,l=a,c=b(this),h="show"===e.mode,p=c.show().css("visibility","hidden").offset(),r=Math.ceil(c.outerWidth()/l),u=Math.ceil(c.outerHeight()/a),v=[];function y(){v.push(this),v.length===a*l&&(c.css({visibility:"visible"}),b(v).remove(),i())}for(t=0;t<a;t++)for(n=p.top+t*u,d=t-(a-1)/2,o=0;o<l;o++)s=p.left+o*r,f=o-(l-1)/2,c.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-o*r,top:-t*u}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:r,height:u,left:s+(h?f*r:0),top:n+(h?d*u:0),opacity:h?0:1}).animate({left:s+(h?0:f*r),top:n+(h?0:d*u),opacity:h?1:0},e.duration||500,e.easing,y)})});