Files
Tiber365/node_modules/lottie-web/player/js/utils/expressions/InterfacesProvider.js
2025-05-16 00:17:42 +02:00

22 lines
681 B
JavaScript

import LayerExpressionInterface from './LayerInterface';
import EffectsExpressionInterface from './EffectInterface';
import CompExpressionInterface from './CompInterface';
import ShapeExpressionInterface from './ShapeInterface';
import TextExpressionInterface from './TextInterface';
import FootageInterface from './FootageInterface';
var interfaces = {
layer: LayerExpressionInterface,
effects: EffectsExpressionInterface,
comp: CompExpressionInterface,
shape: ShapeExpressionInterface,
text: TextExpressionInterface,
footage: FootageInterface,
};
function getInterface(type) {
return interfaces[type] || null;
}
export default getInterface;