Mercurial > repos > fubar > jbrowse2
view x/static/js/8526.5dd9c712.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 |
line wrap: on
line source
"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[8526],{8526:(e,t,n)=>{n.r(t),n.d(t,{default:()=>i});var r=n(7552),l=n(20529),o=n(68446),a=n(26842);const i=(0,o.observer)((function(e){const{model:t}=e;return r.createElement("div",null,r.createElement(l.GQ,e),r.createElement(a.A,{model:t}))}))},26842:(e,t,n)=>{n.d(t,{A:()=>h});var r=n(7552),l=n(99546),o=n(68446),a=n(90461);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const c=e=>{const{color:t="rgb(255,255,255,0.8)"}=e;return r.createElement("rect",i({},e,(0,l.getFillProps)(t)))},s=(0,o.observer)((function({model:e,rowHeight:t,labelWidth:n,exportSVG:l}){const{needsCustomLegend:o,needsScalebar:a,needsFullHeightScalebar:i,rowHeightTooSmallForScalebar:s,renderColorBoxes:m,sources:u}=e,g=Math.min(t,12),h=t>11,d=m?15:0,f=n+d+5,p=(l?10:0)||(a&&!s?50:0);return u?r.createElement(r.Fragment,null,i?r.createElement(c,{y:0,x:p,width:f,height:(u.length+.25)*t}):null,u.map(((e,n)=>{const l=Math.min(20,t);return r.createElement(r.Fragment,{key:`${e.name}-${n}`},i?null:r.createElement(c,{y:n*t+1,x:p,width:f,height:l}),e.color?r.createElement(c,{y:n*t+1,x:p,width:d,height:o?t:l,color:e.color}):null,h?r.createElement("text",{y:n*t+13,x:p+d+2,fontSize:g},e.name):null)}))):null})),m=(0,o.observer)((({model:e})=>{const{ticks:t,scaleType:n}=e,{width:o}=(0,l.getContainingView)(e),a=`[${t?.values[0]}-${t?.values[1]}]${"log"===n?" (log scale)":""}`,i=(0,l.measureText)(a,14),s=o-i-25;return r.createElement(r.Fragment,null,r.createElement(c,{y:0,x:s,width:i+6,height:16}),r.createElement("text",{y:13,x:s},a))}));var u=n(58474);const g=(0,o.observer)((function({children:e,model:t,exportSVG:n}){const{height:o}=t;return n?e:r.createElement("svg",{style:{position:"absolute",top:0,left:0,pointerEvents:"none",height:o,width:(0,l.getContainingView)(t).width}},e)})),h=(0,o.observer)((function(e){const{model:t,orientation:n,exportSVG:o}=e,{stats:i,needsCustomLegend:c,needsFullHeightScalebar:h,rowHeightTooSmallForScalebar:d,rowHeight:f,sources:p,ticks:b}=t,w=Math.min(f,12),E=f>11,{width:x}=(0,l.getContainingView)(t);if(!i||!p)return null;const v=Math.max(...p.map((e=>(0,l.measureText)(e.name,w))).map((e=>E?e:20)));return r.createElement(g,e,h?r.createElement(r.Fragment,null,r.createElement("g",{transform:`translate(${o?0:(0,u.A3)(t)},0)`},r.createElement(a.A,{model:t,orientation:n})),r.createElement("g",{transform:`translate(${x-v-100},0)`},r.createElement(s,{exportSVG:o,model:t,rowHeight:12,labelWidth:v}))):r.createElement(r.Fragment,null,r.createElement(s,{exportSVG:o,model:t,rowHeight:t.rowHeight,labelWidth:v}),d||c?r.createElement(m,e):p.map(((e,l)=>r.createElement("g",{transform:`translate(0 ${f*l})`,key:`${JSON.stringify(b)}-${l}`},r.createElement(a.A,{model:t,orientation:n}))))))}))},58474:(e,t,n)=>{n.d(t,{A3:()=>c,BO:()=>o,oJ:()=>a});var r=n(99546),l=n(68584);function o(e,t,n=1){const r=t.map((t=>e.findIndex((e=>e.name===t)))).sort(((e,t)=>e-t));let l=0;for(const t of r){const r=Math.max(l,t-n);r>=l&&e.splice(r,0,e.splice(t,1)[0]),l+=1}return e}function a(e,t,n=1){const r=t.map((t=>e.findIndex((e=>e.name===t)))).sort(((e,t)=>t-e));let l=e.length-1;for(const t of r){const r=Math.min(l,t+n);r<=l&&e.splice(r,0,e.splice(t,1)[0]),l-=1}return e}const i=12.8;function c(e){const{prefersOffset:t}=e,{trackLabels:n}=(0,r.getContainingView)(e),o=(0,r.getContainingTrack)(e),a=(0,l.getConf)(o,"name");return"overlapping"!==n||t?10:(0,r.measureText)(a,i)+100}}}]); //# sourceMappingURL=8526.5dd9c712.chunk.js.map