lottie-color-manager
Version:
A library for managing colors in Lottie animations
23 lines (22 loc) • 625 B
TypeScript
import { LottieColor } from '../core/types';
/**
* Extracts colors from Lottie animations
*/
export declare class ColorExtractor {
/**
* Extracts all unique colors from a Lottie animation
*/
static extractColors(lottieData: any): LottieColor[];
/**
* Recursively searches for colors in Lottie data
*/
private static searchForColors;
/**
* Extracts colors from a property value, handling both static and animated colors
*/
private static extractColorFromProperty;
/**
* Adds a color to the collection if it's unique
*/
private static addUniqueColor;
}