From bc1596f8d33720c7783f6b4c440e937688a45dd0 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Mon, 3 Jul 2023 23:10:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0`PolarCood`=E7=9A=84`indicato?= =?UTF-8?q?rLabelOffset`=E8=AE=BE=E7=BD=AE=E6=8C=87=E7=A4=BA=E6=96=87?= =?UTF-8?q?=E6=9C=AC=E5=81=8F=E7=A7=BB=E7=9A=84=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Runtime/Coord/Polar/PolarCoord.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) 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;