Example #1
0
        public Rect CalcSize(XdObjectJson xdObject, Rect rect)
        {
            var clipPath  = xdObject.Meta.Ux.ClipPathResources.Children[0];
            var shapeRect = ShapeObjectParser.CalcSize(clipPath);

            shapeRect.position += new Vector2(clipPath.Transform?.Tx ?? 0f, clipPath.Transform?.Ty ?? 0f);
            return(shapeRect);
        }
Example #2
0
 public Rect CalcSize(XdObjectJson xdObject)
 {
     return(ShapeObjectParser.CalcSize(xdObject));
 }
Example #3
0
        public Rect CalcSize(XdObjectJson xdObject)
        {
            var shapeObjectParser = new ShapeObjectParser();

            return(shapeObjectParser.CalcSize(xdObject));
        }