import type { IRComposition } from '@vvfx/animation-ir'; import type { DataPath } from '@galacean/effects-specification'; import type { ECSCollector } from '../shared/types'; export type { ECSCollector, GEDataPath, GEItem, GEPoolIndex, GERecord, GETransform } from '../shared/types'; /** * Bookkeeping for a fully emitted item: its VFXItemData id and the * ObjectBindingTrack that owns its child Activation/Transform/SpriteColor * tracks. The optional `layerIndex` lets source-specific post-processing * (e.g. lottie visibility normalization) trace items back to the IR layer. */ export interface ProcessedItem { itemId: string; objectBindingTrackId: string; layerIndex?: number; } /** Per-channel animation payload consumed by the timeline tracks. */ export interface TransformAnimation { positionOverLifetime?: Record | null; rotationOverLifetime?: Record | null; sizeOverLifetime?: Record | null; colorOverLifetime?: Record | null; } /** Per-layer context threaded through the unified layer processors. */ export interface LayerProcessingContext { /** Full IR composition; needed by shared accessors that dispatch on `ir.source`. */ ir: IRComposition; collector: ECSCollector; processedItems: ProcessedItem[]; layerToItemId: Record; layerToComponentId: Record; textureCache: Map; parentIndexSet: Set; ratio: number; width: number; height: number; frameRate: number; }