"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[9070],{9070:(e,t,a)=>{a.d(t,{doAfterAttach:()=>o});var n=a(99546),i=a(86576),s=a(91468);function o(e,t){function a(a){const n=e.ref;if(!n)return;const i=n.getContext("2d");i&&e.chainData&&(i.clearRect(0,0,n.width,2*e.height),i.resetTransform(),i.scale(2,2),t(e,i,n.width,e.height),e.setLastDrawnOffsetPx(a.offsetPx),e.setLastDrawnBpPerPx(a.bpPerPx))}(0,i.vi)(e,async()=>{await async function(e){const t=(0,s.getRpcSessionId)(e),{rpcManager:a}=(0,n.getSession)(e),i=(0,n.getContainingView)(e);if(!i.initialized||e.error||!e.statsReadyAndRegionNotTooLarge)return;e.setLoading(!0);const o=await a.call(t,"PileupGetReducedFeatures",{sessionId:t,regions:i.staticBlocks.contentBlocks,filterBy:e.filterBy,adapterConfig:e.adapterConfig});e.setChainData(o),e.setLoading(!1)}(e)},{delay:1e3}),(0,i.vi)(e,async()=>{const t=(0,n.getContainingView)(e);t.bpPerPx!==e.lastDrawnBpPerPx&&a(t)}),(0,i.vi)(e,async()=>{a((0,n.getContainingView)(e))},{delay:1e3})}}}]);
//# sourceMappingURL=9070.25627503.chunk.js.map