"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[2710],{12710:function(e,t,n){n.r(t),n.d(t,{renderSvg:function(){return u}});var r=n(32723),a=n(34795),i=(n(30969),n(81073)),c=n(37574);function s(e){var t="undefined"===typeof jest;return"arc-clip-".concat(t?e:"jest")}function u(e,t,n){return h.apply(this,arguments)}function h(){return(h=(0,a.Z)((0,r.Z)().mark((function e(t,a,u){var h,d,o,l,p,f,g,x;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(h=(0,i.getContainingView)(t),d=h.dynamicBlocks.totalWidthPx,o=t.height,!a.rasterizeLayers){e.next=15;break}if((l=document.createElement("canvas")).width=2*d,l.height=2*o,p=l.getContext("2d")){e.next=10;break}return e.abrupt("return");case 10:return p.scale(2,2),u(t,p,d,o),e.abrupt("return",(0,c.jsx)("image",{width:d,height:o,xlinkHref:l.toDataURL("image/png")}));case 15:return e.next=17,n.e(9062).then(n.t.bind(n,39062,23));case 17:return f=e.sent,g=new f.default(d,o),u(t,g,d,o),x=s(t.id),e.abrupt("return",(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("defs",{children:(0,c.jsx)("clipPath",{id:x,children:(0,c.jsx)("rect",{x:0,y:0,width:d,height:o})})}),(0,c.jsx)("g",{dangerouslySetInnerHTML:{__html:g.getSvg().innerHTML},clipPath:"url(#".concat(x,")")})]}));case 22:case"end":return e.stop()}}),e)})))).apply(this,arguments)}}}]);
//# sourceMappingURL=2710.f5c87406.chunk.js.map