Mercurial > repos > fubar > jbrowse2
view x/static/js/7627.31dfd44e.chunk.js.map @ 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
{"version":3,"file":"static/js/7627.31dfd44e.chunk.js","mappings":"iMAUOA,eAAeC,EACpBC,EACAC,EACAC,SAEMC,EAAAA,EAAAA,OAAK,MAAQH,EAAKI,SAAWJ,EAAKK,6BACxC,MAAM,cAAEC,EAAa,MAAEF,GAAUJ,GAC3B,SAAEO,IAAaC,EAAAA,EAAAA,mBAAkBR,GACvC,OACES,EAAAA,cAAAA,EAAAA,SAAA,KACEA,EAAAA,cAAA,KAAGC,GAAG,gBAAgBR,EAAeD,IACpCK,GAAiBF,EAChBK,EAAAA,cAAA,KAAGE,UAAW,aAAaC,KAAKC,KAAKN,EAAU,OAC7CE,EAAAA,cAACK,EAAAA,EAAS,CAACC,MAAOf,EAAMgB,YAAY,UAEpC,KAGV,C","sources":["../../../plugins/wiggle/src/LinearWiggleDisplay/models/renderSvg.tsx"],"sourcesContent":["import React from 'react'\nimport { getContainingView } from '@jbrowse/core/util'\nimport { when } from 'mobx'\nimport YScaleBar from '../../shared/YScaleBar'\nimport {\n ExportSvgDisplayOptions,\n LinearGenomeViewModel,\n} from '@jbrowse/plugin-linear-genome-view'\nimport { WiggleDisplayModel } from './model'\n\nexport async function renderSvg(\n self: WiggleDisplayModel,\n opts: ExportSvgDisplayOptions,\n superRenderSvg: (opts: ExportSvgDisplayOptions) => Promise<React.ReactNode>,\n) {\n await when(() => !!self.stats && !!self.regionCannotBeRenderedText)\n const { needsScalebar, stats } = self\n const { offsetPx } = getContainingView(self) as LinearGenomeViewModel\n return (\n <>\n <g id=\"snpcov\">{await superRenderSvg(opts)}</g>\n {needsScalebar && stats ? (\n <g transform={`translate(${Math.max(-offsetPx, 0)})`}>\n <YScaleBar model={self} orientation=\"left\" />\n </g>\n ) : null}\n </>\n )\n}\n"],"names":["async","renderSvg","self","opts","superRenderSvg","when","stats","regionCannotBeRenderedText","needsScalebar","offsetPx","getContainingView","React","id","transform","Math","max","YScaleBar","model","orientation"],"sourceRoot":""}