import { CoreSetup , CoreStart , Plugin } from '../../../core/public' ; import { ExpressionsStart , ExpressionsSetup } from '../../expressions/public' ; import { imageRendererFactory } from './expression_renderers' ; import { imageFunction } from '../common/expression_functions' ; interface SetupDeps { expressions : ExpressionsSetup ; } interface StartDeps { expression : ExpressionsStart ; } export type ExpressionImagePluginSetup = void ; export type ExpressionImagePluginStart = void ; export class ExpressionImagePlugin implements Plugin < ExpressionImagePluginSetup , ExpressionImagePluginStart , SetupDeps , StartDeps > { public setup ( core , { expressions } ) { expressions . registerFunction ( imageFunction ) ; expressions . registerRenderer ( imageRendererFactory ( core ) ) ; } public start ( core ) { } public stop ( ) { } }