import { ComponentProps } from 'react' ; import { ChartType } from '../..' ; import { Spec } from '../../../specs' ; import { SpecType } from '../../../specs/constants' ; import { specComponentFactory } from '../../../state/spec_factory' ; import { WordModel , defaultWordcloudSpec , WeightFn , OutOfRoomCallback , WordcloudViewModel , } from '../layout/types/viewmodel_types' ; export { WordModel , WeightFn , OutOfRoomCallback } ; alpha export interface WordcloudSpec extends Spec , WordcloudViewModel { chartType : typeof ChartType . Wordcloud ; specType : typeof SpecType . Series ; } alpha export const Wordcloud = specComponentFactory < WordcloudSpec > ( ) ( { chartType : ChartType . Wordcloud , specType : SpecType . Series , } , { ... defaultWordcloudSpec , } ) ; public export type WordcloudProps = ComponentProps < typeof Wordcloud > ;