mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-30 13:28:47 +00:00
修复MarkLine的Label在初始化时可能会闪烁的问题
This commit is contained in:
@@ -75,6 +75,7 @@ slug: /changelog
|
|||||||
|
|
||||||
## master
|
## master
|
||||||
|
|
||||||
|
* (2024.07.17) 修复`MarkLine`的`Label`在初始化时可能会闪烁的问题
|
||||||
* (2024.07.16) 优化`Axis`为`Time`时间轴时的`Tooltip`默认效果
|
* (2024.07.16) 优化`Axis`为`Time`时间轴时的`Tooltip`默认效果
|
||||||
* (2024.07.15) 优化`Axis`为`Time`时间轴时的分割效果
|
* (2024.07.15) 优化`Axis`为`Time`时间轴时的分割效果
|
||||||
* (2024.07.14) 优化`Axis`为`Time`时间轴时的移动表现
|
* (2024.07.14) 优化`Axis`为`Time`时间轴时的移动表现
|
||||||
|
|||||||
@@ -476,6 +476,7 @@ namespace XCharts
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
UpdateAxisMinMaxValue(axis.index, axis);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void InitAxis(Axis relativedAxis, Orient orient,
|
protected void InitAxis(Axis relativedAxis, Orient orient,
|
||||||
@@ -639,6 +640,7 @@ namespace XCharts
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
UpdateAxisMinMaxValue(axis.index, axis);
|
||||||
}
|
}
|
||||||
|
|
||||||
internal static Vector3 GetLabelPosition(int i, Orient orient, Axis axis, Axis relativedAxis, AxisTheme theme,
|
internal static Vector3 GetLabelPosition(int i, Orient orient, Axis axis, Axis relativedAxis, AxisTheme theme,
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ namespace XCharts.Runtime
|
|||||||
content, Color.clear, TextAnchor.MiddleCenter);
|
content, Color.clear, TextAnchor.MiddleCenter);
|
||||||
var pos = MarkLineHelper.GetLabelPosition(data);
|
var pos = MarkLineHelper.GetLabelPosition(data);
|
||||||
label.SetIconActive(false);
|
label.SetIconActive(false);
|
||||||
label.SetActive(data.label.show && data.runtimeInGrid, true);
|
label.SetActive(false, true);
|
||||||
label.SetPosition(pos);
|
label.SetPosition(pos);
|
||||||
data.runtimeLabel = label;
|
data.runtimeLabel = label;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user