import { pieVisType } from '../../pie/public' ; import { VisTypeDefinition } from '../../../visualizations/public' ; import { CommonVislibParams } from './types' ; import { toExpressionAst } from './to_ast_pie' ; export interface PieVisParams extends CommonVislibParams { type : 'pie' ; isDonut : boolean ; labels : { show : boolean ; values : boolean ; last_level : boolean ; truncate : number | null ; } ; } export const pieVisTypeDefinition = { ... pieVisType ( { } ) , toExpressionAst , } as VisTypeDefinition < PieVisParams > ;