From ac0d70dc99c3c2f06ce07e304e0b69c83d91f538 Mon Sep 17 00:00:00 2001 From: liyujie <liyujie43@huawei.com> Date: Wed, 14 Sep 2022 15:16:27 +0800 Subject: [PATCH] update ts-transform-translate api doc Signed-off-by: liyujie <liyujie43@huawei.com> Change-Id: I57a7725802cde924b578b3ca1628e819d8360505 --- .../arkui-ts/ts-universal-attributes-transformation.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-transformation.md b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-transformation.md index e935176de2..f8d1b768b9 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-transformation.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-transformation.md @@ -16,9 +16,9 @@ | å称 | å‚数类型 | 默认值 | æè¿° | | --------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| rotate | {<br/>x?: number,<br/>y?: number,<br/>z?: number,<br/>angle?: Angle,<br/>centerX?: Length,<br/>centerY?: Length<br/>} | {<br/>x: 0,<br/>y: 0,<br/>z: 0,<br/>angle: 0,<br/>centerX: '50%',<br/>centerY: '50%'<br/>} | (x, y, z)指定一个矢é‡ï¼Œè¡¨ç¤ºæ—‹è½¬è½´ï¼Œæ£è§’度为顺时针转动,负角度为逆时针转动,默认值为0,åŒæ—¶å¯ä»¥é€šè¿‡centerXå’ŒcenterY设置旋转的ä¸å¿ƒç‚¹ã€‚ | -| translate | {<br/>x?: Length,<br/>y?: Length,<br/>z? : Length<br/>} | {<br/>x: 0,<br/>y: 0,<br/>z: 0<br/>} | å¯ä»¥åˆ†åˆ«è®¾ç½®Xè½´ã€Yè½´ã€Z轴的平移è·ç¦»ï¼Œè·ç¦»çš„æ£è´ŸæŽ§åˆ¶å¹³ç§»çš„æ–¹å‘,默认值为0。 | -| scale | {<br/>x?: number,<br/>y?: number,<br/>z?: number,<br/>centerX?: Length,<br/>centerY?: Length<br/>} | {<br/>x: 1,<br/>y: 1,<br/>z: 1,<br/>centerX:'50%',<br/>centerY:'50%'<br/>} | å¯ä»¥åˆ†åˆ«è®¾ç½®Xè½´ã€Yè½´ã€Z轴的缩放比例,默认值为1,åŒæ—¶å¯ä»¥é€šè¿‡centerXå’ŒcenterY设置缩放的ä¸å¿ƒç‚¹ã€‚ | +| rotate | {<br/>x?: number,<br/>y?: number,<br/>z?: number,<br/>angle?: Angle,<br/>centerX?: number \| string,<br/>centerY?: number \| string<br/>} | {<br/>x: 0,<br/>y: 0,<br/>z: 0,<br/>angle: 0,<br/>centerX: '50%',<br/>centerY: '50%'<br/>} | (x, y, z)指定一个矢é‡ï¼Œè¡¨ç¤ºæ—‹è½¬è½´ï¼Œæ£è§’度为顺时针转动,负角度为逆时针转动,默认值为0,åŒæ—¶å¯ä»¥é€šè¿‡centerXå’ŒcenterY设置旋转的ä¸å¿ƒç‚¹ã€‚ | +| translate | {<br/>x?: number \| string,<br/>y?: number \| string,<br/>z? : number \| string<br/>} | {<br/>x: 0,<br/>y: 0,<br/>z: 0<br/>} | å¯ä»¥åˆ†åˆ«è®¾ç½®Xè½´ã€Yè½´ã€Z轴的平移è·ç¦»ï¼Œè·ç¦»çš„æ£è´ŸæŽ§åˆ¶å¹³ç§»çš„æ–¹å‘,默认值为0。ä¸æ”¯æŒç™¾åˆ†æ¯”å½¢å¼çš„输入。| +| scale | {<br/>x?: number,<br/>y?: number,<br/>z?: number,<br/>centerX?: number \| string,<br/>centerY?: number \| string<br/>} | {<br/>x: 1,<br/>y: 1,<br/>z: 1,<br/>centerX:'50%',<br/>centerY:'50%'<br/>} | å¯ä»¥åˆ†åˆ«è®¾ç½®Xè½´ã€Yè½´ã€Z轴的缩放比例,默认值为1,åŒæ—¶å¯ä»¥é€šè¿‡centerXå’ŒcenterY设置缩放的ä¸å¿ƒç‚¹ã€‚ | | transform | matrix: Matrix4 | - | 设置当å‰ç»„件的å˜æ¢çŸ©é˜µã€‚ | -- GitLab