增加Title的TextStyle支持

This commit is contained in:
monitor1394
2019-12-15 21:36:59 +08:00
parent 335837f99d
commit beee233570
8 changed files with 58 additions and 33 deletions

View File

@@ -35,6 +35,8 @@ namespace XCharts
/// </summary>
public Vector2 offset { get { return m_Offset; } set { m_Offset = value; } }
public Vector3 offsetv3 { get { return new Vector3(m_Offset.x, m_Offset.y, 0); } }
/// <summary>
/// the color of text.
/// 文本的颜色。
@@ -81,6 +83,15 @@ namespace XCharts
this.rotate = rotate;
}
public void Copy(TextStyle style)
{
this.fontSize = style.fontSize;
this.fontStyle = style.fontStyle;
this.color = style.color;
this.rotate = style.rotate;
this.offset = style.offset;
}
public TextStyle Clone()
{
var textStyle = new TextStyle();