spin.js v4.1.1 -> v4.1.2

This commit is contained in:
nobody 2024-08-10 07:40:21 +02:00
parent 975f5a217b
commit 4819849b15
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
5 changed files with 4 additions and 3 deletions

View File

@ -1295,7 +1295,7 @@ https://cdnjs.cloudflare.com/ajax/libs/socket.io/3.1.3/socket.io.min.js
https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.7.5/socket.io.min.js
https://cdnjs.cloudflare.com/ajax/libs/spin.js/2.3.2/spin.min.js
https://cdnjs.cloudflare.com/ajax/libs/spin.js/3.1.0/spin.min.js
https://cdnjs.cloudflare.com/ajax/libs/spin.js/4.1.1/spin.min.js
https://cdnjs.cloudflare.com/ajax/libs/spin.js/4.1.2/spin.min.js
https://cdnjs.cloudflare.com/ajax/libs/stickyfill/1.1.4/stickyfill.min.js
https://cdnjs.cloudflare.com/ajax/libs/stickyfill/2.1.0/stickyfill.min.js
https://cdnjs.cloudflare.com/ajax/libs/sticky-js/1.3.0/sticky.min.js

View File

@ -431,7 +431,7 @@ targets.setLastVersion = function (type, version) {
if (type.startsWith('/socket.io/4.')) return '4.7.5';
if (type.startsWith('/spin.js/2.')) return '2.3.2';
if (type.startsWith('/spin.js/3.')) return '3.1.0';
if (type.startsWith('/spin.js/4.')) return '4.1.1';
if (type.startsWith('/spin.js/4.')) return '4.1.2';
if (type.startsWith('/stickyfill/1.')) return '1.1.4';
if (type.startsWith('/stickyfill/2.')) return '2.1.0';
if (type.startsWith('/sticky-js/')) return '1.3.0';

View File

@ -49,6 +49,7 @@
<li>p5.js v1.9.4 -> v1.10.0</li>
<li>react-router v6.24.1 -> v6.26.0</li>
<li>search-insights v2.15.0 -> v2.16.2</li>
<li>spin.js v4.1.1 -> v4.1.2</li>
</ul>
<p>Added</p>
<ul>

View File

@ -1 +0,0 @@
var __assign=this&&this.__assign||function(){return(__assign=Object.assign||function(t){for(var e,n=1,s=arguments.length;n<s;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},defaults={lines:12,length:7,width:5,radius:10,scale:1,corners:1,color:"#000",fadeColor:"transparent",animation:"spinner-line-fade-default",rotate:0,direction:1,speed:1,zIndex:2e9,className:"spinner",top:"50%",left:"50%",shadow:"0 0 1px transparent",position:"absolute"},Spinner=function(){function t(t){void 0===t&&(t={}),this.opts=__assign(__assign({},defaults),t)}return t.prototype.spin=function(t){return this.stop(),this.el=document.createElement("div"),this.el.className=this.opts.className,this.el.setAttribute("role","progressbar"),css(this.el,{position:this.opts.position,width:0,zIndex:this.opts.zIndex,left:this.opts.left,top:this.opts.top,transform:"scale("+this.opts.scale+")"}),t&&t.insertBefore(this.el,t.firstChild||null),drawLines(this.el,this.opts),this},t.prototype.stop=function(){return this.el&&(("undefined"!=typeof requestAnimationFrame?cancelAnimationFrame:clearTimeout)(this.animateId),this.el.parentNode&&this.el.parentNode.removeChild(this.el),this.el=void 0),this},t}();function css(t,e){for(var n in e)t.style[n]=e[n];return t}function getColor(t,e){return"string"==typeof t?t:t[e%t.length]}function drawLines(t,e){var n=Math.round(e.corners*e.width*500)/1e3+"px",s="none";!0===e.shadow?s="0 2px 4px #000":"string"==typeof e.shadow&&(s=e.shadow);for(var i=parseBoxShadow(s),o=0;o<e.lines;o++){var r=~~(360/e.lines*o+e.rotate),a=css(document.createElement("div"),{position:"absolute",top:-e.width/2+"px",width:e.length+e.width+"px",height:e.width+"px",background:getColor(e.fadeColor,o),borderRadius:n,transformOrigin:"left",transform:"rotate("+r+"deg) translateX("+e.radius+"px)"}),d=o*e.direction/e.lines/e.speed;d-=1/e.speed;d=css(document.createElement("div"),{width:"100%",height:"100%",background:getColor(e.color,o),borderRadius:n,boxShadow:normalizeShadow(i,r),animation:1/e.speed+"s linear "+d+"s infinite "+e.animation});a.appendChild(d),t.appendChild(a)}}function parseBoxShadow(t){for(var e=/^\s*([a-zA-Z]+\s+)?(-?\d+(\.\d+)?)([a-zA-Z]*)\s+(-?\d+(\.\d+)?)([a-zA-Z]*)(.*)$/,n=[],s=0,i=t.split(",");s<i.length;s++){var o,r,a,d,h=i[s].match(e);null!==h&&(o=+h[2],r=+h[5],a=h[4],d=h[7],(a=0==o&&!a?d:a)===(d=0==r&&!d?a:d)&&n.push({prefix:h[1]||"",x:o,y:r,xUnits:a,yUnits:d,end:h[8]}))}return n}function normalizeShadow(t,e){for(var n=[],s=0,i=t;s<i.length;s++){var o=i[s],r=convertOffset(o.x,o.y,e);n.push(o.prefix+r[0]+o.xUnits+" "+r[1]+o.yUnits+o.end)}return n.join(", ")}function convertOffset(t,e,n){var s=n*Math.PI/180,n=Math.sin(s),s=Math.cos(s);return[Math.round(1e3*(t*s+e*n))/1e3,Math.round(1e3*(-t*n+e*s))/1e3]}export{Spinner};

View File

@ -0,0 +1 @@
var __assign=this&&this.__assign||function(){return(__assign=Object.assign||function(t){for(var e,s=1,n=arguments.length;s<n;s++)for(var i in e=arguments[s])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},defaults={lines:12,length:7,width:5,radius:10,scale:1,corners:1,color:"#000",fadeColor:"transparent",animation:"spinner-line-fade-default",rotate:0,direction:1,speed:1,zIndex:2e9,className:"spinner",top:"50%",left:"50%",shadow:"0 0 1px transparent",position:"absolute"},Spinner=function(){function t(t){void 0===t&&(t={}),this.opts=__assign(__assign({},defaults),t)}return t.prototype.spin=function(t){return this.stop(),this.el=document.createElement("div"),this.el.className=this.opts.className,this.el.setAttribute("role","progressbar"),this.el.style.position=this.opts.position,this.el.style.width="0",this.el.style.zIndex=this.opts.zIndex.toString(),this.el.style.left=this.opts.left,this.el.style.top=this.opts.top,this.el.style.transform="scale(".concat(this.opts.scale,")"),t&&t.insertBefore(this.el,t.firstChild||null),drawLines(this.el,this.opts),this},t.prototype.stop=function(){return this.el&&(this.el.parentNode&&this.el.parentNode.removeChild(this.el),this.el=void 0),this},t}();function getColor(t,e){return"string"==typeof t?t:t[e%t.length]}function drawLines(t,e){for(var s=Math.round(e.corners*e.width*500)/1e3+"px",n="none",i=(!0===e.shadow?n="0 2px 4px #000":"string"==typeof e.shadow&&(n=e.shadow),parseBoxShadow(n)),o=0;o<e.lines;o++){var r=~~(360/e.lines*o+e.rotate),a=document.createElement("div"),l=(a.style.position="absolute",a.style.top="".concat(-e.width/2,"px"),a.style.width=e.length+e.width+"px",a.style.height=e.width+"px",a.style.background=getColor(e.fadeColor,o),a.style.borderRadius=s,a.style.transformOrigin="left",a.style.transform="rotate(".concat(r,"deg) translateX(").concat(e.radius,"px)"),o*e.direction/e.lines/e.speed),h=(l-=1/e.speed,document.createElement("div"));h.style.width="100%",h.style.height="100%",h.style.background=getColor(e.color,o),h.style.borderRadius=s,h.style.boxShadow=normalizeShadow(i,r),h.style.animation="".concat(1/e.speed,"s linear ").concat(l,"s infinite ").concat(e.animation),a.appendChild(h),t.appendChild(a)}}function parseBoxShadow(t){for(var e=/^\s*([a-zA-Z]+\s+)?(-?\d+(\.\d+)?)([a-zA-Z]*)\s+(-?\d+(\.\d+)?)([a-zA-Z]*)(.*)$/,s=[],n=0,i=t.split(",");n<i.length;n++){var o,r,a,l,h=i[n].match(e);null!==h&&(o=+h[2],r=+h[5],a=h[4],l=h[7],(a=0!=o||a?a:l)===(l=0!=r||l?l:a)&&s.push({prefix:h[1]||"",x:o,y:r,xUnits:a,yUnits:l,end:h[8]}))}return s}function normalizeShadow(t,e){for(var s=[],n=0,i=t;n<i.length;n++){var o=i[n],r=convertOffset(o.x,o.y,e);s.push(o.prefix+r[0]+o.xUnits+" "+r[1]+o.yUnits+o.end)}return s.join(", ")}function convertOffset(t,e,s){var s=s*Math.PI/180,n=Math.sin(s),s=Math.cos(s);return[Math.round(1e3*(t*s+e*n))/1e3,Math.round(1e3*(-t*n+e*s))/1e3]}export{Spinner};