InterfacesProvider.js 660 B

123456789101112131415161718192021
  1. import LayerExpressionInterface from './LayerInterface';
  2. import EffectsExpressionInterface from './EffectInterface';
  3. import CompExpressionInterface from './CompInterface';
  4. import ShapeExpressionInterface from './ShapeInterface';
  5. import TextExpressionInterface from './TextInterface';
  6. import FootageInterface from './FootageInterface';
  7. var interfaces = {
  8. layer: LayerExpressionInterface,
  9. effects: EffectsExpressionInterface,
  10. comp: CompExpressionInterface,
  11. shape: ShapeExpressionInterface,
  12. text: TextExpressionInterface,
  13. footage: FootageInterface,
  14. };
  15. function getInterface(type) {
  16. return interfaces[type] || null;
  17. }
  18. export default getInterface;