예제 #1
0
 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;
 }
예제 #2
0
 public PlatformFigmaCodeAddChildConverter(string platform, FigmaCodeAddChildConverterBase converter)
 {
     Platform  = platform;
     Converter = converter;
 }