提交 769d2ec5 编写于 作者: X xpeng

fix spelling problems

Signed-off-by: Nxpeng <pengxin33@huawei.com>
Change-Id: I8da09400959362abf7b4538a8586061a7d39f190
上级 90ead80e
......@@ -109,7 +109,7 @@ Enumerates the window orientations.
| UNSPECIFIED | 0 | Unspecified. The orientation is determined by the system.|
| PORTRAIT | 1 | Portrait. |
| LANDSCAPE | 2 | Landscape. |
| PORTAIT_INVERTED | 3 | Reverse portrait. |
| PORTRAIT_INVERTED | 3 | Reverse portrait. |
| LANDSCAPE_INVERTED | 4 | Reverse landscape.|
| AUTO_ROTATION | 5 | Auto rotation.|
| AUTO_ROTATION_PORTRAIT | 6 | Auto rotation in the vertical direction.|
......@@ -2067,7 +2067,7 @@ Sets this window to the wide or default color gamut mode. This API uses a promis
**Example**
```js
let promise = windowClass.isSupportWideGamut(window.ColorSpace.WIDE_GAMUT);
let promise = windowClass.setColorSpace(window.ColorSpace.WIDE_GAMUT);
promise.then((data)=> {
console.info('Succeeded in setting window colorspace. Data: ' + JSON.stringify(data));
}).catch((err)=>{
......
......@@ -109,7 +109,7 @@ import window from '@ohos.window';
| UNSPECIFIED | 0 | 表示未定义方向模式,由系统判定。 |
| PORTRAIT | 1 | 表示竖屏显示模式。 |
| LANDSCAPE | 2 | 表示横屏显示模式。 |
| PORTAIT_INVERTED | 3 | 表示反向竖屏显示模式。 |
| PORTRAIT_INVERTED | 3 | 表示反向竖屏显示模式。 |
| LANDSCAPE_INVERTED | 4 | 表示反向横屏显示模式。 |
| AUTO_ROTATION | 5 | 表示传感器自动旋转模式。 |
| AUTO_ROTATION_PORTRAIT | 6 | 表示传感器自动竖向旋转模式。 |
......@@ -2071,7 +2071,7 @@ setColorSpace(colorSpace:ColorSpace): Promise&lt;void&gt;
**示例:**
```js
let promise = windowClass.isSupportWideGamut(window.ColorSpace.WIDE_GAMUT);
let promise = windowClass.setColorSpace(window.ColorSpace.WIDE_GAMUT);
promise.then((data)=> {
console.info('Succeeded in setting window colorspace. Data: ' + JSON.stringify(data));
}).catch((err)=>{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册