mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-30 21:38:49 +00:00
[bug] fix axislabel distance error
This commit is contained in:
@@ -54,6 +54,7 @@
|
|||||||
|
|
||||||
## master
|
## master
|
||||||
|
|
||||||
|
* (2022.07.02) 修复`AxisLabel`代码设置`distance`属性后一直刷新的问题
|
||||||
* (2022.06.30) 修复`Runtime`下代码创建图表时组件无法初始化的问题
|
* (2022.06.30) 修复`Runtime`下代码创建图表时组件无法初始化的问题
|
||||||
* (2022.06.29) 增加`Tooltip`的`itemFormatter`支持`{c0}`显示各维度数据 (#205)
|
* (2022.06.29) 增加`Tooltip`的`itemFormatter`支持`{c0}`显示各维度数据 (#205)
|
||||||
* (2022.06.28) 优化`Pie`设置`avoidLabelOverlap`时的文本表现 (#56)
|
* (2022.06.28) 优化`Pie`设置`avoidLabelOverlap`时的文本表现 (#56)
|
||||||
|
|||||||
@@ -393,6 +393,7 @@ namespace XCharts.Runtime
|
|||||||
public override void ClearVerticesDirty()
|
public override void ClearVerticesDirty()
|
||||||
{
|
{
|
||||||
base.ClearVerticesDirty();
|
base.ClearVerticesDirty();
|
||||||
|
axisLabel.ClearVerticesDirty();
|
||||||
axisLine.ClearVerticesDirty();
|
axisLine.ClearVerticesDirty();
|
||||||
axisTick.ClearVerticesDirty();
|
axisTick.ClearVerticesDirty();
|
||||||
splitLine.ClearVerticesDirty();
|
splitLine.ClearVerticesDirty();
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ namespace XCharts.Runtime
|
|||||||
public Position position
|
public Position position
|
||||||
{
|
{
|
||||||
get { return m_Position; }
|
get { return m_Position; }
|
||||||
set { if (PropertyUtil.SetStruct(ref m_Position, value)) SetVerticesDirty(); }
|
set { if (PropertyUtil.SetStruct(ref m_Position, value)) SetAllDirty(); }
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// formatter of label.
|
/// formatter of label.
|
||||||
@@ -133,7 +133,7 @@ namespace XCharts.Runtime
|
|||||||
public string formatter
|
public string formatter
|
||||||
{
|
{
|
||||||
get { return m_Formatter; }
|
get { return m_Formatter; }
|
||||||
set { if (PropertyUtil.SetClass(ref m_Formatter, value)) SetVerticesDirty(); }
|
set { if (PropertyUtil.SetClass(ref m_Formatter, value)) SetComponentDirty(); }
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// offset to the host graphic element.
|
/// offset to the host graphic element.
|
||||||
@@ -142,7 +142,7 @@ namespace XCharts.Runtime
|
|||||||
public Vector3 offset
|
public Vector3 offset
|
||||||
{
|
{
|
||||||
get { return m_Offset; }
|
get { return m_Offset; }
|
||||||
set { if (PropertyUtil.SetStruct(ref m_Offset, value)) SetVerticesDirty(); }
|
set { if (PropertyUtil.SetStruct(ref m_Offset, value)) SetAllDirty(); }
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Rotation of label.
|
/// Rotation of label.
|
||||||
@@ -159,7 +159,7 @@ namespace XCharts.Runtime
|
|||||||
public float distance
|
public float distance
|
||||||
{
|
{
|
||||||
get { return m_Distance; }
|
get { return m_Distance; }
|
||||||
set { if (PropertyUtil.SetStruct(ref m_Distance, value)) SetVerticesDirty(); }
|
set { if (PropertyUtil.SetStruct(ref m_Distance, value)) SetAllDirty(); }
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the width of label. If set as default value 0, it means than the label width auto set as the text width.
|
/// the width of label. If set as default value 0, it means than the label width auto set as the text width.
|
||||||
|
|||||||
Reference in New Issue
Block a user