@@ -54,7 +46,6 @@ To draw a 2D image without using WebGL, that is, to implement CPU rather than GP
```
2. Set the page style in the **index.css** file. The following is an example of the file content:
-
```
.container {
flex-direction: column;
@@ -72,7 +63,6 @@ To draw a 2D image without using WebGL, that is, to implement CPU rather than GP
```
3. Edit the **index.js** file to add the 2D drawing logic code. The following is an example of the file content:
-
```
//index.js
export default { // Native API interaction code
@@ -108,7 +98,7 @@ To draw a 2D image without using WebGL, that is, to implement CPU rather than GP
}
```
- **Figure 1** Effect of clicking the button to draw a 2D image
+**Figure 1** Effect of clicking the button to draw a 2D image
![en-us_image_0000001192269746](figures/en-us_image_0000001192269746.gif)
@@ -118,8 +108,7 @@ To draw a 2D image without using WebGL, that is, to implement CPU rather than GP
To use WebGL to draw a color triangle (GPU drawing), perform the following steps:
-1. Create a page layout. The following is an example of the **index.hml** file:
-
+1. Create a page layout in the **index.hml** file. The following is an example of the file content:
```
@@ -127,8 +116,7 @@ To use WebGL to draw a color triangle (GPU drawing), perform the following steps
```
-2. Set the page style. The following is an example of the **index.css** file:
-
+2. Set the page style in the **index.css** file. The following is an example of the file content:
```
.container {
flex-direction: column;
@@ -145,11 +133,9 @@ To use WebGL to draw a color triangle (GPU drawing), perform the following steps
}
```
-3. Edit the JavaScript code file to add the logic code for drawing a color triangle. The following is an example of the **index.js** file:
-
+3. Edit the JavaScript code file to add the logic code for drawing a color triangle. The following is an example of the file content:
```
//index.js
- import webgl from "@ohos.webglnapi"; // Import the WebGL module.
// WebGL-related predefinition
var gl = {
@@ -710,6 +696,6 @@ To use WebGL to draw a color triangle (GPU drawing), perform the following steps
```
- **Figure 2** Effect of clicking the button to draw a color triangle
+**Figure 2** Effect of clicking the button to draw a color triangle
![en-us_image_0000001192429306](figures/en-us_image_0000001192429306.gif)
diff --git a/en/application-dev/windowmanager/display-guidelines.md b/en/application-dev/windowmanager/display-guidelines.md
index 818d6dc3fa769d894c37754840ec7711f141c40c..10895f9f6a6e9f59c7d7e446eaceb491503bd268 100644
--- a/en/application-dev/windowmanager/display-guidelines.md
+++ b/en/application-dev/windowmanager/display-guidelines.md
@@ -8,7 +8,7 @@ An application can obtain the default display object or all display objects by c
For details about the APIs, see [Display](../reference/apis/js-apis-display.md).
-### How to Develop
+## How to Develop
Call **getDefaultDisplay(): Promise
** to obtain the default display object. An example code snippet is as follows:
diff --git a/en/application-dev/windowmanager/window-overview.md b/en/application-dev/windowmanager/window-overview.md
index dee6a1730aeec73764782d1534e2d17109663fa8..f2ebe17fab095bf0e6451f0091ff772999c8ea81 100644
--- a/en/application-dev/windowmanager/window-overview.md
+++ b/en/application-dev/windowmanager/window-overview.md
@@ -1,18 +1,12 @@
# Window Overview
The Window Manager subsystem provides basic capabilities of window and display management. It is the basis for UI display.
-The Window Manager subsystem enables multiple applications to use the same physical screen for display and interaction. For each application, you only need to implement the interaction interface in the allocated display area. A window acts as a display container of the application interface, and the Window Manager subsystem organizes the interaction interfaces into a form visible to end users.
+The Window Manager subsystem enables multiple applications to use the same physical screen for display and interaction. For each application, you need to design the interaction interface in the fixed window area. A window acts as a display container of the application interface, and the Window Manager subsystem organizes the interaction interfaces into a form visible to end users.
## Basic Concepts
-**Immersive**
-
-The colors of the application interface, status bar, and navigation bar are the same to achieve the visual integrity.
+**Immersive : ** The colors of the application interface, status bar, and navigation bar are the same to achieve the visual integrity.
## Working Principles
To display a UI on a screen, the application and system need to request a window object from the Window Manager subsystem. This object generally represents a rectangular area on the screen and has attributes such as the position, width, height, and overlay layer. The object also loads the root node of the UI framework in the interface. The UI of the application is loaded and displayed in the window through the root node.
-
-## Constraints
-
-Except the **on** and **off** APIs used for callback subscription and unsubscription, all other window APIs are asynchronous interfaces.
diff --git a/zh-cn/application-dev/database/database-distributedobject-guidelines.md b/zh-cn/application-dev/database/database-distributedobject-guidelines.md
index 1c4c14fea3bd1d6875bf4be08ef4ff2a2e01f8a2..7f2388acda99a32b7cffbf7961df199a75db6af5 100644
--- a/zh-cn/application-dev/database/database-distributedobject-guidelines.md
+++ b/zh-cn/application-dev/database/database-distributedobject-guidelines.md
@@ -158,8 +158,8 @@
以下为取消监听数据变更的代码示例:
```js
- //删除上下线回调changeCallback
- local_object.off("status", changeCallback);
+ //删除上下线回调statusCallback
+ local_object.off("status", statusCallback);
//删除所有的上下线回调
local_object.off("status");
```