// SPDX-License-Identifier: MIT // Copyright contributors to the kepler.gl project type EffectParameterDescription = { name: string; type?: 'number' | 'array' | 'color' | 'checkbox'; label?: string | false | (string | false)[]; tooltip?: string; min: number; max: number; defaultValue?: number | number[] | boolean; }; export type EffectDescription = { type: string; name: string; description?: string; parameters: EffectParameterDescription[]; }; export type EffectParameterAnimation = { startValue?: number | number[]; endValue: number | number[]; easing: 'linear' | 'easeInOut'; }; export type EffectAnimation = Record; export type EffectUpdateProps = { isEnabled: boolean; isConfigActive: boolean; isJsonEditorActive: boolean; // effect specific parameters for a deck.gl effect (uniforms) parameters: {[key: string]: any}; animation?: EffectAnimation; }; export type EffectProps = EffectUpdateProps & { id: string; type: string; }; export type EffectPropsPartial = Partial; export interface Effect { id: string; type: string; isEnabled: boolean; isConfigActive: boolean; isJsonEditorActive: boolean; // effect specific parameters for a deck.gl effect (uniforms) parameters: {[key: string]: any}; animation?: EffectAnimation; deckEffect: any; _uiConfig: EffectParameterDescription[]; getDefaultProps(props: Partial): EffectProps; setProps(props: Partial): void; isValidToSave(): boolean; getParameterDescriptions(): EffectParameterDescription[]; clone(): Effect; }