import { PluginInitializerContext , CoreSetup , CoreStart , Plugin } from 'kibana/public' ; import { VisualizationsSetup } from '../../../visualizations/public' ; import { ChartsPluginSetup } from '../../../charts/public' ; import { getTagCloudVisTypeDefinition } from './tag_cloud_type' ; import { ConfigSchema } from '../config' ; internal export interface TagCloudPluginSetupDependencies { visualizations : VisualizationsSetup ; charts : ChartsPluginSetup ; } internal export interface TagCloudVisDependencies { palettes : ChartsPluginSetup [ 'palettes' ] ; } internal export class TagCloudPlugin implements Plugin < void , void > { initializerContext : PluginInitializerContext < ConfigSchema > ; constructor ( initializerContext ) { this . initializerContext = initializerContext ; } public setup ( core , { visualizations , charts } ) { const visualizationDependencies = { palettes : charts . palettes , } ; visualizations . createBaseVisualization ( getTagCloudVisTypeDefinition ( visualizationDependencies ) ) ; } public start ( core ) { } }