upsetjs import { render as renderPreact , h , hydrate as hydratePreact } from 'preact' ; import UpSetElement , { UpSetPropsG , VennDiagramPropsG , KarnaughMapPropsG , UpSetFullPropsG , VennDiagramFullPropsG , KarnaughMapFullPropsG , UpSetProps as UpSetReactProps , VennDiagramProps as VennDiagramReactProps , KarnaughMapProps as KarnaughMapReactProps , fillDefaults as fillDefaultsImpl , fillVennDiagramDefaults as fillVennDiagramDefaultsImpl , fillKarnaughMapDefaults as fillKarnaughMapDefaultsImpl , exportSVG as exportSVGImpl , downloadUrl as downloadUrlImpl , toUpSetJSDump as toUpSetJSDumpImpl , toUpSetJSStaticDump as toUpSetJSStaticDumpImpl , IUpSetDump , IUpSetStaticDump , IUpSetJSDump , IUpSetJSStaticDump , UpSetMultiStyle , VennDiagram as VennDiagramElement , VennDiagramMultiStyle , KarnaughMap as KarnaughMapElement , KarnaughMapMultiStyle , UpSetJSSkeletonProps as UpSetJSSkeletonPropsImpl , VennDiagramSkeleton , KarnaughMapSkeleton , UpSetJSSkeleton , } from '@upsetjs/react' ; import type { UpSetReactElement } from './react' ; export * from './addons' ; export * from '@upsetjs/model' ; export { propValidators , IUpSetJSDump , IUpSetJSStaticDump , UpSetJSDumpProps , UpSetThemeProps , UpSetThemes , UpSetStyleProps , UpSetFontSizes , VennDiagramFontSizes , KarnaughMapFontSizes , UpSetLayoutProps , VennDiagramLayoutProps , KarnaughMapLayoutProps , UpSetSelectionProps , VennDiagramThemeProps , KarnaughMapThemeProps , UpSetStyleClassNames , UpSetExportOptions , createVennJSAdapter , getDefaultTheme , UpSetAddonHandlerInfo , UpSetAddonHandlerInfos , } from '@upsetjs/react' ; export * from './react' ; export interface UpSetJSSkeletonProps { background ? : string ; color ? : string ; secondaryColor ? : string ; [ key ] : any ; } export type UpSetProps < T = any > = UpSetPropsG < T , CSSStyleDeclaration , UpSetReactElement , string > ; export type UpSetFullProps < T = any > = UpSetFullPropsG < T , CSSStyleDeclaration , UpSetReactElement , string > ; export type VennDiagramProps < T = any > = VennDiagramPropsG < T , CSSStyleDeclaration , UpSetReactElement , string > ; export type VennDiagramFullProps < T = any > = VennDiagramFullPropsG < T , CSSStyleDeclaration , UpSetReactElement , string > ; export type KarnaughMapProps < T = any > = KarnaughMapPropsG < T , CSSStyleDeclaration , UpSetReactElement , string > ; export type KarnaughMapFullProps < T = any > = KarnaughMapFullPropsG < T , CSSStyleDeclaration , UpSetReactElement , string > ; /**
 * helper methods to fill up partial UpSet.js properties with their default values
 */ export function fillDefaults < T = any > ( props ) { const p = props as UpSetProps < T > & { style : any ; styles : UpSetMultiStyle < any > ; } ; return fillDefaultsImpl ( p ) as UpSetFullProps < T > ; } /**
 * helper methods to fill up partial UpSet.js properties with their default values
 */ export function fillVennDiagramDefaults < T = any > ( props ) { const p = props as VennDiagramProps < T > & { style : any ; styles : VennDiagramMultiStyle < any > ; } ; return fillVennDiagramDefaultsImpl ( p ) as VennDiagramFullProps < T > ; } /**
 * helper methods to fill up partial UpSet.js properties with their default values
 */ export function fillKarnaughMapDefaults < T = any > ( props ) { const p = props as KarnaughMapProps < T > & { style : any ; styles : KarnaughMapMultiStyle < any > ; } ; return fillKarnaughMapDefaultsImpl ( p ) as KarnaughMapFullProps < T > ; } param node param props export function render < T = any > ( node , props ) { const p = props as UpSetProps < T > & { style : any ; styles : UpSetMultiStyle < any > ; } ; renderPreact ( h ( UpSetElement as any , p ) , node ) ; } param node param props export function renderUpSet < T = any > ( node , props ) { const p = props as UpSetProps < T > & { style : any ; styles : UpSetMultiStyle < any > ; } ; renderPreact ( h ( UpSetElement as any , p ) , node ) ; } param node param props export function renderVennDiagram < T = any > ( node , props ) { const p = props as VennDiagramProps < T > & { style : any ; styles : VennDiagramMultiStyle < any > ; } ; renderPreact ( h ( VennDiagramElement as any , p ) , node ) ; } param node param props export function renderKarnaughMap < T = any > ( node , props ) { const p = props as KarnaughMapProps < T > & { style : any ; styles : KarnaughMapMultiStyle < any > ; } ; renderPreact ( h ( KarnaughMapElement as any , p ) , node ) ; } param node param props export function renderSkeleton ( node , props ) { const p = props ; renderPreact ( h ( UpSetJSSkeleton as any , p ) , node ) ; } param node param props export function renderVennDiagramSkeleton ( node , props ) { const p = props ; renderPreact ( h ( VennDiagramSkeleton as any , p ) , node ) ; } param node param props export function renderKarnaughMapSkeleton ( node , props ) { const p = props ; renderPreact ( h ( KarnaughMapSkeleton as any , p ) , node ) ; } param node param props export function hydrate < T = any > ( node , props ) { const p = props as UpSetProps < T > & { style : any ; styles : UpSetMultiStyle < any > ; } ; hydratePreact ( h ( UpSetElement as any , p ) , node ) ; } param node param props export function hydrateVennDiagram < T = any > ( node , props ) { const p = props as VennDiagramProps < T > & { style : any ; styles : VennDiagramMultiStyle < any > ; } ; hydratePreact ( h ( VennDiagramElement as any , p ) , node ) ; } param node param props export function hydrateKarnaughMap < T = any > ( node , props ) { const p = props as KarnaughMapProps < T > & { style : any ; styles : KarnaughMapMultiStyle < any > ; } ; hydratePreact ( h ( KarnaughMapElement as any , p ) , node ) ; } param node param props export function hydrateSkeleton ( node , props ) { const p = props ; hydratePreact ( h ( UpSetJSSkeleton as any , p ) , node ) ; } param node param props export function hydrateVennDiagramSkeleton ( node , props ) { const p = props ; hydratePreact ( h ( VennDiagramSkeleton as any , p ) , node ) ; } param node param props export function hydrateKarnaughMapSkeleton ( node , props ) { const p = props ; hydratePreact ( h ( KarnaughMapSkeleton as any , p ) , node ) ; } param node param props export const hydrateUpSet = hydrate ; param node param options export function exportSVG ( node , options ) { return exportSVGImpl ( node , options ) ; } param url param title param doc export function downloadUrl ( url , title , doc ) { downloadUrlImpl ( url , title , doc ) ; } export function toUpSetJSDump ( dump , elements , props , author ? , mode ? ) { return toUpSetJSDumpImpl ( dump , elements , props as Partial < UpSetProps < any > & { style : any ; styles : UpSetMultiStyle < any > ; } > , author , mode ) ; } export function toUpSetJSStaticDump ( dump , props , author ? , mode ? ) { return toUpSetJSStaticDumpImpl ( dump , props as Partial < UpSetProps < any > & { style : any ; styles : UpSetMultiStyle < any > ; } > , author , mode ) ; }