"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[4895],{24895:(e,t,n)=>{n.r(t),n.d(t,{default:()=>l});var o=n(7552),r=n(68446),a=n(75785),s=n(69500);const i=(0,a.n9)()(e=>({centerLineContainer:{background:"transparent",height:"100%",zIndex:4,position:"absolute",border:`1px ${e.palette.action.active} dashed`,borderTop:"none",borderBottom:"none",pointerEvents:"none"},centerLineText:{position:"absolute",pointerEvents:"none",whiteSpace:"nowrap",fontWeight:"bold"}})),l=(0,r.observer)(function({model:e}){const{bpPerPx:t,centerLineInfo:n,trackHeights:r,tracks:a,width:l}=e,c=(0,o.useRef)(null),{classes:d}=i(),h=l/2;return a.length?(0,s.jsx)("div",{"data-testid":"centerline_container",className:d.centerLineContainer,role:"presentation",ref:c,style:{left:`${h}px`,width:Math.max(1/t,1)},children:n&&(0,s.jsxs)("div",{"data-testid":"centerline_text",className:d.centerLineText,role:"presentation",style:{left:Math.max(1/t,1)+5,top:r},children:[n.refName,":"," ",Math.max(Math.round(n.offset)+1,0)]})}):null})}}]);
//# sourceMappingURL=4895.d8661943.chunk.js.map