public FigmaCodeRendererService(IFigmaFileProvider figmaProvider, FigmaViewConverter[] figmaViewConverters, FigmaCodePositionConverterBase codePositionConverter, FigmaCodeAddChildConverterBase codeAddChildConverter) { this.customConverters = figmaViewConverters.Where(s => !s.IsLayer).ToArray(); this.figmaConverters = figmaViewConverters.Where(s => s.IsLayer).ToArray();; this.figmaProvider = figmaProvider; this.codePositionConverter = codePositionConverter; this.codeAddChildConverter = codeAddChildConverter; }
public PlatformFigmaCodeAddChildConverter(string platform, FigmaCodeAddChildConverterBase converter) { Platform = platform; Converter = converter; }