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); }
public Rect CalcSize(XdObjectJson xdObject) { return(ShapeObjectParser.CalcSize(xdObject)); }
public Rect CalcSize(XdObjectJson xdObject) { var shapeObjectParser = new ShapeObjectParser(); return(shapeObjectParser.CalcSize(xdObject)); }