123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace HTEXLib.Models.HTEX
- {
- public class ShapeStyle
- {
- /// <summary>
- /// 坐标信息
- /// </summary>
- public Position position { get; set; }
- public Border border { get; set; } = new Border();
- public Fill fill { get; set; } = new Fill() { type = -1 };
- public Effect effect{ get; set; }
- }
- public class RunStyle
- {
- public Border border { get; set; } = new Border();
- public Fill fill { get; set; } = new Fill() { type = -1 };
- public Effect effect { get; set; }
- }
- public class Effect{
- /// <summary>
- /// blur,fillOverlay,glow,innerShdw,outerShdw,prstShdw,reflection,softEdge
- /// </summary>
- public Blur blur { get; set; }
- public FillOverlay fillOverlay { get; set; }
- //发光
- public Glow glow { get; set; }
- public InnerShadow innerShadow { get; set; }
- public OuterShadow outerShadow { get; set; }
- public PresetShadow presetShadow { get; set; }
- public Reflection reflection { get; set; }
- public SoftEdge softEdge { get; set; }
- }
- public class Blur {
- //public new string type { get; set; } = "blur";
- public double radius { get; set; }
- public bool grow { get; set; }
- }
- public class FillOverlay
- {
- //public new string type { get; set; } = "fillOverlay";
- public Fill fill { get; set; }
- public string blend { get; set; }
- }
- public class Glow
- {
- // public new string type { get; set; } = "glow";
- public string color { get; set; }
- //pt 磅
- public double rad { get; set; }
- }
- public class InnerShadow
- {
- // public new string type { get; set; } = "innerShdw";
- public double blurRad { get; set; }
- public double dist { get; set; }
- public double dir { get; set; }
- public string color { get; set; }
- }
- public class OuterShadow
- {
- //public new string type { get; set; } = "outerShdw";
- //模糊
- public double blurRad { get; set; }
- //距离
- public double dist { get; set; }
- //角度
- public double dir { get; set; }
- public string color { get; set; }
- public bool rotWithShape { get; set; }
- public string algn { get; set; }
- public double ky { get; set; }
- public double sy { get; set; }
- public double sx { get; set; }
- public double kx { get; set; }
- }
- public class PresetShadow
- {
- //public new string type { get; set; } = "prstShdw";
- public string prst { get; set; }
- public double dist { get; set; }
- public double dir { get; set; }
- public string color { get; set; }
- }
- //映像
- public class Reflection
- {
- // public new string type { get; set; } = "reflection";
- //模糊
- public double blurRad { get; set; }
- //距离
- public double dist { get; set; }
- public double dir { get; set; }
- public bool rotWithShape { get; set; }
- public string algn { get; set; }
- public double ky { get; set; }
- public double sy { get; set; }
- public double sx { get; set; }
- public double kx { get; set; }
- //透明度0-1 透明-不透明
- public double stA { get; set; }
- public double stPos { get; set; }
- public double endA { get; set; }
- //大小
- public double endPos { get; set; }
- public double fadeDir { get; set; }
- }
- /// <summary>
- /// 柔化边缘
- /// </summary>
- public class SoftEdge
- {
- // public new string type { get; set; } = "softEdge";
- public double rad { get; set; }
- }
- }
|