|
@@ -6,10 +6,10 @@ namespace TEAMModelOS.Service.Model.PowerPoint
|
|
|
{
|
|
|
public class Shape : Item
|
|
|
{
|
|
|
- public string ShapeType;
|
|
|
- public List<Paragraph> Paragraph { get; set; }
|
|
|
- public Fill Fill { get; set; }
|
|
|
- public Border Border { get; set; }
|
|
|
+ public string shapeType;
|
|
|
+ public List<Paragraph> paragraph { get; set; }
|
|
|
+ public Fill fill { get; set; }
|
|
|
+ public Border border { get; set; }
|
|
|
|
|
|
//public List<ShapeGuide> ShapeGuides { get; set; }
|
|
|
//public List<Path> Paths { get; set; }
|
|
@@ -19,13 +19,13 @@ namespace TEAMModelOS.Service.Model.PowerPoint
|
|
|
}
|
|
|
|
|
|
public class Svg {
|
|
|
- public string Id { get; set; }
|
|
|
+ public string id { get; set; }
|
|
|
//public string Width { get; set; }
|
|
|
//public string Height { get; set; }
|
|
|
//public string Top { get; set; }
|
|
|
//public string Left { get; set; }
|
|
|
//public string Style { get; set; }
|
|
|
- public List<SvgShape> SvgShape { get; set; }
|
|
|
+ public List<SvgShape> svgShape { get; set; }
|
|
|
//public string Defs { get; set; }
|
|
|
// public string Transform { get; set; }
|
|
|
|
|
@@ -35,7 +35,7 @@ namespace TEAMModelOS.Service.Model.PowerPoint
|
|
|
|
|
|
public abstract class SvgShape {
|
|
|
// rect ,circle ,ellipse ,line ,polygon ,polyline ,path
|
|
|
- public string Type { get; set; }
|
|
|
+ public string type { get; set; }
|
|
|
// public string Style { get; set; }
|
|
|
// public string Stroke { get; set; }
|
|
|
//描边的不透明度
|
|
@@ -44,65 +44,65 @@ namespace TEAMModelOS.Service.Model.PowerPoint
|
|
|
// 虚线类型描边
|
|
|
// public string StrokeDasharray { get; set; }
|
|
|
// public string Fill { get; set; }
|
|
|
- public string Transform { get; set; }
|
|
|
- public string Start { get; set; }
|
|
|
- public string End { get; set; }
|
|
|
+ public string transform { get; set; }
|
|
|
+ public string start { get; set; }
|
|
|
+ public string end { get; set; }
|
|
|
//填充色的不透明度
|
|
|
// public string FillOpacity { get; set; } = "1";
|
|
|
}
|
|
|
public class Rect : SvgShape
|
|
|
{
|
|
|
//矩形左上角的x位置
|
|
|
- public string X { get; set; }
|
|
|
+ public string x { get; set; }
|
|
|
//矩形左上角的y位置
|
|
|
- public string Y { get; set; }
|
|
|
+ public string y { get; set; }
|
|
|
//矩形的宽度
|
|
|
- public string Width { get; set; }
|
|
|
+ public string width { get; set; }
|
|
|
//矩形的高度
|
|
|
- public string Height { get; set; }
|
|
|
+ public string height { get; set; }
|
|
|
// 圆角的x方位的半径
|
|
|
- public string Rx { get; set; }
|
|
|
+ public string rx { get; set; }
|
|
|
// 圆角的y方位的半径
|
|
|
- public string Ry { get; set; }
|
|
|
+ public string ry { get; set; }
|
|
|
}
|
|
|
public class Circle : SvgShape
|
|
|
{
|
|
|
//圆的半径
|
|
|
- public string R { get; set; }
|
|
|
+ public string r { get; set; }
|
|
|
//圆心的x位置
|
|
|
- public string Cx { get; set; }
|
|
|
+ public string cx { get; set; }
|
|
|
//圆心的y位置
|
|
|
- public string Cy { get; set; }
|
|
|
+ public string cy { get; set; }
|
|
|
}
|
|
|
public class Ellipse : SvgShape
|
|
|
{
|
|
|
// 椭圆的x方位的半径
|
|
|
- public string Rx { get; set; }
|
|
|
+ public string rx { get; set; }
|
|
|
// 椭圆的y方位的半径
|
|
|
- public string Ry { get; set; }
|
|
|
+ public string ry { get; set; }
|
|
|
|
|
|
//椭圆的x位置
|
|
|
- public string Cx { get; set; }
|
|
|
+ public string cx { get; set; }
|
|
|
//椭圆的y位置
|
|
|
- public string Cy { get; set; }
|
|
|
+ public string cy { get; set; }
|
|
|
}
|
|
|
public class Line : SvgShape
|
|
|
{
|
|
|
//起点的x位置
|
|
|
- public string X1 { get; set; }
|
|
|
+ public string x1 { get; set; }
|
|
|
//起点的Y位置
|
|
|
- public string Y1 { get; set; }
|
|
|
+ public string y1 { get; set; }
|
|
|
//终点的X位置
|
|
|
- public string X2 { get; set; }
|
|
|
+ public string x2 { get; set; }
|
|
|
//终点的Y位置
|
|
|
- public string Y2 { get; set; }
|
|
|
+ public string y2 { get; set; }
|
|
|
}
|
|
|
public class Polyline : SvgShape
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// 点集数列。每个数字用空白、逗号、终止命令符或者换行符分隔开。每个点必须包含2个数字,一个是x坐标,一个是y坐标。所以点列表 (0,0), (1,1) 和(2,2)可以写成这样:“0 0, 1 1, 2 2”。
|
|
|
/// </summary>
|
|
|
- public string Points { get; set; }
|
|
|
+ public string points { get; set; }
|
|
|
}
|
|
|
public class Polygon : SvgShape
|
|
|
{
|
|
@@ -110,12 +110,12 @@ namespace TEAMModelOS.Service.Model.PowerPoint
|
|
|
/// 点集数列。每个数字用空白符、逗号、终止命令或者换行符分隔开。每个点必须包含2个数字,一个是x坐标,一个是y坐标。
|
|
|
/// 所以点列表 (0,0), (1,1) 和(2,2)可以写成这样:“0 0, 1 1, 2 2”。路径绘制完后闭合图形,所以最终的直线将从位置(2,2)连接到位置(0,0)。
|
|
|
/// </summary>
|
|
|
- public string Points { get; set; }
|
|
|
+ public string points { get; set; }
|
|
|
|
|
|
}
|
|
|
public class SvgPath : SvgShape
|
|
|
{
|
|
|
- public string D { get; set; }
|
|
|
+ public string d { get; set; }
|
|
|
|
|
|
}
|
|
|
}
|