/** * @upsetjs/bundle * https://github.com/upsetjs/upsetjs * * Copyright (c) 2022 Samuel Gratzl */ /** * @upsetjs/model * https://github.com/upsetjs/upsetjs * * Copyright (c) 2022 Samuel Gratzl */ /** * @upsetjs/model * https://github.com/upsetjs/upsetjs * * Copyright (c) 2021 Samuel Gratzl */ interface IBaseSet { /** * name of the set */ readonly name: string; /** * optional set color */ readonly color?: string; /** * elements in this set */ readonly elems: readonly T[]; /** * number of elements in the set */ readonly cardinality: number; /** * custom overlap computation function * @param o to compare with */ overlap?(o: ISetLike | readonly T[]): number; } interface ISet extends IBaseSet { /** * a fixed set type to separate between sets and set combinations */ readonly type: 'set'; } interface IBaseSetCombination extends IBaseSet { /** * sets this set intersection is composed of */ readonly sets: ReadonlySet>; /** * number of set in this set intersection */ readonly degree: number; } interface ISetIntersection extends IBaseSetCombination { /** * whether it is a set or an intersection */ readonly type: 'intersection'; } interface IDistinctSetIntersection extends IBaseSetCombination { /** * whether it is a set or an intersection */ readonly type: 'distinctIntersection'; } interface ISetUnion extends IBaseSetCombination { /** * whether it is a set or an intersection */ readonly type: 'union'; } interface ISetComposite extends IBaseSetCombination { /** * whether it is a set or an intersection */ readonly type: 'composite'; } /** * union of all set combination types */ declare type ISetCombination = ISetIntersection | ISetUnion | ISetComposite | IDistinctSetIntersection; declare type SetCombinationType = 'intersection' | 'union' | 'composite' | 'distinctIntersection'; /** * union of a set or a set combination */ declare type ISetLike = ISet | ISetCombination; /** * readonly array of sets */ declare type ISets = readonly ISet[]; /** * readonly array of set combinations */ declare type ISetCombinations = readonly ISetCombination[]; /** * readonly array of set like objects */ declare type ISetLikes = readonly ISetLike[]; /** * helper method to generate a key for a given set * @param s the set to compute the key for */ declare function toKey(s: ISetLike): string; /** * @upsetjs/model * https://github.com/upsetjs/upsetjs * * Copyright (c) 2021 Samuel Gratzl */ /** * helper method to create proper UpSet.js structures by adding extra properties * @param set the set to complete */ declare function asSet(set: S): S & ISet; /** * possible set sort orders */ declare type SortSetOrder = 'cardinality' | 'name' | 'cardinality:desc' | 'name:asc' | 'cardinality:asc' | 'name:desc'; interface PostprocessSetOptions { /** * order the set by the given criteria */ order?: SortSetOrder; /** * limit to the top N sets after sorting */ limit?: number; } /** * helper to create a proper data structures for UpSet.js sets by adding extra properties * @param sets set like structures * @param options additional postprocessing options */ declare function asSets(sets: readonly S[], options?: PostprocessSetOptions): (S & ISet)[]; /** * helper method to extract the sets in a set combination from its name, e.g. S1&S2 => S1,S2 * @param sets the list of possible sets * @param symbol the regex to split a name */ declare function fromSetName(sets: ISets, symbol?: RegExp): (s: { name: string; }) => ISet[]; /** * sort orders for set combinations */ declare type SortCombinationOrder = SortSetOrder | 'group' | 'degree' | 'group:asc' | 'group:desc' | 'degree:asc' | 'degree:desc'; declare type SortCombinationOrders = readonly SortCombinationOrder[]; interface PostprocessCombinationsOptions { /** * order the sets combinations by the given criteria */ order?: SortCombinationOrder | SortCombinationOrders; /** * limit to the top N after sorting */ limit?: number; } /** * helper to create a proper data structures for UpSet.js sets by adding extra properties * @param sets set like structures */ declare function asCombination(set: S, type: SetCombinationType, toSets: (s: S) => ISets): S & ISetCombination; /** * helper to create a proper data structures for UpSet.js sets by adding extra properties * @param sets set like structures * @param type hint for the type of combinations * @param toSets resolver of the contained sets */ declare function asCombinations(sets: readonly S[], type: SetCombinationType, toSets: (s: S) => ISets): (S & ISetCombination)[]; /** * @upsetjs/model * https://github.com/upsetjs/upsetjs * * Copyright (c) 2021 Samuel Gratzl */ interface GenerateSetCombinationsOptions extends PostprocessCombinationsOptions { /** * type of set combination * @default intersection */ type?: SetCombinationType; /** * minimum number of intersecting sets * @default 0 */ min?: number; /** * maximum number of intersecting sets * @default Infinity */ max?: number; /** * include empty intersections * @default false */ empty?: boolean; /** * list of all elements used to compute the elements which aren't part of any given set */ elems?: readonly T[]; /** * alternative to `.elems` by directly specifying the elements that are not part of any set * just makes sense with min=0 */ notPartOfAnySet?: readonly T[] | number; /** * optional elem key function * @param v */ toElemKey?(v: T): string; /** * optional color merger **/ mergeColors?: (colors: readonly (string | undefined)[]) => string | undefined; } /** * generate set intersection/unions for a given list of sets * @param sets the sets with their elements * @param options additional customization options */ declare function generateCombinations(sets: ISets, options?: GenerateSetCombinationsOptions): ISetCombinations; /** * @upsetjs/model * https://github.com/upsetjs/upsetjs * * Copyright (c) 2021 Samuel Gratzl */ interface ExtractFromExpressionOptions { type?: SetCombinationType; setOrder?: SortSetOrder; combinationOrder?: SortCombinationOrder | SortCombinationOrders; joiner?: string; /** * optional function to identify the same sets * @param set the set to generate a key for */ toKey?: (set: ISetLike) => string; } /** * extract sets and combinations out of a given list of static combination information. * In addition an accessor is used to specify the set names * @param combinations list of combinations * @param accessor accessor to get the list of sets the combination belong to * @param options hints about the given combinations */ declare function extractFromExpression(combinations: readonly T[], accessor: (elem: T) => string[], options?: ExtractFromExpressionOptions): { sets: ISets; combinations: readonly (T & ISetCombination)[]; }; /** * extract sets out of a given element array which have a `.sets` property * @param combinations * @param options hints about the given combinations */ declare function extractFromExpression(combinations: readonly T[], options?: ExtractFromExpressionOptions): { sets: ISets; combinations: readonly (T & ISetCombination)[]; }; /** * @upsetjs/model * https://github.com/upsetjs/upsetjs * * Copyright (c) 2021 Samuel Gratzl */ interface ExtractCombinationsOptions { type?: SetCombinationType; setOrder?: SortSetOrder; setLimit?: number; combinationOrder?: SortCombinationOrder | SortCombinationOrders; combinationLimit?: number; sets?: ISets; joiner?: string; } /** * extract sets out of a given element array, where an accessor is used to specify the set names * @param elements list of elements * @param acc accessor to get the list of sets the element belong to * @param options postprocess options */ declare function extractCombinations(elements: readonly T[], acc: (elem: T) => string[], options?: ExtractCombinationsOptions): { sets: ISets; combinations: ISetCombinations; }; /** * extract sets out of a given element array which have a `.sets` property * @param elements * @param options postprocess options */ declare function extractCombinations(elements: readonly T[], options?: ExtractCombinationsOptions): { sets: ISets; combinations: ISetCombinations; }; /** * @upsetjs/model * https://github.com/upsetjs/upsetjs * * Copyright (c) 2021 Samuel Gratzl */ /** * extract sets out of a given element array, where an accessor is used to specify the set names * @param elements list of elements * @param acc accessor to get the list of sets the element belong to * @param options postprocess options */ declare function extractSets(elements: readonly T[], acc: (elem: T) => string[], options?: PostprocessSetOptions): ISets; /** * extract sets out of a given element array which have a `.sets` property * @param elements * @param options postprocess options */ declare function extractSets(elements: readonly T[], options?: PostprocessSetOptions): ISets; /** * @upsetjs/model * https://github.com/upsetjs/upsetjs * * Copyright (c) 2021 Samuel Gratzl */ interface ISetOverlapFunction { (a: ISetLike, b: ISetLike): number; } interface SetOverlap { setA: number; setB: number; union: number; intersection: number; } interface SetElemOverlap { setA: readonly T[]; setB: readonly T[]; union: readonly T[]; intersection: readonly T[]; } declare function setOverlapFactory(a: Set | readonly T[], toElemKey?: (e: T) => string): (b: Set | readonly T[]) => SetOverlap; declare function setOverlap(a: Set | readonly T[], b: Set | readonly T[], toElemKey?: (e: T) => string): SetOverlap; declare function setElemOverlapFactory(a: Set | readonly T[], toElemKey?: (e: T) => string): (b: Set | readonly T[]) => SetElemOverlap; declare function setElemOverlap(a: Set | readonly T[], b: Set | readonly T[], toElemKey?: (e: T) => string): SetElemOverlap; declare function setElemIntersectionFactory(a: Set | readonly T[], toElemKey?: (e: T) => string): (b: Set | readonly T[]) => readonly T[]; /** * @upsetjs/model * https://github.com/upsetjs/upsetjs * * Copyright (c) 2021 Samuel Gratzl */ declare function generateDistinctOverlapFunction(combinations: ISetCombinations, fallback: ISetOverlapFunction, toKey?: (s: ISetLike) => string): ISetOverlapFunction; declare function generateIntersectionOverlapFunction(combinations: ISetCombinations, fallback: ISetOverlapFunction, toKey?: (s: ISetLike) => string): ISetOverlapFunction; declare function generateUnionOverlapFunction(combinations: ISetCombinations, fallback: ISetOverlapFunction, toKey?: (s: ISetLike) => string): ISetOverlapFunction; declare function generateOverlapFunction(combinations: ISetCombinations, fallback: ISetOverlapFunction, toKey?: (s: ISetLike) => string): ISetOverlapFunction; /** * @upsetjs/model * https://github.com/upsetjs/upsetjs * * Copyright (c) 2021 Samuel Gratzl */ interface GenerateOverlapLookupOptions { toElemKey?(v: T): string; what?: keyof SetOverlap; compress?: 'no' | 'yes' | 'auto'; } /** * generate a (compressed) overlap lookup matrix that can be dumped and later used to lookup overlaps * @param sets the sets of the plot * @param combinations the set combinations of the plot * @param options additional options */ declare function generateOverlapLookup(sets: ISets, combinations: ISetCombinations, { toElemKey, what, compress }?: GenerateOverlapLookupOptions): readonly (readonly number[])[] | string; /** * uses the given overlap lookup function to generate a compute and indices functions * @param matrix the compressed overlap matrix * @param sets the sets of the plot * @param combinations the set combinations of the plot * @param toKey */ declare function generateOverlapLookupFunction(matrix: readonly (readonly number[])[] | string, sets: ISets, combinations: ISetCombinations, toKey?: (v: ISetLike) => string): { setIndex: Map; compute: ISetOverlapFunction; combinationIndex: Map; }; /** * @upsetjs/model * https://github.com/upsetjs/upsetjs * * Copyright (c) 2021 Samuel Gratzl */ declare const SET_JOINERS: { distinctIntersection: string; intersection: string; union: string; composite: string; }; /** * @upsetjs/model * https://github.com/upsetjs/upsetjs * * Copyright (c) 2021 Samuel Gratzl */ interface UpSetElemQuery { /** * name of this query for the tooltip */ readonly name: string; /** * color for highlighting */ readonly color: string; /** * elements within this query */ readonly elems: readonly T[] | Set; } interface UpSetSetQuery { /** * name of this query for the tooltip */ readonly name: string; /** * color for highlighting */ readonly color: string; /** * set to highlight */ readonly set: ISetLike; } interface UpSetCalcQuery { /** * name of this query for the tooltip */ readonly name: string; /** * color for highlighting */ readonly color: string; /** * computes the overlap of the given set to this query * @param s the current set to evaluate * @return at most `s.cardinality` */ overlap(s: ISetLike | readonly T[]): number; } declare type UpSetQuery = UpSetElemQuery | UpSetCalcQuery | UpSetSetQuery; declare type UpSetQueries = readonly UpSetQuery[]; declare function isElemQuery(q: UpSetQuery): q is UpSetElemQuery; declare function isCalcQuery(q: UpSetQuery): q is UpSetCalcQuery; declare function isSetQuery(q: UpSetQuery): q is UpSetSetQuery; /** * helper method to create an overlap function for a given query * @param query the query * @param what type of overlap * @param toElemKey optional key function */ declare function queryOverlap(query: UpSetQuery, what: keyof SetOverlap, toElemKey?: (e: T) => string): (s: ISetLike | readonly T[]) => number; /** * helper method to create an overlap function of elements for a given query * @param query the query * @param what type of overlap * @param toElemKey optional key function */ declare function queryElemOverlap(query: UpSetQuery, what: keyof SetElemOverlap, toElemKey?: (e: T) => string): (s: ISetLike) => readonly T[] | null; /** * @upsetjs/model * https://github.com/upsetjs/upsetjs * * Copyright (c) 2021 Samuel Gratzl */ declare function isSet(v: any): v is ISet; declare function isSetCombination(v: any): v is ISetCombination; declare function isSetLike(v: any): v is ISetLike; declare function isGenerateSetCombinationOptions(v: any): v is GenerateSetCombinationsOptions; declare function isUpSetQuery(v: any): v is UpSetQuery; /** * @upsetjs/model * https://github.com/upsetjs/upsetjs * * Copyright (c) 2021 Samuel Gratzl */ interface BandScaleLike { (v: string): number | undefined; bandwidth(): number; } interface BandScaleFactory { (domain: string[], size: number, padding: number): BandScaleLike; } declare const bandScale$1: BandScaleFactory; /** * @upsetjs/model * https://github.com/upsetjs/upsetjs * * Copyright (c) 2021 Samuel Gratzl */ interface TickOptions { orientation: 'horizontal' | 'vertical'; fontSizeHint: number; } declare type NumericScaleTick = { value: number; label?: string; }; interface NumericScaleLike { (v: number): number; ticks(count?: number): readonly (NumericScaleTick | number)[]; tickFormat(): (v: number) => string; } interface NumericScaleFactory { (max: number, range: [number, number], options: TickOptions): NumericScaleLike; } /** * @upsetjs/model * https://github.com/upsetjs/upsetjs * * Copyright (c) 2021 Samuel Gratzl */ declare const linearScale: NumericScaleFactory; /** * @upsetjs/model * https://github.com/upsetjs/upsetjs * * Copyright (c) 2021 Samuel Gratzl */ declare const logScale: NumericScaleFactory; /** * creates an (compressed) indices array for the given array of elements * @param arr the array to compress * @param toIndex the element to index function */ declare function toIndicesArray(arr: readonly T[], toIndex: (v: T) => number, { sortAble, compress }?: { sortAble?: boolean; compress?: 'no' | 'yes' | 'auto'; }): string | readonly number[]; /** * reverse operation of `toIndicesArray` by supporting compressed indices notation * @param indices the (compressed) indices * @param elements the elements to refer by index */ declare function fromIndicesArray(indices: string | readonly number[], elements: readonly T[]): readonly T[]; interface IUpSetDumpRef { type: 'set' | SetCombinationType; index: number; } /** * @upsetjs/model * https://github.com/upsetjs/upsetjs * * Copyright (c) 2021 Samuel Gratzl */ interface IUpSetFromDumpConfig { toElemKey?(set: T): string; } declare function fromDump(dump: IUpSetDump, elems: readonly T[], options?: IUpSetFromDumpConfig): { sets: ISets; combinations: ISetCombinations; selection?: ISetLike | readonly T[]; queries: ReadonlyArray | UpSetSetQuery>; }; declare type UpSetCompressedIndices = readonly number[] | string; interface IUpSetDump { sets: ReadonlyArray<{ name: string; color?: string; cardinality: number; elems: UpSetCompressedIndices; }>; combinations?: ReadonlyArray<{ name: string; color?: string; type: SetCombinationType; sets: readonly number[]; degree: number; cardinality: number; elems: UpSetCompressedIndices; }>; combinationOptions?: Omit; selection?: IUpSetDumpRef | UpSetCompressedIndices; queries: ReadonlyArray<{ name: string; color: string; set?: IUpSetDumpRef; elems?: UpSetCompressedIndices; }>; } interface IUpSetDumpData { toElemIndex(v: T): number; sets: ISets; combinations: ISetCombinations; combinationOptions?: GenerateSetCombinationsOptions; selection?: ISetLike | readonly T[]; queries: ReadonlyArray | UpSetSetQuery>; } interface IUpSetToDumpConfig { compress?: 'no' | 'yes' | 'auto'; toKey?(set: ISetLike): string; } declare function toDump(data: IUpSetDumpData, config?: IUpSetToDumpConfig): IUpSetDump; /** * @upsetjs/model * https://github.com/upsetjs/upsetjs * * Copyright (c) 2021 Samuel Gratzl */ interface UpSetFromStaticDumpFullCombination { name: string; type: SetCombinationType; sets: readonly number[]; cardinality: number; } interface UpSetFromStaticDumpCompressedCombination { n?: string; cc?: string; c: number; type?: 'c' | 'i' | 'u' | 'd'; s: number; } interface IUpSetStaticDump { sets: ReadonlyArray<{ name: string; color?: string; cardinality: number; } | { n: string; cc?: string; c: number; }>; combinations: ReadonlyArray; selection?: IUpSetDumpRef | readonly number[]; queries: ReadonlyArray<{ name: string; color: string; set?: IUpSetDumpRef; overlaps?: readonly number[]; }>; overlaps: readonly (readonly number[])[] | string; } interface IUpSetStaticDumpData { sets: ISets; combinations: ISetCombinations; selection?: ISetLike | readonly T[]; queries: ReadonlyArray | UpSetSetQuery>; } interface IUpSetToStaticDumpConfig { compress?: 'no' | 'yes' | 'auto'; toKey?(set: ISetLike): string; toElemKey?(set: T): string; } declare function toStaticDump(data: IUpSetStaticDumpData, config?: IUpSetToStaticDumpConfig): IUpSetStaticDump; interface IUpSetFromStaticDumpConfig { toKey?(set: ISetLike): string; } declare function fromStaticDump(dump: IUpSetStaticDump, config?: IUpSetFromStaticDumpConfig): { sets: ISets; combinations: ISetCombinations; selection?: ISetLike | ((v: ISetLike) => number); queries: ReadonlyArray | UpSetSetQuery>; }; declare function parseColor(color?: string): [number, number, number]; declare function mergeColors(colors: readonly (string | undefined)[]): string | undefined; //# sourceMappingURL=index.d.ts.map /** * @upsetjs/react * https://github.com/upsetjs/upsetjs * * Copyright (c) 2022 Samuel Gratzl */ /** * @upsetjs/react * https://github.com/upsetjs/upsetjs * * Copyright (c) 2021 Samuel Gratzl */ interface ITextLocation { text: { x: number; y: number; }; } interface ICircle { r: number; cx: number; cy: number; } interface IEllipse { rx: number; ry: number; rotation: number; cx: number; cy: number; } interface ITextCircle extends ICircle, ITextLocation { align: 'start' | 'end' | 'middle'; verticalAlign: 'top' | 'bottom'; } interface ITextEllipse extends IEllipse, ITextLocation { align: 'start' | 'end' | 'middle'; verticalAlign: 'top' | 'bottom'; } interface IArc { x2: number; y2: number; sweep: boolean; large: boolean; ref: number; mode: 'i' | 'o'; } interface IArcSlice { sets: readonly number[]; x1: number; y1: number; arcs: readonly IArc[]; path?: string; } interface ITextArcSlice extends IArcSlice, ITextLocation { } interface IUniverseSet extends IArcSlice { width: number; height: number; } interface ITextUniverseSet extends IUniverseSet, ITextLocation { } interface IVennDiagramLayoutGenerator { readonly maxSets: number; compute(sets: ISets, combinations: ISetCombinations, width: number, height: number): IVennDiagramLayout; } interface IVennDiagramLayout { sets: (ITextCircle | ITextEllipse)[]; universe?: ITextUniverseSet; intersections: ITextArcSlice[]; } /** * @upsetjs/react * https://github.com/upsetjs/upsetjs * * Copyright (c) 2021 Samuel Gratzl */ interface UpSetAddonProps, T> { /** * the current set to visualize */ set: S; /** * the addon width */ width: number; /** * the addon height */ height: number; /** * the theme of the UpSetJS plot */ theme: 'dark' | 'light' | 'vega'; } declare type UpSetSelection = ISetLike | null | readonly T[] | ((s: ISetLike) => number); interface UpSetSelectionAddonProps, T> extends UpSetAddonProps { /** * the current selection of the plot */ selection: UpSetSelection; /** * the specified selection color */ selectionColor: string; /** * the optional overlap of the selection with the current set */ overlap: readonly T[] | null; } interface UpSetQueryAddonProps, T> extends UpSetAddonProps { /** * the current query to show */ query: UpSetQuery; /** * query index */ index: number; /** * the optional overlap of the query with the current set */ overlap: readonly T[] | null; /** * whether to render the query in secondary mode */ secondary: boolean; } interface UpSetAddonHandlerInfo { readonly id: string; readonly name: string; readonly value: { toString(): void; }; } declare type UpSetAddonHandlerInfos = readonly (UpSetAddonHandlerInfo | null)[]; interface UpSetAddon$1, T, N> { /** * addon name */ name: string; /** * addon position before or after the bar * @default after */ position?: 'before' | 'after'; /** * size of this addon in pixel */ size: number; /** * react component to render the addon */ render: (props: UpSetAddonProps) => N; /** * optional react component to render the selection */ renderSelection?: (props: UpSetSelectionAddonProps) => N; /** * optional react component to render a query */ renderQuery?: (props: UpSetQueryAddonProps) => N; createOnHandlerData?: (s: S) => UpSetAddonHandlerInfo; scale?: NumericScaleLike; } declare type UpSetAddons$1, T, N> = readonly UpSetAddon$1[]; interface UpSetBaseFontSizes { /** * @default 16px */ setLabel?: string; /** * @default 10px */ legend?: string; /** * @default 24px */ title?: string; /** * @default 16px */ description?: string; /** * @default 10px */ exportLabel?: string; } interface UpSetFontSizes extends UpSetBaseFontSizes { /** * @default 16px */ chartLabel?: string; /** * @default 10px */ axisTick?: string; /** * @default 10px */ barLabel?: string; } interface VennDiagramFontSizes extends UpSetBaseFontSizes { /** * @default 12px */ valueLabel?: string; } interface KarnaughMapFontSizes extends UpSetBaseFontSizes { /** * @default 10px */ axisTick?: string; /** * @default 10px */ barLabel?: string; /** * @default 16px */ chartLabel?: string; } interface UpSetBaseMultiStyle { setLabel?: C; legend?: C; title?: C; description?: C; } interface UpSetMultiStyle extends UpSetBaseMultiStyle { chartLabel?: C; axisTick?: C; barLabel?: C; bar?: C; dot?: C; } interface VennDiagramMultiStyle extends UpSetBaseMultiStyle { valueLabel?: C; set?: C; } interface KarnaughMapMultiStyle extends UpSetBaseMultiStyle { chartLabel?: C; axisTick?: C; barLabel?: C; bar?: C; set?: C; } interface UpSetBaseDataProps { /** * the sets to visualize */ sets: ISets; /** * optional function to identify the same sets * @param set the set to generate a key for */ toKey?: (set: ISetLike) => string; /** * optional function to identify the same element * @param elem the element the key for */ toElemKey?: (elem: T) => string; } interface UpSetDataProps extends UpSetBaseDataProps { /** * the set combinations to visualize or the generation options to generate the set combinations * by default all set intersections are computed */ combinations?: ISetCombinations | GenerateSetCombinationsOptions; /** * list of addons that should be rendered along the horizontal sets */ setAddons?: UpSetAddons$1, T, N>; /** * list of addons that should be rendered along the vertical set combinations */ combinationAddons?: UpSetAddons$1, T, N>; /** * padding between combination addons * @default 1 */ setAddonPadding?: number; /** * padding between combination addons * @default 1 */ combinationAddonPadding?: number; /** * numeric scale to use, either constants 'linear' or 'log' or a custom factory function * @default linear */ numericScale?: NumericScaleFactory | 'linear' | 'log'; /** * band scale to use, either constant 'band' or a custom factory function * @default band */ bandScale?: BandScaleFactory | 'band'; /** * maximum set scale value * @default derived from the sets */ setMaxScale?: number; /** * maximum combination scale value * @default derived from the combinations */ combinationMaxScale?: number; } interface VennDiagramDataProps extends UpSetBaseDataProps { /** * the set combinations to visualize or the generation options to generate the distinct set combinations * by default all set distinct intersections are computed */ combinations?: ISetCombinations | { /** * optional color merger **/ mergeColors?: (colors: readonly (string | undefined)[]) => string | undefined; }; valueFormat?: (cardinality: number) => string; } interface KarnaughMapDataProps extends UpSetBaseDataProps { /** * the set combinations to visualize or the generation options to generate the distinct set combinations * by default all set distinct intersections are computed */ combinations?: ISetCombinations | GenerateSetCombinationsOptions; /** * numeric scale to use, either constants 'linear' or 'log' or a custom factory function * @default linear */ numericScale?: NumericScaleFactory | 'linear' | 'log'; /** * maximum combination scale value * @default derived from the combinations */ combinationMaxScale?: number; } interface UpSetBaseLayoutProps { /** * width of the chart */ width: number; /** * height of the chart */ height: number; /** * padding within the svg * @default 5 */ padding?: number; } interface UpSetLayoutProps extends UpSetBaseLayoutProps { /** * padding argument for scaleBand * @default 0.1 */ barPadding?: number; /** * padding factor the for dots * @default 0.7 */ dotPadding?: number; /** * width ratios for different plots, * if a number larger than 1 is given, it is interpreted as pixel values * [set chart, set labels, intersection chart = derived] * @default [0.21, 0.19] */ widthRatios?: [number, number]; /** * height ratios for different plots, * if a number larger than 1 is given, it is interpreted as pixel values * [intersection chart, set chart = derived] * @default [0.6] */ heightRatios?: [number]; /** * alignment for the set labels * @default 'center' */ setLabelAlignment?: 'left' | 'center' | 'right'; } interface VennDiagramLayoutProps extends UpSetBaseLayoutProps { /** * function used to perform the venn diagram layout */ layout?: IVennDiagramLayoutGenerator; /** * optional offsets for the x and y positions of each set label */ setLabelOffsets?: readonly { x: number; y: number; }[]; } interface KarnaughMapLayoutProps extends UpSetBaseLayoutProps { /** * padding argument for scaleBand * @default 0.1 */ barPadding?: number; } interface UpSetSelectionProps { /** * the selection of the plot. Can be a set like (set or set combination), an array of elements, or a function to compute the overlap to a given set */ selection?: UpSetSelection; /** * mouse hover listener, triggered when the user is over a set (combination) * a combination of mouseEnter and mouseLeave */ onHover?: (selection: ISetLike | null, evt: MouseEvent, addonInfos: UpSetAddonHandlerInfos) => void; /** * mouse move over set listener, triggered when the user is over a set (combination) */ onMouseMove?: (selection: ISetLike, evt: MouseEvent, addonInfos: UpSetAddonHandlerInfos) => void; /** * mouse click listener, triggered when the user is clicking on a set (combination) */ onClick?: (selection: ISetLike | null, evt: MouseEvent, addonInfos: UpSetAddonHandlerInfos) => void; /** * mouse context menu listener, triggered when the user right clicks on a set (combination) */ onContextMenu?: (selection: ISetLike | null, evt: MouseEvent, addonInfos: UpSetAddonHandlerInfos) => void; /** * list of queries as an alternative to provide a single selection */ queries?: UpSetQueries; } interface UpSetBaseThemeProps { /** * color used to highlight the selection * @default orange */ selectionColor?: string; /** * main color to render bars and dark dots * @default black */ color?: string; /** * main opacity * @default undefined */ opacity?: number; /** * main color used when a selection is present * @default undefined */ hasSelectionColor?: string; /** * main opacity used when a selection is present * @default undefined */ hasSelectionOpacity?: number; /** * main color to render text * @default black */ textColor?: string; } interface UpSetThemeProps extends UpSetBaseThemeProps { /** * color used to highlight alternating background in the sets for easier comparison * set to false to disable alternating pattern */ alternatingBackgroundColor?: string | false; /** * color for the hover hint rects for set combinations */ hoverHintColor?: string; /** * color for dots that indicate it is not a member */ notMemberColor?: string; } interface VennDiagramThemeProps extends UpSetBaseThemeProps { /** * main color to render text * @default black */ valueTextColor?: string; /** * stroke color to render around sets or cells * @default black */ strokeColor?: string; /** * whether to fill the circles * @default false */ filled?: boolean; } interface KarnaughMapThemeProps extends UpSetBaseThemeProps { /** * stroke color to render around sets or cells * @default black */ strokeColor?: string; } declare type UpSetStyleClassNames = UpSetMultiStyle; interface UpSetBaseElementProps { /** * optional unique id of the set element. Note: if set, it is will also be used as a CSS class suffix */ id?: string; /** * optional class name for the SVG element */ className?: string; /** * style object applied to the SVG element */ style?: C; /** * factory to create the style tag */ styleFactory?: (rules: string) => N; } interface UpSetElementProps extends UpSetBaseElementProps { /** * object of classnames for certain sub elements */ classNames?: UpSetStyleClassNames; /** * object for applying styles to certain sub elements */ styles?: UpSetMultiStyle; /** * factory to create extra react nodes for each set */ setChildrenFactory?: (set: ISet) => N; /** * factory to create extra react nodes for each set combination */ combinationChildrenFactory?: (combination: ISetCombination) => N; } interface VennDiagramElementProps extends UpSetBaseElementProps { /** * object of classnames for certain sub elements */ classNames?: VennDiagramMultiStyle; /** * object for applying styles to certain sub elements */ styles?: VennDiagramMultiStyle; } interface KarnaughMapElementProps extends UpSetBaseElementProps { /** * object of classnames for certain sub elements */ classNames?: KarnaughMapMultiStyle; /** * object for applying styles to certain sub elements */ styles?: KarnaughMapMultiStyle; /** * factory to create the style tag */ styleFactory?: (rules: string) => N; } interface UpSetExportOptions { png?: boolean; svg?: boolean; vega?: boolean; dump?: boolean; share?: boolean; } declare type UpSetThemes = 'light' | 'dark' | 'vega'; interface UpSetBaseStyleProps { /** * basic theme of the plot either 'light' or 'dark' * @default light */ theme?: UpSetThemes; /** * show a legend of queries * enabled by default when queries are set */ queryLegend?: boolean; /** * show export buttons * @default true */ exportButtons?: boolean | UpSetExportOptions; /** * specify the overall font family, set to false to use the default font family * @default sans-serif */ fontFamily?: string | false; /** * optional title text for the plot */ title?: L; /** * optional description text for the plot */ description?: L; /** * whether to render tooltips aka title attributes * @default true */ tooltips?: boolean; } interface UpSetStyleProps extends UpSetBaseStyleProps { /** * offset of the label on top or left of a bar * @default 2 */ barLabelOffset?: number; /** * set axis label * @default Set Size */ setName?: L; /** * offset of the set name from the set x axis. 'auto' means that it will be guessed according to the current values * @default auto */ setNameAxisOffset?: number | 'auto'; /** * combination axis label * @default Intersection Size */ combinationName?: L; /** * offset of the combination name from the combination y axis. 'auto' means that it will be guessed according to the current values * @default auto */ combinationNameAxisOffset?: number | 'auto'; /** * specify font sizes for different sub elements */ fontSizes?: UpSetFontSizes; /** * render empty selection for better performance * @default true */ emptySelection?: boolean; } interface VennDiagramStyleProps extends UpSetBaseStyleProps { /** * specify font sizes for different sub elements */ fontSizes?: VennDiagramFontSizes; } interface KarnaughMapStyleProps extends UpSetBaseStyleProps { /** * specify font sizes for different sub elements */ fontSizes?: KarnaughMapFontSizes; /** * render empty selection for better performance * @default true */ emptySelection?: boolean; /** * offset of the label on top or left of a bar * @default 2 */ barLabelOffset?: number; /** * combination axis label * @default Intersection Size */ combinationName?: L; /** * offset of the combination name from the combination y axis. 'auto' means that it will be guessed according to the current values * @default auto */ combinationNameAxisOffset?: number | 'auto'; } /** * the UpSetJS component properties, separated in multiple semantic sub interfaces */ interface UpSetPropsG extends UpSetDataProps, UpSetLayoutProps, UpSetStyleProps, UpSetThemeProps, UpSetElementProps, UpSetSelectionProps { children?: N; } interface UpSetFullPropsG extends Required, 'toElemKey'>>, Required, Required>, Required, Required>, UpSetSelectionProps { children?: N; toElemKey?: (elem: T) => string; } interface VennDiagramPropsG extends VennDiagramDataProps, VennDiagramLayoutProps, VennDiagramStyleProps, VennDiagramThemeProps, VennDiagramElementProps, UpSetSelectionProps { children?: N; } interface VennDiagramFullPropsG extends Required, 'toElemKey'>>, Required, Required>, Required, Required>, UpSetSelectionProps { toElemKey?: (elem: T) => string; children?: N; } interface KarnaughMapPropsG extends KarnaughMapDataProps, KarnaughMapLayoutProps, KarnaughMapStyleProps, KarnaughMapThemeProps, KarnaughMapElementProps, UpSetSelectionProps { children?: N; } interface KarnaughMapFullPropsG extends Required, 'toElemKey'>>, Required, Required>, Required, Required>, UpSetSelectionProps { toElemKey?: (elem: T) => string; children?: N; } /** * @upsetjs/react * https://github.com/upsetjs/upsetjs * * Copyright (c) 2021 Samuel Gratzl */ declare type UpSetExtraTheme = { backgroundColor: string; }; declare function getDefaultTheme(theme?: UpSetThemes): Readonly>; /** * @upsetjs/react * https://github.com/upsetjs/upsetjs * * Copyright (c) 2021 Samuel Gratzl */ interface UpSetJSDumpProps extends Partial, UpSetThemeProps, VennDiagramThemeProps, KarnaughMapThemeProps, Omit, 'title' | 'description'> { numericScale?: 'linear' | 'log'; bandScale?: 'band'; } interface IUpSetJSDump extends IUpSetDump { $schema: string; name: string; description: string; author?: string; mode?: 'upset' | 'venn' | 'kmap'; elements: readonly (number | string | any)[]; attrs: readonly string[]; props: UpSetJSDumpProps; } interface IUpSetJSStaticDump extends IUpSetStaticDump { $schema: string; name: string; description: string; author?: string; props: UpSetJSDumpProps; mode?: 'upset' | 'venn' | 'kmap'; } /** * @upsetjs/react * https://github.com/upsetjs/upsetjs * * Copyright (c) 2021 Samuel Gratzl */ interface IVennJSSetOverlap { sets: readonly string[]; size: number; weight?: number; } interface IVennJSArc { circle: { x: number; y: number; radius: number; }; width: number; p1: { x: number; y: number; }; p2: { x: number; y: number; }; } interface IVennJSVennLayout { data: IVennJSSetOverlap; text: { x: number; y: number; }; circles: readonly { x: number; y: number; radius: number; set: string; }[]; arcs: readonly IVennJSArc[]; path?: string; distinctPath?: string; } interface IVennJSLayoutFunction { (data: readonly IVennJSSetOverlap[], options: O): readonly IVennJSVennLayout[]; } declare function createVennJSAdapter(layout: IVennJSLayoutFunction, options?: O): IVennDiagramLayoutGenerator; /** * @upsetjs/bundle * https://github.com/upsetjs/upsetjs * * Copyright (c) 2021 Samuel Gratzl */ declare function widthRatios(value?: UpSetLayoutProps['widthRatios']): boolean; declare function heightRatios(value?: UpSetLayoutProps['heightRatios']): boolean; declare function setLabelAlignment(value?: UpSetLayoutProps['setLabelAlignment']): boolean; declare function sets(value: UpSetBaseDataProps['sets']): boolean; declare function combinations(value?: UpSetDataProps['combinations']): boolean; declare function selection(value?: UpSetSelectionProps['selection']): boolean; declare function onHover(value?: UpSetSelectionProps['onHover']): boolean; declare function onClick(value?: UpSetSelectionProps['onClick']): boolean; declare function onContextMenu(value?: UpSetSelectionProps['onContextMenu']): boolean; declare function onMouseMove(value?: UpSetSelectionProps['onMouseMove']): boolean; declare function queries(value?: UpSetSelectionProps['queries']): boolean; declare function stringOrFalse(value?: string | false): boolean; declare function setLabelOffsets(value?: VennDiagramLayoutProps['setLabelOffsets']): boolean; declare function theme(value?: UpSetThemes): boolean; declare function classNames(value?: UpSetStyleClassNames | VennDiagramMultiStyle | KarnaughMapMultiStyle): boolean; declare function fontSizes(value?: UpSetFontSizes | VennDiagramFontSizes | KarnaughMapFontSizes): boolean; declare function numericScale(value?: UpSetDataProps['numericScale']): boolean; declare function bandScale(value?: UpSetDataProps['bandScale']): boolean; declare function axisOffset(value?: UpSetStyleProps['setNameAxisOffset']): boolean; declare function style(value?: any): boolean; declare function styles(value?: UpSetMultiStyle | VennDiagramMultiStyle | KarnaughMapMultiStyle): boolean; declare function exportButtons(value?: UpSetBaseStyleProps['exportButtons']): boolean; declare const validators_widthRatios: typeof widthRatios; declare const validators_heightRatios: typeof heightRatios; declare const validators_setLabelAlignment: typeof setLabelAlignment; declare const validators_sets: typeof sets; declare const validators_combinations: typeof combinations; declare const validators_selection: typeof selection; declare const validators_onHover: typeof onHover; declare const validators_onClick: typeof onClick; declare const validators_onContextMenu: typeof onContextMenu; declare const validators_onMouseMove: typeof onMouseMove; declare const validators_queries: typeof queries; declare const validators_stringOrFalse: typeof stringOrFalse; declare const validators_setLabelOffsets: typeof setLabelOffsets; declare const validators_theme: typeof theme; declare const validators_classNames: typeof classNames; declare const validators_fontSizes: typeof fontSizes; declare const validators_numericScale: typeof numericScale; declare const validators_bandScale: typeof bandScale; declare const validators_axisOffset: typeof axisOffset; declare const validators_style: typeof style; declare const validators_styles: typeof styles; declare const validators_exportButtons: typeof exportButtons; declare namespace validators { export { validators_widthRatios as widthRatios, validators_heightRatios as heightRatios, validators_setLabelAlignment as setLabelAlignment, validators_sets as sets, validators_combinations as combinations, validators_selection as selection, validators_onHover as onHover, validators_onClick as onClick, validators_onContextMenu as onContextMenu, validators_onMouseMove as onMouseMove, validators_queries as queries, validators_stringOrFalse as stringOrFalse, validators_setLabelOffsets as setLabelOffsets, validators_theme as theme, validators_classNames as classNames, validators_fontSizes as fontSizes, validators_numericScale as numericScale, validators_bandScale as bandScale, validators_axisOffset as axisOffset, validators_style as style, validators_styles as styles, validators_exportButtons as exportButtons, }; } //# sourceMappingURL=index.d.ts.map /** * @upsetjs/bundle * https://github.com/upsetjs/upsetjs * * Copyright (c) 2021 Samuel Gratzl */ declare type UpSetReactElement = any; declare type UpSetReactElementComponentChild = UpSetReactElement | object | string | number | bigint | boolean | null | undefined; declare type UpSetReactElementComponentChildren = UpSetReactElementComponentChild[] | UpSetReactElementComponentChild; declare type UpSetAddon = UpSetAddon$1, T, UpSetReactElement>; declare type UpSetAddons = readonly UpSetAddon[]; /** * @sgratzl/boxplots * https://github.com/sgratzl/boxplots * * Copyright (c) 2021 Samuel Gratzl */ declare type KernelDensityEstimator = (v: number) => number; interface IBoxPlot { /** * minimum value in the given data */ readonly min: number; /** * maximum value in the given data */ readonly max: number; /** * median value in the given data */ readonly median: number; /** * 25% quantile */ readonly q1: number; /** * 75% quantile */ readonly q3: number; /** * inter quantile range (q3 - q1) */ readonly iqr: number; /** * whisker / fence below the 25% quantile (lower one) * by default is computed as the smallest element that satisfies (e >= q1 - 1.5IQR && e <= q1) */ readonly whiskerLow: number; /** * whisker / fence above the 75% quantile (upper one) * by default is computed as the largest element that satisfies (e <= q3 + 1.5IQR && e >= q1) */ readonly whiskerHigh: number; /** * outliers that are outside of the whiskers on both ends */ readonly outlier: readonly number[]; /** * arithmetic mean */ readonly mean: number; /** * variance */ readonly variance: number; /** * number of missing values (NaN, null, undefined) in the data */ readonly missing: number; /** * number of values (valid + missing) */ readonly count: number; /** * array like (array or typed array) of all valid items */ readonly items: ArrayLike; readonly kde: KernelDensityEstimator; } declare interface QuantileMethod { (arr: ArrayLike, length: number): { q1: number; median: number; q3: number; }; }//# sourceMappingURL=index.d.ts.map /** * @upsetjs/math * https://github.com/upsetjs/upsetjs * * Copyright (c) 2022 Samuel Gratzl */ declare type QuantilesMethod = 'hinges' | 'fivenum' | 'type7' | 'quantiles' | 'linear' | 'lower' | 'higher' | 'nearest' | 'midpoint'; interface BoxplotStatsOptions { /** * specify the coefficient for the whiskers, use <=0 for getting min/max instead * the coefficient will be multiplied by the IQR * @default 1.5 */ coef?: number; /** * specify the quantile method to use * @default quantilesType7 */ quantiles?: QuantilesMethod | QuantileMethod; /** * defines that it can be assumed that the array is sorted and just contains valid numbers * (which will avoid unnecessary checks and sorting) * @default false */ validAndSorted?: boolean; /** * whiskers mode whether to compute the nearest element which is bigger/smaller than low/high whisker or * the exact value * @default 'nearest' */ whiskersMode?: 'nearest' | 'exact'; /** * delta epsilon to compare * @default 10e-3 */ eps?: number; } declare function boxplot(data: readonly number[] | Float32Array | Float64Array, options?: BoxplotStatsOptions): IBoxPlot; interface ICategory { value: string; color?: string; label?: string; } declare type ICategories = readonly ICategory[]; interface ICategoryBin extends Required { count: number; /** * accumulated count */ acc: number; percentage: number; } declare type ICategoryBins = readonly ICategoryBin[]; declare function categoricalHistogram(values: readonly string[], categories: readonly (string | ICategory)[], base?: readonly string[], dark?: boolean): readonly ICategoryBin[]; //# sourceMappingURL=index.d.ts.map /** * @upsetjs/addons * https://github.com/upsetjs/upsetjs * * Copyright (c) 2022 Samuel Gratzl */ interface IBoxplotStylePlainProps extends BoxplotStatsOptions { theme?: UpSetThemes; /** * the render mode and level of detail to render * @default normal */ mode?: 'normal' | 'box' | 'indicator'; /** * orientation of the box plot * @default horizontal */ orient?: 'horizontal' | 'vertical'; /** * margin applied * @default 0 */ margin?: number; /** * padding of the box from its corners * @default 0.1 */ boxPadding?: number; /** * radius of the outlier circles * @default 3 */ outlierRadius?: number; /** * number format used for the tooltip * @default .toFixed(2) */ numberFormat?(v: number): string; /** * whether to render tooltips * @default true */ tooltips?: boolean; } /** * @upsetjs/addons * https://github.com/upsetjs/upsetjs * * Copyright (c) 2021 Samuel Gratzl */ interface ICategoricalStyleProps { theme?: UpSetThemes; /** * orientation of the box plot * @default horizontal */ orient?: 'horizontal' | 'vertical'; }//# sourceMappingURL=index.d.ts.map /** * @upsetjs/bundle * https://github.com/upsetjs/upsetjs * * Copyright (c) 2021 Samuel Gratzl */ interface IBoxplotStyleProps extends IBoxplotStylePlainProps { /** * custom styles applied to the box element */ boxStyle?: CSSStyleDeclaration; /** * custom styles applied to the whisker element */ lineStyle?: CSSStyleDeclaration; /** * custom styles applied to the outlier elements */ outlierStyle?: CSSStyleDeclaration; } /** * generates a boxplot addon to render box plots as UpSet.js addon for aggregated set data * @param prop accessor or name of the property within the element * @param elems list of elements or their minimum / maximum value for specifying the data domain * @param options additional options */ declare function boxplotAddon(prop: keyof T | ((v: T) => number), elems: readonly T[] | { min: number; max: number; }, options?: Partial, 'size' | 'position' | 'name'>> & IBoxplotStyleProps): UpSetAddon; /** * generates a boxplot addon to render box plots as UpSet.js addon for aggregated set data * @param acc accessor * @param elems list of elements or their minimum / maximum value for specifying the data domain * @param options additional options */ declare function boxplotAggregatedAddon(acc: (v: readonly T[]) => IBoxPlot, domain: { min: number; max: number; }, options?: Partial, 'size' | 'position' | 'name'>> & IBoxplotStyleProps): UpSetAddon; /** * @upsetjs/bundle * https://github.com/upsetjs/upsetjs * * Copyright (c) 2021 Samuel Gratzl */ /** * generates a categorical addon to render categorical distribution as UpSet.js addon for aggregated set data * @param prop accessor or name of the property within the element * @param elems list of elements or their minimum / maximum value for specifying the data domain * @param options additional options */ declare function categoricalAddon(prop: keyof T | ((v: T) => string), elems: readonly T[] | { categories: readonly (string | ICategory)[]; }, options?: Partial, 'size' | 'position' | 'name'>> & ICategoricalStyleProps): UpSetAddon; /** * generates a categorical addon to render categorical distribution as UpSet.js addon for aggregated set data * @param prop accessor or name of the property within the element * @param elems list of elements or their minimum / maximum value for specifying the data domain * @param options additional options */ declare function categoricalAggregatedAddon(acc: (v: readonly T[]) => ICategoryBins, options?: Partial, 'size' | 'position' | 'name'>> & ICategoricalStyleProps): UpSetAddon; /** * @upsetjs/bundle * https://github.com/upsetjs/upsetjs * * Copyright (c) 2021 Samuel Gratzl */ interface UpSetJSSkeletonProps { background?: string; color?: string; secondaryColor?: string; [key: string]: any; } declare type UpSetProps = UpSetPropsG; declare type UpSetFullProps = UpSetFullPropsG; declare type VennDiagramProps = VennDiagramPropsG; declare type VennDiagramFullProps = VennDiagramFullPropsG; declare type KarnaughMapProps = KarnaughMapPropsG; declare type KarnaughMapFullProps = KarnaughMapFullPropsG; /** * helper methods to fill up partial UpSet.js properties with their default values */ declare function fillDefaults(props: UpSetProps): UpSetFullProps; /** * helper methods to fill up partial UpSet.js properties with their default values */ declare function fillVennDiagramDefaults(props: VennDiagramProps): VennDiagramFullProps; /** * helper methods to fill up partial UpSet.js properties with their default values */ declare function fillKarnaughMapDefaults(props: KarnaughMapProps): KarnaughMapFullProps; /** * renders the UpSetJS component * @param node the DOM node to render the component into * @param props the properties of the component */ declare function render(node: HTMLElement, props: UpSetProps): void; /** * renders the UpSetJS component * @param node the DOM node to render the component into * @param props the properties of the component */ declare function renderUpSet(node: HTMLElement, props: UpSetProps): void; /** * renders the VennDiagram component * @param node the DOM node to render the component into * @param props the properties of the component */ declare function renderVennDiagram(node: HTMLElement, props: VennDiagramProps): void; /** * renders the KarnaughMap component * @param node the DOM node to render the component into * @param props the properties of the component */ declare function renderKarnaughMap(node: HTMLElement, props: KarnaughMapProps): void; /** * renders the UpSetJS skeleton component * @param node the DOM node to render the component into * @param props the properties of the component */ declare function renderSkeleton(node: HTMLElement, props: UpSetJSSkeletonProps): void; /** * renders the VennDiagram skeleton component * @param node the DOM node to render the component into * @param props the properties of the component */ declare function renderVennDiagramSkeleton(node: HTMLElement, props: UpSetJSSkeletonProps): void; /** * renders the KarnaughMap skeleton component * @param node the DOM node to render the component into * @param props the properties of the component */ declare function renderKarnaughMapSkeleton(node: HTMLElement, props: UpSetJSSkeletonProps): void; /** * hydrates the UpSetJS component when applied on a server rendered version * @param node the DOM node to render the component into * @param props the properties of the component */ declare function hydrate(node: HTMLElement, props: UpSetProps): void; /** * hydrates the VennDiagram component when applied on a server rendered version * @param node the DOM node to render the component into * @param props the properties of the component */ declare function hydrateVennDiagram(node: HTMLElement, props: VennDiagramProps): void; /** * hydrates the KarnaughMap component when applied on a server rendered version * @param node the DOM node to render the component into * @param props the properties of the component */ declare function hydrateKarnaughMap(node: HTMLElement, props: KarnaughMapProps): void; /** * hydrates the UpSetJS Skeleton component when applied on a server rendered version * @param node the DOM node to render the component into * @param props the properties of the component */ declare function hydrateSkeleton(node: HTMLElement, props: UpSetJSSkeletonProps): void; /** * hydrates the VennDiagram Skeleton component when applied on a server rendered version * @param node the DOM node to render the component into * @param props the properties of the component */ declare function hydrateVennDiagramSkeleton(node: HTMLElement, props: UpSetJSSkeletonProps): void; /** * hydrates the KarnaughMap Skeleton component when applied on a server rendered version * @param node the DOM node to render the component into * @param props the properties of the component */ declare function hydrateKarnaughMapSkeleton(node: HTMLElement, props: UpSetJSSkeletonProps): void; /** * hydrates the UpSetJS component when applied on a server rendered version * @param node the DOM node to render the component into * @param props the properties of the component */ declare const hydrateUpSet: typeof hydrate; /** * helper method to export an download an SVG image * @param node the SVG element to download * @param options additional options */ declare function exportSVG(node: SVGSVGElement, options: { type?: 'png' | 'svg'; title?: string; toRemove?: string; }): Promise; /** * helper method to download a given url in the browser * @param url the url to download * @param title the desired file name * @param doc the root document */ declare function downloadUrl(url: string, title: string, doc: Document): void; declare function toUpSetJSDump(dump: IUpSetDump, elements: readonly (number | string | any)[], props: Partial>, author?: string, mode?: 'upset' | 'venn' | 'kmap'): IUpSetJSDump; declare function toUpSetJSStaticDump(dump: IUpSetStaticDump, props: Partial>, author?: string, mode?: 'upset' | 'venn' | 'kmap'): IUpSetJSStaticDump; declare function createElement(type: string, props: Record | null, ...children: UpSetReactElementComponentChildren[]): UpSetReactElement; export { BandScaleFactory, BandScaleLike, BoxplotStatsOptions, ExtractCombinationsOptions, ExtractFromExpressionOptions, GenerateOverlapLookupOptions, GenerateSetCombinationsOptions, IBaseSet, IBoxPlot, IBoxplotStyleProps, ICategoricalStyleProps, ICategories, ICategory, ICategoryBin, ICategoryBins, IDistinctSetIntersection, ISet, ISetCombination, ISetCombinations, ISetComposite, ISetIntersection, ISetLike, ISetLikes, ISetOverlapFunction, ISetUnion, ISets, IUpSetDump, IUpSetDumpData, IUpSetDumpRef, IUpSetFromDumpConfig, IUpSetFromStaticDumpConfig, IUpSetJSDump, IUpSetJSStaticDump, IUpSetStaticDump, IUpSetStaticDumpData, IUpSetToDumpConfig, IUpSetToStaticDumpConfig, KarnaughMapFontSizes, KarnaughMapFullProps, KarnaughMapLayoutProps, KarnaughMapProps, KarnaughMapThemeProps, NumericScaleFactory, NumericScaleLike, NumericScaleTick, PostprocessCombinationsOptions, PostprocessSetOptions, QuantilesMethod, SET_JOINERS, SetCombinationType, SetElemOverlap, SetOverlap, TickOptions, UpSetAddon, UpSetAddonHandlerInfo, UpSetAddonHandlerInfos, UpSetAddons, UpSetCalcQuery, UpSetCompressedIndices, UpSetElemQuery, UpSetExportOptions, UpSetFontSizes, UpSetFromStaticDumpCompressedCombination, UpSetFromStaticDumpFullCombination, UpSetFullProps, UpSetJSDumpProps, UpSetJSSkeletonProps, UpSetLayoutProps, UpSetProps, UpSetQueries, UpSetQuery, UpSetReactElement, UpSetReactElementComponentChild, UpSetReactElementComponentChildren, UpSetSelectionProps, UpSetSetQuery, UpSetStyleClassNames, UpSetStyleProps, UpSetThemeProps, UpSetThemes, VennDiagramFontSizes, VennDiagramFullProps, VennDiagramLayoutProps, VennDiagramProps, VennDiagramThemeProps, asCombination, asCombinations, asSet, asSets, bandScale$1 as bandScale, boxplot, boxplotAddon, boxplotAggregatedAddon, categoricalAddon, categoricalAggregatedAddon, categoricalHistogram, createElement, createVennJSAdapter, downloadUrl, exportSVG, extractCombinations, extractFromExpression, extractSets, fillDefaults, fillKarnaughMapDefaults, fillVennDiagramDefaults, fromDump, fromIndicesArray, fromSetName, fromStaticDump, generateCombinations, generateDistinctOverlapFunction, generateIntersectionOverlapFunction, generateOverlapFunction, generateOverlapLookup, generateOverlapLookupFunction, generateUnionOverlapFunction, getDefaultTheme, hydrate, hydrateKarnaughMap, hydrateKarnaughMapSkeleton, hydrateSkeleton, hydrateUpSet, hydrateVennDiagram, hydrateVennDiagramSkeleton, isCalcQuery, isElemQuery, isGenerateSetCombinationOptions, isSet, isSetCombination, isSetLike, isSetQuery, isUpSetQuery, linearScale, logScale, mergeColors, parseColor, validators as propValidators, queryElemOverlap, queryOverlap, render, renderKarnaughMap, renderKarnaughMapSkeleton, renderSkeleton, renderUpSet, renderVennDiagram, renderVennDiagramSkeleton, setElemIntersectionFactory, setElemOverlap, setElemOverlapFactory, setOverlap, setOverlapFactory, toDump, toIndicesArray, toKey, toStaticDump, toUpSetJSDump, toUpSetJSStaticDump }; //# sourceMappingURL=index.d.ts.map