public Widget GetOutlineWidget() { outlinePad = FigmaDesignerOutlinePad.Instance; outlinePad.GenerateTree(session.Response.document, figmaDelegate); outlinePad.RaiseFirstResponder += OutlinePad_RaiseFirstResponder; outlinePad.RaiseDeleteItem += OutlinePad_RaiseDeleteItem; return(outlinePad); }
async Task RefreshAll() { await session.ReloadAsync(scrollview.ContentView, filePath, fileOptions); if (outlinePad != null) { outlinePad.GenerateTree(session.Response.document, figmaDelegate); outlinePad.Focus(GetCurrentSelectedNode()); } }
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); } }