Exemple #1
0
        public Widget GetOutlineWidget()
        {
            outlinePad = FigmaDesignerOutlinePad.Instance;
            outlinePad.GenerateTree(session.Response.document, figmaDelegate);

            outlinePad.RaiseFirstResponder += OutlinePad_RaiseFirstResponder;
            outlinePad.RaiseDeleteItem     += OutlinePad_RaiseDeleteItem;
            return(outlinePad);
        }
Exemple #2
0
        async Task RefreshAll()
        {
            await session.ReloadAsync(scrollview.ContentView, filePath, fileOptions);

            if (outlinePad != null)
            {
                outlinePad.GenerateTree(session.Response.document, figmaDelegate);
                outlinePad.Focus(GetCurrentSelectedNode());
            }
        }
Exemple #3
0
        void RefreshAll()
        {
            session.Reload(scrollViewWrapper, fileName, fileOptions);
            if (outlinePad != null)
            {
                var selectedView  = surface.SelectedView;
                var selectedModel = session.GetModel(selectedView);

                outlinePad.GenerateTree(session.Response.document, figmaDelegate);
                outlinePad.Focus(selectedModel);
            }
        }