123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace HiTeachCC.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 List<ShapeGuide> ShapeGuides { get; set; }
- public List<Path> Paths { get; set; }
-
- }
- public class Svg {
- 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 string Defs { get; set; }
- public string Transform { get; set; }
- public string SvgData { get; set; }
-
- }
- public abstract class SvgShape {
- // rect ,circle ,ellipse ,line ,polygon ,polyline ,path
- public string Type { get; set; }
- public string Style { get; set; }
- public string Stroke { get; set; }
- //描边的不透明度
- // public string StrokeOpacity { get; set; } = "1";
- public string StrokeWidth { get; set; }
- // 虚线类型描边
- public string StrokeDasharray { get; set; }
- public string Fill { get; set; }
- public string Transform { get; set; }
- public string MarkerStart { get; set; }
- public string MarkerEnd { get; set; }
- //填充色的不透明度
- // public string FillOpacity { get; set; } = "1";
- }
- public class Rect : SvgShape
- {
- //矩形左上角的x位置
- public string X { get; set; }
- //矩形左上角的y位置
- public string Y { get; set; }
- //矩形的宽度
- public string Width { get; set; }
- //矩形的高度
- public string Height { get; set; }
- // 圆角的x方位的半径
- public string Rx { get; set; }
- // 圆角的y方位的半径
- public string Ry { get; set; }
- }
- public class Circle : SvgShape
- {
- //圆的半径
- public string R { get; set; }
- //圆心的x位置
- public string Cx { get; set; }
- //圆心的y位置
- public string Cy { get; set; }
- }
- public class Ellipse : SvgShape
- {
- // 椭圆的x方位的半径
- public string Rx { get; set; }
- // 椭圆的y方位的半径
- public string Ry { get; set; }
- //椭圆的x位置
- public string Cx { get; set; }
- //椭圆的y位置
- public string Cy { get; set; }
- }
- public class Line : SvgShape
- {
- //起点的x位置
- public string X1 { get; set; }
- //起点的Y位置
- public string Y1 { get; set; }
- //终点的X位置
- public string X2 { get; set; }
- //终点的Y位置
- 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 class Polygon : SvgShape
- {
- /// <summary>
- /// 点集数列。每个数字用空白符、逗号、终止命令或者换行符分隔开。每个点必须包含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 class SvgPath : SvgShape
- {
- public string D { get; set; }
-
- }
- public class ShapeGuide
- {
- public string Name { get; set; }
- public string Fmla { get; set; }
- }
- }
|