IOPaint/lama_cleaner/app/build/static/js/main.56b43b57.chunk.js.map

1 line
42 KiB
Plaintext
Raw Normal View History

2021-11-15 08:22:34 +01:00
{"version":3,"sources":["components/Button.tsx","components/FileSelect.tsx","utils.ts","adapters/inpainting.ts","components/Slider.tsx","Editor.tsx","App.tsx","index.tsx"],"names":["Button","props","children","className","disabled","icon","primary","onClick","onDown","onUp","useState","active","setActive","background","role","onKeyDown","onPointerDown","ev","nativeEvent","onPointerUp","tabIndex","join","FileSelect","onSelection","dragHover","setDragHover","Math","random","toString","uploadElemId","onFileSelected","file","type","match","size","Error","e","alert","message","getFile","entry","a","Promise","resolve","getAllFileEntries","items","fileEntries","queue","i","length","push","webkitGetAsEntry","shift","isFile","isDirectory","readAllDirectoryEntries","createReader","directoryReader","entries","readEntriesPromise","readEntries","reject","preventDefault","dataTransfer","htmlFor","onDrop","onDragOver","stopPropagation","onDragLeave","id","name","onChange","currentTarget","files","accept","dataURItoBlob","dataURI","mime","split","binary","atob","array","charCodeAt","Blob","Uint8Array","loadImage","image","src","initSRC","img","onload","onerror","err","resizeImageFile","maxSize","reader","FileReader","Image","canvas","document","createElement","readerEvent","width","height","resized","getContext","drawImage","blob","toDataURL","File","originalWidth","originalHeight","resize","target","result","readAsDataURL","API_ENDPOINT","process","inpaint","imageFile","maskBase64","fd","FormData","append","mask","fetch","method","body","then","r","res","URL","createObjectURL","Slider","value","label","min","max","step","parseInt","BRUSH_COLOR","drawLines","ctx","lines","color","strokeStyle","lineCap","lineJoin","forEach","line","pts","lineWidth","beginPath","moveTo","x","y","pt","lineTo","stroke","Editor","brushSize","setBrushSize","isLoaded","setIsLoaded","useEffect","useImage","original","isOriginalLoaded","renders","setRenders","context","setContext","maskCanvas","setLines","setCoords","showBrush","setShowBrush","showOriginal","setShowOriginal","isInpaintingLoading","setIsInpaintingLoading","showSeparator","setShowSeparator","scale","setScale","windowSize","useWindowSize","draw","useCallback","clearRect","currRender","currentLine","refreshCanvasMask","naturalWidth","naturalHeight","rW","rH","onMouseMove","pageX","pageY","onPaint","px","py","onMouseDrag","offsetX","offsetY","removeEventListener","window","Date","now","newRender","addEventListener","onTouchMove","currLine","coords","getBoundingClientRect","touches","clientX","clientY","onPointerStart","onmouseenter","onmouseleave","onmousedown","undo","l","pop","handler","event","metaKey","ctrlKey","key","style","undefined","transform","transformOrigin","cursor","ref","round","transitionProperty","transitionTimingFunction","transitionDuration","alt","maxWidth","left","top","viewBox","fill","xmlns","d","setTimeout","base64","uri","link","href","download","dispatchEvent","MouseEvent","bubbles","cancelable","view","remove","downloadImage","replace","App","setFile","f","resizedFile","ReactDOM","render","getElementById"],"mappings":"uOAae,SAASA,EAAOC,GAC7B,IACEC,EAQED,EARFC,SACAC,EAOEF,EAPFE,UACAC,EAMEH,EANFG,SACAC,EAKEJ,EALFI,KACAC,EAIEL,EAJFK,QACAC,EAGEN,EAHFM,QACAC,EAEEP,EAFFO,OACAC,EACER,EADFQ,KAEF,EAA4BC,oBAAS,GAArC,mBAAOC,EAAP,KAAeC,EAAf,KACIC,EAAa,GAUjB,OATIP,IAAYF,IACdS,EAAa,8CAEXF,IACFE,EAAa,uBAEVP,GAAYK,IACfE,EAAa,oBAGb,sBACEC,KAAK,SACLC,UAAWR,EACXA,QAASA,EACTS,cAAe,SAACC,GACdL,GAAU,GACJ,OAANJ,QAAM,IAANA,KAASS,EAAGC,cAEdC,YAAa,SAACF,GACZL,GAAU,GACN,OAAJH,QAAI,IAAJA,KAAOQ,EAAGC,cAEZE,UAAW,EACXjB,UAAW,CACT,kDACAD,EAAW,YAAc,GACzBW,EACAT,EAAW,iCAAmC,GAC9CD,GACAkB,KAAK,KAnBT,UAqBGhB,EACD,sBAAMF,UAAU,gCAAhB,SAAiDD,O,WCpDxC,SAASoB,EAAWrB,GACjC,IAAQsB,EAAgBtB,EAAhBsB,YAER,EAAkCb,oBAAS,GAA3C,mBAAOc,EAAP,KAAkBC,EAAlB,KACA,EAAuBf,mBAAS,eAAD,OAAgBgB,KAAKC,SAASC,aAAtDC,EAAP,oBAEA,SAASC,EAAeC,GACtB,GAAKA,GAIWA,EAAKC,KAAKC,MAAM,WAIhC,IAEE,GAAIF,EAAKG,KAAO,SACd,MAAM,IAAIC,MAAM,kBAElBZ,EAAYQ,GACZ,MAAOK,GAEPC,MAAM,UAAD,OAAYD,EAAUE,WAvB0B,SA2B1CC,EA3B0C,8EA2BzD,WAAuBC,GAAvB,SAAAC,EAAA,+EACS,IAAIC