Mercurial > repos > fubar > jbrowse2
view x/static/js/9114.d412d44e.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/9114.d412d44e.chunk.js","mappings":"gNAcA,MAAMA,GAAiCC,EAAAA,EAAAA,OACrC,IAAM,kCAEFC,GAAkCD,EAAAA,EAAAA,OACtC,IAAM,iCAGO,SAASE,GAAwC,MAC9DC,EAAK,QACLC,EAAO,SACPC,IAMA,MAAMC,GAAUC,EAAAA,EAAAA,YAAWJ,GACrBK,EAAK,CACTC,SAAUL,EAAQK,SAClBC,QAASN,EAAQM,QACjBC,MAAOP,EAAQO,MACfC,IAAKR,EAAQQ,IACbC,OAAQT,EAAQS,QAEZC,EAAK,CACTL,SAAU,GAAGL,EAAQW,UACrBL,QAASN,EAAQY,SACjBL,MAAOP,EAAQa,SACfL,IAAMR,EAAQa,SAAsB,EACpCJ,OAAQT,EAAQS,QAElB,OACEK,EAAAA,cAAA,WACEA,EAAAA,cAACC,EAAAA,EAAU,KAAC,qBACZD,EAAAA,cAAA,UACEA,EAAAA,cAAA,UACGV,EAAGE,QAAQ,KAAEU,EAAAA,EAAAA,UAASZ,EAAGG,OAAO,OAAQG,EAAGJ,QAAQ,KACnDU,EAAAA,EAAAA,UAASN,EAAGH,OAAQ,IACrBO,EAAAA,cAACG,EAAAA,EAAI,CACHC,KAAK,IACLC,QAASC,IACPA,EAAMC,iBACNnB,EAAQoB,aAAYC,GAAe,CACjC5B,EACA,CACE4B,cACAxB,QACAC,QAAS,IAAIwB,EAAAA,cAAc,IAAKpB,EAAIqB,KAAMf,IAE1CT,WACAyB,KAAM3B,EAAM2B,KACZC,aAAc5B,EAAM2B,KAAKE,iBAAiB,GAAGD,gBAE/C,GAEL,gBAEO,IACRb,EAAAA,cAACG,EAAAA,EAAI,CACHC,KAAK,IACLC,QAASC,IACPA,EAAMC,iBACNnB,EAAQoB,aAAYC,GAAe,CACjC1B,EACA,CACE0B,cACAxB,QACAC,QAAS,IAAIwB,EAAAA,cAAc,IAAKpB,EAAIqB,KAAMf,IAE1CT,WACAyB,KAAM3B,EAAM2B,KACZC,aAAc5B,EAAM2B,KAAKE,iBAAiB,GAAGD,gBAE/C,GAEL,kBAOX,C,wNCvFe,SAASE,EAAeC,GAIrC,MAAM,MAAE/B,EAAK,QAAEC,GAAY8B,EACrB5B,GAAUC,EAAAA,EAAAA,YAAWJ,IACrB,cAAEgC,IAAkBC,EAAAA,EAAAA,QAAO9B,GACjC,IAAID,EAEJ,IACEA,EAAW8B,EAAcE,YAAY,sBACvC,CAAE,MAAOC,GACP,CAGF,OACEpB,EAAAA,cAACqB,EAAAA,SAAQC,EAAA,GAAKN,EAAK,CAAEO,MAAM,6BACxBpC,EACCa,EAAAA,cAAChB,EAAuC,CACtCG,SAAUA,EACVF,MAAOA,EACPC,QAASA,IAET,KAGV,C","sources":["../../../plugins/alignments/src/AlignmentsFeatureDetail/LaunchPairedEndBreakpointSplitViewPanel.tsx","../../../plugins/alignments/src/AlignmentsFeatureDetail/LinkedPairedAlignments.tsx"],"sourcesContent":["import React, { lazy } from 'react'\nimport { Typography, Link } from '@mui/material'\nimport {\n SimpleFeature,\n SimpleFeatureSerialized,\n getSession,\n toLocale,\n} from '@jbrowse/core/util'\nimport { ViewType } from '@jbrowse/core/pluggableElementTypes'\n\n// locals\nimport { AlignmentFeatureWidgetModel } from './stateModelFactory'\n\n// lazies\nconst BreakendMultiLevelOptionDialog = lazy(\n () => import('./BreakendMultiLevelOptionDialog'),\n)\nconst BreakendSingleLevelOptionDialog = lazy(\n () => import('./BreakendSingleLevelOptionDialog'),\n)\n\nexport default function LaunchPairedEndBreakpointSplitViewPanel({\n model,\n feature,\n viewType,\n}: {\n model: AlignmentFeatureWidgetModel\n feature: SimpleFeatureSerialized\n viewType: ViewType\n}) {\n const session = getSession(model)\n const f1 = {\n uniqueId: feature.uniqueId,\n refName: feature.refName,\n start: feature.start,\n end: feature.end,\n strand: feature.strand,\n }\n const f2 = {\n uniqueId: `${feature.id}-mate`,\n refName: feature.next_ref as string,\n start: feature.next_pos as number,\n end: (feature.next_pos as number) + 1,\n strand: feature.strand as number,\n }\n return (\n <div>\n <Typography>Launch split view</Typography>\n <ul>\n <li>\n {f1.refName}:{toLocale(f1.start)} -> {f2.refName}:\n {toLocale(f2.start)}{' '}\n <Link\n href=\"#\"\n onClick={event => {\n event.preventDefault()\n session.queueDialog(handleClose => [\n BreakendMultiLevelOptionDialog,\n {\n handleClose,\n model,\n feature: new SimpleFeature({ ...f1, mate: f2 }),\n // @ts-expect-error\n viewType,\n view: model.view,\n assemblyName: model.view.displayedRegions[0].assemblyName,\n },\n ])\n }}\n >\n (top/bottom)\n </Link>{' '}\n <Link\n href=\"#\"\n onClick={event => {\n event.preventDefault()\n session.queueDialog(handleClose => [\n BreakendSingleLevelOptionDialog,\n {\n handleClose,\n model,\n feature: new SimpleFeature({ ...f1, mate: f2 }),\n // @ts-expect-error\n viewType,\n view: model.view,\n assemblyName: model.view.displayedRegions[0].assemblyName,\n },\n ])\n }}\n >\n (single row)\n </Link>\n </li>\n </ul>\n </div>\n )\n}\n","import React from 'react'\nimport { BaseCard } from '@jbrowse/core/BaseFeatureWidget/BaseFeatureDetail'\nimport { SimpleFeatureSerialized, getEnv, getSession } from '@jbrowse/core/util'\nimport { ViewType } from '@jbrowse/core/pluggableElementTypes'\n\n// locals\nimport { AlignmentFeatureWidgetModel } from './stateModelFactory'\nimport LaunchPairedEndBreakpointSplitViewPanel from './LaunchPairedEndBreakpointSplitViewPanel'\n\nexport default function SuppAlignments(props: {\n model: AlignmentFeatureWidgetModel\n feature: SimpleFeatureSerialized\n}) {\n const { model, feature } = props\n const session = getSession(model)\n const { pluginManager } = getEnv(session)\n let viewType: ViewType | undefined\n\n try {\n viewType = pluginManager.getViewType('BreakpointSplitView')\n } catch (e) {\n // ignore\n }\n\n return (\n <BaseCard {...props} title=\"Supplementary alignments\">\n {viewType ? (\n <LaunchPairedEndBreakpointSplitViewPanel\n viewType={viewType}\n model={model}\n feature={feature}\n />\n ) : null}\n </BaseCard>\n )\n}\n"],"names":["BreakendMultiLevelOptionDialog","lazy","BreakendSingleLevelOptionDialog","LaunchPairedEndBreakpointSplitViewPanel","model","feature","viewType","session","getSession","f1","uniqueId","refName","start","end","strand","f2","id","next_ref","next_pos","React","Typography","toLocale","Link","href","onClick","event","preventDefault","queueDialog","handleClose","SimpleFeature","mate","view","assemblyName","displayedRegions","SuppAlignments","props","pluginManager","getEnv","getViewType","e","BaseCard","_extends","title"],"sourceRoot":""}