Mercurial > repos > fubar > jbrowse2
view x/static/js/3384.e146a796.chunk.js.map @ 127:fbabf7498471 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 116b1a4bbd62251ad552306df2dc8aa8f46c6721
author | fubar |
---|---|
date | Mon, 07 Oct 2024 02:11:55 +0000 |
parents | 49f3d3878413 |
children |
line wrap: on
line source
{"version":3,"file":"static/js/3384.e146a796.chunk.js","mappings":"gPAWA,MAsEA,GAtEkCA,EAAAA,EAAAA,WAAS,UAAU,MACnDC,EAAK,YACLC,IASA,MAAOC,EAAYC,IAAiBC,EAAAA,EAAAA,UAAS,GAAGJ,EAAMK,sBAC/CC,EAAaC,IAAkBH,EAAAA,EAAAA,UAAS,GAAGJ,EAAMQ,sBAExD,OACEC,EAAAA,cAACC,EAAAA,OAAM,CAACC,MAAI,EAACC,QAASX,EAAaY,MAAM,0BACvCJ,EAAAA,cAACK,EAAAA,EAAa,KACZL,EAAAA,cAACM,EAAAA,EAAU,KAAC,+UAOXT,EAAcJ,EACbO,EAAAA,cAACO,EAAAA,aAAY,CAACC,MAAM,4EAClB,KACJR,EAAAA,cAACS,EAAAA,EAAS,CACRC,MAAM,8BACNC,MAAOlB,EACPmB,SAAUC,IACRnB,EAAcmB,EAAMC,OAAOH,MAAM,IAGrCX,EAAAA,cAACS,EAAAA,EAAS,CACRC,MAAM,mCACNC,MAAOd,EACPe,SAAUC,IACRf,EAAee,EAAMC,OAAOH,MAAM,IAItCX,EAAAA,cAACe,EAAAA,EAAa,KACZf,EAAAA,cAACgB,EAAAA,EAAM,CACLC,QAAQ,YACRC,QAASA,KACP3B,EAAM4B,mBAAmB,CACvB1B,YAAaA,EACbI,aAAcA,IAEhBL,GAAa,GAEhB,UAGDQ,EAAAA,cAACgB,EAAAA,EAAM,CACLC,QAAQ,YACRG,MAAM,YACNF,QAASA,KACP1B,GAAa,GAEhB,YAOX,G","sources":["../../../plugins/gccontent/src/LinearGCContentDisplay/components/EditGCContentParams.tsx"],"sourcesContent":["import React, { useState } from 'react'\nimport { observer } from 'mobx-react'\nimport {\n Button,\n DialogActions,\n DialogContent,\n TextField,\n Typography,\n} from '@mui/material'\nimport { Dialog, ErrorMessage } from '@jbrowse/core/ui'\n\nconst EditGCContentParamsDialog = observer(function ({\n model,\n handleClose,\n}: {\n model: {\n windowSizeSetting: number\n windowDeltaSetting: number\n setGCContentParams: (a: { windowSize: number; windowDelta: number }) => void\n }\n handleClose: () => void\n}) {\n const [windowSize, setWindowSize] = useState(`${model.windowSizeSetting}`)\n const [windowDelta, setWindowDelta] = useState(`${model.windowDeltaSetting}`)\n\n return (\n <Dialog open onClose={handleClose} title=\"Edit GC content params\">\n <DialogContent>\n <Typography>\n GC content is calculated in a particular sliding window of size N, and\n then the sliding window moves (steps) some number of bases M forward.\n Note that small step sizes can result in high CPU over large areas,\n and it is not recommended to make the step size larger than the window\n size as then the sliding window will miss contents.\n </Typography>\n {windowDelta > windowSize ? (\n <ErrorMessage error=\"It is not recommended to make the step size larger than the window size\" />\n ) : null}\n <TextField\n label=\"Size of sliding window (bp)\"\n value={windowSize}\n onChange={event => {\n setWindowSize(event.target.value)\n }}\n />\n <TextField\n label=\"Step size of sliding window (bp)\"\n value={windowDelta}\n onChange={event => {\n setWindowDelta(event.target.value)\n }}\n />\n\n <DialogActions>\n <Button\n variant=\"contained\"\n onClick={() => {\n model.setGCContentParams({\n windowSize: +windowSize,\n windowDelta: +windowDelta,\n })\n handleClose()\n }}\n >\n Submit\n </Button>\n <Button\n variant=\"contained\"\n color=\"secondary\"\n onClick={() => {\n handleClose()\n }}\n >\n Cancel\n </Button>\n </DialogActions>\n </DialogContent>\n </Dialog>\n )\n})\n\nexport default EditGCContentParamsDialog\n"],"names":["observer","model","handleClose","windowSize","setWindowSize","useState","windowSizeSetting","windowDelta","setWindowDelta","windowDeltaSetting","React","Dialog","open","onClose","title","DialogContent","Typography","ErrorMessage","error","TextField","label","value","onChange","event","target","DialogActions","Button","variant","onClick","setGCContentParams","color"],"sourceRoot":""}