comparison x/static/js/9088.9fbbeb5c.chunk.js @ 125:49f3d3878413 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 5ea1f9c1eef1de76232e69aa6d34cda77d90d566
author fubar
date Sat, 05 Oct 2024 23:58:05 +0000
parents
children
comparison
equal deleted inserted replaced
124:137e08517410 125:49f3d3878413
1 "use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[9088],{49088:(e,a,c)=>{c.d(a,{makeImageData:()=>M});var n=c(99546),t=c(68584),d=c(3496),r=c(87485),b=c(20314),o=c(61300),f=c(90493),i=c(6219),u=c(45824),l=c(35873);function s(){var e,a,c,n,t,d=0,r=1,i=f.D_,u=!1;function l(a){return null==a||isNaN(a=+a)?t:i(0===c?.5:(a=(n(a)-e)*c,u?Math.max(0,Math.min(1,a)):a))}function s(e){return function(a){var c,n;return arguments.length?([c,n]=a,i=e(c,n),l):[i(0),i(1)]}}return l.domain=function(t){return arguments.length?([d,r]=t,e=n(d=+d),a=n(r=+r),c=e===a?0:1/(a-e),l):[d,r]},l.clamp=function(e){return arguments.length?(u=!!e,l):u},l.interpolator=function(e){return arguments.length?(i=e,l):i},l.range=s(b.A),l.rangeRound=s(o.A),l.unknown=function(e){return arguments.length?(t=e,l):t},function(t){return n=t,e=t(d),a=t(r),c=e===a?0:1/(a-e),l}}function g(e,a){return a.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function h(){var e=(0,u.C)(s()(f.D_));return e.copy=function(){return g(e,h())},i.K.apply(e,arguments)}function m(){var e=(0,l.g)(s()).domain([1,10]);return e.copy=function(){return g(e,m()).base(e.base())},i.K.apply(e,arguments)}var p=c(20095);const w=function(e){const a=e.length;return function(c){return e[Math.max(0,Math.min(a-1,Math.floor(c*a)))]}}(function(e){const a=new Array(256);let c=0;for(;c<256;)a[c]=`#${e.slice(6*c,6*++c)}`;return a}("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));async function M(e,a){const{features:c,config:b,bpPerPx:o,signal:f,resolution:i,sessionId:u,adapterConfig:l,useLogScale:s,colorScheme:g,regions:M,pluginManager:k}=a,v=M[0],{dataAdapter:x}=await(0,d.cK)(k,u,l),C=await x.getResolution(o/i),y=(v.end-v.start)/o,j=C/(o*Math.sqrt(2)),D=(0,r.M)((0,t.readConfObject)(b,"baseColor")),P=Math.floor(v.start/C);if(c.length){let a=0,d=0,r=0;await(0,n.abortBreakPoint)(f);for(const{bin1:e,bin2:n,counts:t}of c)a=Math.max(t,a),d=Math.min(Math.min(e,n),d),r=Math.max(Math.max(e,n),r);await(0,n.abortBreakPoint)(f);const o={juicebox:["rgba(0,0,0,0)","red"],fall:(0,p.Ik)(["rgb(255, 255, 255)","rgb(255, 255, 204)","rgb(255, 237, 160)","rgb(254, 217, 118)","rgb(254, 178, 76)","rgb(253, 141, 60)","rgb(252, 78, 42)","rgb(227, 26, 28)","rgb(189, 0, 38)","rgb(128, 0, 38)","rgb(0, 0, 0)"]),viridis:w},i=s?a:a/20,u=o[g]||o.juicebox,l=s?m(u).domain([1,i]):h(u).domain([0,i]);e.save(),!0===v.reversed&&(e.scale(-1,1),e.translate(-y,0)),e.rotate(-Math.PI/4);let M=Date.now();for(const{bin1:d,bin2:r,counts:o}of c)e.fillStyle=(0,t.readConfObject)(b,"color",{count:o,maxScore:a,baseColor:D,scale:l,useLogScale:s}),e.fillRect((d-P)*j,(r-P)*j,j,j),+Date.now()-M>400&&(await(0,n.abortBreakPoint)(f),M=+Date.now());e.restore()}}}}]);
2 //# sourceMappingURL=9088.9fbbeb5c.chunk.js.map