|
@@ -49,7 +49,7 @@ namespace HTEXLib.Models.HTEX
|
|
|
Position position = new Position { cx= width, cy= height, x=left,y=top,rot=rot};
|
|
|
var ShapeStyle =PPTXHelper.DoShapeProperties(Shape.element.ShapeProperties, slide,type,partForm);
|
|
|
//position = position ,mediaType = "image",type = type,index = index,animatable = animatable ,invisible = invisible
|
|
|
- Shape shape = new Shape() { sid = sid, textBody = DrawText() ,type=type,index=index/*,animatable=animatable,invisible=invisible*/ };
|
|
|
+ Shape shape = new Shape() { sid = sid, textBody = DrawText() ,type=type,index=index/*,animatable=animatable,invisible=invisible*/ , subName = Shape.NonVisualShapeProp.SubName };
|
|
|
shape.style.position = position;
|
|
|
shape.haspar = shape.textBody != null ? shape.textBody.paragraphs != null && shape.textBody.paragraphs.Count > 0 ? true : false : false;
|
|
|
var shapeTypeNode = Shape.element.ShapeProperties.GetFirstChild<PresetGeometry>();
|
|
@@ -102,6 +102,8 @@ namespace HTEXLib.Models.HTEX
|
|
|
// });
|
|
|
//}
|
|
|
var shapeType = "rect";
|
|
|
+
|
|
|
+
|
|
|
if (shapeTypeNode != null && shapeTypeNode.Preset != null && !string.IsNullOrEmpty(shapeTypeNode.Preset.InnerText))
|
|
|
{
|
|
|
shapeType = shapeTypeNode.Preset.InnerText;
|
|
@@ -114,7 +116,8 @@ namespace HTEXLib.Models.HTEX
|
|
|
shape.svg = svg;
|
|
|
shape.shapeType = shapeType;
|
|
|
}
|
|
|
-
|
|
|
+ position.flipV = Shape.element.ShapeProperties.Transform2D!=null? Shape.element.ShapeProperties.Transform2D.VerticalFlip != null && Shape.element.ShapeProperties.Transform2D.VerticalFlip.Value ? 1 : 0:0;
|
|
|
+ position.flipH = Shape.element.ShapeProperties.Transform2D != null ? Shape.element.ShapeProperties.Transform2D.HorizontalFlip != null && Shape.element.ShapeProperties.Transform2D.HorizontalFlip.Value ? 1 : 0:0;
|
|
|
shape = PPTXHelper.DoCustomGeometry(shapeTypeCustom, shape);
|
|
|
var elmt = new List<Item> ();
|
|
|
shape.uid = Shape.suid;
|