public override bool CanConvert(FigmaNode currentNode)
        {
            if (currentNode.IsWindowContent())
            {
                return(currentNode.Parent != null && currentNode.Parent.IsDialogParentContainer(FigmaControlType.Window));
            }

            var isWindow = currentNode.IsDialogParentContainer(FigmaControlType.Window);

            return(isWindow);
        }
 public static FigmaNode GetWindowContent(this FigmaNode node)
 {
     if (node is IFigmaNodeContainer nodeContainer)
     {
         if (node.IsDialogParentContainer())
         {
             var content = nodeContainer.children.FirstOrDefault(s => s.IsWindowContent());
             return(content);
         }
     }
     return(null);
 }
 public override bool CanConvert(FigmaNode currentNode)
 {
     return(currentNode.IsDialogParentContainer(FigmaControlType.WindowSheet));
 }
 public static bool IsMainDocumentView(this FigmaNode node)
 {
     return(node.Parent is FigmaCanvas && !node.IsDialogParentContainer());
 }