diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-gauge.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-gauge.md index 8b16eb1a5afbee14e4b1e0226762e7761c6b9db6..0353f790214dc946241653120f9447ca12153b45 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-gauge.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-gauge.md @@ -33,9 +33,17 @@ Gauge(options:{value: number, min?: number, max?: number}) | value | number | 0 | 设置当前数据图表的值。 | | startAngle | number | -150 | 设置起始角度位置,时钟0点为0度,顺时针方向为正角度。 | | endAngle | number | 150 | 设置终止角度位置,时钟0点为0度,顺时针方向为正角度。 | -| colors | Array<any> | - | 设置图表的颜色,支持分段颜色设置。 | +| colors | Array<ColorStop> | - | 设置图表的颜色,支持分段颜色设置。 | | strokeWidth | [Length](ts-types.md#length) | - | 设置环形图表的环形厚度。 | +## ColorStop + +颜色断点类型,用于描述渐进色颜色断点。 + +| 名称 | 类型定义 | 描述 | +| --------- | -------------------- | ------------------------------------------------------------ | +| ColorStop | [[ResourceColor](ts-types.md#resourcecolor8), number] | 描述渐进色颜色断点类型,第一个参数为颜色值,第二个参数为0~1之间的比例值。 | + ## 示例 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-line.md b/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-line.md index c7a9f94701a61607503a113b124ecc91c5730443..ce8dd447cbdac93ac60bba2f74acee9072c25a80 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-line.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-line.md @@ -32,10 +32,16 @@ Line(value?: {width: string | number, height: string | numbe | 参数名称 | 参数类型 | 默认值 | 必填 | 参数描述 | | ---------- | ------------- | ----------- | ---- | ------------------------ | -| width | Length | 0 | 否 | 直线所在矩形的宽度。 | -| height | Length | 0 | 否 | 直线所在矩形的高度。 | -| startPoint | Array8+对象说明 | 名称 | 参数类型 | 描述 | | ---- | ------------------ | ---------- | -| area | [Area](#area8对象说明) | 目标元素的区域信息。 | - -## Area8+对象说明 -| 属性名称 | 类型 | 描述 | -| -------------- | -------------------------- | ------------------- | -| width | number | 目标元素的宽度,单位为vp。 | -| height | number | 目标元素的高度,单位为vp。 | -| position | [Position](#position8对象说明) | 目标元素左上角相对父元素左上角的位置。 | -| globalPosition | [Position](#position8对象说明) | 目标元素左上角相对页面左上角的位置。 | - -## Position8+对象说明 -| 属性名称 | 参数类型 | 描述 | -| ---- | ------ | ----------- | -| x | number | x轴坐标,单位为vp。 | -| y | number | y轴坐标,单位为vp。 | - +| area | [Area](ts-types.md#area8) | 目标元素的区域信息。 | ## 示例