mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-06-22 11:33:43 +00:00
增加Tooltip通过TitleLabelStyle的TextStyle的Alignment设置标题的对齐方式 (#363)
This commit is contained in:
@@ -81,6 +81,7 @@ slug: /changelog
|
|||||||
|
|
||||||
## master
|
## master
|
||||||
|
|
||||||
|
* (2026.06.03) 增加`Tooltip`通过`TitleLabelStyle`的`TextStyle`的`Alignment`设置标题的对齐方式 (#363)
|
||||||
* (2026.05.25) 增加`DataZoom`的`filterAxisRange`设置坐标轴的范围计算是否受`DataZoom`的影响
|
* (2026.05.25) 增加`DataZoom`的`filterAxisRange`设置坐标轴的范围计算是否受`DataZoom`的影响
|
||||||
* (2026.05.23) 优化`DataZoom`的`Marquee`框选功能
|
* (2026.05.23) 优化`DataZoom`的`Marquee`框选功能
|
||||||
* (2026.05.23) 修复`DataZoom`内绘制的折线图可能会超出范围的问题
|
* (2026.05.23) 修复`DataZoom`内绘制的折线图可能会超出范围的问题
|
||||||
|
|||||||
@@ -155,7 +155,7 @@ namespace XCharts.Runtime
|
|||||||
[SerializeField]
|
[SerializeField]
|
||||||
private List<LabelStyle> m_ContentLabelStyles = new List<LabelStyle>()
|
private List<LabelStyle> m_ContentLabelStyles = new List<LabelStyle>()
|
||||||
{
|
{
|
||||||
new LabelStyle() { textPadding = new TextPadding(0, 5, 0, 0), textStyle = new TextStyle() { alignment = TextAnchor.MiddleCenter } },
|
new LabelStyle() { textPadding = new TextPadding(0, 5, 0, 0), textStyle = new TextStyle() { alignment = TextAnchor.MiddleLeft } },
|
||||||
new LabelStyle() { textPadding = new TextPadding(0, 20, 0, 0), textStyle = new TextStyle() { alignment = TextAnchor.MiddleLeft } },
|
new LabelStyle() { textPadding = new TextPadding(0, 20, 0, 0), textStyle = new TextStyle() { alignment = TextAnchor.MiddleLeft } },
|
||||||
new LabelStyle() { textPadding = new TextPadding(0, 0, 0, 0), textStyle = new TextStyle() { alignment = TextAnchor.MiddleRight } }
|
new LabelStyle() { textPadding = new TextPadding(0, 0, 0, 0), textStyle = new TextStyle() { alignment = TextAnchor.MiddleRight } }
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -260,6 +260,7 @@ namespace XCharts.Runtime
|
|||||||
view.layout.childControlWidth = false;
|
view.layout.childControlWidth = false;
|
||||||
view.layout.childForceExpandHeight = false;
|
view.layout.childForceExpandHeight = false;
|
||||||
view.layout.childForceExpandWidth = false;
|
view.layout.childForceExpandWidth = false;
|
||||||
|
view.layout.childAlignment = tooltip.titleLabelStyle.textStyle.alignment;
|
||||||
view.layout.padding = new RectOffset(tooltip.paddingLeftRight,
|
view.layout.padding = new RectOffset(tooltip.paddingLeftRight,
|
||||||
tooltip.paddingLeftRight,
|
tooltip.paddingLeftRight,
|
||||||
tooltip.paddingTopBottom,
|
tooltip.paddingTopBottom,
|
||||||
|
|||||||
Reference in New Issue
Block a user