diff --git a/Runtime/Coord/Polar/PolarCoord.cs b/Runtime/Coord/Polar/PolarCoord.cs index a68ea39c..7d185f96 100644 --- a/Runtime/Coord/Polar/PolarCoord.cs +++ b/Runtime/Coord/Polar/PolarCoord.cs @@ -16,6 +16,7 @@ namespace XCharts.Runtime [SerializeField] private float[] m_Center = new float[2] { 0.5f, 0.45f }; [SerializeField] private float[] m_Radius = new float[2] { 0, 0.35f }; [SerializeField] private Color m_BackgroundColor; + [SerializeField][Since("v3.8.0")] private float m_IndicatorLabelOffset = 30f; public PolarCoordContext context = new PolarCoordContext(); @@ -58,6 +59,16 @@ namespace XCharts.Runtime set { if (PropertyUtil.SetColor(ref m_BackgroundColor, value)) SetVerticesDirty(); } } + /// + /// The offset of indicator label. + /// |指示器标签的偏移量。 + /// + public float indicatorLabelOffset + { + get { return m_IndicatorLabelOffset; } + set { if (PropertyUtil.SetStruct(ref m_IndicatorLabelOffset, value)) SetVerticesDirty(); } + } + public bool IsPointerEnter() { return context.isPointerEnter;