import { PaletteDefinition , SeriesLayer } from '../../../../charts/public' ; export const getPaletteRegistry = ( ) => { const colors = [ '#54B399' , '#6092C0' , '#D36086' , '#9170B8' , '#CA8EAE' , '#D6BF57' , '#B9A888' , '#DA8B45' , '#AA6556' , '#E7664C' , ] ; const mockPalette = { id : 'default' , title : 'My Palette' , getCategoricalColor : ( _ ) => colors [ 0 ] , getCategoricalColors : ( num ) => colors , toExpression : ( ) => ( { type : 'expression' , chain : [ { type : 'function' , function : 'system_palette' , arguments : { name : [ 'default' ] , } , } , ] , } ) , } ; return { get : ( name ) => mockPalette , getAll : ( ) => [ mockPalette ] , } ; } ; export const palettes = { getPalettes : async ( ) => { return getPaletteRegistry ( ) ; } , } ;