Open 420tech opened 7 months ago
Looking at the code, if you look at the X and Y positions they are in negative values (Example: -268f, -295f). Did you set the Root element to 0, 0 in Figma?
https://github.com/jsuarezruiz/figma-to-maui-graphics?tab=readme-ov-file#known-limitations-or-issues
As always - brilliant! But I am having some problems making it work at all.
Here is the ContentPage that hosts the GraphicsView: <?xml version="1.0" encoding="utf-8" ?> <ContentPage x:Class="MusicDice.Views.MainPage" xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:controls="clr-namespace:MusicDice.Controls" xmlns:vm="clr-namespace:MusicDice.ViewModels" x:DataType="vm:MainViewModel">
Here is my code behind: namespace MusicDice.Views;
public partial class MainPage : ContentPage { public MainPage(MainViewModel viewModel) { InitializeComponent(); BindingContext = viewModel; DiceOne.Drawable = new DiceOneDrawable(); }
}
As you might infer - I am trying to draw two dice that were drawn in Figma. I can step through the code - but nothing shows up on screen. Am a 100% nubie to hand drawn graphics - so any help would be appreciated.