/******************************************/ /* */ /* Copyright (c) 2018 monitor1394 */ /* https://github.com/monitor1394 */ /* */ /******************************************/ using System; using UnityEngine; namespace XCharts { /// /// [Serializable] public class LineArrow : SubComponent { public enum Position { /// /// 末端箭头 /// End, /// /// 头端箭头 /// Start } [SerializeField] private bool m_Show; [SerializeField] Position m_Position; [SerializeField] private float m_Width = 10; [SerializeField] private float m_Height = 15; [SerializeField] private float m_Offset = 0; [SerializeField] private float m_Dent = 3; /// /// Whether to show the arrow. /// 是否显示箭头。 /// public bool show { get { return m_Show; } set { m_Show = value; } } /// /// The position of arrow. /// 箭头位置。 /// public Position position { get { return m_Position; } set { m_Position = value; } } /// /// The widht of arrow. /// 箭头宽。 /// public float width { get { return m_Width; } set { m_Width = value; } } /// /// The height of arrow. /// 箭头高。 /// public float height { get { return m_Height; } set { m_Height = value; } } /// /// The offset of arrow. /// 箭头偏移。 /// public float offset { get { return m_Offset; } set { m_Offset = value; } } /// /// The dent of arrow. /// 箭头的凹度。 /// public float dent { get { return m_Dent; } set { m_Dent = value; } } } }