Mercurial > repos > fubar > jbrowse2
diff x/static/js/1304.a512b560.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 diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/x/static/js/1304.a512b560.chunk.js.map Sat Oct 05 23:58:05 2024 +0000 @@ -0,0 +1,1 @@ +{"version":3,"file":"static/js/1304.a512b560.chunk.js","mappings":"+NASO,MAAMA,GAAsBC,EAAAA,EAAAA,WAAS,UAAU,MACpDC,EAAK,UACLC,EAAS,gBACTC,EAAe,UACfC,EAAS,UACTC,IAQA,MAAM,MAAEC,EAAK,MAAEC,EAAK,WAAEC,GAAeP,EAC/BQ,GAAKN,IAAkB,IAAM,GAAsB,EACnDO,GAAKP,IAAkB,IAAM,GAAsB,EAEzD,OAAOD,GAAaS,KAAKC,IAAIR,GAAa,GAAKO,KAAKC,IAAIP,GAAa,EACnEQ,EAAAA,cAACC,EAAAA,QAAW,CAACC,YAAa,CAAEN,IAAGC,MAC5B,QAAOM,EAAAA,EAAAA,IAAOd,EAAU,GAAII,KAC7BO,EAAAA,cAAA,WACC,QAAOG,EAAAA,EAAAA,IAAOR,EAAaN,EAAU,GAAIK,KAC1CM,EAAAA,cAAA,YAEA,IACN,IAEA,G","sources":["../../../plugins/dotplot-view/src/DotplotView/components/DotplotTooltipClick.tsx"],"sourcesContent":["import React from 'react'\nimport { observer } from 'mobx-react'\nimport BaseTooltip from '@jbrowse/core/ui/BaseTooltip'\n\n// locals\nimport { DotplotViewModel } from '../model'\nimport { locstr } from './util'\n\ntype Coord = [number, number] | undefined\nexport const DotplotTooltipClick = observer(function ({\n model,\n mousedown,\n mousedownClient,\n xdistance,\n ydistance,\n}: {\n model: DotplotViewModel\n mousedown: Coord\n mousedownClient: Coord\n xdistance: number\n ydistance: number\n}) {\n const { hview, vview, viewHeight } = model\n const x = (mousedownClient?.[0] || 0) - (xdistance < 0 ? 0 : 0)\n const y = (mousedownClient?.[1] || 0) - (ydistance < 0 ? 0 : 0)\n\n return mousedown && Math.abs(xdistance) > 3 && Math.abs(ydistance) > 3 ? (\n <BaseTooltip clientPoint={{ x, y }}>\n {`x - ${locstr(mousedown[0], hview)}`}\n <br />\n {`y - ${locstr(viewHeight - mousedown[1], vview)}`}\n <br />\n </BaseTooltip>\n ) : null\n})\n\nexport default DotplotTooltipClick\n"],"names":["DotplotTooltipClick","observer","model","mousedown","mousedownClient","xdistance","ydistance","hview","vview","viewHeight","x","y","Math","abs","React","BaseTooltip","clientPoint","locstr"],"sourceRoot":""} \ No newline at end of file