upsetjs import type { UpSetFontSizes , UpSetMultiStyle , UpSetExportOptions , VennDiagramFontSizes , VennDiagramMultiStyle , KarnaughMapMultiStyle , KarnaughMapFontSizes , } from './interfaces' ; import type { GenerateSetCombinationsOptions } from '@upsetjs/model' ; export const EMPTY_OBJECT = { } ; export const EMPTY_ARRAY = [ ] ; export const DEFAULT_FONT_SIZES = { setLabel : '16px' , axisTick : '10px' , chartLabel : '16px' , barLabel : '10px' , legend : '10px' , description : '16px' , title : '24px' , valueLabel : '12px' , exportLabel : '10px' , } ; export const DEFAULT_WIDTH_RATIO = [ 0.18 , 0.12 , 0.7 ] ; export const DEFAULT_HEIGHT_RATIO = [ 0.6 , 0.4 ] ; export const DEFAULT_COMBINATIONS = { type : 'intersection' , order : [ 'cardinality:desc' , 'name:asc' ] , } ; export const FONT_SIZES_KEYS = Object . keys ( DEFAULT_FONT_SIZES ) as ( keyof ( UpSetFontSizes | VennDiagramFontSizes | KarnaughMapFontSizes ) ) [ ] ; export const MULTI_STYLE_KEYS = [ 'axisTick' , 'bar' , 'barLabel' , 'chartLabel' , 'dot' , 'legend' , 'title' , 'description' , 'setLabel' , 'set' , 'valueLabel' , ] ; export const EXPORT_OPTION_KEYS = [ 'dump' , 'png' , 'share' , 'svg' , 'vega' ] ; export const OVERFLOW_OPACITY_FACTOR = [ 0.7 , 0.4 ] ; export const OVERFLOW_PADDING_FACTOR = [ 0.15 , 0.3 ] ;