Beispiel #1
0
        public static void LoadFigmaFromUrlFile(this NSView contentView, string urlFile, out List <FigmaImageView> figmaImageViews, string viewName = null, string nodeName = null)
        {
            figmaImageViews = new List <FigmaImageView>();
            var figmaDialog = FigmaHelper.GetFigmaDialogFromUrlFile(urlFile, viewName, nodeName);

            LoadFigmaFromFrameEntity(contentView, figmaDialog, figmaImageViews, viewName, nodeName);
        }
Beispiel #2
0
        public static void LoadFigmaFromUrlFile(this NSWindow window, string urlFile, out List <FigmaImageView> figmaImageViews, string viewName = null, string nodeName = null)
        {
            figmaImageViews = new List <FigmaImageView>();
            var figmaDialog = FigmaHelper.GetFigmaDialogFromUrlFile(urlFile, viewName, nodeName);
            var boundingBox = figmaDialog.absoluteBoundingBox;

            window.SetFrame(new CGRect(window.Frame.X, window.Frame.Y, boundingBox.width, boundingBox.height), true);
            LoadFigma(window.ContentView, new FigmaFrameEntityResponse(urlFile, figmaDialog), figmaImageViews);
        }