diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-gradient-color.md b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-gradient-color.md index bb90448db55d8c50bb909e7f0a549e4d7ee9b478..c586401763c7337704ec0ef771f16e55c165316e 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-gradient-color.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-gradient-color.md @@ -13,8 +13,8 @@ | å称 | å‚数类型 | æè¿° | | -------------- | -------------------------------------------- | ----------------------------------- | | linearGradient | {<br/>angle?: number \| string,<br/>direction?: [GradientDirection](ts-appendix-enums.md#gradientdirection),<br/>colors: Array<[ColorStop](ts-basic-components-gauge.md#colorstop)>,<br/>repeating?: boolean<br/>} | 线性æ¸å˜ã€‚<br/>- angle: 线性æ¸å˜çš„起始角度。0点方å‘顺时针旋转为æ£å‘角度。<br/> 默认值:180<br/>- direction: 线性æ¸å˜çš„æ–¹å‘,设置angleåŽä¸ç”Ÿæ•ˆã€‚<br/> 默认值:GradientDirection.Bottom <br/>- colors: æ¸å˜çš„颜色æ述。<br/>- repeating: 为æ¸å˜çš„颜色é‡å¤ç€è‰²ã€‚ <br/> 默认值:false<br/>从API version 9开始,该接å£æ”¯æŒåœ¨ArkTSå¡ç‰‡ä¸ä½¿ç”¨ã€‚ | -| sweepGradient | {<br/>center: Point,<br/>start?: number \| string,<br/>end?: number \| string,<br/>rotation?: number\|string,<br/>colors: Array<[ColorStop](ts-basic-components-gauge.md#colorstop)>,<br/>repeating?: boolean<br/>} | 角度æ¸å˜ï¼Œä»…绘制0-360度范围内的角度,超出时ä¸ç»˜åˆ¶æ¸å˜è‰²ï¼Œåªç»˜åˆ¶çº¯è‰²ã€‚<br/>- center:为角度æ¸å˜çš„ä¸å¿ƒç‚¹ï¼Œå³ç›¸å¯¹äºŽå½“å‰ç»„件左上角的åæ ‡ã€‚<br/>- start:角度æ¸å˜çš„起点。<br/> 默认值:0<br/>- end:角度æ¸å˜çš„终点。<br/> 默认值:0<br/>- rotation: 角度æ¸å˜çš„旋转角度。<br/> 默认值:0<br/>- colors: 为æ¸å˜çš„颜色æ述。<br/>- repeating: 为æ¸å˜çš„颜色é‡å¤ç€è‰²ã€‚<br/> 默认值:false<br/>从API version 9开始,该接å£æ”¯æŒåœ¨ArkTSå¡ç‰‡ä¸ä½¿ç”¨ã€‚<br/>**说明:** <br/>设置为å°äºŽ0的值时,按值为0处ç†ï¼Œè®¾ç½®ä¸ºå¤§äºŽ360的值时,按值为360处ç†ã€‚<br/>当startã€endã€rotationçš„æ•°æ®ç±»åž‹ä¸ºstring,值为"90"或"90%",与90效果一致 | -| radialGradient | {<br/>center: Point,<br/> radius: number \| string,<br/>colors: Array<[ColorStop](ts-basic-components-gauge.md#colorstop)>,<br/>repeating?: boolean<br/>} | 径å‘æ¸å˜ã€‚<br/>- center:径å‘æ¸å˜çš„ä¸å¿ƒç‚¹ï¼Œå³ç›¸å¯¹äºŽå½“å‰ç»„件左上角的åæ ‡ã€‚<br/>- radius:径å‘æ¸å˜çš„åŠå¾„。<br/> å–值范围 [0,+∞)<br> **说明:** <br/>设置为å°äºŽçš„0值时,按值为0处ç†ã€‚<br/>- colors: 为æ¸å˜çš„颜色æ述。<br/>- repeating: 为æ¸å˜çš„颜色é‡å¤ç€è‰²ã€‚<br/> 默认值:false<br/>从API version 9开始,该接å£æ”¯æŒåœ¨ArkTSå¡ç‰‡ä¸ä½¿ç”¨ã€‚ | +| sweepGradient | {<br/>center: [Point](./ts-drawing-components-polygon.md#point),<br/>start?: number \| string,<br/>end?: number \| string,<br/>rotation?: number\|string,<br/>colors: Array<[ColorStop](ts-basic-components-gauge.md#colorstop)>,<br/>repeating?: boolean<br/>} | 角度æ¸å˜ï¼Œä»…绘制0-360度范围内的角度,超出时ä¸ç»˜åˆ¶æ¸å˜è‰²ï¼Œåªç»˜åˆ¶çº¯è‰²ã€‚<br/>- center:为角度æ¸å˜çš„ä¸å¿ƒç‚¹ï¼Œå³ç›¸å¯¹äºŽå½“å‰ç»„件左上角的åæ ‡ã€‚<br/>- start:角度æ¸å˜çš„起点。<br/> 默认值:0<br/>- end:角度æ¸å˜çš„终点。<br/> 默认值:0<br/>- rotation: 角度æ¸å˜çš„旋转角度。<br/> 默认值:0<br/>- colors: 为æ¸å˜çš„颜色æ述。<br/>- repeating: 为æ¸å˜çš„颜色é‡å¤ç€è‰²ã€‚<br/> 默认值:false<br/>从API version 9开始,该接å£æ”¯æŒåœ¨ArkTSå¡ç‰‡ä¸ä½¿ç”¨ã€‚<br/>**说明:** <br/>设置为å°äºŽ0的值时,按值为0处ç†ï¼Œè®¾ç½®ä¸ºå¤§äºŽ360的值时,按值为360处ç†ã€‚<br/>当startã€endã€rotationçš„æ•°æ®ç±»åž‹ä¸ºstring,值为"90"或"90%",与90效果一致 | +| radialGradient | {<br/>center: [Point](./ts-drawing-components-polygon.md#point),<br/> radius: number \| string,<br/>colors: Array<[ColorStop](ts-basic-components-gauge.md#colorstop)>,<br/>repeating?: boolean<br/>} | 径å‘æ¸å˜ã€‚<br/>- center:径å‘æ¸å˜çš„ä¸å¿ƒç‚¹ï¼Œå³ç›¸å¯¹äºŽå½“å‰ç»„件左上角的åæ ‡ã€‚<br/>- radius:径å‘æ¸å˜çš„åŠå¾„。<br/> å–值范围 [0,+∞)<br> **说明:** <br/>设置为å°äºŽçš„0值时,按值为0处ç†ã€‚<br/>- colors: 为æ¸å˜çš„颜色æ述。<br/>- repeating: 为æ¸å˜çš„颜色é‡å¤ç€è‰²ã€‚<br/> 默认值:false<br/>从API version 9开始,该接å£æ”¯æŒåœ¨ArkTSå¡ç‰‡ä¸ä½¿ç”¨ã€‚ | ## 示例