private static IEnumerable <PathWithStyle> ExtractPaths(ElementWithChildren element, StringDictionary parentStyle)
        {
            var style = StyleHelper.MergeStyles(parentStyle, Styler.GetStyle(element));

            foreach (var child in element.Children)
            {
                if (child is Path path)
                {
                    yield return(new PathWithStyle(path, StyleHelper.MergeStyles(style, path.Style)));
                }
                if (child is ElementWithChildren)
                {
                    foreach (var x in ExtractPaths((ElementWithChildren)child, style))
                    {
                        yield return(x);
                    }
                }
            }
        }
 private static bool IsDisplayed(Element element)
 {
     return(Styler.GetStyle(element)["display"] != "none");
 }