/// <summary> /// Initializes a new instance of the <see cref="T:FigmaSharp.FigmaFile"/> class. /// </summary> /// <param name="file">File.</param> /// <param name="figmaViewConverters">Figma view converters.</param> public FigmaFile(string file, NodeConverter[] figmaViewConverters, ViewPropertyConfigureBase propertyConfigure) { this.file = file; ContentView = AppContext.Current.CreateEmptyView(); FigmaImages = new List <IImageView>(); if (propertyConfigure == null) { propertyConfigure = AppContext.Current.GetViewPropertyConfigure(); } var assembly = System.Reflection.Assembly.GetCallingAssembly(); figmaLocalFileProvider = new AssemblyResourceNodeProvider(assembly, file); rendererService = new ViewRenderService(figmaLocalFileProvider, figmaViewConverters, propertyConfigure); }
public ViewRenderService(INodeProvider figmaProvider, NodeConverter[] figmaViewConverters, ViewPropertyConfigureBase propertySetter, ITranslationService translationService = null) : base(figmaProvider, figmaViewConverters ?? AppContext.Current.GetFigmaConverters(), translationService) { this.PropertySetter = propertySetter; }
public ControlViewRenderingService(INodeProvider figmaProvider, NodeConverter[] figmaViewConverters = null, ViewPropertyConfigureBase propertySetter = null, ITranslationService translationService = null) : base(figmaProvider, figmaViewConverters ?? FigmaControlsContext.Current.GetConverters(), propertySetter ?? FigmaControlsContext.Current.GetViewPropertySetter(), translationService ) { }
public FigmaStoryboard(NodeConverter[] figmaViewConverters = null, ViewPropertyConfigureBase propertySetter = null) : base("FigmaStoryboard.figma", figmaViewConverters, propertySetter) { InitializeComponent(); }