synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
25 lines • 1.06 kB
TypeScript
import { ISetCombinations, ISets, UpSetSelectionProps } from '@upsetjs/react';
export type UpsetPlotProps = {
sql: string;
rgbIndex?: number;
customPlotColor?: string;
selectionOpacity?: number;
variant?: 'ampals';
maxBarCount?: number;
setName?: string;
combinationName?: string;
height?: number;
summaryLinkText?: string;
summaryLink?: string;
} & Pick<UpSetSelectionProps, 'onClick'>;
export type UpsetPlotData = {
sets: ISets<any>;
combinations: ISetCombinations<any>;
};
/**
* Upset plot. See https://medium.com/@sgratzl/upset-js-javascript-tutorial-1b84bfd6896d
* Currently this is driven by a Synapse Table/View, but we may want to alter it to read in the data from a flat file instead.
*/
export declare function UpsetPlot({ sql, variant, rgbIndex, maxBarCount, setName, combinationName, height, summaryLinkText, summaryLink, onClick, customPlotColor, selectionOpacity, }: UpsetPlotProps): import("react/jsx-runtime").JSX.Element;
export default UpsetPlot;
//# sourceMappingURL=UpsetPlot.d.ts.map