import { i18n } from '@kbn/i18n' ; import type { ExpressionFunctionDefinition } from '../../../../expressions/common' ; import { EXPRESSION_HEATMAP_GRID_NAME } from '../constants' ; import { HeatmapGridConfig , HeatmapGridConfigResult } from '../types' ; export const heatmapGridConfig = { name : EXPRESSION_HEATMAP_GRID_NAME , aliases : [ ] , type : EXPRESSION_HEATMAP_GRID_NAME , help : `Configure the heatmap layout` , inputTypes : [ 'null' ] , args : { strokeWidth : { types : [ 'number' ] , help : i18n . translate ( 'expressionHeatmap.function.args.grid.strokeWidth.help' , { defaultMessage : 'Specifies the grid stroke width' , } ) , required : false , } , strokeColor : { types : [ 'string' ] , help : i18n . translate ( 'expressionHeatmap.function.args.grid.strokeColor.help' , { defaultMessage : 'Specifies the grid stroke color' , } ) , required : false , } , isCellLabelVisible : { types : [ 'boolean' ] , help : i18n . translate ( 'expressionHeatmap.function.args.grid.isCellLabelVisible.help' , { defaultMessage : 'Specifies whether or not the cell label is visible.' , } ) , } , isYAxisLabelVisible : { types : [ 'boolean' ] , help : i18n . translate ( 'expressionHeatmap.function.args.grid.isYAxisLabelVisible.help' , { defaultMessage : 'Specifies whether or not the Y-axis labels are visible.' , } ) , } , isXAxisLabelVisible : { types : [ 'boolean' ] , help : i18n . translate ( 'expressionHeatmap.function.args.grid.isXAxisLabelVisible.help' , { defaultMessage : 'Specifies whether or not the X-axis labels are visible.' , } ) , } , } , fn ( input , args ) { return { type : EXPRESSION_HEATMAP_GRID_NAME , ... args , } ; } , } ;