@sjcrh/proteinpaint-client 2.76.2 → 2.77.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{2dmaf-f240211f.js → 2dmaf-acb8cfdd.js} +1 -1
- package/dist/{AppHeader-c9432a24.js → AppHeader-315dbd3a.js} +1 -1
- package/dist/{ColorScale-b991fc9e.js → ColorScale-4b4ea8a2.js} +1 -1
- package/dist/{DEanalysis-bbfad00d.js → DEanalysis-28ddd620.js} +1 -1
- package/dist/{Disco-b7c9bf72.js → Disco-3c427131.js} +1 -1
- package/dist/{Disco.UI-a5296c36.js → Disco.UI-b071cf7a.js} +1 -1
- package/dist/{DragControls-ca3fa0cf.js → DragControls-7961799c.js} +1 -1
- package/dist/{DziViewer-28915c11.js → DziViewer-aa5b5706.js} +1 -1
- package/dist/{FilterRxComp-02e68f1b.js → FilterRxComp-e8de560c.js} +1 -1
- package/dist/FilterStateless-75514d37.js +1 -0
- package/dist/{HicApp-e713aa40.js → HicApp-674a148d.js} +1 -1
- package/dist/{OrbitControls-2466d420.js → OrbitControls-58ca2292.js} +1 -1
- package/dist/{WSIViewer-957695a8.js → WSIViewer-afe97e2e.js} +1 -1
- package/dist/{adSandbox-27d93bc0.js → adSandbox-791d704e.js} +1 -1
- package/dist/{app-6fb77603.js → app-3d14cbe4.js} +1 -1
- package/dist/app-8b5b982a.js +1 -0
- package/dist/{app-d215327f.js → app-bd9f016b.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/{bam-d67e5315.js → bam-fa90bae8.js} +1 -1
- package/dist/{barchart-2898d229.js → barchart-e3dcfc5f.js} +1 -1
- package/dist/{barchart.events-426d737a.js → barchart.events-cecb7bf5.js} +1 -1
- package/dist/{bars.renderer-71935d34.js → bars.renderer-58e38632.js} +1 -1
- package/dist/{block-75d4ff92.js → block-944afb9f.js} +1 -1
- package/dist/block.lazyload-4c4e81ff.js +1 -0
- package/dist/{block.legend-93d85a6e.js → block.legend-3dbc41a8.js} +1 -1
- package/dist/{block.mds-84b9d1c1.js → block.mds-b3967ce5.js} +1 -1
- package/dist/{block.mds.cnv-a991ed79.js → block.mds.cnv-6de3115e.js} +1 -1
- package/dist/{block.mds.expressionrank-33b858de.js → block.mds.expressionrank-553613e8.js} +1 -1
- package/dist/{block.mds.expressionstat-3093599f.js → block.mds.expressionstat-2c396bb9.js} +1 -1
- package/dist/{block.mds.geneboxplot-b8391d18.js → block.mds.geneboxplot-552fe571.js} +1 -1
- package/dist/{block.mds.junction-69708c7f.js → block.mds.junction-1e25c13d.js} +1 -1
- package/dist/{block.mds.svcnv-322baea6.js → block.mds.svcnv-462d762d.js} +1 -1
- package/dist/{block.mds.svcnv.share-c5c38237.js → block.mds.svcnv.share-766e4b22.js} +1 -1
- package/dist/{block.mds2-de4811dd.js → block.mds2-6e04432d.js} +1 -1
- package/dist/{block.svg-ac9fec2d.js → block.svg-40b47da8.js} +1 -1
- package/dist/{block.tk.aicheck-ac4b8d4d.js → block.tk.aicheck-cc42cbaf.js} +1 -1
- package/dist/{block.tk.ase-6dc0f9f1.js → block.tk.ase-da848c5f.js} +1 -1
- package/dist/{block.tk.bam-8f68b41d.js → block.tk.bam-8053c97e.js} +1 -1
- package/dist/{block.tk.bedgraphdot-d8878860.js → block.tk.bedgraphdot-79cb0faf.js} +1 -1
- package/dist/{block.tk.bigwig.ui-f6ed051c.js → block.tk.bigwig.ui-a8decec7.js} +1 -1
- package/dist/{block.tk.hicstraw-725bdc8a.js → block.tk.hicstraw-3d1e9d41.js} +1 -1
- package/dist/{block.tk.junction-f8b0b51d.js → block.tk.junction-81eae755.js} +1 -1
- package/dist/{block.tk.junction.textmatrixui-252e7d7e.js → block.tk.junction.textmatrixui-4c45b69a.js} +1 -1
- package/dist/{block.tk.ld-11acf730.js → block.tk.ld-997fca31.js} +1 -1
- package/dist/{block.tk.menu-5e04436d.js → block.tk.menu-d3e7ccbb.js} +1 -1
- package/dist/{block.tk.pgv-fef17dc4.js → block.tk.pgv-ae1d1f59.js} +1 -1
- package/dist/{boxplot-4c9a5479.js → boxplot-fed0a86b.js} +1 -1
- package/dist/{brainImaging-7716bc66.js → brainImaging-b455fd0c.js} +1 -1
- package/dist/{brush-9faa7ae7.js → brush-06989a5e.js} +1 -1
- package/dist/{categorical-1dea48ba.js → categorical-82722704.js} +1 -1
- package/dist/{condition-ebac4f75.js → condition-f68cc8d1.js} +1 -1
- package/dist/{controls-268e40e6.js → controls-1d99916a.js} +1 -1
- package/dist/{controls.btns-5bf9e7d7.js → controls.btns-237b3154.js} +1 -1
- package/dist/{controls.config-2f0fa061.js → controls.config-00ce9f0b.js} +1 -1
- package/dist/{cuminc-8dffb765.js → cuminc-879690b0.js} +1 -1
- package/dist/{customdata.inputui-b229d3a0.js → customdata.inputui-c563c695.js} +1 -1
- package/dist/{dataDownload-452ae3cd.js → dataDownload-087ac205.js} +1 -1
- package/dist/databrowser.ui-9f98f6b3.js +1 -0
- package/dist/{density-09feb0c9.js → density-e0aff1d0.js} +1 -1
- package/dist/{dictionary-a132a3cc.js → dictionary-fe0ea1d6.js} +1 -1
- package/dist/{drag-2e9c80bb.js → drag-e11d6644.js} +1 -1
- package/dist/{e2pca-4f1648e3.js → e2pca-b3250d5c.js} +1 -1
- package/dist/{ep-1d4c58b4.js → ep-9ca01df0.js} +1 -1
- package/dist/{facet-fa4fe49c.js → facet-397afad5.js} +1 -1
- package/dist/{fusion.parse-7dfd6988.js → fusion.parse-e5312047.js} +1 -1
- package/dist/{geneExpClustering-ed9121b8.js → geneExpClustering-4383ff2c.js} +1 -1
- package/dist/{geneExpression-394672ff.js → geneExpression-2422f66b.js} +1 -1
- package/dist/{geneExpression-66208299.js → geneExpression-52678025.js} +1 -1
- package/dist/{geneExpression-c61e8f1c.js → geneExpression-cfb86b5d.js} +1 -1
- package/dist/{geneORA-9456872c.js → geneORA-81220ec0.js} +1 -1
- package/dist/{geneVariant-beaf9adb.js → geneVariant-18f9591a.js} +1 -1
- package/dist/{geneVariant-f17cda85.js → geneVariant-4d22b146.js} +1 -1
- package/dist/{genefusion.ui-9238ec7f.js → genefusion.ui-e38778dd.js} +1 -1
- package/dist/{genesearch-ffd88bf2.js → genesearch-0587c713.js} +1 -1
- package/dist/{geneset-0315daf8.js → geneset-604d0529.js} +1 -1
- package/dist/{genomeBrowser-608b924e.js → genomeBrowser-9f0e8a60.js} +1 -1
- package/dist/{genomeBrowser.controls-2601cab5.js → genomeBrowser.controls-204f007e.js} +1 -1
- package/dist/{groupsetting-e3a4ecd5.js → groupsetting-53dfd5e5.js} +1 -1
- package/dist/{gsea-0c0cf8de.js → gsea-a1b04406.js} +1 -1
- package/dist/{hierCluster-7ab62ca5.js → hierCluster-edaaacc5.js} +1 -1
- package/dist/{hierCluster.config-f4daaf92.js → hierCluster.config-a84f69a3.js} +1 -1
- package/dist/{hierCluster.interactivity-7f475259.js → hierCluster.interactivity-dd917fd3.js} +1 -1
- package/dist/{hierCluster.renderers-19b79639.js → hierCluster.renderers-4d33e96a.js} +1 -1
- package/dist/{html.legend-80b2b3ec.js → html.legend-6807e9ad.js} +1 -1
- package/dist/{imagePlot-1ef24562.js → imagePlot-f96cdc61.js} +1 -1
- package/dist/{lasso-1a02a545.js → lasso-845446b8.js} +1 -1
- package/dist/launch.adhoc-cb00917b.js +1 -0
- package/dist/leftlabel.sample-3a6037c2.js +1 -0
- package/dist/legacyDataset-c9bab1e6.js +1 -0
- package/dist/{log-c26b6cfd.js → log-0ea548ec.js} +1 -1
- package/dist/{lollipop-3aebe5d3.js → lollipop-75e11e9a.js} +1 -1
- package/dist/{maf-c439c851.js → maf-e4af10d7.js} +1 -1
- package/dist/{maftimeline-0da64e54.js → maftimeline-cc2e866c.js} +1 -1
- package/dist/{matrix-38cd47c3.js → matrix-8b3341c4.js} +1 -1
- package/dist/{matrix.cells-a018d731.js → matrix.cells-4dd055e7.js} +1 -1
- package/dist/{matrix.cluster-a6e713e8.js → matrix.cluster-7ab94fb5.js} +1 -1
- package/dist/{matrix.config-2c550b5d.js → matrix.config-b3b56456.js} +1 -1
- package/dist/{matrix.controls-42ad4912.js → matrix.controls-6e0e9692.js} +1 -1
- package/dist/{matrix.data-2b814c9f.js → matrix.data-baabaf57.js} +1 -1
- package/dist/{matrix.dom-1e0da5b3.js → matrix.dom-cb1f4872.js} +1 -1
- package/dist/{matrix.groups-824a7244.js → matrix.groups-9990aade.js} +1 -1
- package/dist/{matrix.interactivity-1cb56534.js → matrix.interactivity-3f3cf44d.js} +1 -1
- package/dist/{matrix.layout-47e44357.js → matrix.layout-50bc2ea5.js} +1 -1
- package/dist/{matrix.legend-9af0c757.js → matrix.legend-024e2d50.js} +1 -1
- package/dist/{matrix.renderers-337ce240.js → matrix.renderers-1aed44e5.js} +1 -1
- package/dist/{matrix.serieses-7b7184c9.js → matrix.serieses-dc18fcc2.js} +1 -1
- package/dist/{matrix.sort-1ac05842.js → matrix.sort-89b98e83.js} +1 -1
- package/dist/{matrix.sorterUi-1c60c145.js → matrix.sorterUi-0ad98ef0.js} +1 -1
- package/dist/{mavb-da8d1a0a.js → mavb-b2dd74f6.js} +1 -1
- package/dist/{mds.fimo-8604c3f8.js → mds.fimo-f19840cd.js} +1 -1
- package/dist/{mds.samplescatterplot-3f09ae0e.js → mds.samplescatterplot-254f1de6.js} +1 -1
- package/dist/{mds.survivalplot-1d8f2b7e.js → mds.survivalplot-f440db10.js} +1 -1
- package/dist/{metaboliteIntensity-bbb23c76.js → metaboliteIntensity-4d905d93.js} +1 -1
- package/dist/niceNumLabels-ef07b7ad.js +1 -0
- package/dist/{nodrag-b2737073.js → nodrag-f6c0801c.js} +1 -1
- package/dist/{notify-0cb8904f.js → notify-da3afe99.js} +1 -1
- package/dist/{numeric-24dacbee.js → numeric-1d0318e8.js} +1 -1
- package/dist/{numeric.binary-f382cc98.js → numeric.binary-88bf9e0d.js} +1 -1
- package/dist/numeric.continuous-d27197cf.js +1 -0
- package/dist/{numeric.discrete-ed10bbc1.js → numeric.discrete-b826f33b.js} +1 -1
- package/dist/{numeric.spline-a35cfbf0.js → numeric.spline-b3968b77.js} +1 -1
- package/dist/{numeric.toggle-2f98d6e5.js → numeric.toggle-ab8b79be.js} +1 -1
- package/dist/{oncomatrix-c0b2d635.js → oncomatrix-5f4326a8.js} +1 -1
- package/dist/{parseData-292648dd.js → parseData-62083461.js} +1 -1
- package/dist/{plot.2dvaf-6ae22dc1.js → plot.2dvaf-eccd8ef3.js} +1 -1
- package/dist/plot.app-4dc30ebc.js +1 -0
- package/dist/plot.barplot-331715f6.js +1 -0
- package/dist/{plot.boxplot-87ac2ce9.js → plot.boxplot-0c538ebe.js} +1 -1
- package/dist/{plot.brainImaging-32a484b6.js → plot.brainImaging-ee3a0272.js} +1 -1
- package/dist/{plot.disco-1fdfee3c.js → plot.disco-c9249cbd.js} +1 -1
- package/dist/{plot.dzi-e3d0f610.js → plot.dzi-dfd72ddf.js} +1 -1
- package/dist/{plot.ssgq-d33113d5.js → plot.ssgq-b5f68395.js} +1 -1
- package/dist/{plot.vaf2cov-9f4f1776.js → plot.vaf2cov-4081decd.js} +1 -1
- package/dist/{plot.wsi-dea124a7.js → plot.wsi-f6325d95.js} +1 -1
- package/dist/{profileBarchart-58f0a8c0.js → profileBarchart-f4da0483.js} +1 -1
- package/dist/{profileHome-7f404152.js → profileHome-11b7d146.js} +1 -1
- package/dist/{profilePlot-4db8ca78.js → profilePlot-5dd1fe71.js} +1 -1
- package/dist/{profilePolar-50b8e40e.js → profilePolar-996784ad.js} +1 -1
- package/dist/{profileRadar-fff0b004.js → profileRadar-79299186.js} +1 -1
- package/dist/{profileRadarFacility-d6d34c15.js → profileRadarFacility-00e31213.js} +1 -1
- package/dist/{profileSummary-04b8b15b.js → profileSummary-df75e6ff.js} +1 -1
- package/dist/{recover-299ffdb3.js → recover-4888c2a9.js} +1 -1
- package/dist/{regression.inputs-14df7c31.js → regression.inputs-e647b716.js} +1 -1
- package/dist/{regression.inputs.values.table-d79efa9e.js → regression.inputs.values.table-b283619d.js} +1 -1
- package/dist/{regression.results-4767144e.js → regression.results-f61b4a25.js} +1 -1
- package/dist/{renderPvalueTable-002cc8ff.js → renderPvalueTable-0ed37e90.js} +1 -1
- package/dist/sampleScatter-b96546e9.js +1 -0
- package/dist/{sampleScatter.rendererThree-ef289434.js → sampleScatter.rendererThree-aa51e3c8.js} +2 -2
- package/dist/{sampleView-1dff3fca.js → sampleView-e4819da2.js} +1 -1
- package/dist/{samplelst-d2db0f24.js → samplelst-9d9ff205.js} +1 -1
- package/dist/{samplematrix-0841387f.js → samplematrix-3556e5c0.js} +1 -1
- package/dist/{scatter-f8285107.js → scatter-ff17f653.js} +1 -1
- package/dist/select2Terms-eb437c2a.js +1 -0
- package/dist/{selectGenomeWithTklst-9af86d31.js → selectGenomeWithTklst-84f4ff79.js} +1 -1
- package/dist/shapes-21ebfec4.js +1 -0
- package/dist/{singleCellCellType-fd1606b8.js → singleCellCellType-a2ce9bfa.js} +1 -1
- package/dist/{singleCellGeneExpression-537f1157.js → singleCellGeneExpression-a2b45c7a.js} +1 -1
- package/dist/{singleCellPlot-eff5760b.js → singleCellPlot-e7e57b0f.js} +1 -1
- package/dist/{singlecell-38336cbc.js → singlecell-63cb06d8.js} +1 -1
- package/dist/{singlecell-87b4b9a9.js → singlecell-a5b8a39b.js} +1 -1
- package/dist/snp-41aa88d1.js +1 -0
- package/dist/{snp-b81ef740.js → snp-6e312b4c.js} +1 -1
- package/dist/snplocus-0653ba82.js +1 -0
- package/dist/{spliceevent.a53ss.diagram-5f8352eb.js → spliceevent.a53ss.diagram-aa2df5d7.js} +1 -1
- package/dist/{spliceevent.exonskip.diagram-0d30a735.js → spliceevent.exonskip.diagram-0b792984.js} +1 -1
- package/dist/spliceevent.exonskip.getdefault-af1943e3.js +1 -0
- package/dist/{spliceevent.noeventdiagram-df9ce4bc.js → spliceevent.noeventdiagram-e6e29a6e.js} +1 -1
- package/dist/{spliceevent.phrase-a8401d53.js → spliceevent.phrase-5f65a5f4.js} +1 -1
- package/dist/{stattable-46cde32c.js → stattable-775a5af5.js} +1 -1
- package/dist/{style.gdc-72d730f2.js → style.gdc-519a42d8.js} +1 -1
- package/dist/summary-5866c75f.js +1 -0
- package/dist/{sunburst-fe95832e.js → sunburst-f928bfd2.js} +1 -1
- package/dist/survival-10dd3d28.js +1 -0
- package/dist/{survival-52714cd3.js → survival-405514f6.js} +1 -1
- package/dist/{svg.download-f4aa48e4.js → svg.download-cd895635.js} +1 -1
- package/dist/{svg.legend-749348e0.js → svg.legend-812ea603.js} +1 -1
- package/dist/{svgraph-b46f1f92.js → svgraph-037fd7b6.js} +1 -1
- package/dist/{svmr-9a76c6d4.js → svmr-3bd143c3.js} +1 -1
- package/dist/{table-0daf2b89.js → table-be2a9975.js} +1 -1
- package/dist/{table-bf40249b.js → table-e013d8fc.js} +1 -1
- package/dist/{termInfo-491b10af.js → termInfo-e16f90f2.js} +1 -1
- package/dist/termdb.bins-a60aaa77.js +1 -0
- package/dist/{termsetting-492eefa7.js → termsetting-7467350f.js} +1 -1
- package/dist/tk-25ae65c4.js +1 -0
- package/dist/{toggleButtons-c4d6f260.js → toggleButtons-2144daab.js} +1 -1
- package/dist/{tp.ui-0a476325.js → tp.ui-38bc5890.js} +1 -1
- package/dist/{tvs.density-034b506d.js → tvs.density-060d3006.js} +1 -1
- package/dist/{tvs.geneVariant-c59c8b54.js → tvs.geneVariant-f99fe353.js} +1 -1
- package/dist/{tvs.numeric-aa1f892f.js → tvs.numeric-d9108473.js} +1 -1
- package/dist/{tvs.samplelst-515f27b9.js → tvs.samplelst-3b8ee998.js} +1 -1
- package/dist/{uiUtils-ea7dfea2.js → uiUtils-57f4b1ba.js} +1 -1
- package/dist/{variantBrowser-14d5c3f6.js → variantBrowser-56ebc7e1.js} +1 -1
- package/dist/{vcf-d357ce08.js → vcf-e43b533a.js} +1 -1
- package/dist/{violin-74d26b75.js → violin-1352dab2.js} +1 -1
- package/dist/{violin.interactivity-bf40ddde.js → violin.interactivity-2502dcd8.js} +1 -1
- package/dist/{violin.renderer-469fa0ff.js → violin.renderer-4273257d.js} +1 -1
- package/dist/{violinRenderer-14fa200d.js → violinRenderer-7f46e468.js} +1 -1
- package/dist/{viridis-cc59f478.js → viridis-87a8b605.js} +1 -1
- package/dist/{y-59cbff5e.js → y-cac91178.js} +1 -1
- package/dist/{zoom-f445cfef.js → zoom-001c2f01.js} +1 -1
- package/package.json +1 -1
- package/dist/FilterStateless-16a33070.js +0 -1
- package/dist/app-42f69951.js +0 -1
- package/dist/block.lazyload-d2951c91.js +0 -1
- package/dist/databrowser.ui-2197fc73.js +0 -1
- package/dist/downloadTextfile-5723af95.js +0 -1
- package/dist/launch.adhoc-e124c993.js +0 -1
- package/dist/leftlabel.sample-59f99ef5.js +0 -1
- package/dist/legacyDataset-fbaa5ebb.js +0 -1
- package/dist/niceNumLabels-29a7c6ca.js +0 -1
- package/dist/numeric.continuous-6feb34a7.js +0 -1
- package/dist/plot.app-2a805759.js +0 -1
- package/dist/plot.barplot-34841e70.js +0 -1
- package/dist/sampleScatter-55d9eb74.js +0 -1
- package/dist/select2Terms-d48d037e.js +0 -1
- package/dist/snp-f6123244.js +0 -1
- package/dist/snplocus-acafb1ba.js +0 -1
- package/dist/spliceevent.exonskip.getdefault-237c481c.js +0 -1
- package/dist/summary-a6c15c9e.js +0 -1
- package/dist/survival-57ff3c03.js +0 -1
- package/dist/termdb.bins-39d11f24.js +0 -1
- package/dist/tk-ac524564.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{I as t,d as e,W as o}from"./app-6fb77603.js";import{b as a,c as s}from"./axis-747c801e.js";import{l}from"./log-c26b6cfd.js";function n(n,r){const i={},c={};const d={};let h;let p;let g,f,u,m,w;let y,x,b,v,k,z,I;let S,B,M;let A;let T=[];let j;function L(t,e){let o=i.orientation;h=t;Object.assign(i,h.settings);i.handlers=h.handlers;i.cols=i.cols.filter((t=>i.colLabels.find((e=>e.id==t))));i.rows=i.rows?.filter((t=>!i.exclude.rows.includes(t)))||[];const a=!g;if(a)P();const s=i.colw;T=h.visibleSerieses;T.map(C);h.serieses.map(C);_();p.style("width",i.svgw+100+"px").style("font-weight",600).style("font-size","20px").style("margin-bottom","24px").html(i.handlers.chart.title(h));if(a){g.attr("height",0).attr("width",0).style("opacity",0);f.attr("transform","translate("+i.rowlabelw+",0)")}const l=u.attr("transform",E).selectAll(".bars-cell-grp").data(T,F);l.exit().each(O);l.each(N);l.enter().append("g").each(W);const n=m.attr("transform",Q).style("opacity",o!=i.orientation?1e-4:1).style("display",i.orientation!="vertical"?"none":"").selectAll("g").data(i.colLabels,(t=>t.id));n.exit().remove();n.each(Y);n.enter().append("g").each(X);const r=w.attr("transform",Z).style("opacity",o!=i.orientation?1e-4:1).style("display",i.orientation!="horizontal"?"none":"").selectAll("g").data(i.colLabels,(t=>t.id));r.exit().remove();r.each(et);r.enter().append("g").each(tt);u.selectAll("rect");M=m.selectAll("text");i.delay=.35*i.duration;it(i,o,h.visibleTotal);i.colw=s;if(o!=i.orientation){const t=i.orientation=="vertical"?m:w;t.transition().duration(1500).style("opacity",1)}if(a){g.transition().duration(100).attr("height",1).attr("width",1).style("opacity",1)}setTimeout((()=>{const t=20;const e=f.node().getBBox();const o=!j||e.width?e:j;j=o;g.transition().duration(e.width?100:0).attr("width",o.width+t).attr("height",o.height+t);if(i.orientation=="vertical"){const a=m.node().getBBox();const s=b.node().getBBox();const l=Math.max(-a.x,-s.x,-o.x);f.transition().duration(e.width?100:0).attr("transform","translate("+l+","+-t+")")}else{const t=w.node().getBBox();const o=b.node().getBBox();const a=z.node().getBBox();f.transition().duration(e.width?100:0).attr("transform","translate("+Math.max(-t.x,-o.x)+","+-a.y+")")}}),a?110:510)}function P(){A={geneonrow:i.geneonrow,nicenames:{},colw:i.geneonrow?Math.min(15,Math.max(1,Math.floor(document.body.clientWidth*.7/i.cols.length))):20,rowh:i.geneonrow?20:Math.min(18,Math.max(10,Math.floor(document.body.clientHeight*.7/i.rows.length))),rowspace:i.geneonrow?2:i.rows.length>100?0:1,colspace:!i.geneonrow?2:i.cols.length>100?0:1,rowtick:8,coltick:5,rowlabtickspace:4,collabtickspace:4,collabelh:150,rowlabelw:250,rowheadleft:true,colheadtop:false,samplecount4gene:true,samplecount4legend:false,showgrid:true,gridstroke:"#fff",showEmptyCells:false,cellbg:"#eeeeee",fontsizeratio:.9,rowlabelfontsizemax:16,collabelfontsizemax:12,crudefill:i.colw<=2,duration:1e3,delay:0};for(let t in A){if(!(t in i)||t=="cols"||t=="rows")i[t]=A[t]}if(!g){p=r.append("div").attr("class","pp-chart-title").style("text-align","center");g=r.append("svg").attr("class","pp-bars-svg").style("overflow","visible").on("mouseover.tphm2",i.handlers.svg.mouseover).on("mouseout.tphm2",i.handlers.svg.mouseout).on("click.tphm2",i.handlers.svg.click)}f=g.append("g").attr("class","sjpcb-bars-mainG").attr("data-testid","sjpcb-bars-mainG");i.h.svg=g;i.h.mainG=f;m=f.append("g").attr("class","bars-collabels").style("cursor",i.handlers.colLabel.click?"pointer":"").on("mouseover.tphm2",gt).on("mouseout.tphm2",ft).on("click.tphm2",i.handlers.colLabel.click);w=f.append("g").attr("class","bars-rowlabels").attr("data-testid","sjpcb-bars-rowlabels").style("cursor",i.handlers.rowLabel.click?"pointer":"").on("mouseover.tphm2",gt).on("mouseout.tphm2",ft).on("click.tphm2",i.handlers.rowLabel.click);u=f.append("g").attr("class","bars-series").attr("data-testid","sjpcb-bars-series").on("mouseover.tphm2",ht).on("mouseout.tphm2",pt).on("click",ut).style("cursor","pointer");y=f.append("g").attr("class","sjpcb-bar-chart-axis-g");x=y.append("g").attr("class","sjpcb-bar-chart-y-axis");v=y.append("line").attr("class","sjpcb-bar-chart-y-line").style("stroke","#000");b=y.append("g").attr("class","sjpcb-bar-chart-y-title").style("cursor","default");k=y.append("g").attr("class","sjpcb-bar-chart-x-axis");I=y.append("line").attr("class","sjpcb-bar-chart-x-line").style("stroke","#000");z=y.append("g").attr("class","sjpcb-bar-chart-x-title").style("cursor","default")}function _(){const e=i.numCharts<4?i.numCharts:i.numCharts%3==0?3:2;const o=i.cols.length*i.colspace+(i.colgrps.length-1)*i.colgspace+i.rowlabelw+i.rowgrplabelw;if(i.orientation=="horizontal"){i.svgw=Math.min(400,.92*window.innerWidth/e);i.rowh=Math.max(14,Math.min(22,.7*window.innerHeight/i.cols.length));i.svgh=i.cols.length*(i.rowh+i.colspace)-i.colspace+(i.colgrps.length-1)*i.colgspace+i.rowlabelw+i.rowgrplabelw}else{const t=window.innerWidth*.92/e;i.colw=Math.min(Math.max(16,Math.round((t-o)/i.cols.length)),30);i.svgw=i.cols.length*(i.colw+i.colspace)-i.colspace+(i.colgrps.length-1)*i.colgspace+i.rowlabelw+i.rowgrplabelw;const a=Math.ceil(i.numCharts/e);i.svgh=Math.max(350,Math.min(400,window.innerHeight*.5))/(a>3?2:1)}h.svgh=i.svgh;i.h.yScale={};i.h.xScale={};i.h.yPrevBySeries={};i.h.xPrevBySeries={};const a=i.scale=="byChart"?1:h.maxVisibleSeriesTotal/h.maxVisibleAcrossCharts;for(const e of T){if(e.visibleData[0]){const o=i.unit=="log"?1:0;const s=i.unit=="pct"?e.visibleTotal:i.unit=="log"?h.maxSeriesLogTotal:h.maxVisibleSeriesTotal;i.h.yScale[e.seriesId]=t().domain([o,s/a]).range([0,i.svgh-i.collabelh]);i.h.xScale[e.seriesId]=t().domain([o,s/a]).range([0,i.svgw-i.rowlabelw]);i.h.yPrevBySeries[e.seriesId]=0;i.h.xPrevBySeries[e.seriesId]=0;for(const t of e.visibleData){t.height=R(t);t.y=q(t);t.x=K(t);t.width=J(t)}}}c.colfontsize=Math.min(i.colw*i.fontsizeratio,i.collabelfontsizemax);c.rowfontsize=Math.min(i.rowh*i.fontsizeratio,i.rowlabelfontsizemax);c.rowtextyalign=Math.min(i.rowh,(i.rowh+c.rowfontsize)/2)+i.rowspace}function C(t){if(!("seriesId"in t)){t.data.map((e=>{if(e)t.seriesId=e[i.serieskey]}))}t.data.map((t=>{t.rowId=t[i.rowkey];t.colId=t[i.colkey]}))}function F(t){return t.seriesId}function V(t){return t.rowId+" "+t.colId}function O(){e(this).remove()}function N(t){const o=e(this).selectAll(".bars-cell").data(t.data.filter(G),V);o.exit().each((function(){e(this).remove()}));o.style("display",(t=>i.cols.includes(t.colId)?"block":"none"));o.select("rect").datum((t=>t)).transition().duration(i.duration).attr("x",(t=>t.x)).attr("y",(t=>t.y)).attr("width",(t=>t.width)).attr("height",(t=>t.height)).attr("fill",i.handlers.series.rectFill).attr("stroke",i.handlers.series.strokeFill);o.enter().append("g").each(H);o.selectAll("text").remove();D(o)}function W(t){if(!t||!t.data.length)return;e(this).attr("class","bars-cell-grp").selectAll("g").data(t.data.filter(G),V).enter().append("g").each(H)}function G(t){return i.rows.includes(t.dataId)}function H(t){const o=e(this).attr("class","bars-cell").datum(t);o.style("display",(t=>i.cols.includes(t.colId)?"block":"none"));o.append("rect").attr("x",(t=>t.x)).attr("y",(t=>t.y)).attr("width",(t=>t.width)).attr("height",(t=>t.height)).attr("fill",i.handlers.series.rectFill).attr("stroke",i.handlers.series.strokeFill).attr("shape-rendering","crispEdges").style("opacity",0).transition().delay(i.delay).duration(i.duration).style("opacity",1);D(o)}function D(t){if(!n.config.settings.barchart.asterisksVisible){return}t.append("text").text((t=>{const e=t.groupPvalues&&t.groupPvalues.term2tests.find((e=>e.term2id==t.dataId));if(!e||e.skipped||!e.adjusted_p_value)return"";return e.adjusted_p_value<.05?"*":""})).attr("x",(t=>t.x+t.width/2)).attr("y",(t=>t.y+t.height/2)).attr("dy","0.6em").style("text-anchor","middle").style("opacity",0).transition().delay(i.delay).duration(i.duration).style("opacity",1)}function E(){const t=i.colspace;let e=i.colheadtop?i.collabelh:i.colgrplabelh;if(i.legendontop)e+=i.legendh;return"translate("+t+","+e+")"}function R(t){const e=i.unit=="log"?t.logTotal:t.total;const o=i.orientation=="vertical"?i.h.yScale[t.seriesId](e):i.rowh;const a=0;i.h.yPrevBySeries[t.seriesId]+=o+a;return Math.max(1,o-a)}function q(t){const e=i.colgrps.indexOf(t[i.colgrpkey])*i.colgspace;const o=i.unit=="log"?Math.max(0,i.h.yPrevBySeries[t.seriesId]):i.h.yPrevBySeries[t.seriesId];return i.orientation=="vertical"?i.svgh-i.collabelh-o:i.cols.indexOf(t.colId)*(i.rowh+i.rowspace)+e}function J(t){const e=i.unit=="log"?t.logTotal:t.total;const o=i.orientation=="vertical"?i.colw:i.h.xScale[t.seriesId](e);const a=0;i.h.xPrevBySeries[t.seriesId];i.h.xPrevBySeries[t.seriesId]+=Math.max(1,o+a);return Math.max(1,o-a)}function K(t){const e=i.colgrps.indexOf(t[i.colgrpkey])*i.colgspace;return i.orientation=="vertical"?i.cols.indexOf(t.colId)*(i.colw+i.colspace)+e:i.h.xPrevBySeries[t.seriesId]}function Q(){let t=5+i.colspace;let e=i.colheadtop?i.borderwidth+1:i.svgh-i.collabelh+25;if(i.legendontop)e+=i.legendh;return"translate("+t+","+e+")"}function U(t){const e=i.col2name[t]?i.col2name[t].grp:"";const o=i.colgrps.indexOf(e)*i.colgspace+i.cols.indexOf("id"in t?t.id:t)*(i.colw+i.colspace)+i.colw/2;const a=i.colheadtop?-1*(i.coltick+i.collabtickspace):i.coltick+i.collabtickspace;return"translate("+o+","+a+")"}function X(t){if(!this||t===undefined)return;const o=e(this).attr("transform",U).style("opacity",0);o.append("text").attr("transform","rotate(-40)").attr("y",2).attr("text-anchor","end").attr("font-size",c.colfontsize+"px").html(i.handlers.colLabel.text);o.transition().delay(i.delay).duration(i.duration).style("opacity",1)}function Y(t){const o=e(this).datum(t);o.attr("transform",U);o.selectAll("text").datum(t).attr("y",2).attr("text-anchor","end").attr("font-size",c.colfontsize+"px").html(i.handlers.colLabel.text)}function Z(){const t=i.colheadtop?i.collabelh:i.colgrplabelh;const e=i.rowheadleft?i.borderwidth+1:i.svgw-i.rowlabelw+20;return"translate("+e+","+t+")"}function $(t){const e=i.row2name[t]?i.row2name[t].grp:"";const o=i.colgrps.indexOf(e)*i.rowgspace+i.cols.indexOf("id"in t?t.id:t)*(i.rowh+i.rowspace)+c.rowtextyalign;const a=i.rowheadleft?-1*(i.rowtick+i.rowlabtickspace):i.rowtick+i.rowlabtickspace;return"translate("+a+","+o+")"}function tt(t){if(!this||t===undefined)return;const o=e(this).attr("transform",$).style("opacity",0);o.append("text").attr("x",2).attr("text-anchor","end").attr("font-size",c.rowfontsize+"px").html(i.handlers.rowLabel.text);o.transition().delay(i.delay).duration(i.duration).style("opacity",1)}function et(t){const o=e(this).datum(t);o.attr("transform",$);o.selectAll("text").datum(t).attr("x",2).attr("text-anchor","end").attr("font-size",c.rowfontsize+"px").html(i.handlers.rowLabel.text)}function ot(t){return t==S.rowId?700:""}function at(t){return t==S.rowId?Math.max(12,c.rowfontsize):c.rowfontsize}function st(t){return t==S.rowId?"#00f":""}function lt(t){return t==S.colId?700:""}function nt(t){return t==S.colId?12:c.colfontsize}function rt(t){return t==S.colId?"#00f":""}function it(t,e,o){y.style("opacity",e!=t.orientation?0:1).transition().duration(1500).style("opacity",1);if(t.orientation=="vertical"){ct(t,o)}else{dt(t,o)}}function ct(e,s){k.style("display","none");v.style("display","none");const n=m.node().getBBox();e.svgh-e.collabelh+24;z.selectAll("*").remove();const r=i.handlers.xAxis.text(s);z.append("text").style("text-anchor","middle").style("font-size",e.axisTitleFontSize+"px").style("font-weight",600).text(r);setTimeout((()=>{z.attr("transform","translate("+(e.svgw-e.svgPadding.left-e.svgPadding.right-e.rowlabelw)/2+","+(n.height+i.svgh-i.collabelh+20+e.axisTitleFontSize)+")")}),0);const c=i.scale=="byChart"||i.clickedAge?1:h.maxVisibleSeriesTotal/h.maxVisibleAcrossCharts;const d=i.unit=="log"?1:0;const p=i.unit=="pct"?100:h.maxVisibleSeriesTotal;x.style("display","block").call(a((i.unit=="log"?l():t()).domain([p/c,d]).range([e.colgrplabelh,e.svgh-e.collabelh+e.colgrplabelh-e.borderwidth+1])).ticks(4,o("d")));b.selectAll("*").remove();const g=e.svgh-e.collabelh;b.style("font-weight",600).attr("transform","translate("+(-e.svgPadding.left-e.axisTitleFontSize)+","+g/2+")rotate(-90)").append("text").style("text-anchor","middle").style("font-size",e.axisTitleFontSize+"px").text(i.handlers.yAxis.text(s))}function dt(e,a){x.style("display","none");I.style("display","none");b.selectAll("*").remove();const n=i.handlers.yAxis.text(a);b.append("text").style("text-anchor","end").style("font-size",e.axisTitleFontSize+"px").style("font-weight",600).text(n);w.node().getBBox();setTimeout((()=>{b.style("text-anchor","end").attr("transform","translate("+0+",0)")}),0);const r=i.scale=="byChart"||i.clickedAge?1:h.maxVisibleSeriesTotal/h.maxVisibleAcrossCharts;const c=i.unit=="log"?1:0;const d=i.unit=="pct"?100:h.maxVisibleSeriesTotal;let p=e.colheadtop?e.collabelh-2:e.colgrplabelh-2;if(e.legendontop)p+=e.legendh;k.style("display","block").attr("transform","translate(2.5,"+p+")").call(s((i.unit=="log"?l():t()).domain([c,d/r]).range([0,e.svgw-e.rowlabelw])).ticks(4,o("d")));z.selectAll("*").remove();const g=e.svgw-e.rowlabelw;z.attr("transform","translate("+g/2+",0)").append("text").style("text-anchor","middle").style("font-size",e.axisTitleFontSize+"px").style("font-weight",600).text(i.handlers.xAxis.text(a))}function ht(t){const e=t.target.tagName=="tspan"?t.target.parentNode:t.target;const o=e.__data__;if(o&&(e.tagName=="rect"||e.nodeName=="text")){S=o;o.x;q(o.cellmates?o.cellmates[0]:o);M.attr("font-weight",lt).attr("font-size",nt).style("fill",rt)}else{S=d;B.attr("font-weight",ot).attr("font-size",at).style("fill",st);M.attr("font-weight",lt).attr("font-size",nt).style("fill",rt)}i.handlers.series.mouseover(t,o)}function pt(t){t.stopPropagation();M.attr("font-weight","").attr("font-size",c.colfontsize).style("fill","");S=d;if(i.handlers.series.mouseout)i.handlers.series.mouseout(t)}function gt(t){const e=t.target.__data__;if(!e)return;const o=i.col2name["id"in e?e.id:e];const a={colId:o.name};a[i.colkey]=o.name;a[i.colgrpkey]=o.grp;if(i.handlers.colLabel.mouseover)i.handlers.colLabel.mouseover(t)}function ft(t){S=d;if(i.handlers.colLabel.mouseout)i.handlers.colLabel.mouseout(t)}function ut(t){const e=t.target.__data__;n.handlers.series.click(t,e)}L.hm=i;L.styles=()=>{const t={};for(const e in A){t[e]=i[e]}if(legendRenderer){for(const e in legendRenderer.defaults)t[e]=i[e]}return t};return L}export{n as default};
|
|
1
|
+
import{I as t,d as e,W as o}from"./app-3d14cbe4.js";import{b as a,c as s}from"./axis-747c801e.js";import{l}from"./log-0ea548ec.js";function n(n,r){const i={},c={};const d={};let h;let p;let g,f,u,m,w;let y,x,b,v,k,z,I;let S,B,M;let A;let T=[];let j;function L(t,e){let o=i.orientation;h=t;Object.assign(i,h.settings);i.handlers=h.handlers;i.cols=i.cols.filter((t=>i.colLabels.find((e=>e.id==t))));i.rows=i.rows?.filter((t=>!i.exclude.rows.includes(t)))||[];const a=!g;if(a)P();const s=i.colw;T=h.visibleSerieses;T.map(C);h.serieses.map(C);_();p.style("width",i.svgw+100+"px").style("font-weight",600).style("font-size","20px").style("margin-bottom","24px").html(i.handlers.chart.title(h));if(a){g.attr("height",0).attr("width",0).style("opacity",0);f.attr("transform","translate("+i.rowlabelw+",0)")}const l=u.attr("transform",E).selectAll(".bars-cell-grp").data(T,F);l.exit().each(O);l.each(N);l.enter().append("g").each(W);const n=m.attr("transform",Q).style("opacity",o!=i.orientation?1e-4:1).style("display",i.orientation!="vertical"?"none":"").selectAll("g").data(i.colLabels,(t=>t.id));n.exit().remove();n.each(Y);n.enter().append("g").each(X);const r=w.attr("transform",Z).style("opacity",o!=i.orientation?1e-4:1).style("display",i.orientation!="horizontal"?"none":"").selectAll("g").data(i.colLabels,(t=>t.id));r.exit().remove();r.each(et);r.enter().append("g").each(tt);u.selectAll("rect");M=m.selectAll("text");i.delay=.35*i.duration;it(i,o,h.visibleTotal);i.colw=s;if(o!=i.orientation){const t=i.orientation=="vertical"?m:w;t.transition().duration(1500).style("opacity",1)}if(a){g.transition().duration(100).attr("height",1).attr("width",1).style("opacity",1)}setTimeout((()=>{const t=20;const e=f.node().getBBox();const o=!j||e.width?e:j;j=o;g.transition().duration(e.width?100:0).attr("width",o.width+t).attr("height",o.height+t);if(i.orientation=="vertical"){const a=m.node().getBBox();const s=b.node().getBBox();const l=Math.max(-a.x,-s.x,-o.x);f.transition().duration(e.width?100:0).attr("transform","translate("+l+","+-t+")")}else{const t=w.node().getBBox();const o=b.node().getBBox();const a=z.node().getBBox();f.transition().duration(e.width?100:0).attr("transform","translate("+Math.max(-t.x,-o.x)+","+-a.y+")")}}),a?110:510)}function P(){A={geneonrow:i.geneonrow,nicenames:{},colw:i.geneonrow?Math.min(15,Math.max(1,Math.floor(document.body.clientWidth*.7/i.cols.length))):20,rowh:i.geneonrow?20:Math.min(18,Math.max(10,Math.floor(document.body.clientHeight*.7/i.rows.length))),rowspace:i.geneonrow?2:i.rows.length>100?0:1,colspace:!i.geneonrow?2:i.cols.length>100?0:1,rowtick:8,coltick:5,rowlabtickspace:4,collabtickspace:4,collabelh:150,rowlabelw:250,rowheadleft:true,colheadtop:false,samplecount4gene:true,samplecount4legend:false,showgrid:true,gridstroke:"#fff",showEmptyCells:false,cellbg:"#eeeeee",fontsizeratio:.9,rowlabelfontsizemax:16,collabelfontsizemax:12,crudefill:i.colw<=2,duration:1e3,delay:0};for(let t in A){if(!(t in i)||t=="cols"||t=="rows")i[t]=A[t]}if(!g){p=r.append("div").attr("class","pp-chart-title").style("text-align","center");g=r.append("svg").attr("class","pp-bars-svg").style("overflow","visible").on("mouseover.tphm2",i.handlers.svg.mouseover).on("mouseout.tphm2",i.handlers.svg.mouseout).on("click.tphm2",i.handlers.svg.click)}f=g.append("g").attr("class","sjpcb-bars-mainG").attr("data-testid","sjpcb-bars-mainG");i.h.svg=g;i.h.mainG=f;m=f.append("g").attr("class","bars-collabels").style("cursor",i.handlers.colLabel.click?"pointer":"").on("mouseover.tphm2",gt).on("mouseout.tphm2",ft).on("click.tphm2",i.handlers.colLabel.click);w=f.append("g").attr("class","bars-rowlabels").attr("data-testid","sjpcb-bars-rowlabels").style("cursor",i.handlers.rowLabel.click?"pointer":"").on("mouseover.tphm2",gt).on("mouseout.tphm2",ft).on("click.tphm2",i.handlers.rowLabel.click);u=f.append("g").attr("class","bars-series").attr("data-testid","sjpcb-bars-series").on("mouseover.tphm2",ht).on("mouseout.tphm2",pt).on("click",ut).style("cursor","pointer");y=f.append("g").attr("class","sjpcb-bar-chart-axis-g");x=y.append("g").attr("class","sjpcb-bar-chart-y-axis");v=y.append("line").attr("class","sjpcb-bar-chart-y-line").style("stroke","#000");b=y.append("g").attr("class","sjpcb-bar-chart-y-title").style("cursor","default");k=y.append("g").attr("class","sjpcb-bar-chart-x-axis");I=y.append("line").attr("class","sjpcb-bar-chart-x-line").style("stroke","#000");z=y.append("g").attr("class","sjpcb-bar-chart-x-title").style("cursor","default")}function _(){const e=i.numCharts<4?i.numCharts:i.numCharts%3==0?3:2;const o=i.cols.length*i.colspace+(i.colgrps.length-1)*i.colgspace+i.rowlabelw+i.rowgrplabelw;if(i.orientation=="horizontal"){i.svgw=Math.min(400,.92*window.innerWidth/e);i.rowh=Math.max(14,Math.min(22,.7*window.innerHeight/i.cols.length));i.svgh=i.cols.length*(i.rowh+i.colspace)-i.colspace+(i.colgrps.length-1)*i.colgspace+i.rowlabelw+i.rowgrplabelw}else{const t=window.innerWidth*.92/e;i.colw=Math.min(Math.max(16,Math.round((t-o)/i.cols.length)),30);i.svgw=i.cols.length*(i.colw+i.colspace)-i.colspace+(i.colgrps.length-1)*i.colgspace+i.rowlabelw+i.rowgrplabelw;const a=Math.ceil(i.numCharts/e);i.svgh=Math.max(350,Math.min(400,window.innerHeight*.5))/(a>3?2:1)}h.svgh=i.svgh;i.h.yScale={};i.h.xScale={};i.h.yPrevBySeries={};i.h.xPrevBySeries={};const a=i.scale=="byChart"?1:h.maxVisibleSeriesTotal/h.maxVisibleAcrossCharts;for(const e of T){if(e.visibleData[0]){const o=i.unit=="log"?1:0;const s=i.unit=="pct"?e.visibleTotal:i.unit=="log"?h.maxSeriesLogTotal:h.maxVisibleSeriesTotal;i.h.yScale[e.seriesId]=t().domain([o,s/a]).range([0,i.svgh-i.collabelh]);i.h.xScale[e.seriesId]=t().domain([o,s/a]).range([0,i.svgw-i.rowlabelw]);i.h.yPrevBySeries[e.seriesId]=0;i.h.xPrevBySeries[e.seriesId]=0;for(const t of e.visibleData){t.height=R(t);t.y=q(t);t.x=K(t);t.width=J(t)}}}c.colfontsize=Math.min(i.colw*i.fontsizeratio,i.collabelfontsizemax);c.rowfontsize=Math.min(i.rowh*i.fontsizeratio,i.rowlabelfontsizemax);c.rowtextyalign=Math.min(i.rowh,(i.rowh+c.rowfontsize)/2)+i.rowspace}function C(t){if(!("seriesId"in t)){t.data.map((e=>{if(e)t.seriesId=e[i.serieskey]}))}t.data.map((t=>{t.rowId=t[i.rowkey];t.colId=t[i.colkey]}))}function F(t){return t.seriesId}function V(t){return t.rowId+" "+t.colId}function O(){e(this).remove()}function N(t){const o=e(this).selectAll(".bars-cell").data(t.data.filter(G),V);o.exit().each((function(){e(this).remove()}));o.style("display",(t=>i.cols.includes(t.colId)?"block":"none"));o.select("rect").datum((t=>t)).transition().duration(i.duration).attr("x",(t=>t.x)).attr("y",(t=>t.y)).attr("width",(t=>t.width)).attr("height",(t=>t.height)).attr("fill",i.handlers.series.rectFill).attr("stroke",i.handlers.series.strokeFill);o.enter().append("g").each(H);o.selectAll("text").remove();D(o)}function W(t){if(!t||!t.data.length)return;e(this).attr("class","bars-cell-grp").selectAll("g").data(t.data.filter(G),V).enter().append("g").each(H)}function G(t){return i.rows.includes(t.dataId)}function H(t){const o=e(this).attr("class","bars-cell").datum(t);o.style("display",(t=>i.cols.includes(t.colId)?"block":"none"));o.append("rect").attr("x",(t=>t.x)).attr("y",(t=>t.y)).attr("width",(t=>t.width)).attr("height",(t=>t.height)).attr("fill",i.handlers.series.rectFill).attr("stroke",i.handlers.series.strokeFill).attr("shape-rendering","crispEdges").style("opacity",0).transition().delay(i.delay).duration(i.duration).style("opacity",1);D(o)}function D(t){if(!n.config.settings.barchart.asterisksVisible){return}t.append("text").text((t=>{const e=t.groupPvalues&&t.groupPvalues.term2tests.find((e=>e.term2id==t.dataId));if(!e||e.skipped||!e.adjusted_p_value)return"";return e.adjusted_p_value<.05?"*":""})).attr("x",(t=>t.x+t.width/2)).attr("y",(t=>t.y+t.height/2)).attr("dy","0.6em").style("text-anchor","middle").style("opacity",0).transition().delay(i.delay).duration(i.duration).style("opacity",1)}function E(){const t=i.colspace;let e=i.colheadtop?i.collabelh:i.colgrplabelh;if(i.legendontop)e+=i.legendh;return"translate("+t+","+e+")"}function R(t){const e=i.unit=="log"?t.logTotal:t.total;const o=i.orientation=="vertical"?i.h.yScale[t.seriesId](e):i.rowh;const a=0;i.h.yPrevBySeries[t.seriesId]+=o+a;return Math.max(1,o-a)}function q(t){const e=i.colgrps.indexOf(t[i.colgrpkey])*i.colgspace;const o=i.unit=="log"?Math.max(0,i.h.yPrevBySeries[t.seriesId]):i.h.yPrevBySeries[t.seriesId];return i.orientation=="vertical"?i.svgh-i.collabelh-o:i.cols.indexOf(t.colId)*(i.rowh+i.rowspace)+e}function J(t){const e=i.unit=="log"?t.logTotal:t.total;const o=i.orientation=="vertical"?i.colw:i.h.xScale[t.seriesId](e);const a=0;i.h.xPrevBySeries[t.seriesId];i.h.xPrevBySeries[t.seriesId]+=Math.max(1,o+a);return Math.max(1,o-a)}function K(t){const e=i.colgrps.indexOf(t[i.colgrpkey])*i.colgspace;return i.orientation=="vertical"?i.cols.indexOf(t.colId)*(i.colw+i.colspace)+e:i.h.xPrevBySeries[t.seriesId]}function Q(){let t=5+i.colspace;let e=i.colheadtop?i.borderwidth+1:i.svgh-i.collabelh+25;if(i.legendontop)e+=i.legendh;return"translate("+t+","+e+")"}function U(t){const e=i.col2name[t]?i.col2name[t].grp:"";const o=i.colgrps.indexOf(e)*i.colgspace+i.cols.indexOf("id"in t?t.id:t)*(i.colw+i.colspace)+i.colw/2;const a=i.colheadtop?-1*(i.coltick+i.collabtickspace):i.coltick+i.collabtickspace;return"translate("+o+","+a+")"}function X(t){if(!this||t===undefined)return;const o=e(this).attr("transform",U).style("opacity",0);o.append("text").attr("transform","rotate(-40)").attr("y",2).attr("text-anchor","end").attr("font-size",c.colfontsize+"px").html(i.handlers.colLabel.text);o.transition().delay(i.delay).duration(i.duration).style("opacity",1)}function Y(t){const o=e(this).datum(t);o.attr("transform",U);o.selectAll("text").datum(t).attr("y",2).attr("text-anchor","end").attr("font-size",c.colfontsize+"px").html(i.handlers.colLabel.text)}function Z(){const t=i.colheadtop?i.collabelh:i.colgrplabelh;const e=i.rowheadleft?i.borderwidth+1:i.svgw-i.rowlabelw+20;return"translate("+e+","+t+")"}function $(t){const e=i.row2name[t]?i.row2name[t].grp:"";const o=i.colgrps.indexOf(e)*i.rowgspace+i.cols.indexOf("id"in t?t.id:t)*(i.rowh+i.rowspace)+c.rowtextyalign;const a=i.rowheadleft?-1*(i.rowtick+i.rowlabtickspace):i.rowtick+i.rowlabtickspace;return"translate("+a+","+o+")"}function tt(t){if(!this||t===undefined)return;const o=e(this).attr("transform",$).style("opacity",0);o.append("text").attr("x",2).attr("text-anchor","end").attr("font-size",c.rowfontsize+"px").html(i.handlers.rowLabel.text);o.transition().delay(i.delay).duration(i.duration).style("opacity",1)}function et(t){const o=e(this).datum(t);o.attr("transform",$);o.selectAll("text").datum(t).attr("x",2).attr("text-anchor","end").attr("font-size",c.rowfontsize+"px").html(i.handlers.rowLabel.text)}function ot(t){return t==S.rowId?700:""}function at(t){return t==S.rowId?Math.max(12,c.rowfontsize):c.rowfontsize}function st(t){return t==S.rowId?"#00f":""}function lt(t){return t==S.colId?700:""}function nt(t){return t==S.colId?12:c.colfontsize}function rt(t){return t==S.colId?"#00f":""}function it(t,e,o){y.style("opacity",e!=t.orientation?0:1).transition().duration(1500).style("opacity",1);if(t.orientation=="vertical"){ct(t,o)}else{dt(t,o)}}function ct(e,s){k.style("display","none");v.style("display","none");const n=m.node().getBBox();e.svgh-e.collabelh+24;z.selectAll("*").remove();const r=i.handlers.xAxis.text(s);z.append("text").style("text-anchor","middle").style("font-size",e.axisTitleFontSize+"px").style("font-weight",600).text(r);setTimeout((()=>{z.attr("transform","translate("+(e.svgw-e.svgPadding.left-e.svgPadding.right-e.rowlabelw)/2+","+(n.height+i.svgh-i.collabelh+20+e.axisTitleFontSize)+")")}),0);const c=i.scale=="byChart"||i.clickedAge?1:h.maxVisibleSeriesTotal/h.maxVisibleAcrossCharts;const d=i.unit=="log"?1:0;const p=i.unit=="pct"?100:h.maxVisibleSeriesTotal;x.style("display","block").call(a((i.unit=="log"?l():t()).domain([p/c,d]).range([e.colgrplabelh,e.svgh-e.collabelh+e.colgrplabelh-e.borderwidth+1])).ticks(4,o("d")));b.selectAll("*").remove();const g=e.svgh-e.collabelh;b.style("font-weight",600).attr("transform","translate("+(-e.svgPadding.left-e.axisTitleFontSize)+","+g/2+")rotate(-90)").append("text").style("text-anchor","middle").style("font-size",e.axisTitleFontSize+"px").text(i.handlers.yAxis.text(s))}function dt(e,a){x.style("display","none");I.style("display","none");b.selectAll("*").remove();const n=i.handlers.yAxis.text(a);b.append("text").style("text-anchor","end").style("font-size",e.axisTitleFontSize+"px").style("font-weight",600).text(n);w.node().getBBox();setTimeout((()=>{b.style("text-anchor","end").attr("transform","translate("+0+",0)")}),0);const r=i.scale=="byChart"||i.clickedAge?1:h.maxVisibleSeriesTotal/h.maxVisibleAcrossCharts;const c=i.unit=="log"?1:0;const d=i.unit=="pct"?100:h.maxVisibleSeriesTotal;let p=e.colheadtop?e.collabelh-2:e.colgrplabelh-2;if(e.legendontop)p+=e.legendh;k.style("display","block").attr("transform","translate(2.5,"+p+")").call(s((i.unit=="log"?l():t()).domain([c,d/r]).range([0,e.svgw-e.rowlabelw])).ticks(4,o("d")));z.selectAll("*").remove();const g=e.svgw-e.rowlabelw;z.attr("transform","translate("+g/2+",0)").append("text").style("text-anchor","middle").style("font-size",e.axisTitleFontSize+"px").style("font-weight",600).text(i.handlers.xAxis.text(a))}function ht(t){const e=t.target.tagName=="tspan"?t.target.parentNode:t.target;const o=e.__data__;if(o&&(e.tagName=="rect"||e.nodeName=="text")){S=o;o.x;q(o.cellmates?o.cellmates[0]:o);M.attr("font-weight",lt).attr("font-size",nt).style("fill",rt)}else{S=d;B.attr("font-weight",ot).attr("font-size",at).style("fill",st);M.attr("font-weight",lt).attr("font-size",nt).style("fill",rt)}i.handlers.series.mouseover(t,o)}function pt(t){t.stopPropagation();M.attr("font-weight","").attr("font-size",c.colfontsize).style("fill","");S=d;if(i.handlers.series.mouseout)i.handlers.series.mouseout(t)}function gt(t){const e=t.target.__data__;if(!e)return;const o=i.col2name["id"in e?e.id:e];const a={colId:o.name};a[i.colkey]=o.name;a[i.colgrpkey]=o.grp;if(i.handlers.colLabel.mouseover)i.handlers.colLabel.mouseover(t)}function ft(t){S=d;if(i.handlers.colLabel.mouseout)i.handlers.colLabel.mouseout(t)}function ut(t){const e=t.target.__data__;n.handlers.series.click(t,e)}L.hm=i;L.styles=()=>{const t={};for(const e in A){t[e]=i[e]}if(legendRenderer){for(const e in legendRenderer.defaults)t[e]=i[e]}return t};return L}export{n as default};
|