mirror of
				https://github.com/SoPat712/dotfiles.git
				synced 2025-10-31 12:54:13 -04:00 
			
		
		
		
	vuetorrent and theme updates
This commit is contained in:
		
							
								
								
									
										1
									
								
								qbit/vuetorrent/public/assets/CanvasPool-BAToQajg.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								qbit/vuetorrent/public/assets/CanvasPool-BAToQajg.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| import{D as n,n as c}from"./TorrentDetail-CoyYqyCA.js";class l{constructor(a){this._canvasPool=Object.create(null),this.canvasOptions=a||{},this.enableFullScreen=!1}_createCanvasAndContext(a,t){const s=n.get().createCanvas();s.width=a,s.height=t;const e=s.getContext("2d");return{canvas:s,context:e}}getOptimalCanvasAndContext(a,t,s=1){a=Math.ceil(a*s-1e-6),t=Math.ceil(t*s-1e-6),a=c(a),t=c(t);const e=(a<<17)+(t<<1);this._canvasPool[e]||(this._canvasPool[e]=[]);let o=this._canvasPool[e].pop();return o||(o=this._createCanvasAndContext(a,t)),o}returnCanvasAndContext(a){const t=a.canvas,{width:s,height:e}=t,o=(s<<17)+(e<<1);a.context.clearRect(0,0,s,e),this._canvasPool[o].push(a)}clear(){this._canvasPool={}}}const C=new l;export{C}; | ||||
		Reference in New Issue
	
	Block a user
	 Josh Patra
					Josh Patra