lottie-color-manager
Version:
A library for managing colors in Lottie animations
24 lines (23 loc) • 744 B
TypeScript
import { LottieColor } from '../core/types';
/**
* Transforms colors in Lottie animations
*/
export declare class ColorTransformer {
/**
* Recursively traverses the Lottie data and replaces colors
*/
private static traverseAndReplaceColors;
/**
* Apply direct color transformations to Lottie data
*/
static applyColorTransformations(lottieData: any, transformations: [LottieColor, LottieColor][]): any;
/**
* Helper to convert a color to string key for mapping
*/
private static colorToKey;
/**
* Helper to replace color values in Lottie data
* Modify the existing replaceColorValue method to work with direct transformations
*/
private static replaceColorValue;
}