private Class673 method_1(DocumentObject A_0) { if (A_0.DocumentObjectType == DocumentObjectType.Shape) { return(this.method_1(A_0.ParentObject)); } ShapeGroup group = (A_0.DocumentObjectType == DocumentObjectType.ShapeGroup) ? ((ShapeGroup)A_0) : null; if (group == null) { return(Class673.smethod_0()); } DocumentObject parentObject = group.ParentObject; Class673 class2 = Class673.smethod_0(); if ((parentObject != null) && (parentObject.DocumentObjectType == DocumentObjectType.ShapeGroup)) { class2 = this.method_1(parentObject); } SizeF size = group.Size; spr➂ r➂ = Class316.smethod_9(group, size, false); r➂.ᜀ(class2.method_0(), MatrixOrder.Append); Class316.smethod_9(group, size, true).ᜀ(class2.method_0(), MatrixOrder.Append); SizeF ef2 = Class316.smethod_0(group, class2.method_1(), class2.method_2()); float width = ef2.Width; float height = ef2.Height; float num3 = (size.Width / ((float)group.CoordSizeWidth)) * width; float num4 = (size.Height / ((float)group.CoordSizeHeight)) * height; return(new Class673(r➂, num3, num4, ((float)group.Rotation) + class2.method_3())); }
internal static spr➂ smethod_8(ShapeBase A_0, Class673 A_1) { float num7; float num8; int coordOriginX = A_0.CoordOriginX; int coordOriginY = A_0.CoordOriginY; float width = (float)A_0.Width; float height = (float)A_0.Height; float num5 = width * 0.5f; float num6 = height * 0.5f; spr➂ r➂ = new spr➂(); r➂.ᜀ((float)-coordOriginX, (float)-coordOriginY, MatrixOrder.Append); r➂.ᜀ(-num5, -num6, MatrixOrder.Append); switch (A_0.FlipOrientation) { case FlipOrientation.Horizontal: r➂.ᜁ(-1f, 1f, MatrixOrder.Append); break; case FlipOrientation.Vertical: r➂.ᜁ(1f, -1f, MatrixOrder.Append); break; case FlipOrientation.Both: r➂.ᜁ(-1f, -1f, MatrixOrder.Append); break; } float num9 = ((float)A_0.Rotation) + A_1.method_3(); r➂.ᜁ(A_1.method_1(), A_1.method_2(), MatrixOrder.Append); r➂.ᜀ(num9, MatrixOrder.Append); if (((Math.Abs((float)(num9 % 180f)) == 90f) && !A_0.IsInline) && !(A_0.ParentObject is ShapeGroup)) { num7 = num6; num8 = num5; } else { num7 = num5; num8 = num6; } r➂.ᜀ(num7 * A_1.method_1(), num8 * A_1.method_2(), MatrixOrder.Append); return(r➂); }
internal Class316(ShapeObject A_0, SizeF A_1, Class673 A_2, bool A_3) { this.sizeF_0 = SizeF.Empty; this.shapeObject_0 = A_0; this.sizeF_0 = A_1.IsEmpty ? this.shapeObject_0.Size : A_1; this.spr➂_0 = A_2.method_0(); SizeF ef = smethod_0(A_0, A_2.method_1(), A_2.method_2()); this.float_0 = ef.Width; this.float_1 = ef.Height; this.float_2 = A_2.method_3(); this.limoStretchType_0 = LimoStretchType.None; this.float_3 = 0f; this.spr➂_1 = null; this.int_0 = A_0.LimoX; this.int_1 = A_0.LimoY; this.method_7(A_3); }