This commit is contained in:
monitor1394
2022-03-24 08:37:06 +08:00
parent 6cb3709655
commit f597a3f116
78 changed files with 791 additions and 741 deletions

View File

@@ -6,14 +6,14 @@ namespace XCharts.Runtime
{
/// <summary>
/// The style of area.
/// 区域填充样式。
/// |区域填充样式。
/// </summary>
[System.Serializable]
public class AreaStyle : ChildComponent, ISerieExtraComponent, ISerieDataComponent
{
/// <summary>
/// Origin position of area.
/// 图形区域的起始位置。默认情况下,图形会从坐标轴轴线到数据间进行填充。如果需要填充的区域是坐标轴最大值到数据间,或者坐标轴最小值到数据间,则可以通过这个配置项进行设置。
/// |图形区域的起始位置。默认情况下,图形会从坐标轴轴线到数据间进行填充。如果需要填充的区域是坐标轴最大值到数据间,或者坐标轴最小值到数据间,则可以通过这个配置项进行设置。
/// </summary>
public enum AreaOrigin
{
@@ -43,7 +43,7 @@ namespace XCharts.Runtime
/// <summary>
/// Set this to false to prevent the areafrom showing.
/// 是否显示区域填充。
/// |是否显示区域填充。
/// </summary>
public bool show
{
@@ -52,7 +52,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// the origin of area.
/// 区域填充的起始位置。
/// |区域填充的起始位置。
/// </summary>
public AreaOrigin origin
{
@@ -61,7 +61,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// the color of area,default use serie color.
/// 区域填充的颜色如果toColor不是默认值则表示渐变色的起点颜色。
/// |区域填充的颜色如果toColor不是默认值则表示渐变色的起点颜色。
/// </summary>
public Color32 color
{
@@ -70,7 +70,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// Gradient color, start color to toColor.
/// 渐变色的终点颜色。
/// |渐变色的终点颜色。
/// </summary>
public Color32 toColor
{
@@ -79,7 +79,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// Opacity of the component. Supports value from 0 to 1, and the component will not be drawn when set to 0.
/// 图形透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。
/// |图形透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。
/// </summary>
public float opacity
{
@@ -88,7 +88,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// the color of area,default use serie color.
/// 高亮时区域填充的颜色如果highlightToColor不是默认值则表示渐变色的起点颜色。
/// |高亮时区域填充的颜色如果highlightToColor不是默认值则表示渐变色的起点颜色。
/// </summary>
public Color32 highlightColor
{
@@ -97,7 +97,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// Gradient color, start highlightColor to highlightToColor.
/// 高亮时渐变色的终点颜色。
/// |高亮时渐变色的终点颜色。
/// </summary>
public Color32 highlightToColor
{

View File

@@ -17,7 +17,7 @@ namespace XCharts.Runtime
/// <summary>
/// The widht of arrow.
/// 箭头宽。
/// |箭头宽。
/// </summary>
public float width
{
@@ -26,7 +26,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// The height of arrow.
/// 箭头高。
/// |箭头高。
/// </summary>
public float height
{
@@ -35,7 +35,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// The offset of arrow.
/// 箭头偏移。
/// |箭头偏移。
/// </summary>
public float offset
{
@@ -44,7 +44,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// The dent of arrow.
/// 箭头的凹度。
/// |箭头的凹度。
/// </summary>
public float dent
{
@@ -54,7 +54,7 @@ namespace XCharts.Runtime
/// <summary>
/// the color of arrow.
/// 箭头颜色。
/// |箭头颜色。
/// </summary>
public Color32 color
{

View File

@@ -5,7 +5,7 @@ namespace XCharts.Runtime
{
/// <summary>
/// Settings related to base line.
/// 线条基础配置。
/// |线条基础配置。
/// </summary>
[System.Serializable]
public class BaseLine : ChildComponent
@@ -15,7 +15,7 @@ namespace XCharts.Runtime
/// <summary>
/// Set this to false to prevent the axis line from showing.
/// 是否显示坐标轴轴线。
/// |是否显示坐标轴轴线。
/// </summary>
public bool show
{

View File

@@ -35,7 +35,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// Whether the data icon is show.
/// 是否显示图标。
/// |是否显示图标。
/// </summary>
public bool show { get { return m_Show; } set { m_Show = value; } }
/// <summary>
@@ -44,7 +44,7 @@ namespace XCharts.Runtime
public Layer layer { get { return m_Layer; } set { m_Layer = value; } }
/// <summary>
/// The image of icon.
/// 图标的图片。
/// |图标的图片。
/// </summary>
public Sprite sprite { get { return m_Sprite; } set { m_Sprite = value; } }
/// <summary>

View File

@@ -83,7 +83,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// Gradient color1.
/// 渐变色的颜色1。
/// |渐变色的颜色1。
/// </summary>
public Color32 toColor
{
@@ -92,7 +92,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// Gradient color2.Only valid in line diagrams.
/// 渐变色的颜色2。只在折线图中有效。
/// |渐变色的颜色2。只在折线图中有效。
/// </summary>
public Color32 toColor2
{
@@ -189,7 +189,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// Standard numeric format strings.
/// 标准数字格式字符串。用于将数值格式化显示为字符串。
/// |标准数字格式字符串。用于将数值格式化显示为字符串。
/// 使用Axx的形式A是格式说明符的单字符支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明从0-99。
/// 参考https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings
/// </summary>
@@ -201,7 +201,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// The radius of rounded corner. Its unit is px. Use array to respectively specify the 4 corner radiuses((clockwise upper left, upper right, bottom right and bottom left)).
/// 圆角半径。用数组分别指定4个圆角半径顺时针左上右上右下左下
/// |圆角半径。用数组分别指定4个圆角半径顺时针左上右上右下左下
/// </summary>
public float[] cornerRadius
{

View File

@@ -47,7 +47,7 @@ namespace XCharts.Runtime
/// <summary>
/// Whether the label line is showed.
/// 是否显示视觉引导线。
/// |是否显示视觉引导线。
/// </summary>
public bool show
{
@@ -56,7 +56,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// the type of visual guide line.
/// 视觉引导线类型。
/// |视觉引导线类型。
/// </summary>
public LineType lineType
{
@@ -65,7 +65,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// the color of visual guild line.
/// 视觉引导线颜色。默认和serie一致取自调色板。
/// |视觉引导线颜色。默认和serie一致取自调色板。
/// </summary>
public Color32 lineColor
{
@@ -74,7 +74,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// the width of visual guild line.
/// 视觉引导线的宽度。
/// |视觉引导线的宽度。
/// </summary>
public float lineWidth
{
@@ -83,7 +83,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// the gap of container and guild line.
/// 视觉引导线和容器的间距。
/// |视觉引导线和容器的间距。
/// </summary>
public float lineGap
{
@@ -92,7 +92,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// The length of the first segment of visual guide line.
/// 视觉引导线第一段的长度。
/// |视觉引导线第一段的长度。
/// </summary>
public float lineLength1
{
@@ -101,7 +101,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// The length of the second segment of visual guide line.
/// 视觉引导线第二段的长度。
/// |视觉引导线第二段的长度。
/// </summary>
public float lineLength2
{

View File

@@ -6,14 +6,14 @@ namespace XCharts.Runtime
{
/// <summary>
/// Text label of chart, to explain some data information about graphic item like value, name and so on.
/// 图形上的文本标签,可用于说明图形的一些数据信息,比如值,名称等。
/// |图形上的文本标签,可用于说明图形的一些数据信息,比如值,名称等。
/// </summary>
[System.Serializable]
public class LabelStyle : ChildComponent, ISerieExtraComponent, ISerieDataComponent
{
/// <summary>
/// The position of label.
/// 标签的位置。
/// |标签的位置。
/// </summary>
public enum Position
{
@@ -102,7 +102,7 @@ namespace XCharts.Runtime
/// <summary>
/// Whether the label is showed.
/// 是否显示文本标签。
/// |是否显示文本标签。
/// </summary>
public bool show
{
@@ -111,7 +111,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// The position of label.
/// 标签的位置。
/// |标签的位置。
/// </summary>
public Position position
{
@@ -137,8 +137,8 @@ namespace XCharts.Runtime
set { if (PropertyUtil.SetClass(ref m_Formatter, value)) SetVerticesDirty(); }
}
/// <summary>
/// offset to the host graphic element.
/// 距离图形元素的偏移
/// offset to the host graphic element.
/// |距离图形元素的偏移
/// </summary>
public Vector3 offset
{
@@ -155,7 +155,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// the width of background. If set as default value 0, it means than the background width auto set as the text width.
/// 标签的背景宽度。一般不用指定,不指定时则自动是文字的宽度。
/// |标签的背景宽度。一般不用指定,不指定时则自动是文字的宽度。
/// </summary>
/// <value></value>
public float backgroundWidth
@@ -165,7 +165,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// the height of background. If set as default value 0, it means than the background height auto set as the text height.
/// 标签的背景高度。一般不用指定,不指定时则自动是文字的高度。
/// |标签的背景高度。一般不用指定,不指定时则自动是文字的高度。
/// </summary>
/// <value></value>
public float backgroundHeight
@@ -175,7 +175,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// the text padding of left and right. defaut:2.
/// 左右边距。
/// |左右边距。
/// </summary>
public float paddingLeftRight
{
@@ -184,7 +184,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// the text padding of top and bottom. defaut:2.
/// 上下边距。
/// |上下边距。
/// </summary>
public float paddingTopBottom
{
@@ -193,7 +193,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// Standard numeric format strings.
/// 标准数字格式字符串。用于将数值格式化显示为字符串。
/// |标准数字格式字符串。用于将数值格式化显示为字符串。
/// 使用Axx的形式A是格式说明符的单字符支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明从0-99。
/// 参考https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings
/// </summary>
@@ -222,7 +222,7 @@ namespace XCharts.Runtime
/// <summary>
/// the sytle of text.
/// 文本样式。
/// |文本样式。
/// </summary>
public TextStyle textStyle
{

View File

@@ -33,7 +33,7 @@ namespace XCharts.Runtime
/// <summary>
/// Whether to show the arrow.
/// 是否显示箭头。
/// |是否显示箭头。
/// </summary>
public bool show
{
@@ -42,7 +42,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// The position of arrow.
/// 箭头位置。
/// |箭头位置。
/// </summary>
public Position position
{
@@ -52,7 +52,7 @@ namespace XCharts.Runtime
/// <summary>
/// the arrow of line.
/// 箭头。
/// |箭头。
/// </summary>
public ArrowStyle arrow
{

View File

@@ -6,7 +6,7 @@ namespace XCharts.Runtime
{
/// <summary>
/// The style of line.
/// 线条样式。
/// |线条样式。
/// 注: 修改 lineStyle 中的颜色不会影响图例颜色,如果需要图例颜色和折线图颜色一致,需修改 itemStyle.color线条颜色默认也会取该颜色。
/// toColortoColor2可设置水平方向的渐变如需要设置垂直方向的渐变可使用VisualMap。
/// </summary>
@@ -51,7 +51,7 @@ namespace XCharts.Runtime
/// <summary>
/// Whether show line.
/// 是否显示线条。当作为子组件,它的父组件有参数控制是否显示时,改参数无效。
/// |是否显示线条。当作为子组件,它的父组件有参数控制是否显示时,改参数无效。
/// </summary>
public bool show
{
@@ -60,7 +60,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// the type of line.
/// 线的类型。
/// |线的类型。
/// </summary>
public Type type
{
@@ -69,7 +69,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// the color of line, default use serie color.
/// 线的颜色。
/// |线的颜色。
/// </summary>
public Color32 color
{
@@ -78,7 +78,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// the middle color of line, default use serie color.
/// 线的渐变颜色(需要水平方向渐变时)。
/// |线的渐变颜色(需要水平方向渐变时)。
/// </summary>
public Color32 toColor
{
@@ -87,7 +87,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// the end color of line, default use serie color.
/// 线的渐变颜色2需要水平方向三个渐变色的渐变时
/// |线的渐变颜色2需要水平方向三个渐变色的渐变时
/// </summary>
public Color32 toColor2
{
@@ -96,7 +96,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// the width of line.
/// 线宽。
/// |线宽。
/// /// </summary>
public float width
{
@@ -105,7 +105,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// the length of line.
/// 线长。
/// |线长。
/// /// </summary>
public float length
{
@@ -114,7 +114,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// Opacity of the line. Supports value from 0 to 1, and the line will not be drawn when set to 0.
/// 线的透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。
/// |线的透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。
/// </summary>
public float opacity
{

View File

@@ -9,7 +9,7 @@ namespace XCharts.Runtime
{
/// <summary>
/// Location type. Quick to set the general location.
/// 位置类型。通过Align快速设置大体位置再通过leftrighttopbottom微调具体位置。
/// |位置类型。通过Align快速设置大体位置再通过leftrighttopbottom微调具体位置。
/// </summary>
[Serializable]
public class Location : ChildComponent, IPropertyChanged
@@ -54,7 +54,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// Distance between component and the left side of the container.
/// 离容器左侧的距离。
/// |离容器左侧的距离。
/// </summary>
public float left
{
@@ -63,7 +63,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// Distance between component and the left side of the container.
/// 离容器右侧的距离。
/// |离容器右侧的距离。
/// </summary>
public float right
{
@@ -72,7 +72,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// Distance between component and the left side of the container.
/// 离容器上侧的距离。
/// |离容器上侧的距离。
/// </summary>
public float top
{
@@ -81,7 +81,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// Distance between component and the left side of the container.
/// 离容器下侧的距离。
/// |离容器下侧的距离。
/// </summary>
public float bottom
{
@@ -91,7 +91,7 @@ namespace XCharts.Runtime
/// <summary>
/// the anchor of text.
/// Location对应的Anchor锚点
/// |Location对应的Anchor锚点
/// </summary>
/// <value></value>
public TextAnchor runtimeTextAlignment { get { return m_TextAlignment; } }
@@ -101,17 +101,17 @@ namespace XCharts.Runtime
#endif
/// <summary>
/// the minimum achor.
/// Location对应的anchorMin。
/// |Location对应的anchorMin。
/// </summary>
public Vector2 runtimeAnchorMin { get { return m_AnchorMin; } }
/// <summary>
/// the maximun achor.
/// Location对应的anchorMax.
/// </summary>
/// |Location对应的anchorMax.
/// |</summary>
public Vector2 runtimeAnchorMax { get { return m_AnchorMax; } }
/// <summary>
/// the povot.
/// Loation对应的中心点。
/// |Loation对应的中心点。
/// </summary>
public Vector2 runtimePivot { get { return m_Pivot; } }
public float runtimeLeft { get; private set; }

View File

@@ -5,7 +5,7 @@ using UnityEngine;
namespace XCharts.Runtime
{
[System.Serializable]
public class StageColor
public class StageColor : ChildComponent
{
[SerializeField] private float m_Percent;
[SerializeField] private Color32 m_Color;

View File

@@ -7,7 +7,7 @@ namespace XCharts.Runtime
{
/// <summary>
/// the type of symbol.
/// 标记图形的类型。
/// |标记图形的类型。
/// </summary>
public enum SymbolType
{
@@ -63,23 +63,23 @@ namespace XCharts.Runtime
/// <summary>
/// The way to get serie symbol size.
/// 获取标记图形大小的方式。
/// |获取标记图形大小的方式。
/// </summary>
public enum SymbolSizeType
{
/// <summary>
/// Specify constant for symbol size.
/// 自定义大小。
/// |自定义大小。
/// </summary>
Custom,
/// <summary>
/// Specify the dataIndex and dataScale to calculate symbol size.
/// 通过 dataIndex 从数据中获取,再乘以一个比例系数 dataScale 。
/// |通过 dataIndex 从数据中获取,再乘以一个比例系数 dataScale 。
/// </summary>
FromData,
/// <summary>
/// Specify function for symbol size.
/// 通过委托函数获取。
/// |通过委托函数获取。
/// </summary>
Function,
}
@@ -137,7 +137,7 @@ namespace XCharts.Runtime
/// <summary>
/// Whether the symbol is showed.
/// 是否显示标记。
/// |是否显示标记。
/// </summary>
public bool show
{
@@ -146,7 +146,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// the type of symbol.
/// 标记类型。
/// |标记类型。
/// </summary>
public SymbolType type
{
@@ -155,7 +155,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// the type of symbol size.
/// 标记图形的大小获取方式。
/// |标记图形的大小获取方式。
/// </summary>
public SymbolSizeType sizeType
{
@@ -164,7 +164,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// the size of symbol.
/// 标记的大小。
/// |标记的大小。
/// </summary>
public float size
{
@@ -173,7 +173,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// the size of selected symbol.
/// 被选中的标记的大小。
/// |被选中的标记的大小。
/// </summary>
public float selectedSize
{
@@ -182,7 +182,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// whitch data index is when the sizeType assined as FromData.
/// 当sizeType指定为FromData时指定的数据源索引。
/// |当sizeType指定为FromData时指定的数据源索引。
/// </summary>
public int dataIndex
{
@@ -191,7 +191,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// the scale of data when sizeType assined as FromData.
/// 当sizeType指定为FromData时指定的倍数系数。
/// |当sizeType指定为FromData时指定的倍数系数。
/// </summary>
public float dataScale
{
@@ -200,7 +200,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// the scale of selected data when sizeType assined as FromData.
/// 当sizeType指定为FromData时指定的高亮倍数系数。
/// |当sizeType指定为FromData时指定的高亮倍数系数。
/// </summary>
public float selectedDataScale
{
@@ -209,7 +209,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// the function of size when sizeType assined as Function.
/// 当sizeType指定为Function时指定的委托函数。
/// |当sizeType指定为Function时指定的委托函数。
/// </summary>
public SymbolSizeFunction sizeFunction
{
@@ -218,7 +218,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// the function of size when sizeType assined as Function.
/// 当sizeType指定为Function时指定的高亮委托函数。
/// |当sizeType指定为Function时指定的高亮委托函数。
/// </summary>
public SymbolSizeFunction selectedSizeFunction
{
@@ -227,7 +227,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// the index start to show symbol.
/// 开始显示图形标记的索引。
/// |开始显示图形标记的索引。
/// </summary>
public int startIndex
{
@@ -236,7 +236,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// the interval of show symbol.
/// 显示图形标记的间隔。0表示显示所有标签1表示隔一个隔显示一个标签以此类推。
/// |显示图形标记的间隔。0表示显示所有标签1表示隔一个隔显示一个标签以此类推。
/// </summary>
public int interval
{
@@ -245,7 +245,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// whether to show the last symbol.
/// 是否强制显示最后一个图形标记。
/// |是否强制显示最后一个图形标记。
/// </summary>
public bool forceShowLast
{
@@ -254,7 +254,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// the gap of symbol and line segment.
/// 图形标记和线条的间隙距离。
/// |图形标记和线条的间隙距离。
/// </summary>
public float gap
{
@@ -310,7 +310,7 @@ namespace XCharts.Runtime
private List<float> m_AnimationSize = new List<float>() { 0, 5, 10 };
/// <summary>
/// the setting for effect scatter.
/// 带有涟漪特效动画的散点图的动画参数。
/// |带有涟漪特效动画的散点图的动画参数。
/// </summary>
public List<float> animationSize { get { return m_AnimationSize; } }

View File

@@ -8,7 +8,7 @@ namespace XCharts.Runtime
/// <summary>
/// Text character limitation and adaptation component. When the length of the text exceeds the set length,
/// it is cropped and suffixes are appended to the end.Only valid in the category axis.
/// 文本字符限制和自适应。当文本长度超过设定的长度时进行裁剪,并将后缀附加在最后。
/// |文本字符限制和自适应。当文本长度超过设定的长度时进行裁剪,并将后缀附加在最后。
/// 只在类目轴中有效。
/// </summary>
[Serializable]
@@ -21,7 +21,7 @@ namespace XCharts.Runtime
/// <summary>
/// Whether to enable text limit.
/// 是否启用文本自适应。
/// |是否启用文本自适应。
/// [default:true]
/// </summary>
public bool enable
@@ -30,9 +30,9 @@ namespace XCharts.Runtime
set { if (PropertyUtil.SetStruct(ref m_Enable, value)) SetComponentDirty(); }
}
/// <summary>
/// Set the maximum width. A default of 0 indicates automatic fetch; otherwise, custom.
/// Clipping occurs when the width of the text is greater than this value.
/// 设定最大宽度。默认为0表示自动获取否则表示自定义。当文本的宽度大于该值进行裁剪。
/// Set the maximum width. A default of 0 indicates automatic fetch; otherwise, custom.
/// |Clipping occurs when the width of the text is greater than this value.
/// |设定最大宽度。默认为0表示自动获取否则表示自定义。当文本的宽度大于该值进行裁剪。
/// </summary>
public float maxWidth
{
@@ -40,8 +40,8 @@ namespace XCharts.Runtime
set { if (PropertyUtil.SetStruct(ref m_MaxWidth, value)) SetComponentDirty(); }
}
/// <summary>
/// White pixel distance at both ends.
/// 两边留白像素距离。
/// White pixel distance at both ends.
/// |两边留白像素距离。
/// [default:10f]
/// </summary>
public float gap
@@ -51,7 +51,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// Suffixes when the length exceeds.
/// 长度超出时的后缀。
/// |长度超出时的后缀。
/// [default: "..."]
/// </summary>
public string suffix

View File

@@ -9,7 +9,7 @@ namespace XCharts.Runtime
{
/// <summary>
/// Settings related to text.
/// 文本的相关设置。
/// |文本的相关设置。
/// </summary>
[Serializable]
public class TextStyle : ChildComponent
@@ -34,7 +34,7 @@ namespace XCharts.Runtime
#endif
/// <summary>
/// Rotation of text.
/// 文本的旋转。
/// |文本的旋转。
/// [default: `0f`]
/// </summary>
public float rotate
@@ -44,7 +44,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// Extra width of text preferred width.
/// 额外的宽度
/// |额外的宽度
/// </summary>
public float extraWidth
{
@@ -53,7 +53,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// the offset of position.
/// 坐标偏移。
/// |坐标偏移。
/// [Default: `Vector2.zero`]
/// </summary>
public Vector2 offset
@@ -65,8 +65,8 @@ namespace XCharts.Runtime
public Vector3 offsetv3 { get { return new Vector3(m_Offset.x, m_Offset.y, 0); } }
/// <summary>
/// the color of text.
/// 文本的颜色。
/// the color of text.
/// |文本的颜色。
/// [default: `Color.clear`]
/// </summary>
public Color color
@@ -80,8 +80,8 @@ namespace XCharts.Runtime
set { if (PropertyUtil.SetStruct(ref m_AutoBackgroundColor, value)) SetComponentDirty(); }
}
/// <summary>
/// the color of text.
/// 文本的背景颜色。
/// the color of text.
/// |文本的背景颜色。
/// [default: `Color.clear`]
/// </summary>
public Color backgroundColor
@@ -91,7 +91,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// the font of text. When `null`, the theme's font is used by default.
/// 文本字体。
/// |文本字体。
/// [default: null]
/// </summary>
public Font font
@@ -101,7 +101,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// font size.
/// 文本字体大小。
/// |文本字体大小。
/// [default: 18]
/// </summary>
public int fontSize
@@ -111,7 +111,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// font style.
/// 文本字体的风格。
/// |文本字体的风格。
/// [default: FontStyle.Normal]
/// </summary>
public FontStyle fontStyle
@@ -121,7 +121,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// text line spacing.
/// 行间距。
/// |行间距。
/// [default: 1f]
/// </summary>
public float lineSpacing