import { i18n } from '@kbn/i18n' ; import { colorSchemas } from '../../../../charts/public' ; import { getPositions , getScaleTypes } from '../../../xy/public' ; import { Alignment , GaugeType } from '../types' ; export const getGaugeTypes = ( ) => [ { text : i18n . translate ( 'visTypeVislib.gauge.gaugeTypes.arcText' , { defaultMessage : 'Arc' , } ) , value : GaugeType . Arc , } , { text : i18n . translate ( 'visTypeVislib.gauge.gaugeTypes.circleText' , { defaultMessage : 'Circle' , } ) , value : GaugeType . Circle , } , ] ; export const getAlignments = ( ) => [ { text : i18n . translate ( 'visTypeVislib.gauge.alignmentAutomaticTitle' , { defaultMessage : 'Automatic' , } ) , value : Alignment . Automatic , } , { text : i18n . translate ( 'visTypeVislib.gauge.alignmentHorizontalTitle' , { defaultMessage : 'Horizontal' , } ) , value : Alignment . Horizontal , } , { text : i18n . translate ( 'visTypeVislib.gauge.alignmentVerticalTitle' , { defaultMessage : 'Vertical' , } ) , value : Alignment . Vertical , } , ] ; export const getGaugeCollections = ( ) => ( { gaugeTypes : getGaugeTypes ( ) , alignments : getAlignments ( ) , colorSchemas , } ) ; export const getHeatmapCollections = ( ) => ( { legendPositions : getPositions ( ) , scales : getScaleTypes ( ) , colorSchemas , } ) ;