Mercurial > repos > fubar > jbrowse2
view x/static/js/8859.efb2561f.chunk.js @ 133:cec274db51c0 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 7d28252954cae9f8db5f8a85d8f29cb2865b504b-dirty
author | fubar |
---|---|
date | Fri, 18 Oct 2024 11:57:55 +0000 |
parents | 49f3d3878413 |
children |
line wrap: on
line source
"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[8859],{78859:(e,r,t)=>{t.r(r),t.d(r,{default:()=>g});var a=t(7552),n=t(59705),s=t(36715),i=t(1343),o=t(29499),l=t(29629),c=t(33371),m=t(32808),u=t(58507),d=t(5401),h=t(49823),p=t(99546);function v(){return a.createElement("div",null,a.createElement(n.A,{size:20,style:{marginRight:20}}),a.createElement(s.A,{display:"inline"},"Creating SVG"))}function f({children:e,...r}){return a.createElement("div",null,a.createElement(i.A,r,e))}function y(e,r){return(0,p.useLocalStorage)(`svg-${e}`,r)}function g({model:e,handleClose:r}){const t=(0,p.getSession)(e),n="undefined"!=typeof OffscreenCanvas,[i,g]=(0,a.useState)(n),[k,b]=(0,a.useState)(!1),[A,S]=(0,a.useState)(),[x,w]=y("file","jbrowse.svg"),[C,E]=y("theme",t.themeName||"default");return a.createElement(h.Dialog,{open:!0,onClose:r,title:"Export SVG"},a.createElement(o.A,null,A?a.createElement(h.ErrorMessage,{error:A}):k?a.createElement(v,null):null,a.createElement(f,{helperText:"filename",value:x,onChange:e=>{w(e.target.value)}}),t.allThemes?a.createElement(f,{select:!0,label:"Theme",value:C,onChange:e=>{E(e.target.value)}},Object.entries(t.allThemes()).map((([e,r])=>a.createElement(l.A,{key:e,value:e},r.name||"(Unknown name)")))):null,n?a.createElement(c.A,{control:a.createElement(m.A,{checked:i,onChange:()=>{g((e=>!e))}}),label:"Rasterize canvas based tracks? File may be much larger if this is turned off"}):a.createElement(s.A,null,"Note: rasterizing layers not yet supported in this browser, so SVG size may be large")),a.createElement(u.A,null,a.createElement(d.A,{variant:"contained",color:"secondary",onClick:()=>{r()}},"Cancel"),a.createElement(d.A,{variant:"contained",color:"primary",type:"submit",onClick:async()=>{b(!0),S(void 0);try{await e.exportSvg({rasterizeLayers:i,filename:x,themeName:C}),r()}catch(e){console.error(e),S(e)}finally{b(!1)}}},"Submit")))}},59705:(e,r,t)=>{t.d(r,{A:()=>A});var a=t(7552),n=t(93878),s=t(70799),i=t(64761),o=t(51148),l=t(60129),c=t(4785),m=t(15622),u=t(58520),d=t(72489),h=t(69500);const p=i.i7` 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } `,v=i.i7` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; } 50% { stroke-dasharray: 100px, 200px; stroke-dashoffset: -15px; } 100% { stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } `,f="string"!=typeof p?i.AH` animation: ${p} 1.4s linear infinite; `:null,y="string"!=typeof v?i.AH` animation: ${v} 1.4s ease-in-out infinite; `:null,g=(0,o.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,r[t.variant],r[`color${(0,m.A)(t.color)}`]]}})((0,l.A)((({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:f||{animation:`${p} 1.4s linear infinite`}},...Object.entries(e.palette).filter((0,u.A)()).map((([r])=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})))]})))),k=(0,o.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,r)=>r.svg})({display:"block"}),b=(0,o.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.circle,r[`circle${(0,m.A)(t.variant)}`],t.disableShrink&&r.circleDisableShrink]}})((0,l.A)((({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink,style:y||{animation:`${v} 1.4s ease-in-out infinite`}}]})))),A=a.forwardRef((function(e,r){const t=(0,c.b)({props:e,name:"MuiCircularProgress"}),{className:a,color:i="primary",disableShrink:o=!1,size:l=40,style:u,thickness:p=3.6,value:v=0,variant:f="indeterminate",...y}=t,A={...t,color:i,disableShrink:o,size:l,thickness:p,value:v,variant:f},S=(e=>{const{classes:r,variant:t,color:a,disableShrink:n}=e,i={root:["root",t,`color${(0,m.A)(a)}`],svg:["svg"],circle:["circle",`circle${(0,m.A)(t)}`,n&&"circleDisableShrink"]};return(0,s.A)(i,d.b,r)})(A),x={},w={},C={};if("determinate"===f){const e=2*Math.PI*((44-p)/2);x.strokeDasharray=e.toFixed(3),C["aria-valuenow"]=Math.round(v),x.strokeDashoffset=`${((100-v)/100*e).toFixed(3)}px`,w.transform="rotate(-90deg)"}return(0,h.jsx)(g,{className:(0,n.A)(S.root,a),style:{width:l,height:l,...w,...u},ownerState:A,ref:r,role:"progressbar",...C,...y,children:(0,h.jsx)(k,{className:S.svg,ownerState:A,viewBox:"22 22 44 44",children:(0,h.jsx)(b,{className:S.circle,style:x,ownerState:A,cx:44,cy:44,r:(44-p)/2,fill:"none",strokeWidth:p})})})}))},72489:(e,r,t)=>{t.d(r,{A:()=>i,b:()=>s});var a=t(33761),n=t(85693);function s(e){return(0,n.Ay)("MuiCircularProgress",e)}const i=(0,a.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"])}}]); //# sourceMappingURL=8859.efb2561f.chunk.js.map