ShapeStyle.cs 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace HTEXLib.Models.HTEX
  5. {
  6. public class ShapeStyle
  7. {
  8. /// <summary>
  9. /// 坐标信息
  10. /// </summary>
  11. public Position position { get; set; }
  12. public Border border { get; set; } = new Border();
  13. public Fill fill { get; set; } = new Fill() { type = -1 };
  14. public Effect effect{ get; set; }
  15. }
  16. public class RunStyle
  17. {
  18. public Border border { get; set; } = new Border();
  19. public Fill fill { get; set; } = new Fill() { type = -1 };
  20. public Effect effect { get; set; }
  21. }
  22. public class Effect{
  23. /// <summary>
  24. /// blur,fillOverlay,glow,innerShdw,outerShdw,prstShdw,reflection,softEdge
  25. /// </summary>
  26. public Blur blur { get; set; }
  27. public FillOverlay fillOverlay { get; set; }
  28. //发光
  29. public Glow glow { get; set; }
  30. public InnerShadow innerShadow { get; set; }
  31. public OuterShadow outerShadow { get; set; }
  32. public PresetShadow presetShadow { get; set; }
  33. public Reflection reflection { get; set; }
  34. public SoftEdge softEdge { get; set; }
  35. }
  36. public class Blur {
  37. //public new string type { get; set; } = "blur";
  38. public double radius { get; set; }
  39. public bool grow { get; set; }
  40. }
  41. public class FillOverlay
  42. {
  43. //public new string type { get; set; } = "fillOverlay";
  44. public Fill fill { get; set; }
  45. public string blend { get; set; }
  46. }
  47. public class Glow
  48. {
  49. // public new string type { get; set; } = "glow";
  50. public string color { get; set; }
  51. //pt 磅
  52. public double rad { get; set; }
  53. }
  54. public class InnerShadow
  55. {
  56. // public new string type { get; set; } = "innerShdw";
  57. public double blurRad { get; set; }
  58. public double dist { get; set; }
  59. public double dir { get; set; }
  60. public string color { get; set; }
  61. }
  62. public class OuterShadow
  63. {
  64. //public new string type { get; set; } = "outerShdw";
  65. //模糊
  66. public double blurRad { get; set; }
  67. //距离
  68. public double dist { get; set; }
  69. //角度
  70. public double dir { get; set; }
  71. public string color { get; set; }
  72. public bool rotWithShape { get; set; }
  73. public string algn { get; set; }
  74. public double ky { get; set; }
  75. public double sy { get; set; }
  76. public double sx { get; set; }
  77. public double kx { get; set; }
  78. }
  79. public class PresetShadow
  80. {
  81. //public new string type { get; set; } = "prstShdw";
  82. public string prst { get; set; }
  83. public double dist { get; set; }
  84. public double dir { get; set; }
  85. public string color { get; set; }
  86. }
  87. //映像
  88. public class Reflection
  89. {
  90. // public new string type { get; set; } = "reflection";
  91. //模糊
  92. public double blurRad { get; set; }
  93. //距离
  94. public double dist { get; set; }
  95. public double dir { get; set; }
  96. public bool rotWithShape { get; set; }
  97. public string algn { get; set; }
  98. public double ky { get; set; }
  99. public double sy { get; set; }
  100. public double sx { get; set; }
  101. public double kx { get; set; }
  102. //透明度0-1 透明-不透明
  103. public double stA { get; set; }
  104. public double stPos { get; set; }
  105. public double endA { get; set; }
  106. //大小
  107. public double endPos { get; set; }
  108. public double fadeDir { get; set; }
  109. }
  110. /// <summary>
  111. /// 柔化边缘
  112. /// </summary>
  113. public class SoftEdge
  114. {
  115. // public new string type { get; set; } = "softEdge";
  116. public double rad { get; set; }
  117. }
  118. }