Пример #1
0
        public bool Is(XdObjectJson xdObject, XdObjectJson[] parents)
        {
            var isLinkedElement = new[] { xdObject }.Concat(parents).Any(x =>
            {
                var hasParameter = x.HasParameter("vector");
                return(hasParameter);
            });

            bool IsShapeOnly(XdObjectJson x)
            {
                if (x.Type != "group" && !ShapeObjectParser.Is(x))
                {
                    return(false);
                }
                return((x.Group?.Children ?? new XdObjectJson[] { }).All(IsShapeOnly));
            }

            return(isLinkedElement && IsShapeOnly(xdObject));
        }
Пример #2
0
 public bool Is(XdObjectJson xdObject)
 {
     return(xdObject.NameEndsWith("scrollbar") && ShapeObjectParser.Is(xdObject));
 }
Пример #3
0
        public bool Is(XdObjectJson xdObject)
        {
            var shapeObjectParser = new ShapeObjectParser();

            return(xdObject.NameEndsWith("scrollbar") && shapeObjectParser.Is(xdObject));
        }